HomeSort by relevance Sort by last modified time
    Searched refs:hasUserRestriction (Results 1 - 25 of 83) sorted by null

1 2 3 4

  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
CheckNoOwnerRestrictionsTest.java 27 assertFalse(mContext.getSystemService(UserManager.class).hasUserRestriction(
BaseUserRestrictionsTest.java 94 expected, mUserManager.hasUserRestriction(restriction));
113 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction);
145 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction);
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DisallowAddUserTask.java 48 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) {
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DisallowAddUserTaskTest.java 65 when(mockUserManager.hasUserRestriction(anyString(), any(UserHandle.class)))
84 when(mockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER,
  /cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/
CustomizationTest.java 43 assertTrue(userManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER));
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
CustomizationRestrictionsTest.java 130 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER));
156 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER));
168 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_USER_ICON));
184 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_USER_ICON));
  /packages/apps/Messaging/src/com/android/messaging/util/
BugleActivityUtil.java 70 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) {
  /packages/apps/Settings/src/com/android/settings/applications/
DefaultPhonePreference.java 87 return !um.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS);
  /packages/apps/Settings/src/com/android/settings/location/
LocationSettingsBase.java 90 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION);
  /packages/services/Telephony/src/com/android/phone/
RestrictedSwitchPreference.java 72 boolean disabledByAdmin = um.hasUserRestriction(userRestriction, user)
  /frameworks/base/core/java/android/os/
IUserManager.aidl 64 boolean hasUserRestriction(in String restrictionKey, int userHandle);
  /packages/apps/Settings/src/com/android/settings/
RestrictedSettingsFragment.java 43 * {@link UserManager.hasUserRestriction()}, then the user will have to enter the restrictions
185 return mUserManager.hasUserRestriction(mRestrictionKey)
201 || mUserManager.hasUserRestriction(mRestrictionKey);
DeviceInfoSettings.java 209 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) {
236 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) {
  /frameworks/base/core/java/com/android/internal/app/
ConfirmUserCreationActivity.java 99 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
AccessPointControllerImpl.java 70 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_WIFI,
  /frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
ConfirmDialog.java 59 if (UserManager.get(this).hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN)) {
  /packages/apps/Nfc/src/com/android/nfc/
NfcWifiProtectedSetup.java 81 if (wifiConfiguration != null &&!UserManager.get(context).hasUserRestriction(
83 // hasUserRestriction does not support UserHandle.CURRENT.
  /packages/apps/Settings/src/com/android/settings/bluetooth/
DevicePickerFragment.java 97 mStartScanOnResume = !um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
UsbBackend.java 60 mRestricted = mUserManager.hasUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER);
  /packages/apps/Settings/src/com/android/settings/users/
UserDetailsSettings.java 94 mPhonePref.setChecked(!mUserManager.hasUserRestriction(
  /packages/services/Telecomm/src/com/android/server/telecom/components/
UserCallIntentProcessor.java 119 } else if (userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS,
  /packages/apps/Launcher2/src/com/android/launcher2/
DeleteDropTarget.java 159 if (userManager.hasUserRestriction(UserManager.DISALLOW_APPS_CONTROL)
160 || userManager.hasUserRestriction(UserManager.DISALLOW_UNINSTALL_APPS)) {
  /packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
ApnSettingsActivity.java 156 if (!mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) {
176 mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) {
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
AboutFragment.java 250 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) {
270 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES))
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
NfcTestActivity.java 115 if (mUserMangaer.hasUserRestriction(UserManager.DISALLOW_OUTGOING_BEAM)) {

Completed in 640 milliseconds

1 2 3 4