Home
last modified time | relevance | path

Searched refs:mUm (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DWorkModeCondition.java33 private UserManager mUm; field in WorkModeCondition
38 mUm = (UserManager) mManager.getContext().getSystemService(Context.USER_SERVICE); in WorkModeCondition()
42 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle()
58 setActive(mUserHandle != null && mUm.isQuietModeEnabled(mUserHandle)); in refreshState()
93 mUm.trySetQuietModeDisabled(mUserHandle.getIdentifier(), null); in onActionClick()
/packages/apps/Settings/src/com/android/settings/applications/
DAppCounter.java33 protected final UserManager mUm; field in AppCounter
38 mUm = UserManager.get(context); in AppCounter()
44 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
DRunningState.java82 final UserManager mUm; field in RunningState
782 mUm = (UserManager)mApplicationContext.getSystemService(Context.USER_SERVICE); in RunningState()
784 UserInfo userInfo = mUm.getUserInfo(mMyUserId); in RunningState()
873 UserInfo info = mUm.getUserInfo(newItem.mUserId); in addOtherUserItem()
890 userItem.mUser.mIcon = Utils.getUserIcon(context, mUm, info); in addOtherUserItem()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DAboutFragment.java80 private UserManager mUm; field in AboutFragment
95 mUm = UserManager.get(getActivity()); in onCreate()
168 if (mUm.isAdminUser()) { in onCreatePreferences()
250 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) { in onPreferenceTreeClick()
267 if (!mUm.isAdminUser()) in onPreferenceTreeClick()
270 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) in onPreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/
DDeviceInfoSettings.java81 private UserManager mUm; field in DeviceInfoSettings
101 mUm = UserManager.get(getActivity()); in onCreate()
162 if (mUm.isAdminUser()) { in onCreate()
211 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) { in onPreferenceTreeClick()
231 if (!mUm.isAdminUser()) return true; in onPreferenceTreeClick()
238 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { in onPreferenceTreeClick()
DDeviceAdminSettings.java65 private UserManager mUm; field in DeviceAdminSettings
115 mUm = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreateView()
138 final List<UserHandle> profiles = mUm.getUserProfiles(); in onResume()
160 final List<UserHandle> profiles = mUm.getUserProfiles(); in updateList()
DSecuritySettings.java129 private UserManager mUm; field in SecuritySettings
172 mUm = UserManager.get(getActivity()); in onCreate()
242 mProfileChallengeUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in createPreferenceHierarchy()
276 mIsAdmin = mUm.isAdminUser(); in createPreferenceHierarchy()
628 if (Utils.startQuietModeDialogIfNecessary(this.getActivity(), mUm, in onPreferenceTreeClick()
753 if (Utils.startQuietModeDialogIfNecessary(this.getActivity(), mUm, in onPreferenceChange()
759 if (Utils.startQuietModeDialogIfNecessary(this.getActivity(), mUm, in onPreferenceChange()
DWirelessSettings.java87 private UserManager mUm; field in WirelessSettings
223 mUm = (UserManager) getSystemService(Context.USER_SERVICE);
227 final boolean isAdmin = mUm.isAdminUser();
DDevelopmentSettings.java224 private UserManager mUm; field in DevelopmentSettings
337 mUm = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
383 if (!mUm.isAdminUser()) { in onCreate()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java113 private UserManager mUm; field in LocationSettings
125 mUm = (UserManager) activity.getSystemService(Context.USER_SERVICE); in onActivityCreated()
238 && mUm.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, mManagedProfile)) { in createPreferenceHierarchy()
250 mManagedProfile = Utils.getManagedProfile(mUm); in setupManagedProfileCategory()
430 return mUm.hasBaseUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, mManagedProfile); in isManagedProfileRestrictedByBase()
438 mUm.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION,
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageBase.java45 protected UserManager mUm; field in PowerUsageBase
53 mUm = (UserManager) activity.getSystemService(Context.USER_SERVICE); in onAttach()
124 mStatsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, mUm.getUserProfiles()); in refreshStats()
DPowerUsageSummary.java340 final BatteryEntry entry = new BatteryEntry(getActivity(), mHandler, mUm, sipper); in refreshStats()
341 final Drawable badgedIcon = mUm.getBadgedIconForUser(entry.getIcon(), in refreshStats()
343 final CharSequence contentDescription = mUm.getBadgedLabelForUser(entry.getLabel(), in refreshStats()
433 pgp.setIcon(mUm.getBadgedIconForUser(entry.getIcon(), userHandle));
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceBase.java55 private UserManager mUm; field in AccountPreferenceBase
66 mUm = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
68 mUserHandle = Utils.getSecureTargetUser(activity.getActivityToken(), mUm, getArguments(), in onCreate()
DAccountSettings.java98 private UserManager mUm; field in AccountSettings
144 mUm = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
235 mUm.removeUser(userId); in onPreferenceClick()
257 if (Utils.isManagedProfile(mUm)) { in updateUi()
265 if(mUm.isLinkedUser()) { in updateUi()
267 UserInfo userInfo = mUm.getUserInfo(UserHandle.myUserId()); in updateUi()
270 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi()
DChooseAccountActivity.java74 private UserManager mUm; field in ChooseAccountActivity
116 mUm = UserManager.get(getContext()); in onCreate()
117 mUserHandle = Utils.getSecureTargetUser(getActivity().getActivityToken(), mUm, in onCreate()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnSettingsActivity.java128 private UserManager mUm; field in ApnSettingsActivity.ApnSettingsFragment
155 mUm = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreate()
156 if (!mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) { in onCreate()
176 mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) { in onActivityCreated()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java280 private UserManager mUm; field in EnterprisePolicyGuardTest.TestMockContext
285 mUm = um; in TestMockContext()
292 return mUm; in getSystemService()
/packages/services/Telephony/src/com/android/phone/
DNetworkSetting.java82 private UserManager mUm; field in NetworkSetting
244 mUm = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
246 if (mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) { in onCreate()
DMobileNetworkSettings.java121 private UserManager mUm; field in MobileNetworkSettings
428 mUm = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
431 if (mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) { in onCreate()
714 if (!mUm.isAdminUser() || !isCellBroadcastAppLinkEnabled in updateBody()
715 || mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_CELL_BROADCASTS)) { in updateBody()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationSettingsBase.java59 protected UserManager mUm; field in NotificationSettingsBase
100 mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onCreate()
DAppNotificationSettings.java106 UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in updateDependents()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java167 private UserManager mUm; field in DevelopmentFragment
258 mUm = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreate()
270 if (!mUm.isAdminUser() in onCreatePreferences()
271 || mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES) in onCreatePreferences()
330 if (!mUm.isAdminUser()) { in onCreatePreferences()