/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | UidDetailProvider.java | 136 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in buildUidDetail() local 141 final UserInfo info = um.getUserInfo(userHandle); in buildUidDetail() 144 detail.icon = Utils.getUserIcon(mContext, um, info); in buildUidDetail() 161 detail.icon = um.getBadgedIconForUser(info.loadIcon(pm), in buildUidDetail() 175 detail.detailContentDescriptions[i] = um.getBadgedLabelForUser( in buildUidDetail() 180 detail.icon = um.getBadgedIconForUser(appInfo.loadIcon(pm), userHandle); in buildUidDetail() 185 detail.contentDescription = um.getBadgedLabelForUser(detail.label, userHandle); in buildUidDetail()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/ |
D | DevelopmentSettingsEnabler.java | 43 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/ |
D | UserManagerServiceTest.java | 72 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()
|
D | UserManagerTest.java | 955 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testCreateProfile_withContextUserId() local 959 List<UserHandle> profiles = um.getAllProfiles(); in testCreateProfile_withContextUserId() 974 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testSetUserName_withContextUserId() local 979 um.setUserName(newName); in testSetUserName_withContextUserId() 985 assertThat(um.getUserName()).isEqualTo(newName); in testSetUserName_withContextUserId() 994 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserName_withContextUserId() local 998 assertThat(um.getUserName()).isEqualTo(userName); in testGetUserName_withContextUserId() 1010 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserIcon_withContextUserId() local 1015 um.setUserName(newName); in testGetUserIcon_withContextUserId()
|
D | UserSystemPackageInstallerTest.java | 114 UserManager um = UserManager.get(mContext); in tearDown() local 116 um.removeUser(userId); in tearDown() 354 final UserManager um = UserManager.get(mContext); in testPackagesForCreateUser_full() local 355 final UserInfo user = um.createUser("Test User", userTypeToCreate, 0); in testPackagesForCreateUser_full()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 169 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() 223 private boolean findUser(UserManager um, int userHandle) { in findUser() argument 224 for (UserInfo user : um.getUsers()) { in findUser() 234 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testPerUserSettings() local 238 assertTrue(findUser(um, UserHandle.USER_SYSTEM)); in testPerUserSettings() 241 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings() 266 um.removeUser(user.id); in testPerUserSettings()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | RestartAction.java | 38 UserManager um = mContext.getSystemService(UserManager.class); in onLongPress() local 39 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
|
D | PowerAction.java | 38 UserManager um = mContext.getSystemService(UserManager.class); in onLongPress() local 39 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/ |
D | ActionDisabledLearnMoreButtonLauncher.java | 103 UserManager um = context.getSystemService(UserManager.class); in isSameProfileGroup() local 105 return um.isSameProfileGroup(enforcementAdminUserId, um.getUserHandle()); in isSameProfileGroup()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LockPatternUtilsTest.java | 77 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/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 94 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() 352 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfileId() local 353 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() 675 UserManager um = UserManager.get(context); in isAdminInCurrentUserOrProfile() local 676 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoControllerImpl.java | 158 final UserManager um = UserManager.get(mContext); in queryForUserInformation() 164 Bitmap rawAvatar = um.getUserIcon(userId); in queryForUserInformation() 177 if (um.getUsers().size() <= 1) { in queryForUserInformation() 195 String userAccount = um.getUserAccount(userId); in queryForUserInformation()
|
D | LocationControllerImpl.java | 152 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted() local 153 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, in isUserLocationRestricted()
|
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/ |
D | KernelPackageMappingTests.java | 58 UserManager um = (UserManager) InstrumentationRegistry.getContext().getSystemService( in getUserManager() local 60 return um; in getUserManager()
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | SearchManagerService.java | 111 final UserManager um = mContext.getSystemService(UserManager.class); in getSearchables() local 112 if (um.getUserInfo(userId) == null) { in getSearchables() 115 if (!um.isUserUnlockingOrUnlocked(userId)) { in getSearchables()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | FactoryResetter.java | 119 UserManager um = mContext.getSystemService(UserManager.class); in factoryResetInternalUnchecked() local 120 if (!mForce && um.hasUserRestriction(UserManager.DISALLOW_FACTORY_RESET)) { in factoryResetInternalUnchecked()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 105 PackageManager pm, UserManager um, StorageStatsManager storageStatsManager) { in BackgroundHandler() argument 109 mUm = um; in BackgroundHandler()
|
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 116 UserManager um = context.getSystemService(UserManager.class); in isCurrentUserOrProfile() local 117 return um.getUserProfiles().contains(UserHandle.of(userId)); in isCurrentUserOrProfile()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterTestBase.java | 93 final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); in setUp() local 94 mTestUserId = um.getUserHandle(); in setUp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 88 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in getAppList() local 89 final List<UserHandle> profiles = um.getUserProfiles(); in getAppList()
|
D | RecentLocationAccesses.java | 97 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in getAppList() local 98 final List<UserHandle> profiles = um.getUserProfiles(); in getAppList()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | Utils.java | 380 UserManager um = UserManager.get(context); in isCurrentUserOrProfile() local 381 if (um == null) { in isCurrentUserOrProfile() 389 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStorage.java | 510 final UserManager um = UserManager.get(mContext); in listSyntheticPasswordHandlesForAllUsers() local 511 for (UserInfo user : um.getUsers()) { in listSyntheticPasswordHandlesForAllUsers() 561 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in removeUser() local 562 final UserInfo parentInfo = um.getProfileParent(userId); in removeUser() 772 final UserManager um = UserManager.get(mContext); in dump() local 773 for (UserInfo user : um.getUsers()) { in dump()
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | IncidentCompanionService.java | 431 final UserManager um = UserManager.get(context); in getAndValidateUser() local 432 final UserInfo primaryUser = um.getPrimaryUser(); in getAndValidateUser()
|
/frameworks/base/core/java/android/service/trust/ |
D | TrustAgentService.java | 547 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in unlockUserWithToken() local 548 if (um.isUserUnlocked(user)) { in unlockUserWithToken()
|