Home
last modified time | relevance | path

Searched refs:USER_10 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest7.java134 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling()
144 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling()
155 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running()
161 mRunningUsers.put(USER_10, false); in testResetThrottling_user_not_running()
167 mRunningUsers.put(USER_10, true); in testResetThrottling_user_not_running()
172 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_not_running()
183 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running()
187 mRunningUsers.put(USER_10, true); in testResetThrottling_user_running()
188 mUnlockedUsers.put(USER_10, true); in testResetThrottling_user_running()
196 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> { in testResetThrottling_user_running()
[all …]
DShortcutManagerTest6.java60 mRunningUsers.put(USER_10, true); in testHasShortcutHostPermissionInner_multiUser()
63 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_10); in testHasShortcutHostPermissionInner_multiUser()
74 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
75 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
76 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
77 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_10)); in testHasShortcutHostPermissionInner_multiUser()
81 mService.getUserShortcutsLocked(USER_10).getCachedLauncher()); in testHasShortcutHostPermissionInner_multiUser()
DShortcutManagerTest1.java345 mRunningUsers.put(USER_10, true); in testSetDynamicShortcuts()
347 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testSetDynamicShortcuts()
393 mRunningUsers.put(USER_10, true); in testAddDynamicShortcuts()
395 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testAddDynamicShortcuts()
575 mRunningUsers.put(USER_10, true); in testPublishWithNoActivity()
577 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity()
679 mRunningUsers.put(USER_10, true); in testPublishWithNoActivity_noMainActivityInPackage()
681 runWithCaller(CALLING_PACKAGE_2, USER_10, () -> { in testPublishWithNoActivity_noMainActivityInPackage()
983 assertBitmapDirectories(USER_10, EMPTY_STRINGS); in testCleanupDanglingBitmaps()
1017 mRunningUsers.put(USER_10, true); in testCleanupDanglingBitmaps()
[all …]
DShortcutManagerTest2.java227 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel()
234 assertEquals(USER_10, si.getUserId()); in testShortcutInfoParcel()
297 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoParcel_resId()
925 mRunningUsers.put(USER_10, true); in testShortcutInfoSaveAndLoad()
927 setCaller(CALLING_PACKAGE_1, USER_10); in testShortcutInfoSaveAndLoad()
973 mService.handleUnlockUser(USER_10); in testShortcutInfoSaveAndLoad()
975 dumpUserFile(USER_10); in testShortcutInfoSaveAndLoad()
979 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_10); in testShortcutInfoSaveAndLoad()
981 assertEquals(USER_10, si.getUserId()); in testShortcutInfoSaveAndLoad()
1010 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_10); in testShortcutInfoSaveAndLoad()
[all …]
DShortcutManagerTest8.java86 assertEquals(USER_10, mService.getParentOrSelfUserId(USER_10)); in testGetParentOrSelfUserId()
93 setDefaultLauncher(USER_10, LAUNCHER_2); 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, LAUNCHER_2); in checkRequestPinShortcut()
336 setDefaultLauncher(USER_10, LAUNCHER_2); in testRequestPinShortcut_explicitTargetActivity()
[all …]
DShortcutManagerTest9.java109 setDefaultLauncher(USER_10, LAUNCHER_2); in checkRequestPinAppWidget()
DBaseShortcutManagerTest.java990 protected static final int USER_10 = 10; field in BaseShortcutManagerTest
996 protected static final UserHandle HANDLE_USER_10 = UserHandle.of(USER_10);
1006 new UserInfo(USER_10, "user10", UserInfo.FLAG_INITIALIZED);
1158 mUserInfos.put(USER_10, USER_INFO_10); in setUp()
1213 mRunningUsers.put(USER_10, false); in setUp()
1220 mUnlockedUsers.put(USER_10, true); in setUp()
2443 mRunningUsers.put(USER_10, true); // this test needs user 10.
2468 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> {
2513 runWithCaller(LAUNCHER_1, USER_10, () -> {
2540 runWithCaller(CALLING_PACKAGE_1, USER_10, () -> {