Home
last modified time | relevance | path

Searched refs:mUserInfos (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowUserManager.java32 private List<UserInfo> mUserInfos = addProfile(0, "Owner"); field in ShadowUserManager
41 return mUserInfos.stream().mapToInt(s -> s.id).toArray(); in getProfileIdsWithDisabled()
46 return mUserInfos; in getProfiles()
50 List<UserInfo> userInfoList = mUserInfos; in addProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java213 private final ArrayList<UserInfo> mUserInfos = new ArrayList<>(); field in MockSystemServices
239 for (int i = 0; i < mUserInfos.size(); i++) { in addUser()
240 if (mUserInfos.get(i).id == userId) { in addUser()
241 mUserInfos.remove(i); in addUser()
245 mUserInfos.add(uh); in addUser()
246 when(userManager.getUsers()).thenReturn(mUserInfos); in addUser()
247 when(userManager.getAliveUsers()).thenReturn(mUserInfos); in addUser()
279 mUserInfos.toArray(new UserInfo[mUserInfos.size()])); in addUser()
292 for (int i = 0; i < mUserInfos.size(); i++) { in removeUser()
293 if (mUserInfos.get(i).id == userId) { in removeUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DAppHibernationServiceTest.java86 private final List<UserInfo> mUserInfos = new ArrayList<>(); field in AppHibernationServiceTest
128 doReturn(mUserInfos).when(mUserManager).getUsers(); in setUp()
409 mUserInfos.add(userInfo); in addUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java1066 protected final Map<Integer, UserInfo> mUserInfos = new HashMap<>(); field in BaseShortcutManagerTest
1157 mUserInfos.put(USER_0, USER_INFO_0); in setUp()
1158 mUserInfos.put(USER_10, USER_INFO_10); in setUp()
1159 mUserInfos.put(USER_11, USER_INFO_11); in setUp()
1160 mUserInfos.put(USER_P0, USER_INFO_P0); in setUp()
1161 mUserInfos.put(USER_P1, USER_INFO_P1); in setUp()
1171 final UserInfo ui = mUserInfos.get(userId); in setUp()
1176 final UserInfo parent = mUserInfos.get(ui.profileGroupId); in setUp()
1188 final UserInfo callingUserInfo = mUserInfos.get(callingUserId); in setUp()
1189 final UserInfo targetUserInfo = mUserInfos.get(targetUserId); in setUp()
[all …]