Home
last modified time | relevance | path

Searched refs:userIds (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java334 final int[] userIds = mUserProfiles.getCurrentProfileIds(); in setComponentState() local
336 for (int userId : userIds) { in setComponentState()
352 int[] userIds = mUserProfiles.getCurrentProfileIds(); in rebuildRestoredPackages() local
353 final int N = userIds.length; in rebuildRestoredPackages()
356 loadComponentNamesFromSetting(secureSettingName, userIds[i]); in rebuildRestoredPackages()
358 names.addAll(loadComponentNamesFromSetting(secondarySettingName, userIds[i])); in rebuildRestoredPackages()
412 int[] userIds = mUserProfiles.getCurrentProfileIds(); in updateSettingsAccordingToInstalledServices() local
413 final int N = userIds.length; in updateSettingsAccordingToInstalledServices()
415 updateSettingsAccordingToInstalledServices(mConfig.secureSettingName, userIds[i]); in updateSettingsAccordingToInstalledServices()
418 mConfig.secondarySettingName, userIds[i]); in updateSettingsAccordingToInstalledServices()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaResourceMonitorService.java68 int[] userIds = manager.getEnabledProfileIds(ActivityManager.getCurrentUser()); in notifyResourceGranted() local
69 if (userIds == null || userIds.length == 0) { in notifyResourceGranted()
75 for (int userId : userIds) { in notifyResourceGranted()
DMediaSessionService.java245 int[] userIds = manager.getProfileIdsWithDisabled(currentUser); in updateUser() local
247 if (userIds != null && userIds.length > 0) { in updateUser()
248 for (int userId : userIds) { in updateUser()
/frameworks/base/services/core/java/com/android/server/vr/
DEnabledComponentsObserver.java174 final int[] userIds = getCurrentProfileIds(); in rebuildAll() local
175 for (int i : userIds) { in rebuildAll()
/frameworks/base/core/java/android/content/
DContentProvider.java290 final int[] userIds = new int[numOperations]; in applyBatch() local
295 userIds[i] = getUserIdFromUri(uri); in applyBatch()
296 if (userIds[i] != UserHandle.USER_CURRENT) { in applyBatch()
319 if (userIds[i] != UserHandle.USER_CURRENT) { in applyBatch()
321 results[i] = new ContentProviderResult(results[i], userIds[i]); in applyBatch()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java660 IntArray userIds = new IntArray(); in getUsersToStopLocked() local
661 userIds.add(userId); in getUsersToStopLocked()
678 userIds.add(startedUserId); in getUsersToStopLocked()
681 return userIds.toArray(); in getUsersToStopLocked()
1512 Set<Integer> userIds = new HashSet<>(); in getProfileIds() local
1516 userIds.add(user.id); in getProfileIds()
1518 return userIds; in getProfileIds()
DActivityManagerService.java17613 int[] userIds = { UserHandle.USER_ALL, UserHandle.getUserId(callingUid) }; in registerReceiver() local
17616 for (int id : userIds) { in registerReceiver()
/frameworks/base/core/java/android/os/
DUserManager.java1711 int[] userIds = getProfileIds(UserHandle.myUserId(), true /* enabledOnly */); in getUserProfiles() local
1712 List<UserHandle> result = new ArrayList<>(userIds.length); in getUserProfiles()
1713 for (int userId : userIds) { in getUserProfiles()
/frameworks/base/services/core/java/com/android/server/pm/
DPermissionsState.java464 public int[] computeGids(int[] userIds) { in computeGids() argument
467 for (int userId : userIds) { in computeGids()
DSettings.java1331 boolean removeIntentFilterVerificationLPw(String packageName, int[] userIds) { in removeIntentFilterVerificationLPw() argument
1333 for (int userId : userIds) { in removeIntentFilterVerificationLPw()
2480 int[] userIds = new int[users.size()]; in writePackageListLPr() local
2481 for (int i = 0; i < userIds.length; i++) { in writePackageListLPr()
2482 userIds[i] = users.get(i).id; in writePackageListLPr()
2485 userIds = ArrayUtils.appendInt(userIds, creatingUserId); in writePackageListLPr()
2513 final int[] gids = pkg.getPermissionsState().computeGids(userIds); in writePackageListLPr()
DPackageManagerService.java1883 private void grantRequestedRuntimePermissions(PackageParser.Package pkg, int[] userIds, in grantRequestedRuntimePermissions() argument
1885 for (int userId : userIds) { in grantRequestedRuntimePermissions()
1965 final int[] userIds = (userId == UserHandle.USER_ALL) in scheduleWritePackageRestrictionsLocked() local
1967 for (int nextUserId : userIds) { in scheduleWritePackageRestrictionsLocked()
11472 final int[] userIds) { in sendPackageBroadcast() argument
11480 if (userIds == null) { in sendPackageBroadcast()
11483 resolvedUserIds = userIds; in sendPackageBroadcast()
12565 private void sendFirstLaunchBroadcast(String pkgName, String installerPkg, int[] userIds) { in sendFirstLaunchBroadcast() argument
12567 installerPkg, null, userIds); in sendFirstLaunchBroadcast()
14053 final int[] userIds = sUserManager.getUserIds(); in cleanUp() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java406 public void addUsers(int... userIds) { in addUsers() argument
407 for (int userId : userIds) { in addUsers()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java3743 final int[] userIds = new int[users.size()];
3744 for (int i = 0; i < userIds.length; i++) {
3745 userIds[i] = users.get(i).id;
3747 return getAccounts(userIds);
3751 private AccountAndUser[] getAccounts(int[] userIds) {
3753 for (int userId : userIds) {