Home
last modified time | relevance | path

Searched refs:getCurrentUser (Results 1 – 25 of 187) sorted by relevance

12345678

/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java121 final int startUser = mAm.getCurrentUser(); in switchUser()
139 final int startUser = mAm.getCurrentUser(); in switchUser_stopped()
161 final int startUser = mAm.getCurrentUser(); in switchUser_running()
198 final int startUser = mAm.getCurrentUser(); in lockedBootCompleted()
219 UserInfo.FLAG_MANAGED_PROFILE, mAm.getCurrentUser()); in managedProfileUnlock()
239 UserInfo.FLAG_MANAGED_PROFILE, mAm.getCurrentUser()); in managedProfileUnlock_stopped()
265 final int startUser = mAm.getCurrentUser(); in ephemeralUserStopped()
298 UserInfo.FLAG_MANAGED_PROFILE, mAm.getCurrentUser()); in managedProfileStopped()
343 final int origUser = mAm.getCurrentUser(); in initializeNewUserAndSwitchBack()
354 attestTrue("Didn't switch back to user, " + origUser, origUser == mAm.getCurrentUser()); in initializeNewUserAndSwitchBack()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/
DSUWProgressController.java65 return isUserSetupInProgress(ActivityManager.getCurrentUser()); in isCurrentUserSetupInProgress()
74 startListening(ActivityManager.getCurrentUser()); in addCallback()
110 ActivityManager.getCurrentUser()); in onUserSwitched()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceProvisionedController.java23 int getCurrentUser(); in getCurrentUser() method
26 return isUserSetup(getCurrentUser()); in isCurrentUserSetup()
DDeviceProvisionedControllerImpl.java86 public int getCurrentUser() { in getCurrentUser() method in DeviceProvisionedControllerImpl
87 return ActivityManager.getCurrentUser(); in getCurrentUser()
94 startListening(getCurrentUser()); in addCallback()
DPreviewInflater.java129 intent, flags, KeyguardUpdateMonitor.getCurrentUser()); in getWidgetInfo()
135 KeyguardUpdateMonitor.getCurrentUser()); in getWidgetInfo()
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/
DMultiUserRollbackTest.java51 mOriginalUserId = getDevice().getCurrentUser(); in setup()
94 mOriginalUserId = getDevice().getCurrentUser(); in createAndSwitchToSecondaryUserIfNecessary()
102 if (getDevice().getCurrentUser() == userId) { in switchToUser()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java159 int userId = ActivityManager.getCurrentUser(); in onCommand()
170 int userId = ActivityManager.getCurrentUser(); in onCommand()
184 int userId = ActivityManager.getCurrentUser(); in onCommand()
197 int userId = ActivityManager.getCurrentUser(); in onCommand()
210 int userId = ActivityManager.getCurrentUser(); in onCommand()
223 int userId = ActivityManager.getCurrentUser(); in onCommand()
250 int userId = ActivityManager.getCurrentUser(); in onCommand()
258 int userId = ActivityManager.getCurrentUser(); in onCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java524 final int currentUser = KeyguardUpdateMonitor.getCurrentUser();
541 if (userId == KeyguardUpdateMonitor.getCurrentUser()) {
565 if (targetUserId != ActivityManager.getCurrentUser()) {
587 if (targetUserId != ActivityManager.getCurrentUser()) {
647 int currentUser = ActivityManager.getCurrentUser();
683 && KeyguardUpdateMonitor.getCurrentUser() == UserHandle.USER_SYSTEM; in mustNotUnlockCurrentUser()
713 KeyguardUpdateMonitor.setCurrentUser(ActivityManager.getCurrentUser()); in setupLocked()
720 KeyguardUpdateMonitor.getCurrentUser()), true /* forceCallbacks */); in setupLocked()
814 int currentUser = KeyguardUpdateMonitor.getCurrentUser(); in onStartedGoingToSleep()
818 long timeout = getLockTimeout(KeyguardUpdateMonitor.getCurrentUser()); in onStartedGoingToSleep()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DLegacyRecentsImpl.java249 int currentUser = sSystemServicesProxy.getCurrentUser(); in showRecentApps()
276 int currentUser = sSystemServicesProxy.getCurrentUser(); in hideRecentApps()
302 int currentUser = sSystemServicesProxy.getCurrentUser(); in toggleRecentApps()
327 int currentUser = sSystemServicesProxy.getCurrentUser(); in preloadRecentApps()
349 int currentUser = sSystemServicesProxy.getCurrentUser(); in cancelPreloadRecentApps()
378 int currentUser = sSystemServicesProxy.getCurrentUser(); in splitPrimaryTask()
457 int currentUser = sSystemServicesProxy.getCurrentUser(); in onConfigurationChanged()
625 int currentUser = sSystemServicesProxy.getCurrentUser(); in onBusEvent()
749 pw.println(" currentUserId=" + SystemServicesProxy.getInstance(mContext).getCurrentUser()); in dump()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockManager.java79 mCurrentUserObservable.getCurrentUser().getValue())) {
227 mCurrentUserObservable.getCurrentUser().observeForever(mCurrentUserObserver); in register()
236 mCurrentUserObservable.getCurrentUser().removeObserver(mCurrentUserObserver); in unregister()
364 mCurrentUserObservable.getCurrentUser().getValue()); in getClockPlugin()
373 mCurrentUserObservable.getCurrentUser().getValue()); in getClockPlugin()
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java213 getCurrentUser())); in isLocationModeEnabled()
253 protected int getCurrentUser() { in getCurrentUser() method in LocationPermissionChecker
254 return ActivityManager.getCurrentUser(); in getCurrentUser()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsWrapper.java43 public int getCurrentUser() { in getCurrentUser() method in WifiPermissionsWrapper
44 return ActivityManager.getCurrentUser(); in getCurrentUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java125 KeyguardUpdateMonitor.getCurrentUser()); in setup()
396 KeyguardUpdateMonitor.getCurrentUser(), 0 /* flags */); in testTriesToAuthenticate_whenTrustOnAgentKeyguard_ifBypass()
406 KeyguardUpdateMonitor.getCurrentUser(), 0 /* flags */); in testIgnoresAuth_whenTrustAgentOnKeyguard_withoutBypass()
435 mKeyguardUpdateMonitor.onFaceAuthenticated(KeyguardUpdateMonitor.getCurrentUser()); in testOnFaceAuthenticated_skipsFaceWhenAuthenticated()
444 int user = KeyguardUpdateMonitor.getCurrentUser(); in testGetUserCanSkipBouncer_whenFace()
451 int user = KeyguardUpdateMonitor.getCurrentUser(); in testGetUserCanSkipBouncer_whenFingerprint()
458 int user = KeyguardUpdateMonitor.getCurrentUser(); in testGetUserCanSkipBouncer_whenTrust()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceManager.java78 new UserHandle(ActivityManager.getCurrentUser()))); in TileServiceManager()
93 new UserHandle(ActivityManager.getCurrentUser()), filter, null, mHandler); in TileServiceManager()
277 queryIntent, 0, ActivityManager.getCurrentUser());
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java310 ActivityManager.getCurrentUser()); in getTimeUntilNextAlarmCondition()
320 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in bindGenericCountdown()
390 MAX_BUCKET_MINUTES, ActivityManager.getCurrentUser()); in updateUi()
435 bucketTime, bucketMinutes, ActivityManager.getCurrentUser(), in onClickTimeButton()
443 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
449 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
496 final boolean is24 = DateFormat.is24HourFormat(mContext, ActivityManager.getCurrentUser()); in getTime()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardAbsKeyInputView.java85 KeyguardUpdateMonitor.getCurrentUser()); in reset()
141 final int userId = KeyguardUpdateMonitor.getCurrentUser(); in verifyPasswordAndUnlock()
202 boolean dismissKeyguard = KeyguardUpdateMonitor.getCurrentUser() == userId; in onPasswordChecked()
DKeyguardPatternView.java157 KeyguardUpdateMonitor.getCurrentUser())); in onFinishInflate()
221 KeyguardUpdateMonitor.getCurrentUser())); in reset()
232 KeyguardUpdateMonitor.getCurrentUser()); in reset()
288 final int userId = KeyguardUpdateMonitor.getCurrentUser(); in onPatternDetected()
347 boolean dismissKeyguard = KeyguardUpdateMonitor.getCurrentUser() == userId; in onPatternChecked()
DKeyguardUpdateMonitor.java427 public synchronized static int getCurrentUser() { in getCurrentUser() method in KeyguardUpdateMonitor
667 userId = ActivityManager.getService().getCurrentUser().id; in handleFingerprintAuthenticated()
724 getCurrentUser()); in handleFingerprintError()
824 userId = ActivityManager.getService().getCurrentUser().id; in handleFaceAuthenticated()
885 getCurrentUser()); in handleFaceError()
1003 return mStrongAuthTracker.getStrongAuthForUser(getCurrentUser()) in userNeedsStrongAuth()
1410 int userId = getCurrentUser(); in isUnlockingWithBiometricAllowed()
1415 int userId = getCurrentUser(); in hasUserAuthenticatedSinceBoot()
1710 && !mUserFingerprintAuthenticated.get(getCurrentUser(), false) in shouldListenForFingerprintAssistant()
1711 && !mUserHasTrust.get(getCurrentUser(), false); in shouldListenForFingerprintAssistant()
[all …]
DKeyguardStatusView.java306 KeyguardUpdateMonitor.getCurrentUser()); in updateOwnerInfo()
308 info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); in updateOwnerInfo()
446 && KeyguardUpdateMonitor.getCurrentUser() != UserHandle.USER_SYSTEM; in shouldShowLogout()
450 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in onLogoutClicked()
DKeyguardPasswordView.java84 mPasswordEntry.setTextOperationUser(UserHandle.of(KeyguardUpdateMonitor.getCurrentUser())); in resetState()
181 mPasswordEntry.setTextOperationUser(UserHandle.of(KeyguardUpdateMonitor.getCurrentUser())); in onFinishInflate()
270 imm.getEnabledInputMethodListAsUser(KeyguardUpdateMonitor.getCurrentUser()); in hasMultipleEnabledIMEsOrSubtypes()
/frameworks/base/core/java/android/hardware/display/
DNightDisplayListener.java46 this(context, ActivityManager.getCurrentUser(), new Handler(Looper.getMainLooper())); in NightDisplayListener()
50 this(context, ActivityManager.getCurrentUser(), handler); in NightDisplayListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java224 int currentUser = ActivityManager.getCurrentUser(); in onTuningChanged()
296 TILES_SETTING, ActivityManager.getCurrentUser()); in changeTileSpecs()
300 TextUtils.join(",", tileSpecs), ActivityManager.getCurrentUser()); in changeTileSpecs()
327 new UserHandle(ActivityManager.getCurrentUser())); in changeTiles()
336 TextUtils.join(",", newTiles), ActivityManager.getCurrentUser()); in changeTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java91 if (ActivityManager.getCurrentUser() == userId) { in start()
100 final int currentUser = ActivityManager.getCurrentUser(); in updateThemeOverlays()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/
DSysUiTaskStackChangeListener.java32 int currentUserId = SystemServicesProxy.getInstance(context).getCurrentUser(); in checkCurrentUserId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java69 currentUser = ActivityManager.getService().getCurrentUser(); in onReceive()
99 currentUser = ActivityManager.getService().getCurrentUser(); in wipeGuestSession()

12345678