/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionState.java | 37 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in LegacyPermissionState 55 mUserStates.clear(); in copyFrom() 56 final int userStatesSize = other.mUserStates.size(); in copyFrom() 58 mUserStates.put(other.mUserStates.keyAt(i), in copyFrom() 59 new UserState(other.mUserStates.valueAt(i))); in copyFrom() 75 mUserStates.clear(); in reset() 93 final int userStatesSize = mUserStates.size(); in equals() 94 if (userStatesSize != other.mUserStates.size()) { in equals() 98 final int userId = mUserStates.keyAt(i); in equals() 99 if (!Objects.equals(mUserStates.get(userId), other.mUserStates.get(userId))) { in equals() [all …]
|
D | DevicePermissionState.java | 28 private final SparseArray<UserPermissionState> mUserStates = new SparseArray<>(); field in DevicePermissionState 32 return mUserStates.get(userId); in getUserState() 37 UserPermissionState userState = mUserStates.get(userId); in getOrCreateUserState() 40 mUserStates.put(userId, userState); in getOrCreateUserState() 46 mUserStates.delete(userId); in removeUserState() 50 final int userStatesSize = mUserStates.size(); in getUserIds() 53 final int userId = mUserStates.keyAt(i); in getUserIds()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 44 private SparseArray<PackageUserStateImpl> mUserStates = new SparseArray<>(); field in PackageSettingBuilder 128 if (mUserStates.indexOfKey(userId) < 0) { in setInstantAppUserState() 129 mUserStates.put(userId, new PackageUserStateImpl()); in setInstantAppUserState() 131 mUserStates.get(userId).setInstantApp(isInstant); in setInstantAppUserState() 136 if (mUserStates.indexOfKey(userId) < 0) { in setInstallState() 137 mUserStates.put(userId, new PackageUserStateImpl()); in setInstallState() 139 mUserStates.get(userId).setInstalled(installed); in setInstallState() 177 for (int i = 0; i < mUserStates.size(); i++) { in build() 178 packageSetting.setUserState(mUserStates.keyAt(i), mUserStates.valueAt(i)); in build()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/models/ |
D | DomainVerificationPkgState.java | 67 private final SparseArray<DomainVerificationInternalUserState> mUserStates; field in DomainVerificationPkgState 110 return mUserStates.get(userId); in getUserState() 116 DomainVerificationInternalUserState userState = mUserStates.get(userId); in getOrCreateUserState() 119 mUserStates.put(userId, userState); in getOrCreateUserState() 125 mUserStates.remove(userId); in removeUser() 129 mUserStates.clear(); in removeAllUsers() 133 return mUserStates.contentHashCode(); in userStatesHashCode() 138 return mUserStates.contentEquals(other); in userStatesEquals() 200 this.mUserStates = userStates; in DomainVerificationPkgState() 202 NonNull.class, null, mUserStates); in DomainVerificationPkgState() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationLegacySettings.java | 189 private SparseIntArray mUserStates; field in DomainVerificationLegacySettings.LegacyState 199 return mUserStates.get(userId, in getUserState() 205 return mUserStates; in getUserStates() 213 if (mUserStates == null) { in addUserState() 214 mUserStates = new SparseIntArray(1); in addUserState() 216 mUserStates.put(userId, state); in addUserState()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/ |
D | FaceUtils.java | 41 private final SparseArray<FaceUserState> mUserStates; field in FaceUtils 84 mUserStates = new SparseArray<>(); in FaceUtils() 129 FaceUserState state = mUserStates.get(userId); in getStateForUser() 132 mUserStates.put(userId, state); in getStateForUser()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/ |
D | FingerprintUtils.java | 53 private final SparseArray<FingerprintUserState> mUserStates; field in FingerprintUtils 99 mUserStates = new SparseArray<>(); in FingerprintUtils() 145 FingerprintUserState state = mUserStates.get(userId); in getStateForUser() 148 mUserStates.put(userId, state); in getStateForUser()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSetting.java | 207 private final SparseArray<PackageUserStateImpl> mUserStates = new SparseArray<>(); field in PackageSetting 376 int userStateCount = mUserStates.size(); 378 mUserStates.valueAt(i).setFirstInstallTimeMillis(firstInstallTime); 743 mUserStates.clear(); 744 for (int i = 0; i < other.mUserStates.size(); i++) { 746 mUserStates.put(other.mUserStates.keyAt(i), 747 other.mUserStates.valueAt(i).snapshot()); 749 var userState = other.mUserStates.valueAt(i); 751 mUserStates.put(other.mUserStates.keyAt(i), userState); 762 PackageUserStateImpl state = mUserStates.get(userId); [all …]
|
D | UserManagerService.java | 931 private final WatchedUserStates mUserStates = new WatchedUserStates(); field in UserManagerService 1077 mUserStates.put(UserHandle.USER_SYSTEM, UserState.STATE_BOOTING); in UserManagerService() 1995 synchronized (mUserStates) { in showConfirmCredentialToDisableQuietMode() 1996 state = mUserStates.get(userId, UserState.STATE_NONE); in showConfirmCredentialToDisableQuietMode() 5753 synchronized (mUserStates) { 5754 if (mUserStates.has(preCreatedUserData.info.id)) { 5937 synchronized (mUserStates) { 5939 mUserStates.get(user.id, -1) == UserState.STATE_RUNNING_UNLOCKED; 6411 synchronized (mUserStates) { 6412 mUserStates.delete(userId); [all …]
|
/frameworks/base/services/core/java/com/android/server/apphibernation/ |
D | AppHibernationService.java | 120 private final SparseArray<Map<String, UserLevelState>> mUserStates = new SparseArray<>(); field in AppHibernationService 241 final Map<String, UserLevelState> packageStates = mUserStates.get(userId); in isHibernatingForUser() 298 final Map<String, UserLevelState> packageStates = mUserStates.get(realUserId); in setHibernatingForUser() 331 List<UserLevelState> states = new ArrayList<>(mUserStates.get(realUserId).values()); in setHibernatingForUser() 391 Map<String, UserLevelState> userStates = mUserStates.get(userId); in getHibernatingPackagesForUser() 428 final Map<String, UserLevelState> userPackageStates = mUserStates.get(userId); in getHibernationStatsForUser() 634 mUserStates.put(userId, userLevelStates); in initializeUserHibernationStates() 690 for (UserLevelState userState : mUserStates.get(userId).values()) { in onUserUnlocking() 708 mUserStates.remove(userId); in onUserStopping() 714 if (!mUserStates.contains(userId)) { in onPackageAdded() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityManagerServiceTest.java | 268 mA11yms.mUserStates.put(mA11yms.getCurrentUserIdLocked(), userState); in setUp() 285 final AccessibilityUserState userState = mA11yms.mUserStates.get( in setupAccessibilityServiceConnection() 355 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testOnSystemActionsChanged() 452 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testOnMagnificationTransitionFailed_capabilitiesIsAll_fallBackToPreviousMode() 469 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testOnMagnificationTransitionSuccess_capabilitiesIsAll_inputFilterRefreshMode() 489 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testChangeMagnificationModeOnDefaultDisplay_capabilitiesIsAll_persistChangedMode() 519 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testChangeMagnificationModeOnTestDisplay_capabilitiesIsAll_transitMode() 536 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testFollowTypingEnabled_defaultEnabledAndThenDisable_propagateToController() 553 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testSettingsAlwaysOn_setEnabled_featureFlagDisabled_doNothing() 570 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testSettingsAlwaysOn_setEnabled_featureFlagEnabled_propagateToController() [all …]
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 123 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in PrintManagerService.PrintManagerImpl 774 int numUserStates = mUserStates.size(); in dump() 776 userStatesToDump.add(mUserStates.valueAt(i)); in dump() 861 final int userCount = mUserStates.size(); in registerContentObservers() 864 || userId == mUserStates.keyAt(i)) { in registerContentObservers() 865 mUserStates.valueAt(i).updateIfNeededLocked(); in registerContentObservers() 1039 UserState userState = mUserStates.get(userId); in getOrCreateUserStateLocked() 1042 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 1083 UserState userState = mUserStates.get(userId); in handleUserStopped() 1086 mUserStates.remove(userId); in handleUserStopped()
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | TextClassificationManagerService.java | 162 mManagerService.mUserStates.remove(userId); in onUserStopping() 173 final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TextClassificationManagerService 415 UserState result = mUserStates.get(userId); in getUserStateLocked() 418 mUserStates.put(userId, result); in getUserStateLocked() 425 return mUserStates.get(userId); in peekUserStateLocked() 460 int size = mUserStates.size(); in dump() 466 UserState userState = mUserStates.valueAt(i); in dump() 467 pw.printPair("User", mUserStates.keyAt(i)); in dump() 560 final int size = mUserStates.size(); in onTextClassifierServicePackageOverrideChanged() 562 UserState userState = mUserStates.valueAt(i); in onTextClassifierServicePackageOverrideChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 163 private final HashMap<Integer, UserState> mUserStates = new HashMap<>(); field in UserControllerTest 733 UserState ussUser2 = mUserStates.get(TEST_USER_ID2); in testUserLockingFromUserSwitchingForMultipleUsersNonDelayedLocking() 777 UserState uss = mUserStates.get(TEST_USER_ID); in testUserLockingFromUserSwitchingForMultipleUsersDelayedLockingMode() 794 UserState ussUser1 = mUserStates.get(TEST_USER_ID1); in testUserLockingFromUserSwitchingForMultipleUsersDelayedLockingMode() 833 mUserController.finishUserSwitch(mUserStates.get(PARENT_ID)); in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped() 848 mUserController.finishUserSwitch(mUserStates.get(FG_USER_ID)); in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped() 873 mUserController.finishUserSwitch(mUserStates.get(PARENT_ID)); in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped() 1482 mUserStates.put(userId, mUserController.getStartedUserState(userId)); in setUpAndStartUserInBackground() 1491 mUserStates.put(userId, mUserController.getStartedUserState(userId)); in setUpAndStartProfileInBackground() 1512 UserState ussUser = mUserStates.get(userId); in assertUserLockedOrUnlockedState() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 172 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TvInputManagerService 682 mUserStates.remove(userId); in removeUser() 707 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 2947 for (int i = 0; i < mUserStates.size(); i++) { in dump() 2948 int userId = mUserStates.keyAt(i); in dump() 2953 for (int i = 0; i < mUserStates.size(); i++) { in dump() 2954 int userId = mUserStates.keyAt(i); in dump() 4384 return mUserStates.get(userId); in getUserStateLocked()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 343 final SparseArray<AccessibilityUserState> mUserStates = new SparseArray<>(); field in AccessibilityManagerService 732 AccessibilityUserState state = mUserStates.get(userId); in getUserStateLocked() 735 mUserStates.put(userId, state); in getUserStateLocked() 2036 mUserStates.remove(userId); in removeUser() 5024 final int userCount = mUserStates.size(); in dump() 5026 mUserStates.valueAt(i).dump(fd, pw, args); in dump()
|
/frameworks/base/services/core/java/com/android/server/tv/interactive/ |
D | TvInteractiveAppManagerService.java | 116 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TvInteractiveAppManagerService 692 mUserStates.remove(userId); in removeUser() 819 mUserStates.put(userId, userState); in getOrCreateUserStateLocked() 826 return mUserStates.get(userId); in getUserStateLocked()
|