Home
last modified time | relevance | path

Searched refs:INVALID_USER_ID (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DSharedPreferencesHelperTest.java18 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
83 assertThat(sp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(USER_ID_1); in testSetPeopleTileKey()
97 assertThat(sp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(INVALID_USER_ID); in testClear()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DAppWidgetOptionsHelper.java21 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
46 int userId = options.getInt(USER_ID, INVALID_USER_ID); in getPeopleTileKeyFromBundle()
DPeopleSpaceWidgetPinnedReceiver.java19 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
76 int userId = intent.getIntExtra(Intent.EXTRA_USER_ID, INVALID_USER_ID); in onReceive()
DPeopleTileKey.java20 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
57 ? entry.getSbn().getUser().getIdentifier() : INVALID_USER_ID; in PeopleTileKey()
DPeopleBackupHelper.java21 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
229 int storedUserId = backupSp.getInt(ADD_USER_ID_TO_URI + key, INVALID_USER_ID); in restoreKey()
272 if (storedUserId != INVALID_USER_ID) { in restoreWidgetIdKey()
300 peopleTileKey.setUserId(INVALID_USER_ID); in backupPeopleTileKey()
385 if (storedUserId != INVALID_USER_ID) { in restoreContactUriKey()
412 if (sp.getInt(USER_ID, INVALID_USER_ID) == userId) { in getExistingWidgetsForUser()
DPeopleSpaceWidgetManager.java35 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
375 widgetSp.getInt(USER_ID, INVALID_USER_ID), in getTileForExistingWidgetThrowing()
892 widgetSp.getInt(USER_ID, INVALID_USER_ID), in getKeyFromStorageByWidgetId()
911 widgetSp.getInt(USER_ID, INVALID_USER_ID), in deleteWidgets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DSharedPreferencesHelper.java19 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
56 int userId = sp.getInt(USER_ID, INVALID_USER_ID); in getPeopleTileKey()
DPeopleSpaceUtils.java84 public static final int INVALID_USER_ID = -1; field in PeopleSpaceUtils
86 new PeopleTileKey(EMPTY_STRING, INVALID_USER_ID, EMPTY_STRING);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleBackupHelperTest.java19 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
73 new PeopleTileKey(SHORTCUT_ID_1, INVALID_USER_ID, PACKAGE_NAME_1);
235 assertThat(mBackupSp.getInt(ADD_USER_ID_TO_URI + WIDGET_ID_STRING, INVALID_USER_ID)) in testBackupKey_widgetIdKey_containsOneWidget_differentUserIdInUri()
248 assertThat(mBackupSp.getInt(ADD_USER_ID_TO_URI + WIDGET_ID_STRING, INVALID_USER_ID)) in testBackupKey_widgetIdKey_containsWidget_SameUserIdInUri()
293 assertThat(mBackupSp.getInt(ADD_USER_ID_TO_URI + URI_STRING, INVALID_USER_ID)) in testBackupKey_contactUriKey_sameUserId()
305 assertThat(mBackupSp.getInt(ADD_USER_ID_TO_URI + URI_STRING, INVALID_USER_ID)) in testBackupKey_contactUriKey_differentUserId_runningAsUser0()
306 .isEqualTo(INVALID_USER_ID); in testBackupKey_contactUriKey_differentUserId_runningAsUser0()
317 assertThat(mBackupSp.getInt(ADD_USER_ID_TO_URI + URI_STRING, INVALID_USER_ID)) in testBackupKey_contactUriKey_differentUserId_runningAsUser10()
318 .isEqualTo(INVALID_USER_ID); in testBackupKey_contactUriKey_differentUserId_runningAsUser10()
DPeopleSpaceWidgetManagerTest.java52 import static com.android.systemui.people.PeopleSpaceUtils.INVALID_USER_ID;
980 assertThat(widgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(0); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1003 assertThat(widgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(0); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1030 assertThat(widgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(INVALID_USER_ID); in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1050 assertThat(secondWidgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(INVALID_USER_ID); in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1094 assertThat(widgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(INVALID_USER_ID); in testOnAppWidgetOptionsChangedNoWidgetAdded()
1114 assertThat(first.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(INVALID_USER_ID); in testOnAppWidgetOptionsChangedWidgetAdded()
/frameworks/base/core/java/android/security/keymaster/
DKeymasterDefs.java235 ErrorCode.INVALID_USER_ID; // -15;