Searched refs:switchUser (Results 1 – 11 of 11) sorted by relevance
49 assertTrue("Couldn't switch to user " + userId, getDevice().switchUser(userId)); in testCanCreateGuestUser()54 assertTrue("Couldn't switch to user " + userId, getDevice().switchUser(mInitialUserId)); in testCanCreateGuestUser()
59 getDevice().switchUser(mPrimaryUserId); in setUp()67 getDevice().switchUser(mPrimaryUserId); in tearDown()
79 switchUser(USER_SYSTEM); in tearDown()181 switchUser(userId); in testRemoveUsersOnSetForceEphemeralUsersWithUserSwitch()411 switchUser(userId); in testLockTask_affiliatedSecondaryUser()
43 switchUser(mParentUserId); in createManagedProfile()
46 switchUser(mParentUserId); in createManagedProfile()
135 switchUser(mPrimaryUserId); in setUp()184 protected void switchUser(int userId) throws Exception { in switchUser() method in BaseDevicePolicyTest
68 getDevice().switchUser(secondUserID); in testSecondaryUser()
184 getDevice().switchUser(getPrimaryUserId()); in removeTestUsers()
58 getDevice().switchUser(mPrimaryUserId); in setUp()
84 getDevice().switchUser(mPrimaryUserId); in setUp()
370 mDevicePolicyManager.switchUser(mComponent, null); in testSwitchUser_failIfNotDeviceOwner()