/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ShortcutManagerTest11.java | 64 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts() 81 runWithCaller(CALLING_PACKAGE_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() 133 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 150 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts() 174 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts_unpinOthers() 534 updatePackageVersion(CALLING_PACKAGE_1, 1); in testShortcutChangeCallback_disableShortcuts() 641 updatePackageVersion(CALLING_PACKAGE_1, 1); in testShortcutChangeCallback_removeDynamicShortcuts() 709 updatePackageVersion(CALLING_PACKAGE_1, 1); in testShortcutChangeCallback_removeAllDynamicShortcuts() [all …]
|
H A D | ShortcutManagerTest1.java | 796 setCaller(CALLING_PACKAGE_1); in testIcons() 1507 setCaller(CALLING_PACKAGE_1); in testShortcutManagerGetShortcuts_shortcutTypes() 1593 setCaller(CALLING_PACKAGE_1); in testCachedShortcuts() 1673 setCaller(CALLING_PACKAGE_1); in testCachedShortcuts_accessShortcutsPermission() 1711 setCaller(CALLING_PACKAGE_1); in testCachedShortcuts_canPassShortcutLimit() 1736 setCaller(CALLING_PACKAGE_1); in testGetShortcuts() 2116 setCaller(CALLING_PACKAGE_1); in testGetShortcuts_personsFlag() 2158 setCaller(CALLING_PACKAGE_1); in testGetShortcutInfo() 2200 setCaller(CALLING_PACKAGE_1); in testGetShortcutInfo() 5177 eq(CALLING_PACKAGE_1), in testHandlePackageUpdate() [all …]
|
H A D | ShortcutManagerTest7.java | 134 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 137 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { 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() 287 updatePackageVersion(CALLING_PACKAGE_1, 1); in testClearShortcuts() [all …]
|
H A D | ShortcutManagerTest8.java | 124 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported() 130 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testIsRequestPinShortcutSupported() 133 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testIsRequestPinShortcutSupported() 157 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported() 163 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testIsRequestPinShortcutSupported() 166 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testIsRequestPinShortcutSupported() 179 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testRequestPinShortcut_notSupported() 203 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testRequestPinShortcut_notSupported() 228 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testNotForeground() 260 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in checkRequestPinShortcut() [all …]
|
H A D | ShortcutManagerTest6.java | 34 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); 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() 47 assertEquals(CALLING_PACKAGE_1, in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 55 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 70 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_multiUser() 79 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
|
H A D | ShortcutManagerTest12.java | 53 setCaller(CALLING_PACKAGE_1, USER_0); in tearDown() 63 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> in testGetShortcutIntents_ReturnsMutablePendingIntents() 69 CALLING_PACKAGE_1, "s1", null, UserHandle.SYSTEM); 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 D | ShortcutManagerTest10.java | 61 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_validResult() 76 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinned() 81 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinned() 84 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinned() 98 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 104 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinnedByAnother() 108 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 124 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_defaultLauncherChanges()
|
H A D | ShortcutManagerTest2.java | 241 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel() 328 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel_resId() 382 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone() 530 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone_resId() 958 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoSaveAndLoad() 1071 setCaller(CALLING_PACKAGE_1, USER_10); 1140 setCaller(CALLING_PACKAGE_1, USER_10); 1217 setCaller(CALLING_PACKAGE_1, USER_10); 1303 setCaller(CALLING_PACKAGE_1, USER_0); 1372 setCaller(CALLING_PACKAGE_1, USER_0); [all …]
|
H A D | ShortcutManagerTest9.java | 96 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testNotForeground() 100 mInternal.requestPinAppWidget(CALLING_PACKAGE_1, makeProviderInfo("dummy"), in testNotForeground() 114 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in checkRequestPinAppWidget() 117 assertTrue(mInternal.requestPinAppWidget(CALLING_PACKAGE_1, info, null, in checkRequestPinAppWidget()
|
H A D | ShortcutManagerTest4.java | 119 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters() 130 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
|
H A D | BaseShortcutManagerTest.java | 714 protected static final String CALLING_PACKAGE_1 = "com.android.test.1"; field in BaseShortcutManagerTest 883 addPackage(CALLING_PACKAGE_1, CALLING_UID_1, 1); in setUp() 981 setCaller(CALLING_PACKAGE_1); in setUp() 2228 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { 2246 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { 2251 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { 2258 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); 2281 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list(), HANDLE_USER_0); 2304 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { 2319 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { [all …]
|
H A D | ShortcutManagerTest3.java | 40 private static final String CALLING_PACKAGE = CALLING_PACKAGE_1; 517 new ComponentName(CALLING_PACKAGE_1, ShortcutActivity.class.getName()), in testGetSharingShortcutCount() 519 updatePackageVersion(CALLING_PACKAGE_1, 1); in testGetSharingShortcutCount() 521 genPackageAddIntent(CALLING_PACKAGE_1, USER_0)); in testGetSharingShortcutCount()
|