Home
last modified time | relevance | path

Searched refs:userInfos (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DSecondaryUserControllerTest.java109 final ArrayList<UserInfo> userInfos = new ArrayList<>(); in noSecondaryUserAddedIfNoneExist() local
110 userInfos.add(mPrimaryUser); in noSecondaryUserAddedIfNoneExist()
112 when(mUserManager.getUsers()).thenReturn(userInfos); in noSecondaryUserAddedIfNoneExist()
123 final ArrayList<UserInfo> userInfos = new ArrayList<>(); in secondaryUserAddedIfHasDistinctId() local
127 userInfos.add(mPrimaryUser); in secondaryUserAddedIfHasDistinctId()
128 userInfos.add(secondaryUser); in secondaryUserAddedIfHasDistinctId()
130 when(mUserManager.getUsers()).thenReturn(userInfos); in secondaryUserAddedIfHasDistinctId()
140 final ArrayList<UserInfo> userInfos = new ArrayList<>(); in profilesOfPrimaryUserAreNotIgnored() local
143 userInfos.add(mPrimaryUser); in profilesOfPrimaryUserAreNotIgnored()
144 userInfos.add(secondaryUser); in profilesOfPrimaryUserAreNotIgnored()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java297 final List<UserInfo> userInfos = new ArrayList<>(); in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo() local
298 userInfos.add(new UserInfo(userID1, "User1", UserInfo.FLAG_PRIMARY)); in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo()
299 userInfos.add(new UserInfo(userID2, "yue", UserInfo.FLAG_GUEST)); in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo()
300 when(mUserManager.getUsers(true)).thenReturn(userInfos); in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo()
320 final List<UserInfo> userInfos = new ArrayList<>(); in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne() local
321 userInfos.add(new UserInfo(userID1, "User1", UserInfo.FLAG_PRIMARY)); in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
322 userInfos.add(new UserInfo(userID2, "yue", UserInfo.FLAG_GUEST)); in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
323 when(mUserManager.getUsers(true)).thenReturn(userInfos); in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationsUtils.java68 List<UserInfo> userInfos = um.getAllUsers(); in isProfileOrDeviceOwner() local
69 for (int i = 0; i < userInfos.size(); i++) { in isProfileOrDeviceOwner()
70 ComponentName cn = dpm.getProfileOwnerAsUser(userInfos.get(i).id); in isProfileOrDeviceOwner()
/packages/apps/Settings/src/com/android/settings/privacy/
DEnableContentCaptureWithServiceSettingsPreferenceController.java94 final List<UserInfo> userInfos = userManager.getUsers(); in show() local
95 final ArrayList<UserHandle> userHandles = new ArrayList<>(userInfos.size()); in show()
96 for (UserInfo info: userInfos) { in show()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java181 final List<UserInfo> userInfos = new ArrayList<>(); in isProfileOrDeviceOwner_profileOwnerApp_returnTrue() local
182 userInfos.add(new UserInfo()); in isProfileOrDeviceOwner_profileOwnerApp_returnTrue()
184 when(mUserManager.getUsers()).thenReturn(userInfos); in isProfileOrDeviceOwner_profileOwnerApp_returnTrue()
185 when(mDevicePolicyManager.getProfileOwnerAsUser(userInfos.get(0).id)) in isProfileOrDeviceOwner_profileOwnerApp_returnTrue()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java266 List<UserInfo> userInfos = MANAGED_USERINFO_LIST; in getMockContext() local
269 when(mockUm.getUsers()).thenReturn(userInfos); in getMockContext()
270 when(mockUm.getProfiles(Matchers.anyInt())).thenReturn(userInfos); in getMockContext()
/packages/apps/Settings/src/com/android/settings/
DUtils.java893 List<UserInfo> userInfos = userManager.getUsers(); in isProfileOrDeviceOwner() local
897 for (int i = 0, size = userInfos.size(); i < size; i++) { in isProfileOrDeviceOwner()
898 ComponentName cn = devicePolicyManager.getProfileOwnerAsUser(userInfos.get(i).id); in isProfileOrDeviceOwner()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java898 List<UserInfo> userInfos = userManager.getUsers(); in isProfileOrDeviceOwner() local
902 for (int i = 0, size = userInfos.size(); i < size; i++) { in isProfileOrDeviceOwner()
903 ComponentName cn = devicePolicyManager.getProfileOwnerAsUser(userInfos.get(i).id); in isProfileOrDeviceOwner()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragment.java510 final List<UserInfo> userInfos = mUserManager.getUsers(true); in getNumberOfUserWithPackageInstalled() local
513 for (final UserInfo userInfo : userInfos) { in getNumberOfUserWithPackageInstalled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppInfoDashboardFragment.java510 final List<UserInfo> userInfos = mUserManager.getUsers(true); in getNumberOfUserWithPackageInstalled() local
513 for (final UserInfo userInfo : userInfos) { in getNumberOfUserWithPackageInstalled()