Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest6.java44 USER_0); in testHasShortcutHostPermissionInner_systemLauncherOnly()
45 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
46 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
47 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
48 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
52 mService.getUserShortcutsLocked(USER_0).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
54 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
61 mService.getUserShortcutsLocked(USER_0).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
63 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
74 USER_0); in testHasShortcutHostPermissionInner_with3pLauncher()
[all …]
DShortcutManagerTest1.java264 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts()
334 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts()
382 setCaller(CALLING_PACKAGE_1, USER_0); in testUnlimitedCalls()
671 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res32x32", USER_0))), in testIcons()
675 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res64x64", USER_0))), in testIcons()
679 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "bmp32x32", USER_0))), in testIcons()
683 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "bmp64x64", USER_0))), in testIcons()
687 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "bmp512x512", USER_0))), in testIcons()
701 getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res32x32", USER_0))); in testIcons()
706 getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res64x64", USER_0))); in testIcons()
[all …]
DShortcutManagerTest10.java62 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_validResult()
70 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_validResult()
77 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_alreadyPinned()
83 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned()
93 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned()
106 runWithCaller(LAUNCHER_2, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother()
110 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_alreadyPinnedByAnother()
117 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother()
125 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_defaultLauncherChanges()
133 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_2, USER_0)); in testCreateShortcutResult_defaultLauncherChanges()
[all …]
DShortcutManagerTest8.java85 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_0)); in testGetParentOrSelfUserId()
88 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_P0)); in testGetParentOrSelfUserId()
92 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testIsRequestPinShortcutSupported()
97 actual = mProcessor.getRequestPinConfirmationActivity(USER_0, in testIsRequestPinShortcutSupported()
102 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported()
118 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported()
121 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported()
124 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported()
148 assertNull(mProcessor.getRequestPinConfirmationActivity(USER_0, in testIsRequestPinShortcutSupported()
154 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported()
[all …]
DShortcutManagerTest2.java1138 setCaller(CALLING_PACKAGE_1, USER_0);
1170 setCaller(LAUNCHER_1, USER_0);
1176 mService.handleUnlockUser(USER_0); // Load user-0.
1179 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_0);
1201 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_0);
1206 setCaller(CALLING_PACKAGE_1, USER_0);
1236 setCaller(LAUNCHER_1, USER_0);
1242 mService.handleUnlockUser(USER_0); // Load user-0.
1245 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_0);
1270 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_0);
[all …]
DShortcutManagerTest7.java125 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling()
135 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling()
146 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
163 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
174 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running()
187 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running()
198 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetAllThrottling()
208 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetAllThrottling()
220 USER_0); in testLauncherCommands()
230 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testLauncherCommands()
[all …]
DShortcutManagerTest9.java91 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testNotForeground()
108 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in checkRequestPinAppWidget()
120 runWithCaller(LAUNCHER_1, USER_0, () -> { in checkRequestPinAppWidget()
DShortcutManagerTest4.java106 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
115 mService.handleUnlockUser(USER_0); in testPersistingWeirdCharacters()
117 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
DShortcutManagerTest3.java70 setCaller(CALLING_PACKAGE, USER_0); in setUp()
77 genPackageAddIntent(CALLING_PACKAGE, USER_0)); in publishManifestShortcuts()
299 runWithCaller(LAUNCHER_1, USER_0, () -> { in testUpdateShortcuts_noManifestShortcuts()
408 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDeleteDynamicShortcuts_noManifestShortcuts()
483 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDisableShortcuts_noManifestShortcuts()
518 genPackageAddIntent(CALLING_PACKAGE_1, USER_0)); in testGetSharingShortcutCount()
DBaseShortcutManagerTest.java646 protected static final int USER_0 = UserHandle.USER_SYSTEM; field in BaseShortcutManagerTest
652 protected static final UserHandle HANDLE_USER_0 = UserHandle.of(USER_0);
659 new UserInfo(USER_0, "user0",
804 mUserInfos.put(USER_0, USER_INFO_0); in setUp()
859 mRunningUsers.put(USER_0, true); in setUp()
866 mUnlockedUsers.put(USER_0, true); in setUp()
2000 final byte[] payload = mService.getBackupPayload(USER_0);
2010 for (int userId : list(USER_0, USER_P0)) {
2022 mService.applyRestore(payload, USER_0);
2026 mService.handleUnlockUser(USER_0);
[all …]