Home
last modified time | relevance | path

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

/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java118 private final Map<Integer, UserInfo> userInfoMap = new HashMap<>(); field in ShadowUserManager.UserManagerState
145 userInfoMap.put(id, new UserInfo(id, name, flags)); in UserManagerState()
221 infos.add(userManagerState.userInfoMap.get(profileHandle.getIdentifier())); in getProfiles()
232 if (userManagerState.userInfoMap.get(profileHandle.getIdentifier()).isEnabled()) { in getEnabledProfiles()
280 if (userManagerState.userInfoMap.size() >= getMaxSupportedUsers()) { in createProfile()
286 userManagerState.userInfoMap.get(profileId).userType = userType; in createProfile()
332 userManagerState.userInfoMap.put(profileUserHandle, profileUserInfo); in addProfile()
474 UserInfo userInfo = userManagerState.userInfoMap.get(user.getIdentifier()); in isSameProfileGroup()
475 UserInfo otherUserInfo = userManagerState.userInfoMap.get(otherUser.getIdentifier()); in isSameProfileGroup()
999 return new ArrayList<>(userManagerState.userInfoMap.values()); in getUsers()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java78 private Map<Integer, UserInfo> userInfoMap = new HashMap<>(); field in ShadowUserManager
161 userInfoMap.put(profileUserHandle, userInfo); in addProfile()
173 return userInfoMap.get(profileToParent.get(userHandle)); in getProfileParent()
569 return new ArrayList<UserInfo>(userInfoMap.values()); in getUsers()
574 return userInfoMap.get(userHandle); in getUserInfo()
595 userInfoMap.remove(userHandle); in removeUser()
628 if (!userInfoMap.containsKey(userId)) { in switchUser()
648 userInfoMap.put(id, new UserInfo(id, name, flags)); in addUser()