/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | SecondaryUserControllerTest.java | 111 final ArrayList<UserInfo> userInfos = new ArrayList<>(); in noSecondaryUserAddedIfNoneExist() local 112 userInfos.add(mPrimaryUser); in noSecondaryUserAddedIfNoneExist() 114 when(mUserManager.getUsers()).thenReturn(userInfos); in noSecondaryUserAddedIfNoneExist() 126 final ArrayList<UserInfo> userInfos = new ArrayList<>(); in getSecondaryUserControllers_notWorkProfile_addSecondaryUserController() local 131 userInfos.add(mPrimaryUser); in getSecondaryUserControllers_notWorkProfile_addSecondaryUserController() 132 userInfos.add(secondaryUser); in getSecondaryUserControllers_notWorkProfile_addSecondaryUserController() 134 when(mUserManager.getUsers()).thenReturn(userInfos); in getSecondaryUserControllers_notWorkProfile_addSecondaryUserController() 145 final ArrayList<UserInfo> userInfos = new ArrayList<>(); in getSecondaryUserControllers_workProfile_addNoSecondaryUserController() local 150 userInfos.add(mPrimaryUser); in getSecondaryUserControllers_workProfile_addNoSecondaryUserController() 151 userInfos.add(secondaryUser); in getSecondaryUserControllers_workProfile_addNoSecondaryUserController() [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.getAliveUsers()).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.getAliveUsers()).thenReturn(userInfos); in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationsUtils.java | 74 List<UserInfo> userInfos = profileHelper.getAllProfiles(); in isProfileOrDeviceOwner() local 75 for (int i = 0; i < userInfos.size(); i++) { in isProfileOrDeviceOwner() 76 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/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | ExperimentalCarUserManagerUnitTest.java | 141 List<UserInfo> userInfos = UserTestingHelper.newUsers(10, 20, 30); in testGetAllDrivers() local 142 when(mService.getAllDrivers()).thenReturn(userInfos); in testGetAllDrivers() 149 List<UserInfo> userInfos = UserTestingHelper.newUsers(100, 101, 102); in testGetAllPassengers() local 150 when(mService.getPassengers(10)).thenReturn(userInfos); in testGetAllPassengers()
|
/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/services/Car/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 148 public static void mockUmGetAllUsers(@NonNull UserManager um, @NonNull UserInfo... userInfos) { in mockUmGetAllUsers() argument 149 when(um.getUsers()).thenReturn(UserTestingHelper.toList(userInfos)); in mockUmGetAllUsers()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/ |
D | MicPrivacyChipDialogController.java | 154 List<UserInfo> userInfos = mUserTracker.getUserProfiles(); in createPrivacyElements() local 165 Optional<UserInfo> optionalUserInfo = userInfos.stream() in createPrivacyElements()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppInfoDashboardFragment.java | 541 final List<UserInfo> userInfos = mUserManager.getAliveUsers(); in getNumberOfUserWithPackageInstalled() local 544 for (final UserInfo userInfo : userInfos) { in getNumberOfUserWithPackageInstalled()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 934 final List<UserInfo> userInfos = userManager.getUsers(); in isProfileOrDeviceOwner() local 938 for (int i = 0, size = userInfos.size(); i < size; i++) { in isProfileOrDeviceOwner() 940 .getProfileOwnerAsUser(userInfos.get(i).id); in isProfileOrDeviceOwner()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 397 List<UserInfo> userInfos = userManager.getAliveUsers(); in getPackageKillableStatesAsUser() local 398 for (UserInfo userInfo : userInfos) { in getPackageKillableStatesAsUser()
|