Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java247 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 …]
DShortcutManagerTest8.java121 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 …]
DShortcutManagerTest7.java124 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 …]
DShortcutManagerTest6.java47 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 …]
DShortcutManagerTest10.java55 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()
DShortcutManagerTest2.java227 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 …]
DShortcutManagerTest9.java93 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()
DShortcutManagerTest4.java106 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
117 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
DBaseShortcutManagerTest.java587 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 …]
DShortcutManagerTest3.java34 private static final String CALLING_PACKAGE = CALLING_PACKAGE_1;