Home
last modified time | relevance | path

Searched refs:USER_0 (Results 1 – 14 of 14) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest6.java31 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
34 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
35 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
39 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
42 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_1, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
44 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
48 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
55 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
59 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
65 prepareGetRoleHoldersAsUser(PACKAGE_FALLBACK_LAUNCHER, USER_0); in testHasShortcutHostPermissionInner_multiUser()
[all …]
H A DShortcutManagerTest1.java3723 mService.cleanUpPackageLocked(CALLING_PACKAGE_2, USER_0, USER_0, in testLauncherCallback()
3750 case USER_0: in testLauncherCallback_crossProfile()
4273 mService.cleanUpPackageLocked("abc", USER_0, USER_0, /* appStillExists = */ false); in testCleanupPackage()
4305 mService.cleanUpPackageLocked(CALLING_PACKAGE_1, USER_0, USER_0, in testCleanupPackage()
4509 mService.cleanUpPackageLocked(CALLING_PACKAGE_1, USER_0, USER_0, in testCleanupPackage_republishManifests()
7032 assertEquals(USER_0, in testSaveAndLoad_crossProfile()
7035 assertEquals(USER_0, in testSaveAndLoad_crossProfile()
7045 assertEquals(USER_0, in testSaveAndLoad_crossProfile()
7046 mService.getUserShortcutsLocked(USER_0).getLauncherShortcuts(LAUNCHER_1, USER_0) in testSaveAndLoad_crossProfile()
7048 assertEquals(USER_0, in testSaveAndLoad_crossProfile()
[all …]
H A DShortcutManagerTest11.java59 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts()
86 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
120 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
128 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
155 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts()
178 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts_unpinOthers()
187 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts_unpinOthers()
219 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_cacheShortcuts()
248 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_cacheShortcuts_alreadyCached()
281 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_uncacheShortcuts()
[all …]
H A DShortcutManagerTest10.java59 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_validResult()
67 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_validResult()
74 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinned()
80 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned()
107 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinnedByAnother()
122 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_defaultLauncherChanges()
130 setDefaultLauncher(USER_0, LAUNCHER_2); in testCreateShortcutResult_defaultLauncherChanges()
167 setDefaultLauncher(USER_0, LAUNCHER_1); in testStartConfigActivity_defaultLauncher()
168 runWithCaller(LAUNCHER_1, USER_0, () -> in testStartConfigActivity_defaultLauncher()
175 setDefaultLauncher(USER_0, LAUNCHER_1); in testStartConfigActivity_nonDefaultLauncher()
[all …]
H A DShortcutManagerTest8.java88 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_0)); in testGetParentOrSelfUserId()
95 setDefaultLauncher(USER_0, LAUNCHER_1); in testIsRequestPinShortcutSupported()
105 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported()
173 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_notSupported()
226 setDefaultLauncher(USER_0, LAUNCHER_1); in testNotForeground()
255 setDefaultLauncher(USER_0, LAUNCHER_1); in checkRequestPinShortcut()
340 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_explicitTargetActivity()
396 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_wrongTargetActivity()
414 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_noTargetActivity_noMainActivity()
479 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_dynamicExists()
[all …]
H A DShortcutManagerTest12.java53 setCaller(CALLING_PACKAGE_1, USER_0); in tearDown()
61 setDefaultLauncher(USER_0, LAUNCHER_1); in testGetShortcutIntents_ReturnsMutablePendingIntents()
67 runWithCaller(LAUNCHER_1, USER_0, () -> { in testGetShortcutIntents_ReturnsMutablePendingIntents()
78 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
105 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts_PersistsShortcutsToDisk()
129 setCaller(CALLING_PACKAGE_1, USER_0); in testPushDynamicShortcuts_PersistsShortcutsToDisk()
171 setCaller(CALLING_PACKAGE_1, USER_0); in testRemoveDynamicShortcuts_RemovesShortcutsFromDisk()
197 setCaller(CALLING_PACKAGE_1, USER_0); in testRemoveLongLivedShortcuts_RemovesShortcutsFromDisk()
221 setCaller(CALLING_PACKAGE_1, USER_0); in testDisableShortcuts_RemovesShortcutsFromDisk()
246 setCaller(CALLING_PACKAGE_1, USER_0); in testUpdateShortcuts_UpdateShortcutsOnDisk()
[all …]
H A DShortcutManagerTest2.java1303 setCaller(CALLING_PACKAGE_1, USER_0);
1335 setCaller(LAUNCHER_1, USER_0);
1402 setCaller(LAUNCHER_1, USER_0);
1472 setCaller(LAUNCHER_1, USER_0);
1515 mService.handleUnlockUser(USER_0);
1531 mService.handleUnlockUser(USER_0);
2367 mService.handleUnlockUser(USER_0); in testLoadLegacySavedFile()
2388 mRunningUsers.put(USER_0, true); in testIsUserUnlocked()
2393 mUnlockedUsers.put(USER_0, true); in testIsUserUnlocked()
2402 mService.handleUnlockUser(USER_0); in testIsUserUnlocked()
[all …]
H A DShortcutManagerTest7.java134 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling()
144 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling()
155 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
172 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
183 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running()
196 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running()
207 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetAllThrottling()
217 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetAllThrottling()
231 USER_0); in testLauncherCommands() local
255 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_1, USER_0); in testLauncherCommands()
[all …]
H A DShortcutManagerTest4.java119 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
128 mService.handleUnlockUser(USER_0); in testPersistingWeirdCharacters()
130 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
H A DShortcutManagerTest9.java94 setDefaultLauncher(USER_0, LAUNCHER_1); in testNotForeground()
111 setDefaultLauncher(USER_0, LAUNCHER_1); in checkRequestPinAppWidget()
123 runWithCaller(LAUNCHER_1, USER_0, () -> { in checkRequestPinAppWidget()
H A DShortcutManagerTest3.java73 setCaller(CALLING_PACKAGE, USER_0); in setUp()
80 genPackageAddIntent(CALLING_PACKAGE, USER_0)); in publishManifestShortcuts()
302 runWithCaller(LAUNCHER_1, USER_0, () -> { in testUpdateShortcuts_noManifestShortcuts()
411 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDeleteDynamicShortcuts_noManifestShortcuts()
486 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDisableShortcuts_noManifestShortcuts()
521 genPackageAddIntent(CALLING_PACKAGE_1, USER_0)); in testGetSharingShortcutCount()
H A DBaseShortcutManagerTest.java754 new UserInfo(USER_0, "user0",
908 mUserInfos.put(USER_0, USER_INFO_0); in setUp()
963 mRunningUsers.put(USER_0, true); in setUp()
970 mUnlockedUsers.put(USER_0, true); in setUp()
2202 for (int userId : list(USER_0, USER_P0)) {
2214 mService.applyRestore(payload, USER_0);
2218 mService.handleUnlockUser(USER_0);
2257 runWithCaller(LAUNCHER_1, USER_0, () -> {
2264 runWithCaller(LAUNCHER_2, USER_0, () -> {
2273 runWithCaller(LAUNCHER_3, USER_0, () -> {
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/om/
H A DOverlayManagerSettingsTests.java58 private static int USER_0 = 0; field in OverlayManagerSettingsTests
99 assertTrue(mSettings.remove(OVERLAY_A, USER_0)); in testBasicSetAndGet()
100 assertDoesNotContain(mSettings, OVERLAY_A, USER_0); in testBasicSetAndGet()
108 assertArrayEquals(new int[]{USER_0}, mSettings.getUsers()); in testGetUsers()
143 mSettings.removeUser(USER_0); in testRemoveUser()
161 mSettings.setState(OVERLAY_B, USER_0, STATE_ENABLED); in testOrderOfNewlyAddedItems()
184 USER_0)); in testSetPriority()
213 assertTrue(mSettings.setLowestPriority(OVERLAY_B, USER_0)); in testSetLowestPriority()
259 Integer.toString(USER_0))); in testPersistDifferentOverlaysSameUser()
276 Integer.toString(USER_0))); in testPersistSameOverlayDifferentUsers()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ui/viewmodel/
H A DStatusBarUserChipViewModelTest.kt156 userRepository.setUserInfos(listOf(USER_0))
157 userRepository.setSelectedUserInfo(USER_0)
192 userRepository.setSelectedUserInfo(USER_0)
223 userRepository.setSelectedUserInfo(USER_0)
242 userRepository.setUserInfos(listOf(USER_0))
243 userRepository.setSelectedUserInfo(USER_0)
275 userRepository.setUserInfos(listOf(USER_0, USER_1, USER_2))
276 userRepository.setSelectedUserInfo(USER_0)
293 private val USER_0 = regex