/packages/apps/Settings/src/com/android/settings/users/ |
D | UserCapabilities.java | 73 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/ |
D | UserCapabilities.java | 73 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/ |
D | EmergencyBroadcastPreferenceControllerTest.java | 88 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()
|
D | AdjustVolumeRestrictedPreferenceControllerTest.java | 66 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/ |
D | ShadowRestrictedLockUtilsInternal.java | 44 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/ |
D | AccountRestrictionHelper.java | 46 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/ |
D | AccountRestrictionHelper.java | 46 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/ |
D | LocationSwitchBarController.java | 70 final boolean hasBaseUserRestriction = in onLocationModeChanged() 74 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/ |
D | LocationSwitchBarController.java | 70 final boolean hasBaseUserRestriction = in onLocationModeChanged() 74 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbBackendTest.java | 163 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse() 176 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | MobilePlanPreferenceController.java | 23 import static com.android.settingslib.RestrictedLockUtilsInternal.hasBaseUserRestriction; 121 && !hasBaseUserRestriction(mContext, DISALLOW_CONFIG_MOBILE_NETWORKS, myUserId()); in isAvailable()
|
D | NetworkResetRestrictionChecker.java | 39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/ |
D | MobilePlanPreferenceController.java | 23 import static com.android.settingslib.RestrictedLockUtilsInternal.hasBaseUserRestriction; 121 && !hasBaseUserRestriction(mContext, DISALLOW_CONFIG_MOBILE_NETWORKS, myUserId()); in isAvailable()
|
D | NetworkResetRestrictionChecker.java | 39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/ |
D | UsbBackend.java | 189 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem() 194 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbBackend.java | 189 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem() 194 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | AndroidBeamPreferenceControllerTest.java | 75 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in setUp() 119 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in isBeamEnable_disAllowBeam_shouldReturnFalse()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageSettings.java | 466 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/ |
D | StorageSettings.java | 466 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/ |
D | RestrictedEncryptionPreferenceController.java | 43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | RestrictedEncryptionPreferenceController.java | 43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | AndroidBeamEnabler.java | 39 mBeamDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(context, in AndroidBeamEnabler()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | AndroidBeamEnabler.java | 39 mBeamDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(context, in AndroidBeamEnabler()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | EmergencyBroadcastPreferenceController.java | 81 && !mHelper.hasBaseUserRestriction( in isAvailable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | EmergencyBroadcastPreferenceController.java | 81 && !mHelper.hasBaseUserRestriction( in isAvailable()
|