Home
last modified time | relevance | path

Searched refs:um (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java137 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in buildUidDetail() local
142 final UserInfo info = um.getUserInfo(userHandle); in buildUidDetail()
145 detail.icon = Utils.getUserIcon(mContext, um, info); in buildUidDetail()
162 detail.icon = um.getBadgedIconForUser(info.loadIcon(pm), in buildUidDetail()
176 detail.detailContentDescriptions[i] = um.getBadgedLabelForUser( in buildUidDetail()
181 detail.icon = um.getBadgedIconForUser(appInfo.loadIcon(pm), userHandle); in buildUidDetail()
186 detail.contentDescription = um.getBadgedLabelForUser(detail.label, userHandle); in buildUidDetail()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DDevelopmentSettingsEnabler.java43 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in isDevelopmentSettingsEnabled() local
47 final boolean hasRestriction = um.hasUserRestriction( in isDevelopmentSettingsEnabled()
49 final boolean isAdmin = um.isAdminUser(); in isDevelopmentSettingsEnabled()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java68 UserManager um = UserManager.get(mContext); in testAddUserWithAccount() local
69 UserInfo user = um.createUser("Test User", 0); in testAddUserWithAccount()
73 um.setUserAccount(tempUserId, accountName); in testAddUserWithAccount()
74 assertEquals(accountName, um.getUserAccount(tempUserId)); in testAddUserWithAccount()
/frameworks/base/services/core/java/com/android/server/policy/
DRestartAction.java38 UserManager um = mContext.getSystemService(UserManager.class); in onLongPress() local
39 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
DPowerAction.java38 UserManager um = mContext.getSystemService(UserManager.class); in onLongPress() local
39 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java169 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testSettingsChangeForOtherUser() local
173 assertTrue(findUser(um, UserHandle.USER_SYSTEM)); in testSettingsChangeForOtherUser()
176 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser()
195 um.removeUser(otherUser.id); in testSettingsChangeForOtherUser()
279 private boolean findUser(UserManager um, int userHandle) { in findUser() argument
280 for (UserInfo user : um.getUsers()) { in findUser()
290 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testPerUserSettings() local
294 assertTrue(findUser(um, UserHandle.USER_SYSTEM)); in testPerUserSettings()
297 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings()
322 um.removeUser(user.id); in testPerUserSettings()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java75 final UserManager um = Mockito.mock(UserManager.class); in configureTest() local
76 when(um.getUserInfo(DEMO_USER_ID)).thenReturn(userInfo); in configureTest()
77 when(context.getSystemService(Context.USER_SERVICE)).thenReturn(um); in configureTest()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java94 final UserManager um = UserManager.get(context); in checkIfRestrictionEnforced() local
96 um.getUserRestrictionSources(userRestriction, UserHandle.of(userId)); in checkIfRestrictionEnforced()
114 final UserInfo parentUser = um.getProfileParent(adminUserId); in checkIfRestrictionEnforced()
133 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in hasBaseUserRestriction() local
134 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); in hasBaseUserRestriction()
343 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfileId() local
344 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId()
636 UserManager um = UserManager.get(context); in isAdminInCurrentUserOrProfile() local
637 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserInfoControllerImpl.java154 final UserManager um = UserManager.get(mContext); in queryForUserInformation()
160 Bitmap rawAvatar = um.getUserIcon(userId); in queryForUserInformation()
173 if (um.getUsers().size() <= 1) { in queryForUserInformation()
191 String userAccount = um.getUserAccount(userId); in queryForUserInformation()
DLocationControllerImpl.java144 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted() local
145 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, in isUserLocationRestricted()
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/
DKernelPackageMappingTests.java58 UserManager um = (UserManager) InstrumentationRegistry.getContext().getSystemService( in getUserManager() local
60 return um; in getUserManager()
/frameworks/base/core/java/android/util/
DIconDrawableFactory.java104 public static int getUserBadgeColor(UserManager um, @UserIdInt int userId) { in getUserBadgeColor() argument
105 int badge = um.getManagedProfileBadge(userId); in getUserBadgeColor()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java74 final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); in setUp() local
75 mTestUserId = um.getUserHandle(); in setUp()
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java101 UserManager um = context.getSystemService(UserManager.class); in isCurrentUserOrProfile() local
102 return um.getUserProfiles().contains(UserHandle.of(userId)); in isCurrentUserOrProfile()
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java105 PackageManager pm, UserManager um, StorageStatsManager storageStatsManager) { in BackgroundHandler() argument
109 mUm = um; in BackgroundHandler()
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java121 final UserManager um = mContext.getSystemService(UserManager.class); in getSearchables() local
122 if (um.getUserInfo(userId) == null) { in getSearchables()
125 if (!um.isUserUnlockingOrUnlocked(userId)) { in getSearchables()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationAccesses.java95 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in getAppList() local
96 final List<UserHandle> profiles = um.getUserProfiles(); in getAppList()
DRecentLocationApps.java88 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in getAppList() local
89 final List<UserHandle> profiles = um.getUserProfiles(); in getAppList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java475 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onLongPress() local
476 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
579 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onLongPress() local
580 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
833 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
836 final int[] profileIds = um.getEnabledProfileIds(currentUserId);
858 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
859 if (um.isUserSwitcherEnabled()) {
860 List<UserInfo> users = um.getUsers();
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractMasterSystemService.java256 final UserManager um = context.getSystemService(UserManager.class); in AbstractMasterSystemService() local
258 final List<UserInfo> users = um.getUsers(); in AbstractMasterSystemService()
732 final UserManager um = getContext().getSystemService(UserManager.class); in dumpLocked() local
733 final List<UserInfo> users = um.getUsers(); in dumpLocked()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricServiceBase.java1183 UserManager um = UserManager.get(mContext); in isCurrentUserOrProfile() local
1184 if (um == null) { in isCurrentUserOrProfile()
1192 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
1309 UserManager um = UserManager.get(mContext); in getEffectiveUserId() local
1310 if (um != null) { in getEffectiveUserId()
1312 userId = um.getCredentialOwnerProfile(userId); in getEffectiveUserId()
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java431 final UserManager um = UserManager.get(context); in getAndValidateUser() local
432 final UserInfo primaryUser = um.getPrimaryUser(); in getAndValidateUser()
/frameworks/base/core/java/android/provider/
DMediaStore.java3356 final UserManager um = context.getSystemService(UserManager.class); in getVolumeScanPaths() local
3367 if (um.isDemoUser()) { in getVolumeScanPaths()
3372 if (VOLUME_EXTERNAL_PRIMARY.equals(volumeName) && um.isDemoUser()) { in getVolumeScanPaths()
3521 final UserManager um = context.getSystemService(UserManager.class); in getContributedMediaSize() local
3522 if (um.isUserUnlocked(user) && um.isUserRunning(user)) { in getContributedMediaSize()
3549 final UserManager um = context.getSystemService(UserManager.class); in deleteContributedMedia() local
3550 if (um.isUserUnlocked(user) && um.isUserRunning(user)) { in deleteContributedMedia()
/frameworks/base/core/java/android/service/trust/
DTrustAgentService.java547 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in unlockUserWithToken() local
548 if (um.isUserUnlocked(user)) { in unlockUserWithToken()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java150 final UserManager um = getContext().getSystemService(UserManager.class); in ContentCaptureManagerService() local
151 final List<UserInfo> users = um.getUsers(); in ContentCaptureManagerService()
339 final UserManager um = getContext().getSystemService(UserManager.class); in setDisabledByDeviceConfig() local
340 final List<UserInfo> users = um.getUsers(); in setDisabledByDeviceConfig()

12