Home
last modified time | relevance | path

Searched refs:switchUser (Results 1 – 25 of 46) sorted by relevance

12

/cts/hostsidetests/car/src/android/car/cts/
DCarUserManagerHostTest.java44 switchUser(newUserid, STATUS_SUCCESSFUL); in testSwitchUserExists()
49 switchUser(getNonExistentUser(), STATUS_INVALID_REQUEST); in testSwitchUserDoesNotExist()
54 switchUser(getCurrentUserId(), STATUS_OK_USER_ALREADY_IN_FOREGROUND); in testSwitchUserAlreadyForeGroundUser()
70 switchUser(newUserid, STATUS_SUCCESSFUL, "--ignore-uxr"); in testSwitchUserIgnoringUxRestriction()
76 private void switchUser(int userId, String expected) throws Exception { in switchUser() method in CarUserManagerHostTest
77 switchUser(userId, expected, ""); in switchUser()
83 private void switchUser(int userId, String expected, String options) throws Exception { in switchUser() method in CarUserManagerHostTest
DUiModeHostTest.java54 switchUser(newUserId); in testUserSwitchingConfigConsistency()
63 switchUser(originalUserId); in testUserSwitchingConfigConsistency()
DPreCreateUsersHostTest.java121 switchUser(referenceUserId); in appPermissionsPreCreatedUserPackagesTest()
135 switchUser(preCreatedUserId); in appPermissionsPreCreatedUserPackagesTest()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java186 switchUser(secondaryUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
189 switchUser(initialUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
202 switchUser(initialUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
205 switchUser(secondaryUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
209 switchUser(secondaryUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
211 switchUser(initialUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
235 switchUser(secondaryUser); in resumeOnReboot_TwoUsers_BothUserUnlock_Success()
238 switchUser(initialUser); in resumeOnReboot_TwoUsers_BothUserUnlock_Success()
246 switchUser(secondaryUser); in resumeOnReboot_TwoUsers_BothUserUnlock_Success()
254 switchUser(initialUser); in resumeOnReboot_TwoUsers_BothUserUnlock_Success()
[all …]
DRoleSecurityTest.java53 assumeTrue("Unable to switch user", getDevice().switchUser(secondaryUserId)); in cannotGetSmsRoleHolderForAnotherUser()
66 getDevice().switchUser(initialUserId); in cannotGetSmsRoleHolderForAnotherUser()
/cts/hostsidetests/webkit/src/com/android/cts/webkit/
DWebViewHostSideMultipleProfileTest.java71 Assert.assertTrue(mDevice.switchUser(mInitialUserId)); in tearDown()
82 switchUser(mUserId); in testSecondaryUser()
149 private void switchUser(int userId) throws DeviceNotAvailableException { in switchUser() method in WebViewHostSideMultipleProfileTest
150 if (!mDevice.switchUser(userId)) { in switchUser()
169 mDevice.switchUser(mInitialUserId); in stopAndRemoveUser()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2022_20360.java61 assumeTrue("Unable to switch to guest user", device.switchUser(newUser)); in testPocCVE_2022_20360()
73 device.switchUser(currentUser); in testPocCVE_2022_20360()
DCVE_2021_0602.java58 device.switchUser(initialUserId); in testPocCVE_2021_0602()
DCVE_2023_40092.java52 device.switchUser(primaryUserId); in testPocCVE_2023_40092()
DCVE_2024_0053.java56 .that(device.switchUser(primaryUserId)) in testPocCVE_2024_0053()
DCVE_2023_21277.java79 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21277()
DCVE_2023_21238.java81 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21238()
DCVE_2023_40086.java83 .that(device.switchUser(currentUserId)) in testPocCVE_2023_40086()
DCVE_2023_21279.java80 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21279()
DCVE_2023_21286.java80 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21286()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/
DUserStatsTests.java58 getDevice().switchUser(mInitialUser); in tearDown()
92 protected int switchUser(String userName, boolean isGuest) throws Exception { in switchUser() method in UserStatsTests
96 getDevice().switchUser(userId); in switchUser()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DICrossUserService.aidl22 void switchUser(in UserHandle userHandle); in switchUser() method
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DMixedManagedProfileOwnerTestApi30.java45 switchUser(mParentUserId); in createManagedProfile()
DMixedManagedProfileOwnerTestApi25.java46 switchUser(mParentUserId); in createManagedProfile()
DDeviceOwnerTest.java856 switchUser(userId); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()
874 switchUser(userId); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()
909 switchUser(userId); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotFgsStopped()
927 switchUser(userId); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotFgsStopped()
1077 switchUser(userId); in testListForegroundAffiliatedUsers_notAffiliated()
1088 switchUser(userId); in testListForegroundAffiliatedUsers_affiliated()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java84 getDevice().switchUser(primaryUserId); in setUp()
86 getDevice().switchUser(mainUserId); in setUp()
130 getDevice().switchUser(mInitialUserId); in tearDown()
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/
DCamera2HeadlessSystemUserTest.java175 switchUser(UserHandle.MIN_SECONDARY_USER_ID); in testHeadlessSystemUser_SwitchForegroundUser()
182 switchUser(initialUserId); in testHeadlessSystemUser_SwitchForegroundUser()
211 private void switchUser(int userId) throws Exception { in switchUser() method in Camera2HeadlessSystemUserTest
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DShortcutManagerMultiuserTest.java72 getDevice().switchUser(secondUserID); in testSecondaryUser()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java83 mDevice.switchUser(primaryUserId); in setUp()
91 mDevice.switchUser(mInitialUser.get()); in tearDown()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DActivityManagerHelperTest.java301 switchUser(testUserId); in testStopAllTasksForUser()
309 switchUser(initialCurrentUserId); in testStopAllTasksForUser()
328 switchUser(initialCurrentUserId); in deepCleanTestStopAllTasksForUser()
478 private static void switchUser(int userId) throws Exception { in switchUser() method in ActivityManagerHelperTest

12