Home
last modified time | relevance | path

Searched refs:testUser (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DSaveImageInBackgroundTaskTest.kt53 private val testUser = UserHandle.getUserHandleForUid(0) regex
105 eq(testUser)
117 eq(testUser)
137 saveImageTask.queryQuickShareAction(testScreenshotId, testBitmap, testUser, testUri)
159 saveImageTask.queryQuickShareAction(testScreenshotId, testBitmap, testUser, testUri)!!
174 testUser
203 testUser,
232 testUser
267 testUser,
/aosp14/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DUserLifecycleTests.java513 switchUser(testUser); in switchUser_stopped()
518 removeUser(testUser); in switchUser_stopped()
569 switchUser(testUser); in switchUser_stopped_staticWallpaper()
575 attestFalse("Failed to stop user " + testUser, mAm.isUserRunning(testUser)); in switchUser_stopped_staticWallpaper()
578 removeUser(testUser); in switchUser_stopped_staticWallpaper()
591 switchUser(testUser); in switchUser_running()
596 removeUser(testUser); in switchUser_running()
621 removeUser(testUser); in switchUser_running_initializedUser()
646 removeUser(testUser); in switchUser_running_staticWallpaper()
1356 attestFalse("Failed to stop user " + testUser, mAm.isUserRunning(testUser)); in initializeNewUserAndSwitchBack()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserManagerTest.java329 switchUser(testUser.id); in testRemoveUserShouldNotRemoveCurrentUser()
339 removeUser(testUser.id); in testRemoveUserShouldNotRemoveCurrentUser()
348 switchUser(testUser.id); in testRemoveUserShouldNotRemoveCurrentUser_DuringUserSwitch()
356 assertThat(hasUser(testUser.id)).isTrue(); in testRemoveUserShouldNotRemoveCurrentUser_DuringUserSwitch()
359 removeUser(testUser.id); in testRemoveUserShouldNotRemoveCurrentUser_DuringUserSwitch()
368 switchUserThenRun(testUser.id, () -> { in testRemoveUserShouldNotRemoveTargetUser_DuringUserSwitch()
380 removeUser(testUser.id); in testRemoveUserShouldNotRemoveTargetUser_DuringUserSwitch()
493 switchUser(testUser.id); in testRemoveUserWhenPossible_currentUserSetEphemeral_duringUserSwitch()
505 waitForUserRemoval(testUser.id); in testRemoveUserWhenPossible_currentUserSetEphemeral_duringUserSwitch()
516 switchUserThenRun(testUser.id, () -> { in testRemoveUserWhenPossible_targetUserSetEphemeral_duringUserSwitch()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DBackgroundRestrictionTest.java472 final int testUser = TEST_USER0; in testTogglingBackgroundRestrictInternal() local
497 eq(testUser), in testTogglingBackgroundRestrictInternal()
525 eq(testUser), in testTogglingBackgroundRestrictInternal()
549 eq(testUser), in testTogglingBackgroundRestrictInternal()
559 eq(testUser), in testTogglingBackgroundRestrictInternal()
568 final int testUser = TEST_USER0; in testTogglingStandbyBucket() local
619 final int testUser = TEST_USER0; in testBgCurrentDrainMonitor() local
790 eq(testUser), in testBgCurrentDrainMonitor()
814 eq(testUser), in testBgCurrentDrainMonitor()
1718 final int testUser = TEST_USER0; in testBgCurrentDrainMonitorExemptions() local
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
H A DAppCopyingHelperTest.java205 private void addInstalledApp(ResolveInfo ri, boolean testUser) in addInstalledApp() argument
211 if (testUser) { in addInstalledApp()