Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest6.java31 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
32 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
33 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, 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()
52 getSystemLauncher().activityInfo.getComponentName().getPackageName(), USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() local
[all …]
DShortcutManagerTest1.java288 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts()
358 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts()
409 setCaller(CALLING_PACKAGE_1, USER_0); in testPushDynamicShortcut()
426 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut()
439 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut()
441 eq(CALLING_PACKAGE_1), eq("s2"), eq(USER_0)); in testPushDynamicShortcut()
443 eq(CALLING_PACKAGE_1), eq("s3"), eq(USER_0)); in testPushDynamicShortcut()
454 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut()
464 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut()
479 eq(CALLING_PACKAGE_1), eq("s5"), eq(USER_0)); in testPushDynamicShortcut()
[all …]
DShortcutManagerTest11.java59 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts()
64 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts()
81 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
86 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
91 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
115 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
120 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
128 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
133 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
150 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts()
[all …]
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()
90 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned()
103 runWithCaller(LAUNCHER_2, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother()
107 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinnedByAnother()
114 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother()
122 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_defaultLauncherChanges()
130 setDefaultLauncher(USER_0, LAUNCHER_2); in testCreateShortcutResult_defaultLauncherChanges()
[all …]
DShortcutManagerTest8.java88 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_0)); in testGetParentOrSelfUserId()
91 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_P0)); in testGetParentOrSelfUserId()
95 setDefaultLauncher(USER_0, LAUNCHER_1); in testIsRequestPinShortcutSupported()
100 actual = mProcessor.getRequestPinConfirmationActivity(USER_0, in testIsRequestPinShortcutSupported()
105 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported()
121 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported()
124 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported()
127 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported()
151 assertNull(mProcessor.getRequestPinConfirmationActivity(USER_0, in testIsRequestPinShortcutSupported()
157 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported()
[all …]
DShortcutManagerTest12.java53 setCaller(CALLING_PACKAGE_1, USER_0); in tearDown()
54 mService.getPackageShortcutForTest(CALLING_PACKAGE_1, USER_0) in tearDown()
61 setDefaultLauncher(USER_0, LAUNCHER_1); in testGetShortcutIntents_ReturnsMutablePendingIntents()
63 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> 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()
[all …]
DShortcutManagerTest2.java1303 setCaller(CALLING_PACKAGE_1, USER_0);
1335 setCaller(LAUNCHER_1, USER_0);
1341 mService.handleUnlockUser(USER_0); // Load user-0.
1344 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_0);
1367 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_0);
1372 setCaller(CALLING_PACKAGE_1, USER_0);
1402 setCaller(LAUNCHER_1, USER_0);
1408 mService.handleUnlockUser(USER_0); // Load user-0.
1411 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_0);
1437 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_0);
[all …]
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()
227 prepareGetRoleHoldersAsUser(getSystemLauncher().activityInfo.packageName, USER_0); in testLauncherCommands() local
231 USER_0); in testLauncherCommands() local
[all …]
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()
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()
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()
DBaseShortcutManagerTest.java743 protected static final int USER_0 = UserHandle.USER_SYSTEM; field in BaseShortcutManagerTest
749 protected static final UserHandle HANDLE_USER_0 = UserHandle.of(USER_0);
756 new UserInfo(USER_0, "user0",
920 mUserInfos.put(USER_0, USER_INFO_0); in setUp()
925 mUserProperties.put(USER_0, USER_PROPERTIES_0); in setUp()
987 mRunningUsers.put(USER_0, true); in setUp()
994 mUnlockedUsers.put(USER_0, true); in setUp()
2216 final byte[] payload = mService.getBackupPayload(USER_0);
2226 for (int userId : list(USER_0, USER_P0)) {
2238 mService.applyRestore(payload, USER_0);
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerSettingsTests.java58 private static int USER_0 = 0; field in OverlayManagerSettingsTests
68 private static final OverlayInfo OVERLAY_A_USER0 = createInfo(OVERLAY_A, USER_0);
69 private static final OverlayInfo OVERLAY_B_USER0 = createInfo(OVERLAY_B, USER_0);
70 private static final OverlayInfo OVERLAY_C_USER0 = createInfo(OVERLAY_C, USER_0);
96 final OverlayInfo oi = mSettings.getOverlayInfo(OVERLAY_A, USER_0); in testBasicSetAndGet()
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()
112 assertArrayEquals(new int[]{USER_0, USER_1}, mSettings.getUsers()); in testGetUsers()
122 final Map<String, List<OverlayInfo>> map = mSettings.getOverlaysForUser(USER_0); in testGetOverlaysForUser()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ui/viewmodel/
DStatusBarUserChipViewModelTest.kt157 userRepository.setUserInfos(listOf(USER_0)) in <lambda>()
158 userRepository.setSelectedUserInfo(USER_0) in <lambda>()
193 userRepository.setSelectedUserInfo(USER_0) in <lambda>()
224 userRepository.setSelectedUserInfo(USER_0) in <lambda>()
239 userRepository.setUserInfos(listOf(USER_0)) in <lambda>()
240 userRepository.setSelectedUserInfo(USER_0) in <lambda>()
274 userRepository.setUserInfos(listOf(USER_0, USER_1, USER_2)) in <lambda>()
275 userRepository.setSelectedUserInfo(USER_0) in <lambda>()
292 private val USER_0 = in <lambda>() constant