Home
last modified time | relevance | path

Searched refs:hasBaseUserRestriction (Results 1 – 25 of 61) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/users/
DUserCapabilities.java73 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in updateAddUserCapabilities()
75 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities()
76 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceControllerTest.java88 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_notAdminUser_shouldReturnFalse()
100 when(mAccountHelper.hasBaseUserRestriction( in isAvailable_hasConfigCellBroadcastRestriction_shouldReturnFalse()
113 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastAppLinkDisabled_shouldReturnFalse()
125 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastReceiverDisabled_shouldReturnFalse()
DAdjustVolumeRestrictedPreferenceControllerTest.java66 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable()
79 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowRestrictedLockUtilsInternal.java44 public static void setHasBaseUserRestriction(boolean hasBaseUserRestriction) { in setHasBaseUserRestriction() argument
45 sHasBaseUserRestriction = hasBaseUserRestriction; in setHasBaseUserRestriction()
60 protected static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() method in ShadowRestrictedLockUtilsInternal
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountRestrictionHelper.java55 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference()
67 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() method in AccountRestrictionHelper
68 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java72 final boolean hasBaseUserRestriction = in onLocationModeChanged()
76 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
DLocationEnabler.java153 return RestrictedLockUtilsInternal.hasBaseUserRestriction( in hasShareLocationRestriction()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DExternalSources.java114 return !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, userHandle) in canChange()
115 && !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY, in canChange()
/packages/apps/Settings/src/com/android/settings/network/
DMobilePlanPreferenceController.java23 import static com.android.settingslib.RestrictedLockUtilsInternal.hasBaseUserRestriction;
121 && !hasBaseUserRestriction(mContext, DISALLOW_CONFIG_MOBILE_NETWORKS, myUserId()); in isAvailable()
DNetworkResetRestrictionChecker.java39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
DMobileNetworkPreferenceController.java84 RestrictedLockUtilsInternal.hasBaseUserRestriction( in isUserRestricted()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DAndroidBeamPreferenceControllerTest.java79 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in setUp()
122 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in isBeamEnable_disAllowBeam_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java191 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem()
196 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbBackendTest.java163 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse()
176 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
/packages/apps/Settings/src/com/android/settings/security/
DRestrictedEncryptionPreferenceController.java43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
/packages/apps/Settings/src/com/android/settings/nfc/
DAndroidBeamEnabler.java39 mBeamDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(context, in AndroidBeamEnabler()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetEntryPreferenceController.java85 return mUserManager.hasBaseUserRestriction(DISALLOW_FACTORY_RESET, userHandle); in shouldDisable()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DOemUnlockPreferenceController.java124 && !mUserManager.hasBaseUserRestriction( in isOemUnlockAllowedByUserAndCarrier()
/packages/apps/Settings/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceController.java82 && !mHelper.hasBaseUserRestriction( in isAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java88 protected static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() method in ShadowRestrictedLockUtilsInternal
/packages/apps/Settings/src/com/android/settings/deviceinfo/firmwareversion/
DFirmwareVersionDetailPreferenceController.java125 mFunDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction( in initializeAdminPermissions()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionsFragment.java97 userManager.hasBaseUserRestriction(key, user))) in createUserRestrictionItems()
/packages/apps/Settings/src/com/android/settings/display/
DTopLevelWallpaperPreferenceController.java127 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in disablePreferenceIfManaged()
DWallpaperPreferenceController.java131 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in disablePreferenceIfManaged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DUninstallPreference.java102 RestrictedLockUtilsInternal.hasBaseUserRestriction( in isUninstallRestricted()

123