Home
last modified time | relevance | path

Searched refs:APP_WIDGET_IDS (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DAppWidgetsRestoredReceiverTest.kt12 import com.android.launcher3.LauncherPrefs.Companion.APP_WIDGET_IDS
38 launcherPrefs.remove(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS) in tearDown()
63 assertThat(launcherPrefs.get(APP_WIDGET_IDS)).isEqualTo(expectedNewIds) in When AppWidgetsRestoredReceiver gets valid broadcast it sets old and new app widget ids()
85 assertThat(launcherPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse() in AppWidgetsRestoredReceiver does not set widget ids when Intent action is invalid()
107 assertThat(launcherPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse() in AppWidgetsRestoredReceiver does not set widget ids when Intent host id is not Launcher()
129 assertThat(launcherPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse() in AppWidgetsRestoredReceiver does not set ids when new and old ids differ in length()
149 assertThat(launcherPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse() in AppWidgetsRestoredReceiver does not set widget ids when old ids not set()
169 assertThat(launcherPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse() in AppWidgetsRestoredReceiver does not set widget ids when new ids not set()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java22 import static com.android.launcher3.LauncherPrefs.APP_WIDGET_IDS;
227 assertThat(mPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse(); in givenLauncherPrefsHasNoIds_whenRestoreAppWidgetIdsIfExists_thenIdsAreRemoved()
245 assertThat(mPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse(); in givenNoPendingRestore_WhenRestoreAppWidgetIds_ThenRemoveNewWidgetIds()
268 assertThat(mPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse(); in givenRestoreWithNonExistingWidgets_WhenRestoreAppWidgetIds_ThenRemoveNewIds()
297 assertThat(mPrefs.has(OLD_APP_WIDGET_IDS, APP_WIDGET_IDS)).isFalse(); in givenRestore_WhenRestoreAppWidgetIds_ThenAddNewIds()
415 APP_WIDGET_IDS.to(IntArray.wrap(newIds).toConcatString())); in setRestoredAppWidgetIds()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetsRestoredReceiver.java3 import static com.android.launcher3.LauncherPrefs.APP_WIDGET_IDS;
40 APP_WIDGET_IDS.to(IntArray.wrap(newIds).toConcatString())); in onReceive()
DLauncherPrefs.kt306 @JvmField val APP_WIDGET_IDS = backedUpItem(RestoreDbTask.APPWIDGET_IDS, "") in <lambda>() constant
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java24 import static com.android.launcher3.LauncherPrefs.APP_WIDGET_IDS;
429 if (lp.has(APP_WIDGET_IDS, OLD_APP_WIDGET_IDS)) { in restoreAppWidgetIdsIfExists()
433 IntArray.fromConcatString(lp.get(APP_WIDGET_IDS)).toArray(), in restoreAppWidgetIdsIfExists()
439 lp.remove(APP_WIDGET_IDS, OLD_APP_WIDGET_IDS); in restoreAppWidgetIdsIfExists()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/rule/
DBackAndRestoreRule.kt57 .remove(LauncherPrefs.OLD_APP_WIDGET_IDS, LauncherPrefs.APP_WIDGET_IDS) in setRestoreConstants()