Searched refs:testUser (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 140 final int testUser = initializeNewUserAndSwitchBack(/* stopNewUser */ true); in switchUser_stopped() local 142 registerBroadcastReceiver(Intent.ACTION_USER_UNLOCKED, latch, testUser); in switchUser_stopped() 145 mAm.switchUser(testUser); in switchUser_stopped() 149 attestTrue("Failed to achieve 2nd ACTION_USER_UNLOCKED for user " + testUser, success); in switchUser_stopped() 151 removeUser(testUser); in switchUser_stopped() 162 final int testUser = initializeNewUserAndSwitchBack(/* stopNewUser */ false); in switchUser_running() local 165 switchUser(testUser); in switchUser_running() 168 attestTrue("Failed to switch to user " + testUser, mAm.isUserRunning(testUser)); in switchUser_running() 170 removeUser(testUser); in switchUser_running() 345 final int testUser = mUm.createUser("TestUser", 0).id; in initializeNewUserAndSwitchBack() local [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 504 UserInfo testUser = createUser("User 1", 0); in testRestrictions() local 507 UserManager.DISALLOW_INSTALL_APPS, true, new UserHandle(testUser.id)); in testRestrictions() 509 UserManager.DISALLOW_CONFIG_WIFI, false, new UserHandle(testUser.id)); in testRestrictions() 511 Bundle stored = mUserManager.getUserRestrictions(new UserHandle(testUser.id)); in testRestrictions()
|