/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | DevicePermissionState.java | 51 final int[] userIds = new int[userStatesSize]; in getUserIds() local 54 userIds[i] = userId; in getUserIds() 56 return userIds; in getUserIds()
|
D | PermissionManagerService.java | 371 public void onPermissionUpdated(int[] userIds, boolean sync) { 372 mPackageManagerInt.writePermissionSettings(userIds, !sync); 2280 final int[] userIds = mUserManagerInt.getUserIds(); 2283 for (final int userId : userIds) { 2318 final int[] userIds = mUserManagerInt.getUserIds(); 2337 for (final int userId : userIds) { 2606 final int[] userIds = filterUserId == UserHandle.USER_ALL ? getAllUserIds() 2655 for (final int userId : userIds) { 2663 for (final int userId : userIds) { 3033 updatedUserIds = checkIfLegacyStorageOpsNeedToBeUpdated(pkg, replace, userIds, [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackUnitTest.java | 187 int[] userIds = {4, 77}; in snapshotWhenEnabling() local 188 rollback.snapshotUserData(PKG_2, userIds, mMockDataHelper); in snapshotWhenEnabling() 191 verify(mMockDataHelper).snapshotAppData(eq(123), pkgRollbackInfoFor(PKG_2), eq(userIds)); in snapshotWhenEnabling() 207 int[] userIds = {4, 77}; in snapshotWhenAvailable() local 208 rollback.snapshotUserData(PKG_2, userIds, mMockDataHelper); in snapshotWhenAvailable() 228 int[] userIds = {4, 77}; in snapshotWhenDeleted() local 229 rollback.snapshotUserData(PKG_2, userIds, mMockDataHelper); in snapshotWhenDeleted() 245 int[] userIds = {111, 222}; in snapshotThenDeleteNoApex() local 246 rollback.snapshotUserData(PKG_2, userIds, mMockDataHelper); in snapshotThenDeleteNoApex() 248 verify(mMockDataHelper).snapshotAppData(eq(123), pkgRollbackInfoFor(PKG_2), eq(userIds)); in snapshotThenDeleteNoApex() [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 270 int[] userIds = new int[users.size()]; in fromUserHandles() local 271 for (int i = 0; i < userIds.length; ++i) { in fromUserHandles() 272 userIds[i] = users.get(i).getIdentifier(); in fromUserHandles() 274 return userIds; in fromUserHandles() 279 public static List<UserHandle> toUserHandles(@NonNull int[] userIds) { in toUserHandles() argument 280 List<UserHandle> users = new ArrayList<>(userIds.length); in toUserHandles() 281 for (int i = 0; i < userIds.length; ++i) { in toUserHandles() 282 users.add(UserHandle.of(userIds[i])); in toUserHandles()
|
D | UserManager.java | 3730 int[] userIds = getProfileIds(UserHandle.myUserId(), true /* enabledOnly */); in getUserProfiles() local 3731 List<UserHandle> result = new ArrayList<>(userIds.length); in getUserProfiles() 3732 for (int userId : userIds) { in getUserProfiles() 3782 final int[] userIds = getProfileIds(mUserId, enabledOnly); in getProfiles() local 3783 final List<UserHandle> result = new ArrayList<>(userIds.length); in getProfiles() 3784 for (int userId : userIds) { in getProfiles()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | UserPowerCalculator.java | 39 final int[] userIds = query.getUserIds(); in calculate() local 40 if (ArrayUtils.contains(userIds, UserHandle.USER_ALL)) { in calculate() 55 if (!ArrayUtils.contains(userIds, userId)) { in calculate()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowUserManager.java | 54 public void addProfileIds(@UserIdInt int... userIds) { in addProfileIds() argument 56 for (int userId : userIds) { in addProfileIds()
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/ |
D | TvUserManager.java | 90 int[] userIds = mUserManager.getProfileIds(mUserId, enabledOnly); in getUserProfiles() local 91 List<UserHandle> result = new ArrayList<>(userIds.length); in getUserProfiles() 92 for (int userId : userIds) { in getUserProfiles()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemSettingsHelper.java | 281 int[] userIds; in dump() local 283 userIds = ActivityManager.getService().getRunningUserIds(); in dump() 290 if (userIds.length > 1) { in dump() 292 for (int userId : userIds) { in dump() 299 ipw.println(isLocationEnabled(userIds[0])); in dump() 305 if (userIds.length > 1) { in dump() 306 for (int userId : userIds) { in dump() 334 userIds[0]); in dump() 341 userIds[0]); in dump()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerService.java | 370 final int[] userIds; in onReceive() local 373 userIds = mUserManager.getUserIds(); in onReceive() 375 userIds = new int[] { UserHandle.getUserId(extraUid) }; in onReceive() 381 onPackageReplaced(packageName, userIds); in onReceive() 383 onPackageAdded(packageName, userIds); in onReceive() 390 onPackageChanged(packageName, userIds); in onReceive() 395 onPackageReplacing(packageName, userIds); in onReceive() 397 onPackageRemoved(packageName, userIds); in onReceive() 407 @NonNull final int[] userIds) { in onPackageAdded() argument 410 for (final int userId : userIds) { in onPackageAdded() [all …]
|
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/ |
D | MultiUserRollbackTest.java | 112 private void runPhaseForUsers(String phase, int... userIds) throws Exception { in runPhaseForUsers() argument 114 for (int userId: userIds) { in runPhaseForUsers()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SharedUserSetting.java | 243 final int[] userIds = ps.getNotInstalledUserIds(); 245 excludedUserIds = userIds; 248 if (!ArrayUtils.contains(userIds, userId)) {
|
/frameworks/base/core/java/android/content/rollback/ |
D | IRollbackManager.aidl | 35 … void snapshotAndRestoreUserData(String packageName, in int[] userIds, int appId, long ceDataInode, in snapshotAndRestoreUserData() argument
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 921 public void snapshotAndRestoreUserData(String packageName, int[] userIds, int appId, 931 snapshotUserDataInternal(packageName, userIds); 932 restoreUserDataInternal(packageName, userIds, appId, seInfo); 944 private void snapshotUserDataInternal(String packageName, int[] userIds) { 948 + " users=" + Arrays.toString(userIds)); 952 rollback.snapshotUserData(packageName, userIds, mAppDataRollbackHelper); 958 String packageName, int[] userIds, int appId, String seInfo) { 962 + " users=" + Arrays.toString(userIds)); 967 packageName, userIds, appId, seInfo, mAppDataRollbackHelper)) {
|
D | AppDataRollbackHelper.java | 62 int rollbackId, PackageRollbackInfo packageRollbackInfo, int[] userIds) { in snapshotAppData() argument 63 for (int user : userIds) { in snapshotAppData()
|
D | Rollback.java | 445 void snapshotUserData(String packageName, int[] userIds, AppDataRollbackHelper dataHelper) { in snapshotUserData() argument 455 dataHelper.snapshotAppData(info.getRollbackId(), pkgRollbackInfo, userIds); in snapshotUserData() local 456 addAll(pkgRollbackInfo.getSnapshottedUsers(), userIds); in snapshotUserData() local 688 boolean restoreUserDataForPackageIfInProgress(String packageName, int[] userIds, int appId, in restoreUserDataForPackageIfInProgress() argument 700 for (int userId : userIds) { in restoreUserDataForPackageIfInProgress()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 146 private static List<ResolveInfo> createReceiverInfos(String[] packages, int[] userIds) { in createReceiverInfos() argument 149 for (final int userId : userIds) { in createReceiverInfos()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryManager.java | 233 public @NonNull NotificationHistory readNotificationHistory(@UserIdInt int[] userIds) { in readNotificationHistory() argument 236 if (userIds == null) { in readNotificationHistory() 239 for (int userId : userIds) { in readNotificationHistory()
|
D | ManagedServices.java | 361 Set<Integer> userIds = mUserSetServices.keySet(); in dump() local 362 for (int userId : userIds) { in dump() 1055 final IntArray userIds = mUserProfiles.getCurrentProfileIds(); in setComponentState() local 1057 for (int i = 0; i < userIds.size(); i++) { in setComponentState() 1058 final int userId = userIds.get(i); in setComponentState() 1222 protected SparseArray<ArraySet<ComponentName>> getAllowedComponents(IntArray userIds) { in getAllowedComponents() argument 1223 final int nUserIds = userIds.size(); in getAllowedComponents() 1227 final int userId = userIds.get(i); in getAllowedComponents() 1313 IntArray userIds = mUserProfiles.getCurrentProfileIds(); in rebindServices() local 1315 userIds = new IntArray(1); in rebindServices() [all …]
|
D | SnoozeHelper.java | 322 IntArray userIds = new IntArray(); in cancel() local 323 userIds.add(userId); in cancel() 325 userIds = mUserProfiles.getCurrentProfileIds(); in cancel() 329 if (userIds.binarySearch(r.getUserId()) >= 0) { in cancel()
|
/frameworks/base/services/core/java/com/android/server/ |
D | RescueParty.java | 718 int[] userIds = { UserHandle.USER_SYSTEM }; in getAllUserIds() local 724 userIds = ArrayUtils.appendInt(userIds, userId); in getAllUserIds() 732 return userIds; in getAllUserIds()
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | EnabledComponentsObserver.java | 174 final int[] userIds = getCurrentProfileIds(); in rebuildAll() local 175 for (int i : userIds) { in rebuildAll()
|
/frameworks/base/apex/jobscheduler/framework/java/com/android/server/usage/ |
D | AppStandbyInternal.java | 174 void dumpUsers(IndentingPrintWriter idpw, int[] userIds, List<String> pkgs); in dumpUsers() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ScanTests.java | 147 final int[] userIds = {0, 10, 11}; in newInstallForAllUsers() local 148 when(mMockUserManager.getUserIds()).thenReturn(userIds); in newInstallForAllUsers() 158 for (int uid : userIds) { in newInstallForAllUsers()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 757 public void dumpUsers(IndentingPrintWriter idpw, int[] userIds, List<String> pkgs) { in dumpUsers() argument 758 final int numUsers = userIds.length; in dumpUsers() 761 dumpUser(idpw, userIds[i], pkgs); in dumpUsers()
|