Home
last modified time | relevance | path

Searched refs:um (Results 1 – 25 of 44) 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.java72 UserManager um = UserManager.get(mContext); in testAddUserWithAccount() local
73 UserInfo user = um.createUser("Test User", 0); in testAddUserWithAccount()
77 um.setUserAccount(tempUserId, accountName); in testAddUserWithAccount()
78 assertEquals(accountName, um.getUserAccount(tempUserId)); in testAddUserWithAccount()
DUserManagerTest.java816 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testCreateProfile_withContextUserId() local
820 List<UserHandle> profiles = um.getAllProfiles(); in testCreateProfile_withContextUserId()
835 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testSetUserName_withContextUserId() local
840 um.setUserName(newName); in testSetUserName_withContextUserId()
846 assertThat(um.getUserName()).isEqualTo(newName); in testSetUserName_withContextUserId()
855 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserName_withContextUserId() local
859 assertThat(um.getUserName()).isEqualTo(userName); in testGetUserName_withContextUserId()
871 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserIcon_withContextUserId() local
876 um.setUserName(newName); in testGetUserIcon_withContextUserId()
DUserSystemPackageInstallerTest.java115 UserManager um = UserManager.get(mContext); in tearDown() local
117 um.removeUser(userId); in tearDown()
355 final UserManager um = UserManager.get(mContext); in testPackagesForCreateUser_full() local
356 final UserInfo user = um.createUser("Test User", userTypeToCreate, 0); in testPackagesForCreateUser_full()
/frameworks/base/services/core/java/com/android/server/policy/
DPowerAction.java38 UserManager um = mContext.getSystemService(UserManager.class); in onLongPress() local
39 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
DRestartAction.java38 UserManager um = mContext.getSystemService(UserManager.class); in onLongPress() local
39 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
DLegacyGlobalActions.java541 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
542 if (um.isUserSwitcherEnabled()) {
543 List<UserInfo> users = um.getUsers();
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java77 final UserManager um = Mockito.mock(UserManager.class); in configureTest() local
78 when(um.getUserInfo(DEMO_USER_ID)).thenReturn(userInfo); in configureTest()
79 when(context.getSystemService(Context.USER_SERVICE)).thenReturn(um); in configureTest()
/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/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()
619 UserManager um = UserManager.get(context); in isAdminInCurrentUserOrProfile() local
620 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.java153 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted() local
154 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/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/services/core/java/com/android/server/storage/
DAppCollector.java105 PackageManager pm, UserManager um, StorageStatsManager storageStatsManager) { in BackgroundHandler() argument
109 mUm = um; in BackgroundHandler()
DCacheQuotaStrategy.java172 UserManager um = mContext.getSystemService(UserManager.class); in getUnfulfilledRequests() local
173 final List<UserInfo> users = um.getUsers(); in getUnfulfilledRequests()
/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/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java92 final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); in setUp() local
93 mTestUserId = um.getUserHandle(); in setUp()
/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/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java486 final UserManager um = UserManager.get(mContext); in listSyntheticPasswordHandlesForAllUsers() local
487 for (UserInfo user : um.getUsers(false)) { in listSyntheticPasswordHandlesForAllUsers()
537 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in removeUser() local
538 final UserInfo parentInfo = um.getProfileParent(userId); in removeUser()
748 final UserManager um = UserManager.get(mContext); in dump() local
749 for (UserInfo user : um.getUsers(false)) { in dump()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricServiceBase.java1229 UserManager um = UserManager.get(mContext); in isCurrentUserOrProfile() local
1230 if (um == null) { in isCurrentUserOrProfile()
1238 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
1354 UserManager um = UserManager.get(mContext); in getEffectiveUserId() local
1355 if (um != null) { in getEffectiveUserId()
1357 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/service/trust/
DTrustAgentService.java547 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in unlockUserWithToken() local
548 if (um.isUserUnlocked(user)) { in unlockUserWithToken()

12