Home
last modified time | relevance | path

Searched refs:profiles (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceController.java76 List<UserInfo> profiles = mCarUserManagerHelper.getAllUsers(); in onDataLoaded() local
83 long size = aggregateDataUsage(knownItems, items, entry, profiles); in onDataLoaded()
88 updateRestrictedState(restrictedUids, knownItems, items, profiles); in onDataLoaded()
93 NetworkStats.Entry entry, List<UserInfo> profiles) { in aggregateDataUsage() argument
115 if (profileContainsUserId(profiles, userId) && userId == currentUserId) { in aggregateDataUsage()
122 if (profileContainsUserId(profiles, userId) && userId != currentUserId) { in aggregateDataUsage()
134 Optional<UserInfo> info = profiles.stream().filter( in aggregateDataUsage()
156 private boolean profileContainsUserId(List<UserInfo> profiles, int userId) { in profileContainsUserId() argument
157 return profiles.stream().anyMatch(userInfo -> userInfo.id == userId); in profileContainsUserId()
161 SparseArray<AppItem> knownItems, List<AppItem> items, List<UserInfo> profiles) { in updateRestrictedState() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java136 final List<UserHandle> profiles = mUm.getUserProfiles(); in updateState() local
137 final int profilesSize = profiles.size(); in updateState()
139 final int profileId = profiles.get(i).getIdentifier(); in updateState()
158 final List<UserHandle> profiles = mUm.getUserProfiles(); in refreshData() local
159 for (UserHandle profile : profiles) { in refreshData()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java137 final List<UserHandle> profiles = mUm.getUserProfiles(); in updateState() local
138 final int profilesSize = profiles.size(); in updateState()
140 final int profileId = profiles.get(i).getIdentifier(); in updateState()
159 final List<UserHandle> profiles = mUm.getUserProfiles(); in refreshData() local
160 for (UserHandle profile : profiles) { in refreshData()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java116 ArrayList<Class> profiles = new ArrayList<>(PROFILE_SERVICES_AND_FLAGS.length); in init() local
128 profiles.add(config.mClass); in init()
130 sSupportedProfiles = profiles.toArray(new Class[profiles.size()]); in init()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/
DUserUtils.java61 List<UserHandle> profiles = userManager.getUserProfiles(); in getWorkProfile() local
64 int profilesSize = profiles.size(); in getWorkProfile()
66 UserHandle profile = profiles.get(i); in getWorkProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DWorkModeConditionController.java111 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle() local
112 final int profilesCount = profiles.size(); in updateUserHandle()
115 UserInfo userInfo = profiles.get(i); in updateUserHandle()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DWorkModeConditionController.java111 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle() local
112 final int profilesCount = profiles.size(); in updateUserHandle()
115 UserInfo userInfo = profiles.get(i); in updateUserHandle()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountPreferenceController.java176 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateRawDataToIndex() local
177 final int profilesCount = profiles.size(); in updateRawDataToIndex()
179 UserInfo userInfo = profiles.get(i); in updateRawDataToIndex()
277 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi() local
278 final int profilesCount = profiles.size(); in updateUi()
280 updateProfileUi(profiles.get(i)); in updateUi()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java176 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateRawDataToIndex() local
177 final int profilesCount = profiles.size(); in updateRawDataToIndex()
179 UserInfo userInfo = profiles.get(i); in updateRawDataToIndex()
277 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi() local
278 final int profilesCount = profiles.size(); in updateUi()
280 updateProfileUi(profiles.get(i)); in updateUi()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DCrossProfileIntentFiltersSetter.java326 List<UserInfo> profiles = mUserManager.getProfiles(userId); in resetFilters() local
327 if (profiles.size() <= 1) { in resetFilters()
335 for (UserInfo profile : profiles) { in resetFilters()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockGeneric.java861 final List<UserInfo> profiles = mUserManager.getProfiles(parentUserId); in removeManagedProfileFingerprintsAndFinishIfNecessary() local
862 final int profilesSize = profiles.size(); in removeManagedProfileFingerprintsAndFinishIfNecessary()
864 final UserInfo userInfo = profiles.get(i); in removeManagedProfileFingerprintsAndFinishIfNecessary()
916 final List<UserInfo> profiles = mUserManager.getProfiles(parentUserId); in removeManagedProfileFacesAndFinishIfNecessary() local
917 final int profilesSize = profiles.size(); in removeManagedProfileFacesAndFinishIfNecessary()
919 final UserInfo userInfo = profiles.get(i); in removeManagedProfileFacesAndFinishIfNecessary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DChooseLockGeneric.java850 final List<UserInfo> profiles = mUserManager.getProfiles(parentUserId); in removeManagedProfileFingerprintsAndFinishIfNecessary() local
851 final int profilesSize = profiles.size(); in removeManagedProfileFingerprintsAndFinishIfNecessary()
853 final UserInfo userInfo = profiles.get(i); in removeManagedProfileFingerprintsAndFinishIfNecessary()
905 final List<UserInfo> profiles = mUserManager.getProfiles(parentUserId); in removeManagedProfileFacesAndFinishIfNecessary() local
906 final int profilesSize = profiles.size(); in removeManagedProfileFacesAndFinishIfNecessary()
908 final UserInfo userInfo = profiles.get(i); in removeManagedProfileFacesAndFinishIfNecessary()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java326 ArrayList<DisplayOption> profiles = new ArrayList<>(); in getPredefinedDeviceProfiles() local
342 profiles.add(new DisplayOption( in getPredefinedDeviceProfiles()
354 for (DisplayOption option : profiles) { in getPredefinedDeviceProfiles()
362 for (DisplayOption option : profiles) { in getPredefinedDeviceProfiles()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java674 List<UserHandle> profiles = mUserManager.getUserProfiles(); in AliasLoader() local
675 for (UserHandle profile : profiles) { in AliasLoader()
697 List<UserHandle> profiles = mUserManager.getUserProfiles(); in doInBackground() local
698 final int n = profiles.size(); in doInBackground()
706 UserHandle profile = profiles.get(i); in doInBackground()
724 UserHandle profile = profiles.get(i); in doInBackground()
DMasterClear.java459 final List<UserInfo> profiles = um.getProfiles(UserHandle.myUserId()); in loadAccountList() local
460 final int profilesSize = profiles.size(); in loadAccountList()
469 final UserInfo userInfo = profiles.get(profileIndex); in loadAccountList()
DUtils.java415 List<UserInfo> profiles = userManager.getProfiles(myUserId); in getManagedProfileWithDisabled() local
416 final int count = profiles.size(); in getManagedProfileWithDisabled()
418 final UserInfo profile = profiles.get(i); in getManagedProfileWithDisabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTrustedCredentialsSettings.java674 List<UserHandle> profiles = mUserManager.getUserProfiles(); in AliasLoader() local
675 for (UserHandle profile : profiles) { in AliasLoader()
697 List<UserHandle> profiles = mUserManager.getUserProfiles(); in doInBackground() local
698 final int n = profiles.size(); in doInBackground()
706 UserHandle profile = profiles.get(i); in doInBackground()
724 UserHandle profile = profiles.get(i); in doInBackground()
DMasterClear.java460 final List<UserInfo> profiles = um.getProfiles(UserHandle.myUserId()); in loadAccountList() local
461 final int profilesSize = profiles.size(); in loadAccountList()
470 final UserInfo userInfo = profiles.get(profileIndex); in loadAccountList()
DUtils.java420 List<UserInfo> profiles = userManager.getProfiles(myUserId); in getManagedProfileWithDisabled() local
421 final int count = profiles.size(); in getManagedProfileWithDisabled()
423 final UserInfo profile = profiles.get(i); in getManagedProfileWithDisabled()
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java115 List<UserInfo> profiles = UserManager.get(mContext).getEnabledProfiles( in getWorkProfileContextForUser() local
119 for (UserInfo profile : profiles) { in getWorkProfileContextForUser()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DLocationAccessCheck.java434 List<UserHandle> profiles = mUserManager.getUserProfiles(); in getLocationUsersWithNoNotificationYetLocked() local
449 if (!profiles.contains(user)) { in getLocationUsersWithNoNotificationYetLocked()
646 List<UserHandle> profiles = mUserManager.getUserProfiles(); in getCurrentlyShownNotificationLocked() local
648 int numProfiles = profiles.size(); in getCurrentlyShownNotificationLocked()
651 NotificationManager.class, profiles.get(profileNum)); in getCurrentlyShownNotificationLocked()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearAccountsPreferenceController.java80 List<UserInfo> profiles = UserManager.get(getContext()).getProfiles( in updateState() local
82 for (UserInfo profile : profiles) { in updateState()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.java337 final List<UserHandle> profiles = userManager.getUserProfiles(); in bindStats() local
348 if (profiles.contains(new UserHandle(userId))) { in bindStats()
386 if (!profiles.contains(new UserHandle(UserHandle.getUserId(uid)))) { in bindStats()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageList.java334 final List<UserHandle> profiles = userManager.getUserProfiles(); in bindStats() local
345 if (profiles.contains(new UserHandle(userId))) { in bindStats()
383 if (!profiles.contains(new UserHandle(UserHandle.getUserId(uid)))) { in bindStats()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java801 final List<UserHandle> profiles = mUserManager.getUserProfiles(); in loadAllApps() local
805 for (UserHandle user : profiles) { in loadAllApps()

12