Home
last modified time | relevance | path

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

123

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DUserUtilsTest.java47 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/
DUtils.java202 UserManager um = UserManager.get(context); in getUserManager() local
203 if (um == null) { in getUserManager()
206 return um; in getUserManager()
355 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in copyMeProfilePhoto() local
357 um.setUserIcon(userId, icon); in copyMeProfilePhoto()
364 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in assignDefaultPhoto() local
366 um.setUserIcon(userId, bitmap); in assignDefaultPhoto()
629 public static int getManagedProfileId(UserManager um, int parentUserId) { in getManagedProfileId() argument
630 int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId()
663 UserManager um, @Nullable Bundle arguments, @Nullable Bundle intentExtras) { in getSecureTargetUser() argument
[all …]
DMasterClear.java171 final UserManager um = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in establishInitialState() local
172 loadAccountList(um); in establishInitialState()
201 private void loadAccountList(final UserManager um) { in loadAccountList() argument
207 final List<UserInfo> profiles = um.getProfiles(UserHandle.myUserId()); in loadAccountList()
282 final boolean hasOtherUsers = (um.getUserCount() - profilesSize) > 0; in loadAccountList()
291 final UserManager um = UserManager.get(getActivity()); in onCreateView() local
292 if (!um.isAdminUser() || RestrictedLockUtils.hasBaseUserRestriction(getActivity(), in onCreateView()
DSecuritySettings.java326 final UserManager um = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in createPreferenceHierarchy() local
368 mToggleAppInstallation.setEnabled(!um.getUserInfo(MY_USER_ID).isRestricted()); in createPreferenceHierarchy()
535 final UserManager um = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in setNonMarketAppsAllowed() local
536 if (um.hasUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES)) { in setNonMarketAppsAllowed()
822 final UserManager um = UserManager.get(context); in getXmlResourcesToIndex() local
823 final int profileUserId = Utils.getManagedProfileId(um, MY_USER_ID); in getXmlResourcesToIndex()
844 if (um.isAdminUser()) { in getXmlResourcesToIndex()
894 final UserManager um = UserManager.get(context); in getRawDataToIndex() local
895 if (!um.isAdminUser()) { in getRawDataToIndex()
896 int resId = um.isLinkedUser() ? in getRawDataToIndex()
[all …]
DTestingSettings.java33 final UserManager um = UserManager.get(getContext()); in onCreate() local
34 if (!um.isAdminUser()) { in onCreate()
DSettingsInitialize.java50 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in onReceive() local
51 UserInfo userInfo = um.getUserInfo(UserHandle.myUserId()); in onReceive()
DResetNetwork.java186 final UserManager um = UserManager.get(getActivity()); in onCreateView() local
189 if (!um.isAdminUser() || RestrictedLockUtils.hasBaseUserRestriction(getActivity(), in onCreateView()
DDeviceAdminAdd.java357 UserManager um = UserManager.get(DeviceAdminAdd.this); in onCreate()
358 um.removeUser(userId); in onCreate()
631 UserManager um = UserManager.get(this); in isManagedProfile() local
632 UserInfo info = um.getUserInfo( in isManagedProfile()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUserUtils.java54 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/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictionUtils.java53 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/users/
DRestrictionUtils.java62 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()
DProfileUpdateReceiver.java54 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in copyProfileName() local
57 um.setUserName(userId, profileName); in copyProfileName()
DUserDialogs.java53 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in createRemoveDialog() local
54 UserInfo userInfo = um.getUserInfo(removingUserId); in createRemoveDialog()
/packages/services/Telephony/src/com/android/phone/
DRestrictedSwitchPreference.java70 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/apps/Settings/src/com/android/settings/accounts/
DAddAccountSettings.java141 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()
/packages/apps/Settings/src/com/android/settings/utils/
DProfileSettingsPreferenceFragment.java40 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/applications/
DDefaultPhonePreference.java80 final UserManager um = in isAvailable() local
82 return !um.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS); in isAvailable()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettingsBase.java89 final UserManager um = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in isRestricted() local
90 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION); in isRestricted()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDevicePickerFragment.java96 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate() local
97 mStartScanOnResume = !um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH) in onCreate()
DBluetoothPermissionRequest.java63 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in onReceive() local
65 if (com.android.settings.Utils.isManagedProfile(um)) { in onReceive()
DBluetoothDevicePreference.java91 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in BluetoothDevicePreference() local
92 if (! um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) { in BluetoothDevicePreference()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java129 public BatteryEntry(Context context, Handler handler, UserManager um, BatterySipper sipper) { in BatteryEntry() argument
166 UserInfo info = um.getUserInfo(sipper.userId); in BatteryEntry()
168 icon = Utils.getUserIcon(context, um, info); in BatteryEntry()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java197 final UserManager um = UserManager.get(getActivity()); in onCreate() local
198 final UserInfo info = um.getUserInfo(userId); in onCreate()
200 mIcon = Utils.getUserIcon(getActivity(), um, info); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherClings.java234 UserManager um = (UserManager) mLauncher.getSystemService(Context.USER_SERVICE); in areClingsEnabled() local
235 Bundle restrictions = um.getUserRestrictions(); in areClingsEnabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLocationFragment.java100 final UserManager um = UserManager.get(getContext()); in onCreatePreferences() local
101 mLocationMode.setEnabled(!um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)); in onCreatePreferences()

123