/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest11.java | 62 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts() 70 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts() 79 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 89 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 97 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 101 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 113 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 119 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 121 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s2"), HANDLE_USER_0, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 131 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() [all …]
|
D | ShortcutManagerTest1.java | 283 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts() 353 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts() 404 setCaller(CALLING_PACKAGE_1, USER_0); in testPushDynamicShortcut() 421 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut() 434 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut() 436 eq(CALLING_PACKAGE_1), eq("s2"), eq(USER_0)); in testPushDynamicShortcut() 438 eq(CALLING_PACKAGE_1), eq("s3"), eq(USER_0)); in testPushDynamicShortcut() 449 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut() 459 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut() 474 eq(CALLING_PACKAGE_1), eq("s5"), eq(USER_0)); in testPushDynamicShortcut() [all …]
|
D | ShortcutManagerTest7.java | 131 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 134 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling() 141 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 144 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling() 152 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running() 155 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running() 169 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running() 172 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running() 180 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running() 183 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running() [all …]
|
D | ShortcutManagerTest8.java | 121 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported() 127 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testIsRequestPinShortcutSupported() 130 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testIsRequestPinShortcutSupported() 154 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported() 160 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testIsRequestPinShortcutSupported() 163 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testIsRequestPinShortcutSupported() 176 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testRequestPinShortcut_notSupported() 200 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testRequestPinShortcut_notSupported() 225 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testNotForeground() 257 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in checkRequestPinShortcut() [all …]
|
D | ShortcutManagerTest6.java | 31 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 39 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_1, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 41 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 44 assertEquals(CALLING_PACKAGE_1, in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 52 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 67 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_multiUser() 76 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
|
D | ShortcutManagerTest10.java | 57 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_validResult() 72 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinned() 77 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinned() 80 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinned() 94 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 100 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinnedByAnother() 104 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 120 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_defaultLauncherChanges()
|
D | ShortcutManagerTest2.java | 227 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel() 297 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel_resId() 351 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone() 499 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone_resId() 927 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoSaveAndLoad() 979 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); in testShortcutInfoSaveAndLoad() 983 assertEquals(CALLING_PACKAGE_1, si.getPackage()); in testShortcutInfoSaveAndLoad() 1010 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_10); in testShortcutInfoSaveAndLoad() 1022 setCaller(CALLING_PACKAGE_1, USER_10); 1060 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); [all …]
|
D | ShortcutManagerTest9.java | 93 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testNotForeground() 97 mInternal.requestPinAppWidget(CALLING_PACKAGE_1, makeProviderInfo("dummy"), in testNotForeground() 111 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in checkRequestPinAppWidget() 114 assertTrue(mInternal.requestPinAppWidget(CALLING_PACKAGE_1, info, null, in checkRequestPinAppWidget()
|
D | ShortcutManagerTest12.java | 34 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> in testGetShortcutIntents_ReturnsMutablePendingIntents() 40 CALLING_PACKAGE_1, "s1", null, UserHandle.SYSTEM); in testGetShortcutIntents_ReturnsMutablePendingIntents()
|
D | ShortcutManagerTest4.java | 117 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters() 128 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
|
D | BaseShortcutManagerTest.java | 965 protected static final String CALLING_PACKAGE_1 = "com.android.test.1"; field in BaseShortcutManagerTest 1132 addPackage(CALLING_PACKAGE_1, CALLING_UID_1, 1); in setUp() 1230 setCaller(CALLING_PACKAGE_1); in setUp() 1523 addApplicationInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledApplications() 1544 addPackageInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledPackagesWithUninstalled() 2418 for (String pkg : list(CALLING_PACKAGE_1, CALLING_PACKAGE_2, CALLING_PACKAGE_3, 2445 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { 2463 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { 2468 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { 2475 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); [all …]
|
D | ShortcutManagerTest3.java | 37 private static final String CALLING_PACKAGE = CALLING_PACKAGE_1; 514 new ComponentName(CALLING_PACKAGE_1, ShortcutActivity.class.getName()), in testGetSharingShortcutCount() 516 updatePackageVersion(CALLING_PACKAGE_1, 1); in testGetSharingShortcutCount() 518 genPackageAddIntent(CALLING_PACKAGE_1, USER_0)); in testGetSharingShortcutCount()
|