Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java146 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users() local
149 assertTrue(user2 != null); in testAdd2Users()
153 assertTrue(findUser(user2.id)); in testAdd2Users()
458 UserInfo user2 = createUser("User 2", 0); in testSerialNumber() local
459 int serialNumber2 = user2.serialNumber; in testSerialNumber()
461 assertEquals(serialNumber2, mUserManager.getUserSerialNumber(user2.id)); in testSerialNumber()
462 assertEquals(user2.id, mUserManager.getUserHandle(serialNumber2)); in testSerialNumber()
468 UserInfo user2 = createUser("User 2", 0); in testGetSerialNumbersOfUsers() local
473 assertTrue(errMsg + user2.serialNumber, in testGetSerialNumbersOfUsers()
474 ArrayUtils.contains(serialNumbersOfUsers, user2.serialNumber)); in testGetSerialNumbersOfUsers()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java2882 int user2 = TEST_DEFAULT_USER + 1; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
2883 setupUserProfiles(user2); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2895 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2945 when(mUserManager.isUserUnlockingOrUnlocked(user2)).thenReturn(true); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2946 mWifiConfigManager.handleUserSwitch(user2); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2976 int user2 = TEST_DEFAULT_USER + 1; in testHandleUserSwitchRemovesOldUserPrivateNetworks() local
2977 setupUserProfiles(user2); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
2987 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3023 when(mUserManager.isUserUnlockingOrUnlocked(user2)).thenReturn(true); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3024 Set<Integer> removedNetworks = mWifiConfigManager.handleUserSwitch(user2); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
[all …]