Home
last modified time | relevance | path

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

1234

/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java46 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference()
53 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() method in AccountRestrictionHelper
54 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountRestrictionHelper.java46 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference()
53 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() method in AccountRestrictionHelper
54 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java70 final boolean hasBaseUserRestriction = in onLocationModeChanged()
74 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationSwitchBarController.java70 final boolean hasBaseUserRestriction = in onLocationModeChanged()
74 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
/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/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/
DUsbBackend.java189 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem()
194 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java189 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem()
194 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DAndroidBeamPreferenceControllerTest.java75 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in setUp()
119 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in isBeamEnable_disAllowBeam_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSettings.java466 boolean hasBaseUserRestriction = in onCreateDialog()
467 RestrictedLockUtilsInternal.hasBaseUserRestriction( in onCreateDialog()
469 if (admin != null && !hasBaseUserRestriction) { in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageSettings.java466 boolean hasBaseUserRestriction = in onCreateDialog()
467 RestrictedLockUtilsInternal.hasBaseUserRestriction( in onCreateDialog()
469 if (admin != null && !hasBaseUserRestriction) { in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DRestrictedEncryptionPreferenceController.java43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DAndroidBeamEnabler.java39 mBeamDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(context, in AndroidBeamEnabler()
/packages/apps/Settings/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceController.java81 && !mHelper.hasBaseUserRestriction( in isAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DEmergencyBroadcastPreferenceController.java81 && !mHelper.hasBaseUserRestriction( in isAvailable()

1234