Home
last modified time | relevance | path

Searched refs:mUserStates (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionState.java37 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 …]
DDevicePermissionState.java28 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/core/java/com/android/server/pm/verify/domain/models/
DDomainVerificationPkgState.java65 private final SparseArray<DomainVerificationInternalUserState> mUserStates; field in DomainVerificationPkgState
93 return mUserStates.get(userId); in getUserState()
99 DomainVerificationInternalUserState userState = mUserStates.get(userId); in getOrCreateUserState()
102 mUserStates.put(userId, userState); in getOrCreateUserState()
108 mUserStates.remove(userId); in removeUser()
112 mUserStates.clear(); in removeAllUsers()
116 return mUserStates.contentHashCode(); in userStatesHashCode()
121 return mUserStates.contentEquals(other); in userStatesEquals()
180 this.mUserStates = userStates; in DomainVerificationPkgState()
182 NonNull.class, null, mUserStates); in DomainVerificationPkgState()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSettingBuilder.java44 private SparseArray<PackageUserState> mUserStates = new SparseArray<>(); field in PackageSettingBuilder
141 if (mUserStates.indexOfKey(userId) < 0) { in setInstantAppUserState()
142 mUserStates.put(userId, new PackageUserState()); in setInstantAppUserState()
144 mUserStates.get(userId).instantApp = isInstant; in setInstantAppUserState()
149 if (mUserStates.indexOfKey(userId) < 0) { in setInstallState()
150 mUserStates.put(userId, new PackageUserState()); in setInstallState()
152 mUserStates.get(userId).installed = installed; in setInstallState()
187 for (int i = 0; i < mUserStates.size(); i++) { in build()
188 packageSetting.setUserState(mUserStates.keyAt(i), mUserStates.valueAt(i)); in build()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationLegacySettings.java189 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/
DFaceUtils.java41 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/
DFingerprintUtils.java53 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/apphibernation/
DAppHibernationService.java115 private final SparseArray<Map<String, UserLevelState>> mUserStates = new SparseArray<>(); field in AppHibernationService
222 final Map<String, UserLevelState> packageStates = mUserStates.get(userId); in isHibernatingForUser()
277 final Map<String, UserLevelState> packageStates = mUserStates.get(userId); in setHibernatingForUser()
303 List<UserLevelState> states = new ArrayList<>(mUserStates.get(userId).values()); in setHibernatingForUser()
358 Map<String, UserLevelState> userStates = mUserStates.get(userId); in getHibernatingPackagesForUser()
530 mUserStates.put(userId, userLevelStates); in initializeUserHibernationStates()
586 for (UserLevelState userState : mUserStates.get(userId).values()) { in onUserUnlocking()
604 mUserStates.remove(userId); in onUserStopping()
610 if (!mUserStates.contains(userId)) { in onPackageAdded()
615 mUserStates.get(userId).put(packageName, userState); in onPackageAdded()
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java123 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in PrintManagerService.PrintManagerImpl
714 int numUserStates = mUserStates.size(); in dump()
716 userStatesToDump.add(mUserStates.valueAt(i)); in dump()
801 final int userCount = mUserStates.size(); in registerContentObservers()
804 || userId == mUserStates.keyAt(i)) { in registerContentObservers()
805 mUserStates.valueAt(i).updateIfNeededLocked(); in registerContentObservers()
972 UserState userState = mUserStates.get(userId); in getOrCreateUserStateLocked()
975 mUserStates.put(userId, userState); in getOrCreateUserStateLocked()
1014 UserState userState = mUserStates.get(userId); in handleUserStopped()
1017 mUserStates.remove(userId); in handleUserStopped()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java160 mManagerService.mUserStates.remove(userId); in onUserStopping()
171 final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TextClassificationManagerService
416 UserState result = mUserStates.get(userId); in getUserStateLocked()
419 mUserStates.put(userId, result); in getUserStateLocked()
426 return mUserStates.get(userId); in peekUserStateLocked()
461 int size = mUserStates.size(); in dump()
467 UserState userState = mUserStates.valueAt(i); in dump()
468 pw.printPair("User", mUserStates.keyAt(i)); in dump()
550 final int size = mUserStates.size(); in onTextClassifierServicePackageOverrideChanged()
552 UserState userState = mUserStates.valueAt(i); in onTextClassifierServicePackageOverrideChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java127 private final HashMap<Integer, UserState> mUserStates = new HashMap<>(); field in UserControllerTest
437 UserState ussUser2 = mUserStates.get(TEST_USER_ID2); in testUserLockingFromUserSwitchingForMultipleUsersNonDelayedLocking()
479 UserState uss = mUserStates.get(TEST_USER_ID); in testUserLockingFromUserSwitchingForMultipleUsersDelayedLockingMode()
496 UserState ussUser1 = mUserStates.get(TEST_USER_ID1); in testUserLockingFromUserSwitchingForMultipleUsersDelayedLockingMode()
594 mUserStates.put(userId, mUserController.getStartedUserState(userId)); in setUpAndStartUserInBackground()
604 mUserStates.put(userId, mUserController.getStartedUserState(userId)); in setUpAndStartProfileInBackground()
625 UserState ussUser = mUserStates.get(userId); in assertUserLockedOrUnlockedState()
646 mUserStates.put(newUserId, userState); in addForegroundUserAndContinueUserSwitch()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerServiceTest.java136 mA11yms.mUserStates.put(mA11yms.getCurrentUserIdLocked(), userState); in setUp()
217 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testOnMagnificationTransitionFailed_capabilitiesIsAll_fallBackToPreviousMode()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java570 private final WatchedUserStates mUserStates = new WatchedUserStates(); field in UserManagerService
683 mUserStates.put(UserHandle.USER_SYSTEM, UserState.STATE_BOOTING); in UserManagerService()
3848 synchronized (mUserStates) { in convertPreCreatedUserIfPossible()
3849 if (mUserStates.has(preCreatedUserData.info.id)) { in convertPreCreatedUserIfPossible()
4400 synchronized (mUserStates) { in removeUserState()
4401 mUserStates.delete(userId); in removeUserState()
5175 synchronized (mUserStates) { in dump()
5176 state = mUserStates.get(userId, -1); in dump()
5249 synchronized (mUserStates) { in dump()
5251 final int size = mUserStates.states.size(); in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java152 private final SparseArray<UserState> mUserStates = new SparseArray<>(); field in TvInputManagerService
635 mUserStates.remove(userId); in removeUser()
660 mUserStates.put(userId, userState); in getOrCreateUserStateLocked()
2423 for (int i = 0; i < mUserStates.size(); i++) { in dump()
2424 int userId = mUserStates.keyAt(i); in dump()
2429 for (int i = 0; i < mUserStates.size(); i++) { in dump()
2430 int userId = mUserStates.keyAt(i); in dump()
3364 return mUserStates.get(userId); in getUserStateLocked()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java243 final SparseArray<AccessibilityUserState> mUserStates = new SparseArray<>(); field in AccessibilityManagerService
395 AccessibilityUserState state = mUserStates.get(userId); in getUserStateLocked()
398 mUserStates.put(userId, state); in getUserStateLocked()
1424 mUserStates.remove(userId); in removeUser()
3308 final int userCount = mUserStates.size(); in dump()
3310 mUserStates.valueAt(i).dump(fd, pw, args); in dump()