/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | SecondaryUserControllerTest.java | 109 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/ |
D | AppInfoDashboardFragmentTest.java | 297 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/ |
D | ApplicationsUtils.java | 68 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/ |
D | EnableContentCaptureWithServiceSettingsPreferenceController.java | 94 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/ |
D | UtilsTest.java | 181 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/ |
D | EnterprisePolicyGuardTest.java | 266 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/ |
D | Utils.java | 893 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/ |
D | Utils.java | 898 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/ |
D | AppInfoDashboardFragment.java | 510 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/ |
D | AppInfoDashboardFragment.java | 510 final List<UserInfo> userInfos = mUserManager.getUsers(true); in getNumberOfUserWithPackageInstalled() local 513 for (final UserInfo userInfo : userInfos) { in getNumberOfUserWithPackageInstalled()
|