Home
last modified time | relevance | path

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

/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java225 final int testUser = initializeNewUserAndSwitchBack(/* stopNewUser */ true); in switchUser_stopped() local
227 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() local
250 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 …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java676 UserInfo testUser = createUser("User 1", 0); in testRestrictions() local
679 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()