Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/timezonedetector/
DCurrentUserIdentityInjector.java33 @UserIdInt int getCurrentUserId(); in getCurrentUserId() method
42 public int getCurrentUserId() { in getCurrentUserId() method in CurrentUserIdentityInjector.Real
43 return LocalServices.getService(ActivityManagerInternal.class).getCurrentUserId(); in getCurrentUserId()
DTimeZoneDetectorInternalImpl.java52 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in getCapabilitiesAndConfigForDpm()
62 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in updateConfigurationForDpm()
72 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in setManualTimeZoneForDpm()
/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()
287 != getCurrentUserId()) { in validateIconUserBoundary()
307 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in cancelPrintJob()
333 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in restartPrintJob()
358 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in getPrintServices()
392 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in setPrintServiceEnabled()
424 if (resolveCallingProfileParentLocked(resolvedUserId) != getCurrentUserId()) { in isPrintServiceEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorInternalImpl.java58 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in getCapabilitiesAndConfigForDpm()
69 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in updateConfigurationForDpm()
79 int userId = mCurrentUserIdentityInjector.getCurrentUserId(); in setManualTimeForDpm()
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DAbstractContentCapturePerfTestCase.java106 final int userId = getCurrentUserId(); in setService()
116 final int userId = getCurrentUserId(); in resetService()
121 private static int getCurrentUserId() { in getCurrentUserId() method in AbstractContentCapturePerfTestCase
188 final int userId = getCurrentUserId(); in setDefaultServiceEnabled()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DTimeDetectorInternalImplTest.java97 int expectedUserId = mTestCurrentUserIdentityInjector.getCurrentUserId(); in testGetCapabilitiesAndConfigForDpm()
121 mTestCurrentUserIdentityInjector.getCurrentUserId(), in testUpdateConfigurationForDpm()
133 int expectedUserId = mTestCurrentUserIdentityInjector.getCurrentUserId(); in testSetManualTimeZoneForDpm()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTimeZoneDetectorInternalImplTest.java107 int expectedUserId = mTestCurrentUserIdentityInjector.getCurrentUserId(); in testGetCapabilitiesAndConfigForDpm()
136 mTestCurrentUserIdentityInjector.getCurrentUserId(), in testUpdateConfigurationForDpm()
148 int expectedUserId = mTestCurrentUserIdentityInjector.getCurrentUserId(); in testSetManualTimeZoneForDpm()
DTestCurrentUserIdentityInjector.java32 public int getCurrentUserId() { in getCurrentUserId() method in TestCurrentUserIdentityInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DGenericWindowPolicyControllerTest.java742 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpc()
785 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithCustomHomeComponent()
807 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithBlockedComponent()
829 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithAllowedComponent()
851 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithDisplayCategory()
873 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithCrossTaskNavigationBlockedFor()
895 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithCrossTaskNavigationAllowed()
918 /* allowedUsers= */ new ArraySet<>(getCurrentUserId()), in createGwpcWithPermissionComponent()
934 private Set<UserHandle> getCurrentUserId() { in getCurrentUserId() method in GenericWindowPolicyControllerTest
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemUserInfoHelper.java136 public @UserIdInt int getCurrentUserId() { in getCurrentUserId() method in SystemUserInfoHelper
141 return activityManagerInternal.getCurrentUserId(); in getCurrentUserId()
DUserInfoHelper.java155 public abstract @UserIdInt int getCurrentUserId(); in getCurrentUserId() method in UserInfoHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManager.java43 int getCurrentUserId(); in getCurrentUserId() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/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/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationPresenter.java192 onUserSwitched(mLockscreenUserManager.getCurrentUserId()); in StatusBarNotificationPresenter()
300 .isLockscreenPublicMode(mLockscreenUserManager.getCurrentUserId());
360 final int currentUserId = mLockscreenUserManager.getCurrentUserId();
DStatusBarRemoteInputCallback.java281 mLockscreenUserManager.getCurrentUserId()); in handleRemoteViewClick()
314 if (userId != mLockscreenUserManager.getCurrentUserId() in onReceive()
/frameworks/base/services/core/java/com/android/server/audio/
DMusicFxHelper.java117 UserHandle.of(getCurrentUserId())); in put()
244 PackageManager.PackageInfoFlags.of(MATCH_ANY_USER), getCurrentUserId()); in handleAudioEffectBroadcast()
362 private int getCurrentUserId() { in getCurrentUserId() method in MusicFxHelper
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeUserInfoHelper.java134 public int getCurrentUserId() { in getCurrentUserId() method in FakeUserInfoHelper
/frameworks/base/services/core/java/com/android/server/wm/
DKeyguardController.java380 && !mWindowManager.isKeyguardSecure(mService.getCurrentUserId()); in canShowWhileOccluded()
507 if (!mWindowManager.isKeyguardSecure(mService.getCurrentUserId())) { in handleDismissKeyguard()
537 || !mWindowManager.isKeyguardSecure(mService.getCurrentUserId()); in canDismissKeyguard()
678 controller.mService.getCurrentUserId()); in updateVisibility()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java75 .when(LocalServices.getService(ActivityManagerInternal.class)).getCurrentUserId(); in setUp()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DCurrentUserServiceSupplier.java304 int currentUserId = mActivityManager.getCurrentUserId(); in getServiceInfo()
360 if (userId == mActivityManager.getCurrentUserId()) { in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarRemoteInputCallbackTest.java90 when(mNotificationLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DDreamMediaEntryComplication.java162 mLockscreenUserManager.getCurrentUserId()); in onClickMediaEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java395 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeNotificationInfo()
441 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializePartialConversationNotificationInfo()
495 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeConversationNotificationInfo()

1234