Home
last modified time | relevance | path

Searched refs:mCurrentUserId (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsShellCommand.java54 private int mCurrentUserId; field in LockSettingsShellCommand
77 mCurrentUserId = ActivityManager.getService().getCurrentUser().id; in onCommand()
207 mCurrentUserId = UserHandle.parseUserArg(getNextArgRequired()); in parseArgs()
208 if (mCurrentUserId == UserHandle.USER_CURRENT) { in parseArgs()
209 mCurrentUserId = ActivityManager.getCurrentUser(); in parseArgs()
223 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential()
224 final int quality = mLockPatternUtils.getKeyguardStoredPasswordQuality(mCurrentUserId); in getOldCredential()
231 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential()
247 mLockPatternUtils.setLockCredential(pattern, getOldCredential(), mCurrentUserId); in runSetPattern()
257 mLockPatternUtils.setLockCredential(password, getOldCredential(), mCurrentUserId); in runSetPassword()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeUserInfoHelper.java40 private int mCurrentUserId; field in FakeUserInfoHelper
43 mCurrentUserId = DEFAULT_USERID; in FakeUserInfoHelper()
80 int oldUserId = mCurrentUserId; in setCurrentUserIds()
81 mCurrentUserId = parentUser; in setCurrentUserIds()
91 if (oldUserId != mCurrentUserId) { in setCurrentUserIds()
92 dispatchOnCurrentUserChanged(oldUserId, mCurrentUserId); in setCurrentUserIds()
93 setUserVisibleInternal(mCurrentUserId, true); in setCurrentUserIds()
125 return ArrayUtils.contains(getProfileIds(mCurrentUserId), userId); in isCurrentUserId()
135 return mCurrentUserId; in getCurrentUserId()
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DOverlayDisplayMonitor.java43 private int mCurrentUserId; field in OverlayDisplayMonitor
59 mCurrentUserId = userTo; in handleCurrentUserSwitching()
66 if (!mHelper.assignUserToExtraDisplay(mCurrentUserId, displayId)) {
68 displayId, mCurrentUserId);
71 mOverlayDisplays.put(displayId, mCurrentUserId);
72 Slogf.i(TAG, "Assigned OverlayDisplay=%d to User=%d", displayId, mCurrentUserId);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationScaleProvider.java51 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in MagnificationScaleProvider
70 mCurrentUserId)); in putScale() local
88 DEFAULT_MAGNIFICATION_SCALE, mCurrentUserId); in getScale()
99 SparseArray<Float> scales = mUsersScales.get(mCurrentUserId); in getScalesWithCurrentUser()
102 mUsersScales.put(mCurrentUserId, scales); in getScalesWithCurrentUser()
110 mCurrentUserId = userId; in onUserChanged()
133 + "mCurrentUserId=" + mCurrentUserId in toString()
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardStateMonitor.java48 private int mCurrentUserId; field in KeyguardStateMonitor
55 mCurrentUserId = ActivityManager.getCurrentUser(); in KeyguardStateMonitor()
82 return mCurrentUserId; in getCurrentUser()
87 if (userId != mCurrentUserId) return; in onShowingStateChanged()
100 mCurrentUserId = userId; in setCurrentUser()
126 pw.println(prefix + "mCurrentUserId=" + mCurrentUserId); in dump()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotCacheTest.java100 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached()
102 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
106 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
110 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
117 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk()
119 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
123 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
DTaskSnapshotLowResDisabledTest.java130 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached()
132 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
136 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
140 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
144 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
148 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTestCurrentUserIdentityInjector.java24 private Integer mCurrentUserId; field in TestCurrentUserIdentityInjector
28 mCurrentUserId = userId; in initializeCurrentUserId()
33 return mCurrentUserId; in getCurrentUserId()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DHidlToAidlSensorAdapter.java64 private int mCurrentUserId = UserHandle.USER_NULL; field in HidlToAidlSensorAdapter
70 if (mCurrentUserId != newUserId) {
113 mCurrentUserId, true /* forceUpdateAuthenticatorIds */)); in HidlToAidlSensorAdapter()
120 mCurrentUserId = UserHandle.USER_NULL; in HidlToAidlSensorAdapter()
144 gestureAvailabilityDispatcher, () -> mCurrentUserId, getUserSwitchProvider())); in init()
177 mCurrentUserId, getAidlResponseHandler()); in getSession()
185 mCurrentUserId, in getAidlResponseHandler()
233 mCurrentUserId = UserHandle.USER_NULL; in getUserSwitchProvider()
268 getBiometricContext(), () -> mCurrentUserId,
290 mCurrentUserId = newUserId;
DFingerprintUpdateActiveUserClient.java48 private final Supplier<Integer> mCurrentUserId; field in FingerprintUpdateActiveUserClient
64 mCurrentUserId = currentUserId; in FingerprintUpdateActiveUserClient()
74 if (mCurrentUserId.get() == getTargetUserId() && !mForceUpdateAuthenticatorId) { in start()
75 Slog.d(TAG, "Already user: " + mCurrentUserId + ", returning"); in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerImpl.java160 if (mCurrentUserId == getSendingUserId()) {
181 sendingUserId = mCurrentUserId;
191 if (mCurrentUserId == sendingUserId) {
257 mCurrentUserId = newUser;
260 Log.v(TAG, "userId " + mCurrentUserId + " is in the house");
265 mPresenter.onUserSwitched(mCurrentUserId);
272 listener.onUserChanged(mCurrentUserId);
284 protected int mCurrentUserId = 0; field in NotificationLockscreenUserManagerImpl
315 mCurrentUserId = mUserTracker.getUserId(); in NotificationLockscreenUserManagerImpl()
375 if (mCurrentUserId == user.getIdentifier()) { in init()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
DHidlToAidlSensorAdapter.java57 private int mCurrentUserId = UserHandle.USER_NULL; field in HidlToAidlSensorAdapter
65 if (newUserId != mCurrentUserId) {
108 scheduleFaceUpdateActiveUserClient(mCurrentUserId); in HidlToAidlSensorAdapter()
114 mCurrentUserId = UserHandle.USER_NULL; in HidlToAidlSensorAdapter()
146 null /* gestureAvailabilityTracker */, () -> mCurrentUserId, in init()
171 mCurrentUserId, getAidlResponseHandler()); in getSession()
179 mCurrentUserId, in getAidlResponseHandler()
224 mCurrentUserId = newUserId; in handleUserChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java108 private int mCurrentUserId; field in SecurityControllerImpl
204 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null; in hasProfileOwner()
209 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
225 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName()
251 return getWorkProfileUserId(mCurrentUserId) != UserHandle.USER_NULL; in hasWorkProfile()
256 final UserHandle userHandle = UserHandle.of(getWorkProfileUserId(mCurrentUserId)); in isWorkProfileOn()
311 UserHandle currentUser = new UserHandle(mCurrentUserId); in isVpnRestricted()
312 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted()
353 Boolean hasCACerts = mHasCACerts.get(mCurrentUserId); in hasCACertInCurrentUser()
359 int userId = getWorkProfileUserId(mCurrentUserId); in hasCACertInWorkProfile()
[all …]
DClock.java88 private int mCurrentUserId; field in Clock
125 mCurrentUserId = newUser;
157 bundle.putInt(CURRENT_USER_ID, mCurrentUserId); in onSaveInstanceState()
177 mCurrentUserId = bundle.getInt(CURRENT_USER_ID); in onRestoreInstanceState()
209 mCurrentUserId = mUserTracker.getUserId(); in onAttachedToWindow()
435 boolean is24 = DateFormat.is24HourFormat(context, mCurrentUserId); in getSmallTime()
523 boolean is24 = DateFormat.is24HourFormat(getContext(), mCurrentUserId); in dispatchDemoCommand()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DDreamMediaEntryComplicationTest.java91 private final Integer mCurrentUserId = 99; field in DreamMediaEntryComplicationTest
169 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaOverLockscreen()
188 when(mActivityIntentHelper.wouldShowOverLockscreen(mIntent, mCurrentUserId)).thenReturn( in testClickToOpenMediaOverLockscreen()
206 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaDismissingLockscreen()
225 when(mActivityIntentHelper.wouldShowOverLockscreen(mIntent, mCurrentUserId)).thenReturn( in testClickToOpenMediaDismissingLockscreen()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java334 private int mCurrentUserId; field in InputMethodManagerService
520 return getInputMethodBindingController(mCurrentUserId).getSelectedMethodId(); in getSelectedMethodIdLocked()
526 return InputMethodSettingsRepository.get(mCurrentUserId).getMethodMap().get(imeId); in queryInputMethodForCurrentUserLocked()
602 return getInputMethodBindingController(mCurrentUserId).getCurToken(); in getCurTokenLocked()
610 return getInputMethodBindingController(mCurrentUserId).getCurTokenDisplayId(); in getCurTokenDisplayIdLocked()
626 return getInputMethodBindingController(mCurrentUserId).getCurMethod(); in getCurMethodLocked()
789 String newEnabled = InputMethodSettingsRepository.get(mCurrentUserId) in onChange()
823 if (senderUserId != mCurrentUserId) { in onReceive()
881 final boolean retval = userId == mCurrentUserId; in isChangingPackagesOfCurrentUserLocked()
897 InputMethodSettingsRepository.get(mCurrentUserId); in onHandleForceStop()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarRemoteInputCallbackTest.java67 private int mCurrentUserId = 0; field in StatusBarRemoteInputCallbackTest
90 when(mNotificationLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
94 .putExtra(Intent.EXTRA_USER_HANDLE, mCurrentUserId + 1); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
/frameworks/base/services/core/java/com/android/server/display/
DAmbientBrightnessStatsTracker.java70 private @UserIdInt int mCurrentUserId; field in AmbientBrightnessStatsTracker
91 mAmbientBrightnessStats.log(mCurrentUserId, mInjector.getLocalDate(), in stop()
100 if (userId == mCurrentUserId) { in add()
101 mAmbientBrightnessStats.log(mCurrentUserId, mInjector.getLocalDate(), in add()
107 mCurrentUserId = userId; in add()
/frameworks/base/services/core/java/com/android/server/pm/
DUserVisibilityMediator.java142 private int mCurrentUserId = INITIAL_CURRENT_USER_ID; field in UserVisibilityMediator
289 mCurrentUserId = userId; in assignUserToDisplayOnStart()
485 if (userId == mCurrentUserId) { in canAssignUserToDisplayLocked()
1052 ipw.println(mCurrentUserId); in dump()
1148 return mCurrentUserId; in getCurrentUserId()
1155 if (userId == USER_NULL || mCurrentUserId == USER_NULL) { in isCurrentUserLocked()
1158 return mCurrentUserId == userId; in isCurrentUserLocked()
1164 if (userId == USER_NULL || mCurrentUserId == USER_NULL) { in isCurrentUserOrRunningProfileOfCurrentUser()
1167 if (mCurrentUserId == userId) { in isCurrentUserOrRunningProfileOfCurrentUser()
1172 mCurrentUserId || profileGroupId == ALWAYS_VISIBLE_PROFILE_GROUP_ID; in isCurrentUserOrRunningProfileOfCurrentUser()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DPolicyWarningUIController.java218 private int mCurrentUserId; field in PolicyWarningUIController.NotificationController
265 mCurrentUserId = userId; in onSwitchUser()
277 if (userId != mCurrentUserId) { in trySendNotification()
310 if (userId != mCurrentUserId) { in tryLaunchSettings()
325 if (userId != mCurrentUserId) { in onNotificationCanceled()
DAccessibilityManagerService.java354 private @UserIdInt int mCurrentUserId = UserHandle.USER_SYSTEM; field in AccessibilityManagerService
387 return getUserStateLocked(mCurrentUserId); in getCurrentUserStateLocked()
602 return mCurrentUserId; in getCurrentUserIdLocked()
633 token = mA11yWindowManager.getWindowTokenForUserAndWindowIdLocked(mCurrentUserId, in getWindowTransformationMatrixAndMagnificationSpec()
794 userState.mEnabledServices, mCurrentUserId); in onPackageRemovedLocked()
798 userState.mTouchExplorationGrantedServices, mCurrentUserId); in onPackageRemovedLocked()
992 userId = mCurrentUserId; in disableAccessibilityMenuToMigrateIfNeeded()
1102 + " and userId:" + mCurrentUserId); in addClient()
1106 (resolvedUserId == mCurrentUserId) ? getClientStateLocked(userState) : 0, in addClient()
1172 if (resolvedUserId == mCurrentUserId) { in sendAccessibilityEvent()
[all …]
DAccessibilitySecurityPolicy.java115 private int mCurrentUserId = UserHandle.USER_NULL; field in AccessibilitySecurityPolicy
148 mPolicyWarningUIController.onNonA11yCategoryServiceBound(mCurrentUserId, service); in setSendingNonA11yToolNotificationLocked()
761 if (mCurrentUserId == userId) { in onSwitchUserLocked()
768 mPolicyWarningUIController.onNonA11yCategoryServiceUnbound(mCurrentUserId, in onSwitchUserLocked()
772 mCurrentUserId = userId; in onSwitchUserLocked()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java159 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in TvInputManagerService
200 getOrCreateUserStateLocked(mCurrentUserId); in TvInputManagerService()
217 buildTvInputListLocked(mCurrentUserId, null); in onBootPhase()
218 buildTvContentRatingSystemListLocked(mCurrentUserId); in onBootPhase()
228 if (mCurrentUserId != user.getUserIdentifier()) { in onUserUnlocking()
231 buildTvInputListLocked(mCurrentUserId, null); in onUserUnlocking()
232 buildTvContentRatingSystemListLocked(mCurrentUserId); in onUserUnlocking()
256 if (mCurrentUserId == userId || mRunningProfiles.contains(userId)) { in registerBroadcastReceivers()
486 if (userId == mCurrentUserId || mRunningProfiles.contains(userId)) { in startUser()
494 && parentInfo.id == mCurrentUserId) { in startUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/
DBiometricSchedulerTest.java111 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in BiometricSchedulerTest
117 mCurrentUserId = newUserId;
123 mCurrentUserId = UserHandle.USER_NULL;
159 () -> mCurrentUserId, in setUp()
854 mCurrentUserId = UserHandle.USER_NULL; in testScheduleOperation_whenNoUser()
869 mCurrentUserId = UserHandle.USER_NULL; in testScheduleOperation_whenNoUser_notStarted()
893 mCurrentUserId = UserHandle.USER_NULL; in testScheduleOperation_whenNoUser_notStarted_andReset()
919 mCurrentUserId = 10; in testScheduleOperation_whenSameUser()
922 when(nextClient.getTargetUserId()).thenReturn(mCurrentUserId); in testScheduleOperation_whenSameUser()
935 mCurrentUserId = 10; in testScheduleOperation_whenDifferentUser()
[all …]
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java731 private int mCurrentUserId = UserHandle.USER_NULL; field in WallpaperManagerService
897 if (!mWallpaper.wallpaperUpdating && mWallpaper.userId == mCurrentUserId) {
1097 && mWallpaper.userId == mCurrentUserId
1341 Slog.v(TAG, "new sysWp: " + mWallpaperMap.get(mCurrentUserId)); in complete()
1342 Slog.v(TAG, "new lockWp: " + mLockWallpaperMap.get(mCurrentUserId)); in complete()
1357 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateFinished()
1383 if (mCurrentUserId != getChangingUserId()) { in onPackageModified()
1398 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateStarted()
1422 if (mCurrentUserId != getChangingUserId()) { in onHandleForceStop()
1436 if (mCurrentUserId != getChangingUserId()) { in onSomePackagesChanged()
[all …]

123