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.java264 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()
620 setCaller(CALLING_PACKAGE_1); in testIcons()
652 setCaller(CALLING_PACKAGE_1, USER_P0); in testIcons()
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()
[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.java125 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling()
128 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling()
135 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling()
138 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling()
146 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
149 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running()
163 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
166 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running()
174 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running()
177 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()
292 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel_resId()
341 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone()
483 setCaller(CALLING_PACKAGE_1, USER_11); in testShortcutInfoClone_resId()
902 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoSaveAndLoad()
954 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); in testShortcutInfoSaveAndLoad()
958 assertEquals(CALLING_PACKAGE_1, si.getPackage()); in testShortcutInfoSaveAndLoad()
984 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_10); in testShortcutInfoSaveAndLoad()
996 setCaller(CALLING_PACKAGE_1, USER_10);
1034 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.java622 protected static final String CALLING_PACKAGE_1 = "com.android.test.1"; field in BaseShortcutManagerTest
779 addPackage(CALLING_PACKAGE_1, CALLING_UID_1, 1); in setUp()
877 setCaller(CALLING_PACKAGE_1); in setUp()
1167 addApplicationInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledApplications()
1188 addPackageInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledPackagesWithUninstalled()
2011 for (String pkg : list(CALLING_PACKAGE_1, CALLING_PACKAGE_2, CALLING_PACKAGE_3,
2036 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> {
2054 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
2059 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> {
2066 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0);
[all …]
DShortcutManagerTest3.java37 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()