/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest1.java | 247 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts() 317 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts() 572 setCaller(CALLING_PACKAGE_1); in testIcons() 604 setCaller(CALLING_PACKAGE_1, USER_P0); in testIcons() 623 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res32x32", USER_0))), in testIcons() 627 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res64x64", USER_0))), in testIcons() 631 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "bmp32x32", USER_0))), in testIcons() 635 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "bmp64x64", USER_0))), in testIcons() 639 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "bmp512x512", USER_0))), in testIcons() 643 list(getShortcutInfoAsLauncher(CALLING_PACKAGE_1, "res32x32", USER_P0))), in testIcons() [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 | ShortcutManagerTest7.java | 124 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 127 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling() 134 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 137 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling() 145 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running() 148 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running() 162 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running() 165 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running() 173 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running() 176 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running() [all …]
|
D | ShortcutManagerTest6.java | 47 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly() 71 ri(CALLING_PACKAGE_1, "name", false, 0), in testHasShortcutHostPermissionInner_with3pLauncher() 77 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher() 92 ri(CALLING_PACKAGE_1, "name", false, 0), in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 98 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 113 ri(CALLING_PACKAGE_1, "name", false, 0), in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 120 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 134 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 141 /* preferred */ cn(CALLING_PACKAGE_1, "xyz"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 143 ri(CALLING_PACKAGE_1, "name", false, 0), in testHasShortcutHostPermissionInner_with3pLauncher_complicated() [all …]
|
D | ShortcutManagerTest10.java | 55 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_noDefaultLauncher() 64 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_validResult() 79 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinned() 84 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinned() 87 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinned() 101 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 107 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinnedByAnother() 111 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 127 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_defaultLauncherChanges()
|
D | ShortcutManagerTest2.java | 227 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel() 287 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel_resId() 336 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone() 443 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone_resId() 856 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoSaveAndLoad() 903 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); in testShortcutInfoSaveAndLoad() 907 assertEquals(CALLING_PACKAGE_1, si.getPackage()); in testShortcutInfoSaveAndLoad() 928 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_10); in testShortcutInfoSaveAndLoad() 937 setCaller(CALLING_PACKAGE_1, USER_10); 975 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 | ShortcutManagerTest4.java | 106 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters() 117 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
|
D | BaseShortcutManagerTest.java | 587 protected static final String CALLING_PACKAGE_1 = "com.android.test.1"; field in BaseShortcutManagerTest 733 addPackage(CALLING_PACKAGE_1, CALLING_UID_1, 1); in setUp() 825 setCaller(CALLING_PACKAGE_1); in setUp() 1104 addApplicationInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledApplications() 1125 addPackageInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledPackagesWithUninstalled() 1905 for (String pkg : list(CALLING_PACKAGE_1, CALLING_PACKAGE_2, CALLING_PACKAGE_3, 1930 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { 1948 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { 1953 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { 1960 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); [all …]
|
D | ShortcutManagerTest3.java | 34 private static final String CALLING_PACKAGE = CALLING_PACKAGE_1;
|