Searched refs:testUser (Results 1 – 2 of 2) sorted by relevance
225 final int testUser = initializeNewUserAndSwitchBack(/* stopNewUser */ true); in switchUser_stopped() local227 registerBroadcastReceiver(Intent.ACTION_USER_UNLOCKED, latch, testUser); in switchUser_stopped()230 mAm.switchUser(testUser); in switchUser_stopped()234 attestTrue("Failed to achieve 2nd ACTION_USER_UNLOCKED for user " + testUser, success); in switchUser_stopped()236 removeUser(testUser); in switchUser_stopped()247 final int testUser = initializeNewUserAndSwitchBack(/* stopNewUser */ false); in switchUser_running() local250 switchUser(testUser); in switchUser_running()253 attestTrue("Failed to switch to user " + testUser, mAm.isUserRunning(testUser)); in switchUser_running()255 removeUser(testUser); in switchUser_running()621 final int testUser = createUserNoFlags(); in initializeNewUserAndSwitchBack() local[all …]
676 UserInfo testUser = createUser("User 1", 0); in testRestrictions() local679 UserManager.DISALLOW_INSTALL_APPS, true, asHandle(testUser.id)); in testRestrictions()681 UserManager.DISALLOW_CONFIG_WIFI, false, asHandle(testUser.id)); in testRestrictions()683 Bundle stored = mUserManager.getUserRestrictions(asHandle(testUser.id)); in testRestrictions()