/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 46 private SparseArray<PackageUserState> mUserStates = new SparseArray<>(); field in PackageSettingBuilder 145 if (mUserStates.indexOfKey(userId) < 0) { in setInstantAppUserState() 146 mUserStates.put(userId, new PackageUserState()); in setInstantAppUserState() 148 mUserStates.get(userId).instantApp = isInstant; in setInstantAppUserState() 178 for (int i = 0; i < mUserStates.size(); i++) { in build() 179 packageSetting.setUserState(mUserStates.keyAt(i), mUserStates.valueAt(i)); in build()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionsState.java | 778 private SparseArray<PermissionState> mUserStates = new SparseArray<>(); field in PermissionsState.PermissionData 788 final int otherStateCount = other.mUserStates.size(); in PermissionData() 790 final int otherUserId = other.mUserStates.keyAt(i); in PermissionData() 791 PermissionState otherState = other.mUserStates.valueAt(i); in PermissionData() 792 mUserStates.put(otherUserId, new PermissionState(otherState)); in PermissionData() 807 PermissionState userState = mUserStates.get(userId); in isGranted() 826 PermissionState userState = mUserStates.get(userId); in grant() 829 mUserStates.put(userId, userState); in grant() 849 PermissionState userState = mUserStates.get(userId); in revoke() 853 mUserStates.remove(userId); in revoke() [all …]
|
/frameworks/base/services/core/java/com/android/server/attention/ |
D | AttentionManagerService.java | 110 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in AttentionManagerService 350 UserState result = mUserStates.get(userId); in getOrCreateUserStateLocked() 353 mUserStates.put(userId, result); in getOrCreateUserStateLocked() 369 return mUserStates.get(userId); in peekUserStateLocked() 431 int size = mUserStates.size(); in dumpInternal() 437 UserState userState = mUserStates.valueAt(i); in dumpInternal() 671 for (int i = 0; i < mUserStates.size(); i++) { in handleMessage() 672 cancelAndUnbindLocked(mUserStates.valueAt(i)); in handleMessage() 738 mUserStates.remove(userState.mUserId); in cancelAndUnbindLocked() 863 mUserStates.clear(); in resetStates()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 122 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in PrintManagerService.PrintManagerImpl 713 int numUserStates = mUserStates.size(); in dump() 715 userStatesToDump.add(mUserStates.valueAt(i)); in dump() 800 final int userCount = mUserStates.size(); in registerContentObservers() 803 || userId == mUserStates.keyAt(i)) { in registerContentObservers() 804 mUserStates.valueAt(i).updateIfNeededLocked(); in registerContentObservers() 971 UserState userState = mUserStates.get(userId); in getOrCreateUserStateLocked() 974 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 1013 UserState userState = mUserStates.get(userId); in handleUserStopped() 1016 mUserStates.remove(userId); in handleUserStopped()
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | TextClassificationManagerService.java | 143 mManagerService.mUserStates.remove(userId); in onStopUser() 154 final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TextClassificationManagerService 357 UserState result = mUserStates.get(userId); in getUserStateLocked() 360 mUserStates.put(userId, result); in getUserStateLocked() 367 return mUserStates.get(userId); in peekUserStateLocked() 402 int size = mUserStates.size(); in dump() 408 UserState userState = mUserStates.valueAt(i); in dump() 409 pw.printPair("User", mUserStates.keyAt(i)); in dump() 480 final int size = mUserStates.size(); in onTextClassifierServicePackageOverrideChanged() 482 UserState userState = mUserStates.valueAt(i); in onTextClassifierServicePackageOverrideChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 124 private final HashMap<Integer, UserState> mUserStates = new HashMap<>(); field in UserControllerTest 430 UserState ussUser2 = mUserStates.get(TEST_USER_ID2); in testUserLockingFromUserSwitchingForMultipleUsersNonDelayedLocking() 472 UserState uss = mUserStates.get(TEST_USER_ID); in testUserLockingFromUserSwitchingForMultipleUsersDelayedLockingMode() 489 UserState ussUser1 = mUserStates.get(TEST_USER_ID1); in testUserLockingFromUserSwitchingForMultipleUsersDelayedLockingMode() 553 mUserStates.put(userId, mUserController.getStartedUserState(userId)); in setUpAndStartUserInBackground() 562 UserState ussUser = mUserStates.get(userId); in assertUserLockedOrUnlockedAfterStopping() 583 mUserStates.put(newUserId, userState); in addForegroundUserAndContinueUserSwitch()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 519 private final WatchedUserStates mUserStates = new WatchedUserStates(); field in UserManagerService 631 mUserStates.put(UserHandle.USER_SYSTEM, UserState.STATE_BOOTING); in UserManagerService() 3991 synchronized (mUserStates) { in removeUserState() 3992 mUserStates.delete(userId); in removeUserState() 4719 synchronized (mUserStates) { in dump() 4720 state = mUserStates.get(userId, -1); in dump() 4791 synchronized (mUserStates) { in dump() 4792 pw.println(" Started users state: " + mUserStates); in dump() 5029 synchronized (mUserStates) { in isUserRunning() 5030 return mUserStates.get(userId, -1) >= 0; in isUserRunning() [all …]
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | RoleManagerService.java | 127 private final SparseArray<RoleUserState> mUserStates = new SparseArray<>(); field in RoleManagerService 339 RoleUserState userState = mUserStates.get(userId); in getOrCreateUserState() 342 mUserStates.put(userId, userState); in getOrCreateUserState() 396 userState = mUserStates.removeReturnOld(userId); in onRemoveUser()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 129 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TvInputManagerService 387 if (mUserStates.contains(mCurrentUserId)) { in switchUser() 388 UserState userState = mUserStates.get(mCurrentUserId); in switchUser() 456 UserState userState = mUserStates.get(userId); in removeUser() 495 mUserStates.remove(userId); in removeUser() 516 UserState userState = mUserStates.get(userId); in getOrCreateUserStateLocked() 519 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 2107 for (int i = 0; i < mUserStates.size(); i++) { in dump() 2108 int userId = mUserStates.keyAt(i); in dump() 2113 for (int i = 0; i < mUserStates.size(); i++) { in dump() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 245 private final SparseArray<AccessibilityUserState> mUserStates = new SparseArray<>(); field in AccessibilityManagerService 364 AccessibilityUserState state = mUserStates.get(userId); in getUserStateLocked() 367 mUserStates.put(userId, state); in getUserStateLocked() 1210 mUserStates.remove(userId); in removeUser() 2876 final int userCount = mUserStates.size(); in dump() 2878 mUserStates.valueAt(i).dump(fd, pw, args); in dump()
|