Home
last modified time | relevance | path

Searched refs:CALLING_PACKAGE_2 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java352 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testSetDynamicShortcuts()
400 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testAddDynamicShortcuts()
568 setCaller(CALLING_PACKAGE_2, USER_0); in testPushDynamicShortcut_CallsToUsageStatsManagerAreThrottled()
574 eq(CALLING_PACKAGE_2), eq("s1"), eq(USER_0)); in testPushDynamicShortcut_CallsToUsageStatsManagerAreThrottled()
589 setCaller(CALLING_PACKAGE_2, USER_0); in testPushDynamicShortcut_CallsToUsageStatsManagerAreThrottled()
594 eq(CALLING_PACKAGE_2), any(), eq(USER_0)); in testPushDynamicShortcut_CallsToUsageStatsManagerAreThrottled()
633 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity()
737 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity_noMainActivityInPackage()
873 setCaller(CALLING_PACKAGE_2); in testIcons()
1056 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testCleanupDanglingBitmaps()
[all …]
DShortcutManagerTest6.java31 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
35 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
38 assertEquals(CALLING_PACKAGE_2, in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
66 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_10); in testHasShortcutHostPermissionInner_multiUser()
71 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_multiUser()
80 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
83 assertEquals(CALLING_PACKAGE_2, in testHasShortcutHostPermissionInner_multiUser()
DShortcutManagerTest7.java233 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_10); in testLauncherCommands()
235 /* preferred */ cn(CALLING_PACKAGE_2, "name"), in testLauncherCommands()
238 ri(CALLING_PACKAGE_2, "name", false, 0) in testLauncherCommands()
314 assertSuccess(callShellCommand("clear-shortcuts", "--user", "10", CALLING_PACKAGE_2)); in testClearShortcuts()
DShortcutManagerTest2.java1738 mInjectedClientPackage = CALLING_PACKAGE_2;
1781 mInjectedClientPackage = CALLING_PACKAGE_2;
1810 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> {
1867 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1892 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1917 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1950 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1970 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1985 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
2028 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
[all …]
DBaseShortcutManagerTest.java719 protected static final String CALLING_PACKAGE_2 = "com.android.test.2"; field in BaseShortcutManagerTest
896 addPackage(CALLING_PACKAGE_2, CALLING_UID_2, 2); in setUp()
1296 addApplicationInfo(getInjectedPackageInfo(CALLING_PACKAGE_2, userId, false), ret); in getInstalledApplications()
1317 addPackageInfo(getInjectedPackageInfo(CALLING_PACKAGE_2, userId, false), ret); in getInstalledPackagesWithUninstalled()
2227 for (String pkg : list(CALLING_PACKAGE_1, CALLING_PACKAGE_2, CALLING_PACKAGE_3,
2257 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> {
2283 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list("s1", "s2"), HANDLE_USER_0);
2290 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list("s2", "s3"), HANDLE_USER_0);
2299 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list("s3", "s4"), HANDLE_USER_0);
2306 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list(), HANDLE_USER_0);
[all …]
DShortcutManagerTest8.java127 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported()
160 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported()
191 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testRequestPinShortcut_notSupported()