/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | TestSystemImpl.java | 34 List<Integer> mUsers = new ArrayList<>(); field in TestSystemImpl 51 mUsers.add(PRIMARY_USER_ID); in TestSystemImpl() 56 mUsers.add(userId); in addUser() 97 for(int userId : mUsers) { in enablePackageForAllUsers() 132 for (int userId : mUsers) { in getPackageInfoForProviderAllUsers() 151 if (!mUsers.contains(userId)) { in setPackageInfoForUser()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 69 private final Set<Integer> mUsers = new HashSet<>(); field in PermissionMonitor 145 mUsers.add(user.id); in startMonitoring() 149 log("Users: " + mUsers.size() + ", Apps: " + mApps.size()); in startMonitoring() 150 update(mUsers, mApps, true); in startMonitoring() 212 mUsers.add(user); in onUserAdded() 224 mUsers.remove(user); in onUserRemoved() 264 update(mUsers, apps, true); in onAppAdded() 294 update(mUsers, apps, true); in onAppRemoved() 298 update(mUsers, apps, false); in onAppRemoved()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 65 private List<UserInfo> mUsers; field in AppCollectorTest 83 mUsers = new ArrayList<>(); in setUp() 84 mUsers.add(new UserInfo(0, "", 0)); in setUp() 88 when(mUm.getUsers()).thenReturn(mUsers); in setUp() 128 mUsers.add(new UserInfo(1, "", 0)); in testMultipleUsersOneApp() 153 mUsers.add(new UserInfo(1, "", 0)); in testAppNotFoundDoesntCauseCrash()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherController.java | 102 private ArrayList<UserRecord> mUsers = new ArrayList<>(); field in UserSwitcherController 178 SparseArray<Bitmap> bitmaps = new SparseArray<>(mUsers.size()); in refreshUsers() 179 final int N = mUsers.size(); in refreshUsers() 181 UserRecord r = mUsers.get(i); in refreshUsers() 281 mUsers = userRecords; in refreshUsers() 391 final int count = mUsers.size(); in switchTo() 393 UserRecord record = mUsers.get(i); in switchTo() 405 final int N = mUsers.size(); in getSwitchableUserCount() 407 UserRecord record = mUsers.get(i); in getSwitchableUserCount() 506 final int N = mUsers.size(); [all …]
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintUtils.java | 41 private final SparseArray<FingerprintsUserState> mUsers = new SparseArray<>(); field in FingerprintUtils 91 FingerprintsUserState state = mUsers.get(userId); in getStateForUser() 94 mUsers.put(userId, state); in getStateForUser()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 271 private final SparseArray<UserData> mUsers = new SparseArray<>(); field in UserManagerService 503 final int userSize = mUsers.size(); in cleanupPartialUsers() 505 UserInfo ui = mUsers.valueAt(i).info; in cleanupPartialUsers() 526 return mUsers.get(userId).account; in getUserAccount() 536 final UserData userData = mUsers.get(userId); in setUserAccount() 558 final int userSize = mUsers.size(); in getPrimaryUser() 560 UserInfo ui = mUsers.valueAt(i).info; in getPrimaryUser() 573 ArrayList<UserInfo> users = new ArrayList<UserInfo>(mUsers.size()); in getUsers() 574 final int userSize = mUsers.size(); in getUsers() 576 UserInfo ui = mUsers.valueAt(i).info; in getUsers() [all …]
|
D | ShortcutService.java | 276 private final SparseArray<ShortcutUser> mUsers = new SparseArray<>(); field in ShortcutService 631 mUsers.delete(userId); in unloadUserLocked() 1159 return mUsers.get(userId) != null; in isUserLoadedLocked() 1170 ShortcutUser userPackages = mUsers.get(userId); in getUserShortcutsLocked() 1176 mUsers.put(userId, userPackages); in getUserShortcutsLocked() 1185 for (int i = mUsers.size() - 1; i >= 0; i--) { in forEachLoadedUserLocked() 1186 c.accept(mUsers.valueAt(i)); in forEachLoadedUserLocked() 3509 for (int i = 0; i < mUsers.size(); i++) { in dumpInner() 3511 mUsers.valueAt(i).dump(pw, " "); in dumpInner() 3560 for (int i = 0; i < mUsers.size(); i++) { in dumpCheckin() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 60 private List<UserInfo> mUsers; field in RegisteredServicesCacheTest 70 mUsers = new ArrayList<>(); in setUp() 71 mUsers.add(new UserInfo(0, "Owner", UserInfo.FLAG_ADMIN)); in setUp() 72 mUsers.add(new UserInfo(1, "User1", 0)); in setUp() 241 return mUsers; in getUsers()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SnoozeHelper.java | 78 private ArrayMap<String, Integer> mUsers = new ArrayMap<>(); field in SnoozeHelper 157 mUsers.put(record.getKey(), userId); in snooze() 241 Integer userId = mUsers.get(key); in repost() 260 mUsers.remove(key); in repost() 294 mUsers.remove(groupSummaryKey); in repostGroupSummary()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 252 private final SparseArray<UserAccounts> mUsers = new SparseArray<>(); field in AccountManagerService 1266 synchronized (mUsers) { in getUserAccounts() 1267 UserAccounts accounts = mUsers.get(userId); in getUserAccounts() 1274 mUsers.append(userId, accounts); in getUserAccounts() 1297 Preconditions.checkState(Thread.holdsLock(mUsers), "mUsers lock must be held"); in syncDeCeAccountsLocked() 1312 synchronized (mUsers) { in purgeOldGrantsAll() 1313 for (int i = 0; i < mUsers.size(); i++) { in purgeOldGrantsAll() 1314 purgeOldGrants(mUsers.valueAt(i)); in purgeOldGrantsAll() 1340 synchronized (mUsers) { in removeVisibilityValuesForPackage() 1341 int numberOfUsers = mUsers.size(); in removeVisibilityValuesForPackage() [all …]
|