/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | UserUtilsTest.java | 47 final MockUserManager um = mActor.mockUserManager; in testGetCorpUser() local 53 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testGetCorpUser() 55 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 58 um.myUser = MockUserManager.CORP_USER.id; in testGetCorpUser() 62 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER, in testGetCorpUser() 65 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 68 um.myUser = MockUserManager.CORP_USER.id; in testGetCorpUser() 71 um.myUser = MockUserManager.SECONDARY_USER.id; in testGetCorpUser() 75 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER); in testGetCorpUser() 77 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 216 UserManager um = UserManager.get(context); in getUserManager() local 217 if (um == null) { in getUserManager() 220 return um; in getUserManager() 366 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in copyMeProfilePhoto() local 368 um.setUserIcon(userId, icon); in copyMeProfilePhoto() 384 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in assignDefaultPhoto() local 386 um.setUserIcon(userId, bitmap); in assignDefaultPhoto() 657 public static int getManagedProfileId(UserManager um, int parentUserId) { in getManagedProfileId() argument 658 int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId() 683 UserManager um, @Nullable Bundle arguments, @Nullable Bundle intentExtras) { in getSecureTargetUser() argument [all …]
|
D | MasterClear.java | 218 final UserManager um = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in establishInitialState() local 219 loadAccountList(um); in establishInitialState() 296 private void loadAccountList(final UserManager um) { in loadAccountList() argument 302 final List<UserInfo> profiles = um.getProfiles(UserHandle.myUserId()); in loadAccountList() 378 final boolean hasOtherUsers = (um.getUserCount() - profilesSize) > 0; in loadAccountList() 388 final UserManager um = UserManager.get(context); in onCreateView() local 389 final boolean disallow = !um.isAdminUser() || RestrictedLockUtils.hasBaseUserRestriction( in onCreateView()
|
D | EncryptionAndCredential.java | 194 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in isPageSearchEnabled() local 195 return um.isAdminUser(); in isPageSearchEnabled() 210 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getNonIndexableKeys() local 212 if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in getNonIndexableKeys()
|
D | SecuritySettings.java | 375 final UserManager um = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in createPreferenceHierarchy() local 842 final UserManager um = UserManager.get(context); in getXmlResourcesToIndex() local 843 final int profileUserId = Utils.getManagedProfileId(um, MY_USER_ID); in getXmlResourcesToIndex() 901 final UserManager um = UserManager.get(context); in getRawDataToIndex() local 919 final int profileUserId = Utils.getManagedProfileId(um, MY_USER_ID); in getRawDataToIndex() 959 final UserManager um = UserManager.get(context); in getNonIndexableKeys() local 961 if (!um.isAdminUser() || !tm.hasIccCard()) { in getNonIndexableKeys()
|
D | TestingSettings.java | 33 final UserManager um = UserManager.get(getContext()); in onCreate() local 34 if (!um.isAdminUser()) { in onCreate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 148 final UserManager um = mock(UserManager.class); in shouldHideSecondTarget_hasUserRestriction_shouldReturnTrue() local 149 ReflectionHelpers.setField(mPreference, "mUserManager", um); in shouldHideSecondTarget_hasUserRestriction_shouldReturnTrue() 150 when(um.hasUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH)) in shouldHideSecondTarget_hasUserRestriction_shouldReturnTrue() 159 final UserManager um = mock(UserManager.class); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse() local 160 ReflectionHelpers.setField(mPreference, "mUserManager", um); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse() 161 when(um.hasUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH)) in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AudioHelper.java | 41 public int getManagedProfileId(UserManager um) { in getManagedProfileId() argument 42 return Utils.getManagedProfileId(um, UserHandle.myUserId()); in getManagedProfileId() 45 public boolean isUserUnlocked(UserManager um, @UserIdInt int userId) { in isUserUnlocked() argument 46 return um.isUserUnlocked(userId); in isUserUnlocked()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | UserUtils.java | 54 final UserManager um = getUserManager(context); in getCorpUserInfo() local 55 final int myUser = um.getUserHandle(); in getCorpUserInfo() 58 for (UserInfo ui : um.getUsers()) { in getCorpUserInfo() 62 final UserInfo parent = um.getProfileParent(ui.id); in getCorpUserInfo()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | RestrictionUtils.java | 62 UserManager um = UserManager.get(context); in getRestrictions() local 63 Bundle userRestrictions = um.getUserRestrictions(user); in getRestrictions() 80 UserManager um = UserManager.get(context); in setRestrictions() local 82 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user); in setRestrictions()
|
D | ProfileUpdateReceiver.java | 54 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in copyProfileName() local 57 um.setUserName(userId, profileName); in copyProfileName()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | RestrictionUtils.java | 53 UserManager um = UserManager.get(context); in getRestrictions() local 54 Bundle userRestrictions = um.getUserRestrictions(user); in getRestrictions() 71 UserManager um = UserManager.get(context); in setRestrictions() local 74 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user); in setRestrictions()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AddAccountSettings.java | 141 final UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate() local 142 mUserHandle = Utils.getSecureTargetUser(getActivityToken(), um, null /* arguments */, in onCreate() 144 if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle)) { in onCreate() 156 if (Utils.startQuietModeDialogIfNecessary(this, um, mUserHandle.getIdentifier())) { in onCreate() 160 if (um.isUserUnlocked(mUserHandle)) { in onCreate()
|
D | RemoveUserFragment.java | 47 UserManager um = (UserManager) in onCreateDialog() 49 um.removeUser(userId); in onCreateDialog()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DevelopmentSettingsEnabler.java | 59 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in isDevelopmentSettingsEnabled() local 63 final boolean hasRestriction = um.hasUserRestriction( in isDevelopmentSettingsEnabled() 65 final boolean isAdminOrDemo = um.isAdminUser() || um.isDemoUser(); in isDevelopmentSettingsEnabled()
|
/packages/services/Telephony/src/com/android/phone/ |
D | RestrictedSwitchPreference.java | 70 UserManager um = UserManager.get(mContext); in checkRestrictionAndSetDisabled() local 71 UserHandle user = UserHandle.of(um.getUserHandle()); in checkRestrictionAndSetDisabled() 72 boolean disabledByAdmin = um.hasUserRestriction(userRestriction, user) in checkRestrictionAndSetDisabled() 73 && !um.hasBaseUserRestriction(userRestriction, user); in checkRestrictionAndSetDisabled()
|
/packages/services/Car/TrustAgent/src/com/android/car/trust/ |
D | CarBleTrustAgent.java | 122 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate() local 123 if (!um.isUserUnlocked()) { in onCreate() 241 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in unlock() local 250 Log.d(TAG, "Attempted to unlock user, is user unlocked? " + um.isUserUnlocked() in unlock() 255 if (um.isUserUnlocked()) { in unlock()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ManageExternalSources.java | 98 final UserManager um = UserManager.get(getContext()); in canChange() local 99 final int userRestrictionSource = um.getUserRestrictionSource( in canChange() 113 final UserManager um = UserManager.get(getContext()); in getPreferenceSummary() local 114 final int userRestrictionSource = um.getUserRestrictionSource( in getPreferenceSummary()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | UserIconLoader.java | 69 UserManager um = context.getSystemService(UserManager.class); in loadUserIconsWithContext() local 70 for (UserInfo userInfo : um.getUsers()) { in loadUserIconsWithContext() 71 value.put(userInfo.id, Utils.getUserIcon(context, um, userInfo)); in loadUserIconsWithContext()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | ManagedProfileTest.java | 72 UserManager um = getContext().getSystemService(UserManager.class); in removeAllManagedProfiles() local 73 List<UserInfo> users = um.getUsers(); in removeAllManagedProfiles() 77 um.removeUserEvenWhenDisallowed(userId); in removeAllManagedProfiles()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 533 UserManager um = (UserManager) ctx.getSystemService(Context.USER_SERVICE); in createWorkspaceLoaderFromAppRestriction() local 534 Bundle bundle = um.getApplicationRestrictions(ctx.getPackageName()); in createWorkspaceLoaderFromAppRestriction() 558 UserManagerCompat um = UserManagerCompat.getInstance(getContext()); in getDefaultLayoutParser() local 559 if (um.isDemoUser() && idp.demoModeLayoutId != 0) { in getDefaultLayoutParser() 728 UserManagerCompat um = UserManagerCompat.getInstance(mContext); in handleOneTimeDataUpgrade() local 729 for (UserHandle user : um.getUserProfiles()) { in handleOneTimeDataUpgrade() 730 long serial = um.getSerialNumberForUser(user); in handleOneTimeDataUpgrade()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ManagedProfileHeuristic.java | 118 UserManagerCompat um = UserManagerCompat.getInstance(context); in UserFolderInfo() local 119 userSerial = um.getSerialNumberForUser(user); in UserFolderInfo() 120 addIconToFolderTime = um.getUserCreationTime(user) + AUTO_ADD_TO_FOLDER_DURATION; in UserFolderInfo()
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultPhonePreferenceController.java | 41 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isAvailable() local 43 um.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS); in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | ProfileSettingsPreferenceFragment.java | 40 final UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in onViewCreated() local 42 UserAdapter.createUserSpinnerAdapter(um, getActivity()); in onViewCreated()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 134 public BatteryEntry(Context context, Handler handler, UserManager um, BatterySipper sipper) { in BatteryEntry() argument 187 UserInfo info = um.getUserInfo(sipper.userId); in BatteryEntry() 189 icon = Utils.getUserIcon(context, um, info); in BatteryEntry()
|