/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest6.java | 44 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 …]
|
D | ShortcutManagerTest1.java | 264 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 …]
|
D | ShortcutManagerTest10.java | 62 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 …]
|
D | ShortcutManagerTest8.java | 85 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 …]
|
D | ShortcutManagerTest2.java | 1138 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 …]
|
D | ShortcutManagerTest7.java | 125 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 …]
|
D | ShortcutManagerTest9.java | 91 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()
|
D | ShortcutManagerTest4.java | 106 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters() 115 mService.handleUnlockUser(USER_0); in testPersistingWeirdCharacters() 117 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
|
D | ShortcutManagerTest3.java | 70 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()
|
D | BaseShortcutManagerTest.java | 646 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 …]
|