Home
last modified time | relevance | path

Searched refs:restoreFlag (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DWorkspaceItemProcessorTest.kt147 restoreFlag = 1 in setup()
150 whenever(markRestored()).doAnswer { restoreFlag = 0 } in setup()
288 .that(mockCursor.restoreFlag) in When valid app then mark restored()
317 .that(mockCursor.restoreFlag) in When fallback Activity found for app then mark restored()
345 .that(mockCursor.restoreFlag) in When app with disabled activity and no fallback found then mark deleted()
385 .that(mockCursor.restoreFlag) in When valid Pinned Deep Shortcut then mark restored()
407 .that(mockCursor.restoreFlag) in When Pinned Deep Shortcut not found then mark deleted()
450 .that(mockCursor.restoreFlag) in When valid Pinned Deep Shortcut with null intent package then use targetPkg()
469 restoreFlag = 1 in When processing Folder then create FolderInfo and mark restored()
472 whenever(markRestored()).doAnswer { restoreFlag = 0 } in When processing Folder then create FolderInfo and mark restored()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWorkspaceItemProcessor.kt175 c.restoreFlag = 0 in processAppOrDeepShortcut()
197 c.restoreFlag != 0 -> { in processAppOrDeepShortcut()
208 c.restoreFlag = in processAppOrDeepShortcut()
209 c.restoreFlag or WorkspaceItemInfo.FLAG_RESTORE_STARTED in processAppOrDeepShortcut()
211 c.updater().put(Favorites.RESTORED, c.restoreFlag).commit() in processAppOrDeepShortcut()
248 if (c.restoreFlag and WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI != 0) { in processAppOrDeepShortcut()
259 c.restoreFlag != 0 -> { in processAppOrDeepShortcut()
344 (c.restoreFlag != 0 || in processAppOrDeepShortcut()
441 appWidgetInfo.restoreStatus = c.restoreFlag in processWidget()
DLoaderCursor.java116 public int restoreFlag; field in LoaderCursor
166 restoreFlag = getInt(mRestoredIndex); in moveToNext()
209 byte[] iconBlob = itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT || restoreFlag != 0 in createIconRequestInfo()
316 throw new InvalidParameterException("Invalid restoreType " + restoreFlag); in getRestoredItemInfo()
321 info.status = restoreFlag; in getRestoredItemInfo()
434 if (restoreFlag != 0) { in markRestored()
436 restoreFlag = 0; in markRestored()
441 return (restoreFlag & flagMask) != 0; in hasRestoreFlag()