Home
last modified time | relevance | path

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

12

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java73 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem()
90 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
111 when(mockUserManager.getUsers()).thenReturn(Arrays.asList(new UserInfo[]{ in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
130 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(systemUser)); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DSecondaryUserControllerTest.java115 when(mUserManager.getUsers()).thenReturn(userInfos); in noSecondaryUserAddedIfNoneExist()
133 when(mUserManager.getUsers()).thenReturn(userInfos); in secondaryUserAddedIfHasDistinctId()
149 when(mUserManager.getUsers()).thenReturn(userInfos); in profilesOfPrimaryUserAreNotIgnored()
193 when(mUserManager.getUsers()).thenReturn(userInfos); in dontAddPrimaryProfileAsASecondaryProfile()
/packages/apps/Settings/src/com/android/settings/applications/
DUserManagerWrapperImpl.java37 public List<UserInfo> getUsers() { in getUsers() method in UserManagerWrapperImpl
38 return mUserManager.getUsers(); in getUsers()
DUserManagerWrapper.java31 List<UserInfo> getUsers(); in getUsers() method
DInstalledAppDetails.java340 && mUserManager.getUsers().size() >= 2) { in initUnintsallButtonForUserApp()
637 } else if (mUserManager.getUsers().size() < 2) { in shouldShowUninstallForAll()
1372 final List<UserInfo> userInfos = userManager.getUsers(true);
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppDetailsTest.java159 when(mUserManager.getUsers().size()).thenReturn(2); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
175 when(mUserManager.getUsers().size()).thenReturn(2); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
261 when(mUserManager.getUsers().size()).thenReturn(2); in instantApps_noUninstallForAllButton()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java102 for (UserInfo user : userManager.getUsers()) { in onReceive()
139 List<UserInfo> users = userManager.getUsers(); in onReceive()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java158 for (UserInfo user : userManager.getUsers()) { in handleMessage()
193 List<UserInfo> users = userManager.getUsers(); in handleMessage()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java353 List<UserInfo> users = mUserManager.getUsers(true); in updateMwi()
371 List<UserInfo> users = mUserManager.getUsers(true /* excludeDying */); in updateMwi()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DUserIconLoader.java70 for (UserInfo userInfo : um.getUsers()) { in loadUserIconsWithContext()
DSecondaryUserController.java68 List<UserInfo> infos = userManager.getUsers(); in getSecondaryUserControllers()
DStorageAsyncLoader.java74 List<UserInfo> infos = mUserManager.getUsers(); in loadApps()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java62 for (UserInfo userInfo : mUserManager.getUsers()) { in run()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUserUtils.java58 for (UserInfo ui : um.getUsers()) { in getCorpUserInfo()
/packages/apps/Settings/tests/app/src/com/android/settings/applications/
DPackageUtilTest.java59 when(mMockUserManager.getUsers(true)).thenReturn(mUserInfos); in setUp()
/packages/apps/Settings/src/com/android/settings/
DUtils.java484 .getUsers().size() > 1; in hasMultipleUsers()
870 final List<UserInfo> users = userManager.getUsers(true /* excludeDying */); in getExistingUser()
1292 List<UserInfo> userInfos = userManager.getUsers(); in isProfileOrDeviceOwner()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMigrateEstimateTask.java86 for (UserInfo u : user.getUsers()) { in doInBackground()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserSettingsFragment.java99 List<UserInfo> infos = mUserManager.getUsers(true); in getLineItems()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DManagedProfileTest.java73 List<UserInfo> users = um.getUsers(); in removeAllManagedProfiles()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DOtaController.java82 for (UserInfo userInfo : mUserManager.getUsers()) { in run()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java148 List<UserInfo> users = mUserManager.getUsers(true); in enableCallsAndSms()
DUserSettings.java722 List<UserInfo> users = mUserManager.getUsers(true); in updateUserList()
891 final List<UserInfo> users = mUserManager.getUsers(); in getMaxRealUsers()
/packages/apps/Settings/src/com/android/settings/network/
DVpnPreferenceController.java125 final List<UserInfo> users = mUserManager.getUsers(); in updateSummary()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java90 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java222 when(mUserManager.getUsers()).thenReturn(userInfos); in testIsProfileOrDeviceOwner_profileOwnerApp_returnTrue()

12