Home
last modified time | relevance | path

Searched refs:umi (Results 1 – 21 of 21) sorted by relevance

/frameworks/opt/car/services/builtInServices/src/com/android/internal/car/
DCarActivityInterceptor.java77 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in getBuiltinInterface()
78 int userId = umi.getUserAssignedToDisplay(displayId); in getBuiltinInterface()
84 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in getBuiltinInterface() local
85 int displayId = umi.getMainDisplayAssignedToUser(userId); in getBuiltinInterface()
DCarServiceHelperService.java272 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in CarServiceHelperService() local
273 if (umi != null) { in CarServiceHelperService()
274 umi.addUserLifecycleListener(new UserLifecycleListener() { in CarServiceHelperService()
289 umi.addUserVisibilityListener(new UserVisibilityListener() { in CarServiceHelperService()
745 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in createUserEvenWhenDisallowed() local
747 UserInfo user = umi.createUserEvenWhenDisallowed(name, userType, flags, in createUserEvenWhenDisallowed()
762 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in getMainDisplayAssignedToUser() local
763 int displayId = umi.getMainDisplayAssignedToUser(userId); in getMainDisplayAssignedToUser()
772 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in getUserAssignedToDisplay() local
773 int userId = umi.getUserAssignedToDisplay(displayId); in getUserAssignedToDisplay()
[all …]
/frameworks/base/services/java/com/android/server/
DCommunalProfileInitializer.java74 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in removeCommunalProfileIfPresent() local
75 final int communalProfile = umi.getCommunalProfileId(); in removeCommunalProfileIfPresent()
80 final boolean removeSucceeded = umi.removeUserEvenWhenDisallowed(communalProfile); in removeCommunalProfileIfPresent()
DHsumBootUserInitializer.java81 private HsumBootUserInitializer(UserManagerInternal umi, ActivityManagerService am, in HsumBootUserInitializer() argument
84 mUmi = umi; in HsumBootUserInitializer()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarLaunchParamsModifier.java239 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class);
240 int userId = umi.getUserAssignedToDisplay(displayId);
246 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class);
247 int displayId = umi.getMainDisplayAssignedToUser(userId);
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsCheckingServiceImpl.java600 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in upgradeScheduleExactAlarmLocked() local
605 final int[] userIds = umi.getUserIds(); in upgradeScheduleExactAlarmLocked()
637 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in resetUseFullScreenIntentLocked() local
645 final int[] userIds = umi.getUserIds(); in resetUseFullScreenIntentLocked()
DAppOpsService.java1177 UserManagerInternal umi = getUserManagerInternal(); in initializeUidStates() local
1188 int[] userIds = umi.getUserIds(); in initializeUidStates()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DSensorPrivacyServiceMockingTest.java217 UserManagerInternal umi = mock(UserManagerInternal.class); in migrateFromFile() local
218 doReturn(umi).when(() -> LocalServices.getService(UserManagerInternal.class)); in migrateFromFile()
219 doReturn(new int[] {0}).when(umi).getUserIds(); in migrateFromFile()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java339 final UserManagerInternal umi = mock(UserManagerInternal.class);
340 doReturn(umi).when(() -> LocalServices.getService(UserManagerInternal.class));
345 when(umi.isUserVisible(anyInt())).thenAnswer(isUserVisibleAnswer);
346 when(umi.isUserVisible(anyInt(), anyInt())).thenAnswer(isUserVisibleAnswer);
/frameworks/base/services/core/java/com/android/server/audio/
DFocusRequester.java175 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in isAlwaysVisibleUser() local
176 final UserProperties properties = umi.getUserProperties(UserHandle.getUserId(mCallingUid)); in isAlwaysVisibleUser()
DAudioService.java11980 var umi = LocalServices.getService(UserManagerInternal.class); in initializeAudioServerPermissionProvider() local
11985 () -> umi.getUserIds() in initializeAudioServerPermissionProvider()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java206 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in getMainUserId() local
207 int mainUserId = umi.getMainUserId(); in getMainUserId()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java1046 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in runListPackages() local
1047 userIds = umi.getUserIds(); in runListPackages()
1569 UserManagerInternal umi = in doRunInstall() local
1571 UserInfo userInfo = umi.getUserInfo(requestUserId); in doRunInstall()
2190 UserManagerInternal umi = in runUninstall() local
2192 UserInfo userInfo = umi.getUserInfo(userId); in runUninstall()
3209 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in removeUserAndWait() local
3210 umi.addUserLifecycleListener(listener); in removeUserAndWait()
3230 umi.removeUserLifecycleListener(listener); in removeUserAndWait()
4514 UserManagerInternal umi = in runArchive() local
[all …]
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractMasterSystemService.java263 final UserManagerInternal umi = getUserManagerInternal(); in AbstractMasterSystemService() local
267 final boolean disabled = umi.getUserRestriction(userId, disallowProperty); in AbstractMasterSystemService()
273 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerService.java293 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in OverlayManagerService() local
294 umi.addUserLifecycleListener(new UserLifecycleListener()); in OverlayManagerService()
558 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in onReceive() local
559 UserInfo userInfo = umi.getUserInfo(userId); in onReceive()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java401 private UserManagerInternal umi; in BatteryStatsService()
404 if (umi == null) { in BatteryStatsService()
405 umi = LocalServices.getService(UserManagerInternal.class); in BatteryStatsService()
407 return (umi != null) ? umi.getUserIds() : null; in BatteryStatsService()
DActivityManagerShellCommand.java2484 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class);
2486 final int parentUserId = umi.getProfileParentId(userId);
/frameworks/base/services/core/java/com/android/server/wm/
DRootWindowContainer.java1962 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in isAlwaysVisibleUser() local
1963 final UserProperties properties = umi.getUserProperties(userId); in isAlwaysVisibleUser()
DActivityRecord.java2165 final UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in ActivityRecord() local
2166 final UserProperties properties = umi.getUserProperties(mUserId); in ActivityRecord()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java3625 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class); in isSetWallpaperAllowed() local
3626 return !umi.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER, callingUserId); in isSetWallpaperAllowed()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java2213 UserManagerInternal umi = LocalServices.getService(UserManagerInternal.class);
2215 mJobs.removeJobsOfUnlistedUsers(umi.getUserIds());