/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RoleObserverTest.java | 96 private List<UserInfo> mUsers; field in RoleObserverTest 123 mUsers = new ArrayList<>(); in setUp() 124 mUsers.add(new UserInfo(0, "system", 0)); in setUp() 125 mUsers.add(new UserInfo(10, "second", 0)); in setUp() 126 when(mUm.getUsers()).thenReturn(mUsers); in setUp() 170 mUsers.get(0).getUserHandle())). in testInit() 174 mUsers.get(0).getUserHandle())). in testInit() 181 ROLE_DIALER, dialer0.get(0), mUsers.get(0).id)); in testInit() 183 ROLE_DIALER, dialer0.get(0), mUsers.get(1).id)); in testInit() 186 ROLE_EMERGENCY, emer0.get(0), mUsers.get(0).id)); in testInit() [all …]
|
/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() 92 for(int userId : mUsers) { in enablePackageForAllUsers() 126 for (int userId : mUsers) { in getPackageInfoForProviderAllUsers() 145 if (!mUsers.contains(userId)) { in setPackageInfoForUser()
|
/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 | 98 private ArrayList<UserRecord> mUsers = new ArrayList<>(); field in UserSwitcherController 175 SparseArray<Bitmap> bitmaps = new SparseArray<>(mUsers.size()); in refreshUsers() 176 final int N = mUsers.size(); in refreshUsers() 178 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() 492 final int N = mUsers.size(); [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/ |
D | FingerprintUtils.java | 39 private final SparseArray<FingerprintUserState> mUsers = new SparseArray<>(); field in FingerprintUtils 86 FingerprintUserState state = mUsers.get(userId); in getStateForUser() 89 mUsers.put(userId, state); in getStateForUser()
|
/frameworks/base/services/core/java/com/android/server/biometrics/face/ |
D | FaceUtils.java | 39 private final SparseArray<FaceUserState> mUsers = new SparseArray<>(); field in FaceUtils 85 FaceUserState state = mUsers.get(userId); in getStateForUser() 88 mUsers.put(userId, state); in getStateForUser()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 294 private final SparseArray<UserData> mUsers = new SparseArray<>(); field in UserManagerService 582 final int userSize = mUsers.size(); in cleanupPartialUsers() 584 UserInfo ui = mUsers.valueAt(i).info; in cleanupPartialUsers() 605 return mUsers.get(userId).account; in getUserAccount() 615 final UserData userData = mUsers.get(userId); in setUserAccount() 637 final int userSize = mUsers.size(); in getPrimaryUser() 639 UserInfo ui = mUsers.valueAt(i).info; in getPrimaryUser() 652 ArrayList<UserInfo> users = new ArrayList<UserInfo>(mUsers.size()); in getUsers() 653 final int userSize = mUsers.size(); in getUsers() 655 UserInfo ui = mUsers.valueAt(i).info; in getUsers() [all …]
|
D | ShortcutService.java | 284 private final SparseArray<ShortcutUser> mUsers = new SparseArray<>(); field in ShortcutService 659 mUsers.delete(userId); in unloadUserLocked() 1200 return mUsers.get(userId) != null; in isUserLoadedLocked() 1211 ShortcutUser userPackages = mUsers.get(userId); in getUserShortcutsLocked() 1217 mUsers.put(userId, userPackages); in getUserShortcutsLocked() 1239 for (int i = mUsers.size() - 1; i >= 0; i--) { in forEachLoadedUserLocked() 1240 c.accept(mUsers.valueAt(i)); in forEachLoadedUserLocked() 3791 private List<Integer> mUsers = new ArrayList<>(); field in ShortcutService.DumpFilter 3802 mUsers.add(userId); in addUser() 3818 if (mUsers.size() == 0) { in isUserMatch() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 88 private final Set<Integer> mUsers = new HashSet<>(); field in PermissionMonitor 192 mUsers.add(user.id); in startMonitoring() 211 log("Users: " + mUsers.size() + ", Apps: " + mApps.size()); in startMonitoring() 212 update(mUsers, mApps, true); in startMonitoring() 330 mUsers.add(user); in onUserAdded() 349 mUsers.remove(user); in onUserRemoved() 392 update(mUsers, apps, true); in onPackageAdded() 453 update(mUsers, apps, true); in onPackageRemoved() 457 update(mUsers, apps, false); in onPackageRemoved()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | UserGridRecyclerView.java | 178 private List<UserRecord> mUsers; field in UserGridRecyclerView.UserAdapter 197 mUsers.clear(); in clearUsers() 201 mUsers = users; in updateUsers() 215 UserRecord userRecord = mUsers.get(position); in onBindViewHolder() 355 return mUsers.size(); in getItemCount()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SnoozeHelper.java | 79 private ArrayMap<String, Integer> mUsers = new ArrayMap<>(); field in SnoozeHelper 158 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() 322 mUsers.remove(r.getKey()); in clearData()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 63 private List<UserInfo> mUsers; field in RegisteredServicesCacheTest 73 mUsers = new ArrayList<>(); in setUp() 74 mUsers.add(new UserInfo(0, "Owner", UserInfo.FLAG_ADMIN)); in setUp() 75 mUsers.add(new UserInfo(1, "User1", 0)); in setUp() 244 return mUsers; in getUsers()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppTimeLimitController.java | 71 private final SparseArray<UserData> mUsers = new SparseArray<>(); field in AppTimeLimitController 689 UserData userData = mUsers.get(userId); in getOrCreateUserDataLocked() 692 mUsers.put(userId, userData); in getOrCreateUserDataLocked() 712 mUsers.remove(userId); in onUserRemoved() 1017 final int nUsers = mUsers.size(); in dump() 1020 mUsers.valueAt(user).currentlyActive; in dump() 1034 final int nUsers = mUsers.size(); in dump() 1037 mUsers.valueAt(i).dump(pw); in dump()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 254 private final SparseArray<UserAccounts> mUsers = new SparseArray<>(); field in AccountManagerService 1292 synchronized (mUsers) { in getUserAccounts() 1293 UserAccounts accounts = mUsers.get(userId); in getUserAccounts() 1299 mUsers.append(userId, accounts); in getUserAccounts() 1322 Preconditions.checkState(Thread.holdsLock(mUsers), "mUsers lock must be held"); in syncDeCeAccountsLocked() 1338 synchronized (mUsers) { in purgeOldGrantsAll() 1339 for (int i = 0; i < mUsers.size(); i++) { in purgeOldGrantsAll() 1340 purgeOldGrants(mUsers.valueAt(i)); in purgeOldGrantsAll() 1366 synchronized (mUsers) { in removeVisibilityValuesForPackage() 1367 int numberOfUsers = mUsers.size(); in removeVisibilityValuesForPackage() [all …]
|