Home
last modified time | relevance | path

Searched refs:mUsers (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java97 private List<UserInfo> mUsers; field in RoleObserverTest
124 mUsers = new ArrayList<>(); in setUp()
125 mUsers.add(new UserInfo(0, "system", 0)); in setUp()
126 mUsers.add(new UserInfo(10, "second", 0)); in setUp()
127 when(mUm.getUsers()).thenReturn(mUsers); in setUp()
171 mUsers.get(0).getUserHandle())). in testInit()
175 mUsers.get(0).getUserHandle())). in testInit()
182 ROLE_DIALER, dialer0.get(0), mUsers.get(0).id)); in testInit()
184 ROLE_DIALER, dialer0.get(0), mUsers.get(1).id)); in testInit()
187 ROLE_EMERGENCY, emer0.get(0), mUsers.get(0).id)); in testInit()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java34 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java99 private ArrayList<UserRecord> mUsers = new ArrayList<>(); field in UserSwitcherController
176 SparseArray<Bitmap> bitmaps = new SparseArray<>(mUsers.size()); in refreshUsers()
177 final int N = mUsers.size(); in refreshUsers()
179 UserRecord r = mUsers.get(i); in refreshUsers()
282 mUsers = userRecords; in refreshUsers()
392 final int count = mUsers.size(); in switchTo()
394 UserRecord record = mUsers.get(i); in switchTo()
406 final int N = mUsers.size(); in getSwitchableUserCount()
408 UserRecord record = mUsers.get(i); in getSwitchableUserCount()
493 final int N = mUsers.size();
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DAppCollectorTest.java65 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/services/core/java/com/android/server/biometrics/face/
DFaceUtils.java39 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/biometrics/fingerprint/
DFingerprintUtils.java39 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/pm/
DUserManagerService.java302 private final SparseArray<UserData> mUsers = new SparseArray<>(); field in UserManagerService
594 final int userSize = mUsers.size(); in cleanupPartialUsers()
596 UserInfo ui = mUsers.valueAt(i).info; in cleanupPartialUsers()
621 final int userSize = mUsers.size(); in cleanupPreCreatedUsers()
624 UserInfo ui = mUsers.valueAt(i).info; in cleanupPreCreatedUsers()
645 return mUsers.get(userId).account; in getUserAccount()
655 final UserData userData = mUsers.get(userId); in setUserAccount()
677 final int userSize = mUsers.size(); in getPrimaryUser()
679 UserInfo ui = mUsers.valueAt(i).info; in getPrimaryUser()
697 ArrayList<UserInfo> users = new ArrayList<UserInfo>(mUsers.size()); in getUsers()
[all …]
DShortcutService.java284 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/
DPermissionMonitor.java96 private final Set<Integer> mUsers = new HashSet<>(); field in PermissionMonitor
194 mUsers.add(user.id); in startMonitoring()
212 log("Users: " + mUsers.size() + ", Apps: " + mApps.size()); in startMonitoring()
213 update(mUsers, mApps, true); in startMonitoring()
297 mUsers.add(user); in onUserAdded()
316 mUsers.remove(user); in onUserRemoved()
374 update(mUsers, apps, true); in onPackageAdded()
439 update(mUsers, apps, true); in onPackageRemoved()
443 update(mUsers, apps, false); in onPackageRemoved()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DUserGridRecyclerView.java178 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/
DSnoozeHelper.java79 private ArrayMap<String, Integer> mUsers = new ArrayMap<>(); field in SnoozeHelper
158 mUsers.put(record.getKey(), userId); in snooze()
238 Integer userId = mUsers.get(key); in repost()
257 mUsers.remove(key); in repost()
291 mUsers.remove(groupSummaryKey); in repostGroupSummary()
319 mUsers.remove(r.getKey()); in clearData()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java63 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/
DAppTimeLimitController.java71 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/
DAccountManagerService.java254 private final SparseArray<UserAccounts> mUsers = new SparseArray<>(); field in AccountManagerService
1319 synchronized (mUsers) { in getUserAccountsNotChecked()
1320 UserAccounts accounts = mUsers.get(userId); in getUserAccountsNotChecked()
1326 mUsers.append(userId, accounts); in getUserAccountsNotChecked()
1349 Preconditions.checkState(Thread.holdsLock(mUsers), "mUsers lock must be held"); in syncDeCeAccountsLocked()
1365 synchronized (mUsers) { in purgeOldGrantsAll()
1366 for (int i = 0; i < mUsers.size(); i++) { in purgeOldGrantsAll()
1367 purgeOldGrants(mUsers.valueAt(i)); in purgeOldGrantsAll()
1393 synchronized (mUsers) { in removeVisibilityValuesForPackage()
1394 int numberOfUsers = mUsers.size(); in removeVisibilityValuesForPackage()
[all …]