Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsShellCommand.java50 private int mCurrentUserId; field in LockSettingsShellCommand
65 mCurrentUserId = ActivityManager.getService().getCurrentUser().id; in onCommand()
185 mCurrentUserId = Integer.parseInt(getNextArgRequired()); in parseArgs()
212 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential()
213 final int quality = mLockPatternUtils.getKeyguardStoredPasswordQuality(mCurrentUserId); in getOldCredential()
220 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential()
236 mLockPatternUtils.setLockCredential(pattern, getOldCredential(), mCurrentUserId); in runSetPattern()
246 mLockPatternUtils.setLockCredential(password, getOldCredential(), mCurrentUserId); in runSetPassword()
256 mLockPatternUtils.setLockCredential(pin, getOldCredential(), mCurrentUserId); in runSetPin()
266 mLockPatternUtils.setLockCredential(none, getOldCredential(), mCurrentUserId); in runClear()
[all …]
/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/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerImpl.java123 mCurrentUserId = intent.getIntExtra(
127 Log.v(TAG, "userId " + mCurrentUserId + " is in the house");
135 mPresenter.onUserSwitched(mCurrentUserId);
138 listener.onUserChanged(mCurrentUserId);
183 protected int mCurrentUserId = 0; field in NotificationLockscreenUserManagerImpl
210 mCurrentUserId = ActivityManager.getCurrentUser(); in NotificationLockscreenUserManagerImpl()
313 userId = mCurrentUserId; in shouldTemporarilyHideNotifications()
324 || (userId != mCurrentUserId && shouldHideNotifications(mCurrentUserId)) in shouldHideNotifications()
338 return isLockscreenPublicMode(mCurrentUserId) && visibleEntry != null in shouldHideNotifications()
377 mCurrentUserId) != 0; in updateLockscreenNotificationSetting()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserTracker.java66 private int mCurrentUserId; field in CurrentUserTracker.UserReceiver
91 return mCurrentUserId; in getCurrentUserId()
99 mCurrentUserId = ActivityManager.getCurrentUser(); in addTracker()
118 if (mCurrentUserId != newUserId) { in notifyUserSwitched()
119 mCurrentUserId = newUserId; in notifyUserSwitched()
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardStateMonitor.java49 private int mCurrentUserId; field in KeyguardStateMonitor
56 mCurrentUserId = ActivityManager.getCurrentUser(); in KeyguardStateMonitor()
99 mCurrentUserId = userId; in setCurrentUser()
130 pw.println(prefix + "mCurrentUserId=" + mCurrentUserId); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java93 private int mCurrentUserId; field in SecurityControllerImpl
159 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null; in hasProfileOwner()
164 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
180 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName()
206 return getWorkProfileUserId(mCurrentUserId) != UserHandle.USER_NULL; in hasWorkProfile()
242 UserHandle currentUser = new UserHandle(mCurrentUserId); in isVpnRestricted()
243 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted()
264 Boolean hasCACerts = mHasCACerts.get(mCurrentUserId); in hasCACertInCurrentUser()
270 int userId = getWorkProfileUserId(mCurrentUserId); in hasCACertInWorkProfile()
296 mCurrentUserId = newUserId; in onUserSwitched()
[all …]
DClock.java79 private int mCurrentUserId; field in Clock
135 mCurrentUserId = newUserId; in Clock()
144 bundle.putInt(CURRENT_USER_ID, mCurrentUserId); in onSaveInstanceState()
164 mCurrentUserId = bundle.getInt(CURRENT_USER_ID); in onRestoreInstanceState()
200 mCurrentUserId = mCurrentUserTracker.getCurrentUserId(); in onAttachedToWindow()
382 boolean is24 = DateFormat.is24HourFormat(context, mCurrentUserId); in getSmallTime()
472 boolean is24 = DateFormat.is24HourFormat(getContext(), mCurrentUserId); in dispatchDemoCommand()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DConfigurationMap.java40 private int mCurrentUserId = UserHandle.SYSTEM.getIdentifier(); field in ConfigurationMap
52 pw.println("mCurrentUserId=" + mCurrentUserId); in dump()
58 final UserHandle currentUser = UserHandle.of(mCurrentUserId); in put()
104 mCurrentUserId = userId; in setNewUser()
DWifiConfigManager.java295 private int mCurrentUserId = UserHandle.SYSTEM.getIdentifier(); field in WifiConfigManager
934 UserHandle currentUser = UserHandle.of(mCurrentUserId); in doesUidBelongToCurrentUser()
2822 if (userId == mCurrentUserId) { in handleUserSwitch()
2829 mCurrentUserId = userId; in handleUserSwitch()
2836 if (mUserManager.isUserUnlockingOrUnlocked(UserHandle.of(mCurrentUserId))) { in handleUserSwitch()
2842 mCurrentUserId = userId; in handleUserSwitch()
2844 if (mUserManager.isUserUnlockingOrUnlocked(UserHandle.of(mCurrentUserId))) { in handleUserSwitch()
2845 handleUserUnlockOrSwitch(mCurrentUserId); in handleUserSwitch()
2866 if (userId != mCurrentUserId) { in handleUserUnlock()
2876 handleUserUnlockOrSwitch(mCurrentUserId); in handleUserUnlock()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java74 private int mCurrentUserId; field in LockscreenWallpaper
89 mCurrentUserId = ActivityManager.getCurrentUser(); in LockscreenWallpaper()
114 LoaderResult result = loadBitmap(mCurrentUserId, mSelectedUser); in getBitmap()
164 if (user != mCurrentUserId) { in setCurrentUser()
168 mCurrentUserId = user; in setCurrentUser()
208 final int currentUser = mCurrentUserId; in run()
240 iPw.println("mCurrentUserId=" + mCurrentUserId); in dump()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarRemoteInputCallbackTest.java61 private int mCurrentUserId = 0; field in StatusBarRemoteInputCallbackTest
84 when(mNotificationLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
88 .putExtra(Intent.EXTRA_USER_HANDLE, mCurrentUserId + 1); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java188 private int mCurrentUserId; field in ServiceWatcher
210 mCurrentUserId = UserHandle.USER_NULL; in ServiceWatcher()
280 mCurrentUserId = ActivityManager.getCurrentUser(); in register()
299 mCurrentUserId); in onBestServiceChanged()
303 ServiceInfo serviceInfo = new ServiceInfo(resolveInfo, mCurrentUserId); in onBestServiceChanged()
395 mCurrentUserId = userId; in onUserSwitched()
400 if (userId == mCurrentUserId) { in onUserUnlocked()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java249 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in AccessibilityManagerService
258 return getUserStateLocked(mCurrentUserId); in getCurrentUserStateLocked()
329 return mCurrentUserId; in getCurrentUserIdLocked()
399 if (getChangingUserId() != mCurrentUserId) { in registerBroadcastReceivers()
422 if (userId != mCurrentUserId) { in registerBroadcastReceivers()
449 if (userId != mCurrentUserId) { in registerBroadcastReceivers()
488 if (userId != mCurrentUserId) { in registerBroadcastReceivers()
631 + " and userId:" + mCurrentUserId); in addClient()
634 (resolvedUserId == mCurrentUserId) ? getClientStateLocked(userState) : 0, in addClient()
667 if (resolvedUserId == mCurrentUserId) { in sendAccessibilityEvent()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/face/
DFaceService.java392 mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, in enroll()
417 enrollInternal(client, mCurrentUserId); in enroll()
435 mCurrentUserId, 0 /* groupId */, opId, restricted, opPackageName, in authenticate()
451 mCurrentUserId, 0 /* groupId */, opId, restricted, opPackageName, cookie, in prepareForAuthentication()
580 getBiometricUtils().renameBiometricForUser(getContext(), mCurrentUserId, in rename()
621 if (!FaceService.this.hasEnrolledBiometrics(mCurrentUserId)) { in resetLockout()
626 Slog.d(TAG, "Resetting lockout for user: " + mCurrentUserId); in resetLockout()
646 if (!FaceService.this.hasEnrolledBiometrics(mCurrentUserId)) { in setFeature()
657 final int faceId = getFirstTemplateForUser(mCurrentUserId); in setFeature()
684 if (!FaceService.this.hasEnrolledBiometrics(mCurrentUserId)) { in getFeature()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodUtils.java770 private int mCurrentUserId; field in InputMethodUtils.InputMethodSettings
827 Slog.d(TAG, "--- Switch the current user from " + mCurrentUserId + " to " + userId); in switchCurrentUser()
829 if (mCurrentUserId != userId || mCopyOnWrite != copyOnWrite) { in switchCurrentUser()
834 mCurrentUserId = userId; in switchCurrentUser()
844 ? sUserManagerInternal.getProfileParentId(mCurrentUserId) : mCurrentUserId; in putString()
855 result = Settings.Secure.getStringForUser(mResolver, key, mCurrentUserId); in getString()
865 ? sUserManagerInternal.getProfileParentId(mCurrentUserId) : mCurrentUserId; in putInt()
875 return Settings.Secure.getIntForUser(mResolver, key, defaultValue, mCurrentUserId); in getInt()
894 if (userId == mCurrentUserId) return true; in isCurrentProfile()
1024 + ", " + mCurrentUserId); in getEnabledInputMethodsStr()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DAmbientBrightnessStatsTracker.java66 private @UserIdInt int mCurrentUserId; field in AmbientBrightnessStatsTracker
87 mAmbientBrightnessStats.log(mCurrentUserId, mInjector.getLocalDate(), in stop()
96 if (userId == mCurrentUserId) { in add()
97 mAmbientBrightnessStats.log(mCurrentUserId, mInjector.getLocalDate(), in add()
103 mCurrentUserId = userId; in add()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java96 private int mCurrentUserId; field in StatusBarManagerService
304 mCurrentUserId = newUserId;
753 disableForUser(what, token, pkg, mCurrentUserId); in disable()
775 disable2ForUser(what, token, pkg, mCurrentUserId); in disable2()
803 final int net1 = gatherDisableActionsLocked(mCurrentUserId, 1); in disableLocked()
804 final int net2 = gatherDisableActionsLocked(mCurrentUserId, 2); in disableLocked()
961 disableLocked(displayId, mCurrentUserId, flags, mSysUiVisToken, cause, 1); in setDisableFlags()
1115 return new RegisterStatusBarResult(icons, gatherDisableActionsLocked(mCurrentUserId, 1), in registerStatusBar()
1118 gatherDisableActionsLocked(mCurrentUserId, 2), state.mImeToken, in registerStatusBar()
1580 pw.println(" mCurrentUserId=" + mCurrentUserId); in dump()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java126 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in TvInputManagerService
145 getOrCreateUserStateLocked(mCurrentUserId); in TvInputManagerService()
160 buildTvInputListLocked(mCurrentUserId, null); in onBootPhase()
161 buildTvContentRatingSystemListLocked(mCurrentUserId); in onBootPhase()
171 if (mCurrentUserId != userHandle) { in onUnlockUser()
174 buildTvInputListLocked(mCurrentUserId, null); in onUnlockUser()
175 buildTvContentRatingSystemListLocked(mCurrentUserId); in onUnlockUser()
183 if (mCurrentUserId == getChangingUserId()) { in registerBroadcastReceivers()
184 buildTvInputListLocked(mCurrentUserId, packages); in registerBroadcastReceivers()
185 buildTvContentRatingSystemListLocked(mCurrentUserId); in registerBroadcastReceivers()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java77 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in ConfigurationMapTest
100 mCurrentUserId = newUserId; in switchUser()
139 final UserHandle currentUser = UserHandle.of(mCurrentUserId); in verifyGetters()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java882 private int mCurrentUserId = UserHandle.USER_NULL; field in WallpaperManagerService
1169 && mWallpaper.userId == mCurrentUserId) {
1367 && mWallpaper.userId == mCurrentUserId in processDisconnect()
1489 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateFinished()
1492 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageUpdateFinished()
1515 if (mCurrentUserId != getChangingUserId()) { in onPackageModified()
1518 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageModified()
1532 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateStarted()
1535 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageUpdateStarted()
1557 if (mCurrentUserId != getChangingUserId()) { in onHandleForceStop()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/
DFingerprintService.java213 mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, groupId, in enroll()
244 mCurrentUserId, groupId, opId, restricted, opPackageName, in authenticate()
259 mCurrentUserId, groupId, opId, restricted, opPackageName, cookie, in prepareForAuthentication()
424 if (!FingerprintService.this.hasEnrolledBiometrics(mCurrentUserId)) { in resetTimeout()
627 mCurrentUserId = UserHandle.USER_NULL;
779 if (userId != mCurrentUserId) { in updateActiveGroup()
808 mCurrentUserId = userId; in updateActiveGroup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleController.java172 private int mCurrentUserId; field in BubbleController
450 mCurrentUserId = mNotifUserManager.getCurrentUserId(); in BubbleController()
455 BubbleController.this.saveBubbles(mCurrentUserId); in BubbleController()
458 mCurrentUserId = newUserId; in BubbleController()
885 mSavedBubbleKeysPerUser.remove(mCurrentUserId); in restoreBubbles()
1363 mDataRepository.removeBubbles(mCurrentUserId, bubblesToBeRemovedFromRepository);
1366 mDataRepository.addBubble(mCurrentUserId, update.addedBubble);
1377 mDataRepository.addBubbles(mCurrentUserId, update.bubbles);
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java123 int mCurrentUserId = mUserContextTracker.getCurrentUserContext().getUserId(); in onStartCommand() local
124 UserHandle currentUser = new UserHandle(mCurrentUserId); in onStartCommand()
140 mCurrentUserId, in onStartCommand()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricServiceBase.java124 protected int mCurrentUserId = UserHandle.USER_NULL; field in BiometricServiceBase
675 mCurrentUserId = UserHandle.USER_NULL; in serviceDied()
789 int userId = mCurrentUserId; in handleRemoved()
885 PerformanceStats stats = pmap.get(mCurrentUserId); in authenticateInternal()
888 pmap.put(mCurrentUserId, stats); in authenticateInternal()
1145 + " currentUserId: " + mCurrentUserId in startCurrentClient()

12