Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest11.java64 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts()
72 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_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()
99 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
103 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
115 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
121 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
123 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s2"), HANDLE_USER_0, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
133 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
[all …]
DShortcutManagerTest1.java288 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts()
358 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts()
409 setCaller(CALLING_PACKAGE_1, USER_0); in testPushDynamicShortcut()
426 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut()
439 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut()
441 eq(CALLING_PACKAGE_1), eq("s2"), eq(USER_0)); in testPushDynamicShortcut()
443 eq(CALLING_PACKAGE_1), eq("s3"), eq(USER_0)); in testPushDynamicShortcut()
454 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut()
464 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut()
479 eq(CALLING_PACKAGE_1), eq("s5"), eq(USER_0)); in testPushDynamicShortcut()
[all …]
DShortcutManagerTest7.java134 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()
147 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling()
155 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
158 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running()
172 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running()
175 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running()
183 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running()
186 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running()
[all …]
DShortcutManagerTest8.java124 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 …]
DShortcutManagerTest6.java34 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()
DShortcutManagerTest12.java53 setCaller(CALLING_PACKAGE_1, USER_0); in tearDown()
54 mService.getPackageShortcutForTest(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()
[all …]
DShortcutManagerTest10.java61 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()
DShortcutManagerTest2.java241 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()
1019 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); in testShortcutInfoSaveAndLoad()
1023 assertEquals(CALLING_PACKAGE_1, si.getPackage()); in testShortcutInfoSaveAndLoad()
1059 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_10); in testShortcutInfoSaveAndLoad()
1071 setCaller(CALLING_PACKAGE_1, USER_10);
1109 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10);
[all …]
DShortcutManagerTest9.java96 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()
DShortcutManagerTest4.java119 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
130 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
DBaseShortcutManagerTest.java716 protected static final String CALLING_PACKAGE_1 = "com.android.test.1"; field in BaseShortcutManagerTest
895 addPackage(CALLING_PACKAGE_1, CALLING_UID_1, 1); in setUp()
1005 setCaller(CALLING_PACKAGE_1); in setUp()
1295 addApplicationInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledApplications()
1316 addPackageInfo(getInjectedPackageInfo(CALLING_PACKAGE_1, userId, false), ret); in getInstalledPackagesWithUninstalled()
2227 for (String pkg : list(CALLING_PACKAGE_1, CALLING_PACKAGE_2, CALLING_PACKAGE_3,
2252 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> {
2270 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
2275 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> {
2282 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0);
[all …]
DShortcutManagerTest3.java40 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()