/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest7.java | 128 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling() 138 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling() 149 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running() 155 mRunningUsers.put(USER_10, false); in testResetThrottling_user_not_running() 161 mRunningUsers.put(USER_10, true); in testResetThrottling_user_not_running() 166 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running() 177 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running() 181 mRunningUsers.put(USER_10, true); in testResetThrottling_user_running() 182 mUnlockedUsers.put(USER_10, true); in testResetThrottling_user_running() 190 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running() [all …]
|
D | ShortcutManagerTest6.java | 187 mRunningUsers.put(USER_10, true); in testHasShortcutHostPermissionInner_multiUser() 200 USER_10); in testHasShortcutHostPermissionInner_multiUser() local 213 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_10)); in testHasShortcutHostPermissionInner_multiUser() 214 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_10)); in testHasShortcutHostPermissionInner_multiUser() 215 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_10)); in testHasShortcutHostPermissionInner_multiUser() 216 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_10)); in testHasShortcutHostPermissionInner_multiUser() 220 mService.getUserShortcutsLocked(USER_10).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_multiUser() 222 mService.getUserShortcutsLocked(USER_10).getCachedLauncher()); in testHasShortcutHostPermissionInner_multiUser() 226 mRunningUsers.put(USER_10, true); in testHasShortcutHostPermissionInner_clearCache() 239 USER_10); in testHasShortcutHostPermissionInner_clearCache() local [all …]
|
D | ShortcutManagerTest1.java | 326 mRunningUsers.put(USER_10, true); in testSetDynamicShortcuts() 328 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testSetDynamicShortcuts() 374 mRunningUsers.put(USER_10, true); in testAddDynamicShortcuts() 376 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testAddDynamicShortcuts() 415 mRunningUsers.put(USER_10, true); in testPublishWithNoActivity() 417 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity() 519 mRunningUsers.put(USER_10, true); in testPublishWithNoActivity_noMainActivityInPackage() 521 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity_noMainActivityInPackage() 768 assertBitmapDirectories(USER_10, EMPTY_STRINGS); in testCleanupDanglingBitmaps() 802 mRunningUsers.put(USER_10, true); in testCleanupDanglingBitmaps() [all …]
|
D | ShortcutManagerTest2.java | 227 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel() 234 assertEquals(USER_10, si.getUserId()); in testShortcutInfoParcel() 292 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel_resId() 900 mRunningUsers.put(USER_10, true); in testShortcutInfoSaveAndLoad() 902 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoSaveAndLoad() 948 mService.handleUnlockUser(USER_10); in testShortcutInfoSaveAndLoad() 950 dumpUserFile(USER_10); in testShortcutInfoSaveAndLoad() 954 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); in testShortcutInfoSaveAndLoad() 956 assertEquals(USER_10, si.getUserId()); in testShortcutInfoSaveAndLoad() 984 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_10); in testShortcutInfoSaveAndLoad() [all …]
|
D | ShortcutManagerTest8.java | 86 assertEquals(USER_10, mService.getParentOrSelfUserId(USER_10)); in testGetParentOrSelfUserId() 93 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in testIsRequestPinShortcutSupported() 105 actual = mProcessor.getRequestPinConfirmationActivity(USER_10, in testIsRequestPinShortcutSupported() 110 assertEquals(USER_10, (int) actual.second); in testIsRequestPinShortcutSupported() 127 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testIsRequestPinShortcutSupported() 140 actual = mProcessor.getRequestPinConfirmationActivity(USER_10, in testIsRequestPinShortcutSupported() 145 assertEquals(USER_10, (int) actual.second); in testIsRequestPinShortcutSupported() 160 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testIsRequestPinShortcutSupported() 253 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in checkRequestPinShortcut() 336 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in testRequestPinShortcut_explicitTargetActivity() [all …]
|
D | ShortcutManagerTest9.java | 109 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in checkRequestPinAppWidget()
|
D | BaseShortcutManagerTest.java | 647 protected static final int USER_10 = 10; field in BaseShortcutManagerTest 653 protected static final UserHandle HANDLE_USER_10 = UserHandle.of(USER_10); 663 new UserInfo(USER_10, "user10", UserInfo.FLAG_INITIALIZED); 805 mUserInfos.put(USER_10, USER_INFO_10); in setUp() 860 mRunningUsers.put(USER_10, false); in setUp() 867 mUnlockedUsers.put(USER_10, true); in setUp() 2034 mRunningUsers.put(USER_10, true); // this test needs user 10. 2059 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { 2104 runWithCaller(LAUNCHER_1, USER_10, () -> { 2131 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> {
|