Home
last modified time | relevance | path

Searched refs:getCurrentUserId (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java180 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in print()
203 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in getPrintJobInfos()
228 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in getPrintJobInfo()
250 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in getCustomPrinterIcon()
274 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in cancelPrintJob()
300 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in restartPrintJob()
325 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in getPrintServices()
359 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in setPrintServiceEnabled()
391 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in isPrintServiceEnabled()
407 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in getPrintServiceRecommendations()
[all …]
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DAbstractContentCapturePerfTestCase.java104 final int userId = getCurrentUserId(); in setService()
114 final int userId = getCurrentUserId(); in resetService()
119 private static int getCurrentUserId() { in getCurrentUserId() method in AbstractContentCapturePerfTestCase
186 final int userId = getCurrentUserId(); in setDefaultServiceEnabled()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemUserInfoHelper.java124 public @UserIdInt int getCurrentUserId() { in getCurrentUserId() method in SystemUserInfoHelper
129 return activityManagerInternal.getCurrentUserId(); in getCurrentUserId()
DUserInfoHelper.java141 public abstract @UserIdInt int getCurrentUserId(); in getCurrentUserId() method in UserInfoHelper
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DUserAwareBiometricScheduler.java47 int getCurrentUserId(); in getCurrentUserId() method
134 final int currentUserId = mCurrentUserRetriever.getCurrentUserId(); in startNextOperationIfIdle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManager.java45 int getCurrentUserId(); in getCurrentUserId() method
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java1326 if (senderUserId != mSettings.getCurrentUserId()) { in onReceive()
1405 final boolean retval = userId == mSettings.getCurrentUserId(); in isChangingPackagesOfCurrentUserLocked()
1558 mSettings.getCurrentUserId()); in onFinishPackageChangesInternal()
1580 curIm.getComponent(), 0, mSettings.getCurrentUserId()); in onFinishPackageChangesInternal()
1698 final int currentUserId = mSettings.getCurrentUserId(); in onUnlockUser()
1885 + " currentUserId=" + mSettings.getCurrentUserId()); in switchUserOnHandlerLocked()
1950 mUserManager.getProfileIdsWithDisabled(mSettings.getCurrentUserId())); in updateCurrentProfileIds()
1976 final int currentUserId = mSettings.getCurrentUserId(); in systemRunning()
2000 if (currentUserId != mSettings.getCurrentUserId()) { in systemRunning()
2050 + mSettings.getCurrentUserId() + ", calling pid = " + Binder.getCallingPid() in calledFromValidUserLocked()
[all …]
DInputMethodBindingController.java307 curMethodPackage, 0 /* flags */, mSettings.getCurrentUserId());
467 new UserHandle(mSettings.getCurrentUserId())); in bindCurrentInputMethodService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/complication/
DDreamMediaEntryComplicationTest.java169 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaOverLockscreen()
206 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaDismissingLockscreen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationModeController.java76 + ActivityManagerWrapper.getInstance().getCurrentUserId());
174 int userId = ActivityManagerWrapper.getInstance().getCurrentUserId(); in getCurrentUserContext()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHideNotifsForOtherUsersCoordinator.java71 sb.append(" user=").append(mLockscreenUserManager.getCurrentUserId());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DDynamicPrivacyController.java81 mLockscreenUserManager.getCurrentUserId()); in isDynamicPrivacyEnabled()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeUserInfoHelper.java103 public int getCurrentUserId() { in getCurrentUserId() method in FakeUserInfoHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarRemoteInputCallback.java264 mLockscreenUserManager.getCurrentUserId()); in handleRemoteViewClick()
297 if (userId != mLockscreenUserManager.getCurrentUserId() in onReceive()
DStatusBarNotificationPresenter.java190 onUserSwitched(mLockscreenUserManager.getCurrentUserId()); in StatusBarNotificationPresenter()
349 .isLockscreenPublicMode(mLockscreenUserManager.getCurrentUserId());
DStatusBarNotificationActivityStarter.java233 mLockscreenUserManager.getCurrentUserId()); in onNotificationClicked()
238 mLockscreenUserManager.getCurrentUserId()); in onNotificationClicked()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DCurrentUserServiceSupplier.java277 int currentUserId = mActivityManager.getCurrentUserId(); in getServiceInfo()
333 if (userId == mActivityManager.getCurrentUserId()) { in onReceive()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java75 .when(LocalServices.getService(ActivityManagerInternal.class)).getCurrentUserId(); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarRemoteInputCallbackTest.java90 when(mNotificationLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
/frameworks/base/services/core/java/com/android/server/wm/
DKeyguardController.java350 && !mWindowManager.isKeyguardSecure(mService.getCurrentUserId()); in canShowWhileOccluded()
455 if (!mWindowManager.isKeyguardSecure(mService.getCurrentUserId())) { in handleDismissKeyguard()
481 || !mWindowManager.isKeyguardSecure(mService.getCurrentUserId()); in canDismissKeyguard()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java353 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeNotificationInfo()
400 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializePartialConversationNotificationInfo()
455 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeConversationNotificationInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/complication/
DDreamMediaEntryComplication.java162 mLockscreenUserManager.getCurrentUserId()); in onClickMediaEntry()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubService.java333 if (userId == getCurrentUserId()) { in ContextHubService()
1228 getCurrentUserId(), SensorPrivacyManager.Sensors.MICROPHONE);
1254 private int getCurrentUserId() {
1273 Log.d(TAG, "User changed to id: " + getCurrentUserId());
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java361 doReturn(ui.id).when(mActivityManagerInternal).getCurrentUserId(); in createCurrentUser()
379 doReturn(UNAVAILABLE_USER).when(mActivityManagerInternal).getCurrentUserId(); in createRestrictedUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/
DStatusBarManagerServiceTest.java311 when(mActivityManagerInternal.getCurrentUserId()).thenReturn(user + 1); in testCurrentUser_fail()
324 when(mActivityManagerInternal.getCurrentUserId()).thenReturn(user); in testCurrentUser_pass()
723 when(mActivityManagerInternal.getCurrentUserId()).thenReturn(user); in mockCurrentUserCheck()

123