/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionsState.java | 712 private SparseArray<PermissionState> mUserStates = new SparseArray<>(); field in PermissionsState.PermissionData 720 final int otherStateCount = other.mUserStates.size(); in PermissionData() 722 final int otherUserId = other.mUserStates.keyAt(i); in PermissionData() 723 PermissionState otherState = other.mUserStates.valueAt(i); in PermissionData() 724 mUserStates.put(otherUserId, new PermissionState(otherState)); in PermissionData() 737 PermissionState userState = mUserStates.get(userId); in isGranted() 754 PermissionState userState = mUserStates.get(userId); in grant() 757 mUserStates.put(userId, userState); in grant() 774 PermissionState userState = mUserStates.get(userId); in revoke() 778 mUserStates.remove(userId); in revoke() [all …]
|
/frameworks/base/services/core/java/com/android/server/attention/ |
D | AttentionManagerService.java | 96 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in AttentionManagerService 309 UserState result = mUserStates.get(userId); in getOrCreateUserStateLocked() 312 mUserStates.put(userId, result); in getOrCreateUserStateLocked() 327 return mUserStates.get(userId); in peekUserStateLocked() 389 int size = mUserStates.size(); in dumpInternal() 395 UserState userState = mUserStates.valueAt(i); in dumpInternal() 594 for (int i = 0; i < mUserStates.size(); i++) { in handleMessage() 595 cancelAndUnbindLocked(mUserStates.valueAt(i)); in handleMessage() 661 mUserStates.remove(userState.mUserId); in cancelAndUnbindLocked() 786 mUserStates.clear(); in resetStates()
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | TextClassificationManagerService.java | 111 mManagerService.mUserStates.remove(userId); in onStopUser() 121 final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TextClassificationManagerService 327 UserState result = mUserStates.get(userId); in getUserStateLocked() 330 mUserStates.put(userId, result); in getUserStateLocked() 337 return mUserStates.get(userId); in peekUserStateLocked() 349 int size = mUserStates.size(); in dump() 354 UserState userState = mUserStates.valueAt(i); in dump()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 121 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in PrintManagerService.PrintManagerImpl 712 int numUserStates = mUserStates.size(); in dump() 714 userStatesToDump.add(mUserStates.valueAt(i)); in dump() 799 final int userCount = mUserStates.size(); in registerContentObservers() 802 || userId == mUserStates.keyAt(i)) { in registerContentObservers() 803 mUserStates.valueAt(i).updateIfNeededLocked(); in registerContentObservers() 970 UserState userState = mUserStates.get(userId); in getOrCreateUserStateLocked() 973 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 1012 UserState userState = mUserStates.get(userId); in handleUserStopped() 1015 mUserStates.remove(userId); in handleUserStopped()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 116 private final HashMap<Integer, UserState> mUserStates = new HashMap<>(); field in UserControllerTest 386 UserState ussUser2 = mUserStates.get(TEST_USER_ID2); in testUserStoppingForMultipleUsersNormalMode() 427 UserState uss = mUserStates.get(TEST_USER_ID); in testUserStoppingForMultipleUsersDelayedLockingMode() 444 UserState ussUser1 = mUserStates.get(TEST_USER_ID1); in testUserStoppingForMultipleUsersDelayedLockingMode() 463 mUserStates.put(newUserId, userState); in addForegroundUserAndContinueUserSwitch()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 447 private final SparseIntArray mUserStates = new SparseIntArray(); field in UserManagerService 553 mUserStates.put(UserHandle.USER_SYSTEM, UserState.STATE_BOOTING); in UserManagerService() 3111 synchronized (mUserStates) { in removeUserState() 3112 mUserStates.delete(userHandle); in removeUserState() 3708 synchronized (mUserStates) { in dump() 3709 state = mUserStates.get(userId, -1); in dump() 3778 synchronized (mUserStates) { in dump() 3779 pw.println(" Started users state: " + mUserStates); in dump() 3988 synchronized (mUserStates) { in isUserRunning() 3989 return mUserStates.get(userId, -1) >= 0; in isUserRunning() [all …]
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | RoleManagerService.java | 125 private final SparseArray<RoleUserState> mUserStates = new SparseArray<>(); field in RoleManagerService 315 RoleUserState userState = mUserStates.get(userId); in getOrCreateUserState() 318 mUserStates.put(userId, userState); in getOrCreateUserState() 371 userState = mUserStates.removeReturnOld(userId); in onRemoveUser()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 127 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TvInputManagerService 384 UserState userState = mUserStates.get(mCurrentUserId); in switchUser() 451 UserState userState = mUserStates.get(userId); in removeUser() 490 mUserStates.remove(userId); in removeUser() 507 UserState userState = mUserStates.get(userId); in getOrCreateUserStateLocked() 510 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 2016 for (int i = 0; i < mUserStates.size(); i++) { in dump() 2017 int userId = mUserStates.keyAt(i); in dump() 2022 for (int i = 0; i < mUserStates.size(); i++) { in dump() 2023 int userId = mUserStates.keyAt(i); in dump() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 257 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in AccessibilityManagerService 347 UserState state = mUserStates.get(userId); in getUserStateLocked() 350 mUserStates.put(userId, state); in getUserStateLocked() 370 mUserStates.put(userId, userState); in setBindInstantServiceAllowed() 787 final int userCount = mUserStates.size(); in removeAccessibilityInteractionConnection() 789 UserState userState = mUserStates.valueAt(i); in removeAccessibilityInteractionConnection() 798 + mUserStates.keyAt(i) + " and token: " + window.asBinder()); in removeAccessibilityInteractionConnection() 1157 mUserStates.remove(userId); in removeUser() 2542 final int userCount = mUserStates.size(); in dump() 2544 UserState userState = mUserStates.valueAt(i); in dump()
|