Searched refs:APP_WIDGET_IDS (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AppWidgetsRestoredReceiverTest.kt | 12 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/ |
D | RestoreDbTaskTest.java | 22 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/ |
D | AppWidgetsRestoredReceiver.java | 3 import static com.android.launcher3.LauncherPrefs.APP_WIDGET_IDS; 40 APP_WIDGET_IDS.to(IntArray.wrap(newIds).toConcatString())); in onReceive()
|
D | LauncherPrefs.kt | 306 @JvmField val APP_WIDGET_IDS = backedUpItem(RestoreDbTask.APPWIDGET_IDS, "") in <lambda>() constant
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 24 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/ |
D | BackAndRestoreRule.kt | 57 .remove(LauncherPrefs.OLD_APP_WIDGET_IDS, LauncherPrefs.APP_WIDGET_IDS) in setRestoreConstants()
|