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/
DShortcutManagerTest6.java48 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
72 ri(CALLING_PACKAGE_2, "name", false, 0) in testHasShortcutHostPermissionInner_with3pLauncher()
78 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher()
90 /* preferred */ cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
93 ri(CALLING_PACKAGE_2, "name", false, 0) in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
99 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
102 assertEquals(cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
104 assertEquals(cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
114 ri(CALLING_PACKAGE_2, "name", false, 0) in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
121 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
[all …]
DShortcutManagerTest1.java328 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testSetDynamicShortcuts()
376 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testAddDynamicShortcuts()
417 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity()
521 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity_noMainActivityInPackage()
640 setCaller(CALLING_PACKAGE_2); in testIcons()
785 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testCleanupDanglingBitmaps()
811 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testCleanupDanglingBitmaps()
828 assertBitmapDirectories(USER_0, CALLING_PACKAGE_1, CALLING_PACKAGE_2); in testCleanupDanglingBitmaps()
829 assertBitmapDirectories(USER_10, CALLING_PACKAGE_1, CALLING_PACKAGE_2); in testCleanupDanglingBitmaps()
836 assertBitmapFiles(USER_0, CALLING_PACKAGE_2, in testCleanupDanglingBitmaps()
[all …]
DShortcutManagerTest2.java1501 mInjectedClientPackage = CALLING_PACKAGE_2;
1544 mInjectedClientPackage = CALLING_PACKAGE_2;
1573 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> {
1630 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1654 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1678 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1708 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1728 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1741 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
1783 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testThrottling_foreground()
[all …]
DShortcutManagerTest7.java223 /* preferred */ cn(CALLING_PACKAGE_2, "name"), in testLauncherCommands()
226 ri(CALLING_PACKAGE_2, "name", false, 0) in testLauncherCommands()
317 assertSuccess(callShellCommand("clear-shortcuts", "--user", "10", CALLING_PACKAGE_2)); in testClearShortcuts()
DBaseShortcutManagerTest.java625 protected static final String CALLING_PACKAGE_2 = "com.android.test.2"; field in BaseShortcutManagerTest
780 addPackage(CALLING_PACKAGE_2, CALLING_UID_2, 2); in setUp()
1168 addApplicationInfo(getInjectedPackageInfo(CALLING_PACKAGE_2, userId, false), ret); in getInstalledApplications()
1189 addPackageInfo(getInjectedPackageInfo(CALLING_PACKAGE_2, userId, false), ret); in getInstalledPackagesWithUninstalled()
2011 for (String pkg : list(CALLING_PACKAGE_1, CALLING_PACKAGE_2, CALLING_PACKAGE_3,
2041 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> {
2067 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list("s1", "s2"), HANDLE_USER_0);
2074 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list("s2", "s3"), HANDLE_USER_0);
2083 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list("s3", "s4"), HANDLE_USER_0);
2090 mLauncherApps.pinShortcuts(CALLING_PACKAGE_2, list(), HANDLE_USER_0);
[all …]
DShortcutManagerTest8.java124 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported()
157 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported()
188 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testRequestPinShortcut_notSupported()