Home
last modified time | relevance | path

Searched refs:restoreStatus (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetInflater.kt67 item.restoreStatus = in inflateAppWidget()
68 item.restoreStatus and LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY.inv() in inflateAppWidget()
92 item.restoreStatus != LauncherAppWidgetInfo.RESTORE_COMPLETED in inflateAppWidget()
111 item.restoreStatus = in inflateAppWidget()
112 item.restoreStatus or LauncherAppWidgetInfo.FLAG_ID_ALLOCATED in inflateAppWidget()
142 item.restoreStatus = in inflateAppWidget()
143 item.restoreStatus and LauncherAppWidgetInfo.FLAG_DIRECT_CONFIG.inv() in inflateAppWidget()
149 item.restoreStatus = in inflateAppWidget()
162 item.restoreStatus = LauncherAppWidgetInfo.RESTORE_COMPLETED in inflateAppWidget()
169 item.restoreStatus = LauncherAppWidgetInfo.RESTORE_COMPLETED in inflateAppWidget()
[all …]
DPendingAppWidgetHostView.java167 mStartState = info.restoreStatus; in PendingAppWidgetHostView()
215 && mInfo.restoreStatus != LauncherAppWidgetInfo.RESTORE_COMPLETED) { in onAttachedToWindow()
283 return mStartState != mInfo.restoreStatus; in isReinflateIfNeeded()
458 && (mInfo.restoreStatus & LauncherAppWidgetInfo.FLAG_UI_NOT_READY) != 0) { in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DLauncherAppWidgetInfo.java116 public int restoreStatus; field in LauncherAppWidgetInfo
166 restoreStatus = RESTORE_COMPLETED; in LauncherAppWidgetInfo()
195 .put(LauncherSettings.Favorites.RESTORED, restoreStatus) in onAddToDatabase()
209 return (restoreStatus & FLAG_ID_NOT_VALID) == 0 in isWidgetIdAllocated()
210 || (restoreStatus & FLAG_ID_ALLOCATED) == FLAG_ID_ALLOCATED; in isWidgetIdAllocated()
214 return (restoreStatus & flag) == flag; in hasRestoreFlag()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplBindWidgetTest.java141 item -> item.restoreStatus = FLAG_ID_NOT_VALID); in testPendingWidget_autoRestored()
151 item -> item.restoreStatus = FLAG_ID_NOT_VALID); in testPendingWidget_withConfigScreen()
252 private void addPendingItemToScreen(LauncherAppWidgetInfo item, int restoreStatus) { in addPendingItemToScreen() argument
253 item.restoreStatus = restoreStatus; in addPendingItemToScreen()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DItemInflaterTest.kt242 assertEquals(RESTORE_COMPLETED, itemInfo.restoreStatus) in <lambda>()
261 assertEquals(RESTORE_COMPLETED, itemInfo.restoreStatus) in <lambda>()
312 restoreStatus = FLAG_ID_NOT_VALID or FLAG_UI_NOT_READY in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWorkspaceItemProcessor.kt441 appWidgetInfo.restoreStatus = c.restoreFlag in processWidget()
506 appWidgetInfo.restoreStatus = in processWidget()
507 appWidgetInfo.restoreStatus or LauncherAppWidgetInfo.FLAG_RESTORE_STARTED in processWidget()
533 .put(Favorites.RESTORED, appWidgetInfo.restoreStatus) in processWidget()
DPackageUpdatedTask.java353 widgetInfo.restoreStatus &= in execute()
360 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DWorkspaceItemProcessorTest.kt541 restoreStatus = expectedRestoreStatus in When valid TYPE_REAL App Widget then add item()
571 assertThat(restoreStatus).isEqualTo(expectedWidgetInfo.restoreStatus) in When valid TYPE_REAL App Widget then add item()
727 restoreStatus = expectedRestoreStatus in When Pending App Widget has not started restore then update db and add item()
742 assertThat(restoreStatus).isEqualTo(expectedWidgetInfo.restoreStatus) in When Pending App Widget has not started restore then update db and add item()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java1518 launcherInfo.restoreStatus = LauncherAppWidgetInfo.FLAG_UI_NOT_READY;
2360 info.restoreStatus = finalRestoreFlag;
2361 if (info.restoreStatus == LauncherAppWidgetInfo.RESTORE_COMPLETED) {