Home
last modified time | relevance | path

Searched refs:mUserState (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityUserStateTest.java96 private AccessibilityUserState mUserState; field in AccessibilityUserStateTest
118 mUserState = new AccessibilityUserState(USER_ID, mMockContext, mMockListener); in setUp()
128 mUserState.getBoundServicesLocked().add(mMockConnection); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
129 mUserState.getBindingServicesLocked().add(COMPONENT_NAME); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
130 mUserState.setLastSentClientStateLocked( in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
134 mUserState.setNonInteractiveUiTimeoutLocked(30); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
135 mUserState.setInteractiveUiTimeoutLocked(30); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
136 mUserState.mEnabledServices.add(COMPONENT_NAME); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
137 mUserState.mTouchExplorationGrantedServices.add(COMPONENT_NAME); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
138 mUserState.mAccessibilityShortcutKeyTargets.add(COMPONENT_NAME.flattenToString()); in onSwitchToAnotherUser_userStateClearedNonDefaultValues()
[all …]
DAccessibilityManagerServiceTest.java101 private AccessibilityUserState mUserState; field in AccessibilityManagerServiceTest
143 mUserState = new AccessibilityUserState(UserHandle.USER_SYSTEM, mMockContext, mA11yms); in setupAccessibilityServiceConnection()
151 mUserState, in setupAccessibilityServiceConnection()
210 mA11yms.notifySystemActionsChangedLocked(mUserState); in testOnSystemActionsChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java112 private final SparseArray<PackageUserState> mUserState = new SparseArray<>(); field in PackageSettingBase
180 for (int i = 0; i < mUserState.size(); i++) { in PackageSettingBase()
181 mUserState.put(mUserState.keyAt(i), new PackageUserState(mUserState.valueAt(i))); in PackageSettingBase()
266 mUserState.clear(); in doCopy()
267 for (int i = 0; i < orig.mUserState.size(); i++) { in doCopy()
268 mUserState.put(orig.mUserState.keyAt(i), orig.mUserState.valueAt(i)); in doCopy()
286 PackageUserState state = mUserState.get(userId); in modifyUserState()
289 mUserState.put(userId, state); in modifyUserState()
296 PackageUserState state = mUserState.get(userId); in readUserState()
374 return mUserState; in getUserState()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryManager.java64 private final SparseArray<NotificationHistoryDatabase> mUserState = new SparseArray<>(); field in NotificationHistoryManager
119 mUserState.put(userId, null); // release the service (mainly for GC) in onUserStopped()
145 final NotificationHistoryDatabase userHistory = mUserState.get(userId); in onPackageRemoved()
204 final int userCount = mUserState.size(); in triggerWriteToDisk()
206 final int userId = mUserState.keyAt(i); in triggerWriteToDisk()
210 NotificationHistoryDatabase userHistory = mUserState.get(userId); in triggerWriteToDisk()
294 mUserState.put(userId, null); in disableHistory()
304 mUserState.put(userId, null); in getUserHistoryAndInitializeIfNeededLocked()
307 NotificationHistoryDatabase userHistory = mUserState.get(userId); in getUserHistoryAndInitializeIfNeededLocked()
331 mUserState.put(userId, userHistory); in getUserHistoryAndInitializeIfNeededLocked()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java175 private final SparseArray<UserUsageStatsService> mUserState = new SparseArray<>(); field in UsageStatsService
343 mUserState.put(user.getUserIdentifier(), null); in onUserStarting()
366 final UserUsageStatsService userService = mUserState.get(userId); in onUserStopping()
371 mUserState.put(userId, null); // release the service (mainly for GC) in onUserStopping()
586 final UserUsageStatsService service = mUserState.get(userId); in getUserUsageStatsServiceLocked()
606 mUserState.put(userId, service); in initializeUserUsageStatsServiceLocked()
1079 final int userCount = mUserState.size(); in reportEventToAllUserId()
1082 reportEventOrAddToQueue(mUserState.keyAt(i), copy); in reportEventToAllUserId()
1111 mUserState.remove(userId); in onUserRemoved()
1132 final UserUsageStatsService userService = mUserState.get(userId); in onPackageRemoved()
[all …]