Home
last modified time | relevance | path

Searched refs:getUsers (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java76 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem()
94 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
116 when(mockUserManager.getUsers()).thenReturn(Arrays.asList(new UserInfo[]{ in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
136 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(systemUser)); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DSecondaryUserControllerTest.java112 when(mUserManager.getUsers()).thenReturn(userInfos); in noSecondaryUserAddedIfNoneExist()
130 when(mUserManager.getUsers()).thenReturn(userInfos); in secondaryUserAddedIfHasDistinctId()
146 when(mUserManager.getUsers()).thenReturn(userInfos); in profilesOfPrimaryUserAreNotIgnored()
190 when(mUserManager.getUsers()).thenReturn(userInfos); in dontAddPrimaryProfileAsASecondaryProfile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java117 when(mUserManager.getUsers().size()).thenReturn(2); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
133 when(mUserManager.getUsers().size()).thenReturn(2); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
252 when(mUserManager.getUsers().size()).thenReturn(2); in instantApps_noUninstallForAllButton()
300 when(mUserManager.getUsers(true)).thenReturn(userInfos); in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo()
323 when(mUserManager.getUsers(true)).thenReturn(userInfos); in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java367 return mUserManager.getUsers(/* excludeDying= */ true); in getAllUsers()
431 List<UserInfo> users = mUserManager.getUsers(/* excludeDying= */true); in getAllUsersExceptSpecifiedUser()
450 List<UserInfo> users = mUserManager.getUsers(/* excludeDying= */true); in getAllUsersExceptSystemUserAndSpecifiedUser()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java377 List<UserInfo> users = mUserManager.getUsers(true); in updateMwi()
394 List<UserInfo> users = mUserManager.getUsers(true /* excludeDying */); in updateMwi()
558 List<UserInfo> users = mUserManager.getUsers(true); in updateCfi()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DUserIconLoader.java69 for (UserInfo userInfo : um.getUsers()) { in loadUserIconsWithContext()
DSecondaryUserController.java72 List<UserInfo> infos = userManager.getUsers(); in getSecondaryUserControllers()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DUserIconLoader.java69 for (UserInfo userInfo : um.getUsers()) { in loadUserIconsWithContext()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUserUtils.java58 for (UserInfo ui : um.getUsers()) { in getCorpUserInfo()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java70 for (UserInfo userInfo : mUserManager.getUsers()) { in run()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java56 public List<UserInfo> getUsers() { in getUsers() method in ShadowUserManager
/packages/apps/Settings/src/com/android/settings/
DUtils.java383 .getUsers().size() > 1; in hasMultipleUsers()
544 final List<UserInfo> users = userManager.getUsers(true /* excludeDying */); in getExistingUser()
893 List<UserInfo> userInfos = userManager.getUsers(); in isProfileOrDeviceOwner()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java388 .getUsers().size() > 1; in hasMultipleUsers()
549 final List<UserInfo> users = userManager.getUsers(true /* excludeDying */); in getExistingUser()
898 List<UserInfo> userInfos = userManager.getUsers(); in isProfileOrDeviceOwner()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragment.java417 } else if (mUserManager.getUsers().size() < 2) { in shouldShowUninstallForAll()
510 final List<UserInfo> userInfos = mUserManager.getUsers(true); in getNumberOfUserWithPackageInstalled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppInfoDashboardFragment.java417 } else if (mUserManager.getUsers().size() < 2) { in shouldShowUninstallForAll()
510 final List<UserInfo> userInfos = mUserManager.getUsers(true); in getNumberOfUserWithPackageInstalled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DMigrateEstimateTask.java86 for (UserInfo u : user.getUsers()) { in doInBackground()
DStorageWizardMoveConfirm.java82 for (UserInfo user : getSystemService(UserManager.class).getUsers()) { in onNavigateNext()
DStorageWizardMigrateConfirm.java101 for (UserInfo user : getSystemService(UserManager.class).getUsers()) { in onNavigateNext()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMigrateEstimateTask.java86 for (UserInfo u : user.getUsers()) { in doInBackground()
DStorageWizardMoveConfirm.java83 for (UserInfo user : getSystemService(UserManager.class).getUsers()) { in onNavigateNext()
DStorageWizardMigrateConfirm.java101 for (UserInfo user : getSystemService(UserManager.class).getUsers()) { in onNavigateNext()
/packages/apps/Settings/src/com/android/settings/privacy/
DEnableContentCaptureWithServiceSettingsPreferenceController.java94 final List<UserInfo> userInfos = userManager.getUsers(); in show()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileModel.java110 for (UserInfo userInfo : mUserManager.getUsers()) { in getUser()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAddAccountActivity.java185 .getUsers().size() > 1; in hasMultipleUsers()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DManagedProfileTest.java83 List<UserInfo> users = um.getUsers(); in removeAllManagedProfiles()

123