/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ShortcutManagerTest8.java | 133 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testIsRequestPinShortcutSupported() 166 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testIsRequestPinShortcutSupported() 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() 314 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in checkRequestPinShortcut() 343 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testRequestPinShortcut_explicitTargetActivity() 384 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testRequestPinShortcut_explicitTargetActivity() 1023 assertWith(getShortcutAsLauncher(USER_P0)) in testRequestPinShortcut_launcherAlreadyHasPinned() 1462 assertWith(getShortcutAsLauncher(USER_P0)) in testRequestPinShortcut_dynamicExists_thenDisabled_error() [all …]
|
H A D | ShortcutManagerTest10.java | 61 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_validResult() 76 runWithCaller(CALLING_PACKAGE_1, 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() 108 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 124 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testCreateShortcutResult_defaultLauncherChanges()
|
H A D | ShortcutManagerTest9.java | 96 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testNotForeground() 101 null /* extras */, null /* resultIntent= */, USER_P0); in testNotForeground() 114 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in checkRequestPinAppWidget() 118 resultIntent == null ? null : resultIntent.getIntentSender(), USER_P0)); in checkRequestPinAppWidget()
|
H A D | ShortcutManagerTest1.java | 838 setCaller(CALLING_PACKAGE_1, USER_P0); in testIcons() 3752 case USER_P0: in testLauncherCallback_crossProfile() 4607 mService.handleUnlockUser(USER_P0); in testHandleGonePackage_crossProfile() 4666 uninstallPackage(USER_P0, LAUNCHER_1); in testHandleGonePackage_crossProfile() 4685 mService.checkPackageChanges(USER_P0); in testHandleGonePackage_crossProfile() 4708 mService.handleUnlockUser(USER_P0); in testHandleGonePackage_crossProfile() 4733 mService.handleUnlockUser(USER_P0); in testHandleGonePackage_crossProfile() 4757 mService.handleUnlockUser(USER_P0); in testHandleGonePackage_crossProfile() 7038 assertEquals(USER_P0, in testSaveAndLoad_crossProfile() 7041 assertEquals(USER_P0, in testSaveAndLoad_crossProfile() [all …]
|
H A D | BaseShortcutManagerTest.java | 744 protected static final int USER_P0 = 20; // profile of user 0 (MANAGED_PROFILE *not* set) field in BaseShortcutManagerTest 750 protected static final UserHandle HANDLE_USER_P0 = UserHandle.of(USER_P0); 772 new UserInfo(USER_P0, "userP0", UserInfo.FLAG_INITIALIZED), 0); 911 mUserInfos.put(USER_P0, USER_INFO_P0); in setUp() 966 mRunningUsers.put(USER_P0, true); in setUp() 973 mUnlockedUsers.put(USER_P0, true); in setUp() 2202 for (int userId : list(USER_0, USER_P0)) { 2246 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { 2288 runWithCaller(LAUNCHER_1, USER_P0, () -> { 2319 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
|
H A D | ShortcutManagerTest2.java | 1819 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { 1876 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_foreground() 1901 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_foreground() 1926 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_foreground() 1959 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_foreground() 1994 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_foreground() 2058 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_foreground() 2103 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_resetByInternalCall() 2126 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_resetByInternalCall() 2147 runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> { in testThrottling_resetByInternalCall() [all …]
|