Searched refs:user2 (Results 1 – 2 of 2) sorted by relevance
146 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users() local149 assertTrue(user2 != null); in testAdd2Users()153 assertTrue(findUser(user2.id)); in testAdd2Users()458 UserInfo user2 = createUser("User 2", 0); in testSerialNumber() local459 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() local473 assertTrue(errMsg + user2.serialNumber, in testGetSerialNumbersOfUsers()474 ArrayUtils.contains(serialNumbersOfUsers, user2.serialNumber)); in testGetSerialNumbersOfUsers()[all …]
2882 int user2 = TEST_DEFAULT_USER + 1; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local2883 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() local2977 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 …]