Searched refs:validators (Results 1 – 23 of 23) sorted by relevance
42 public static Validator and(@NonNull Validator...validators) { in and() argument43 return new RequiredValidators(getInternalValidators(validators)); in and()55 public static Validator or(@NonNull Validator...validators) { in or() argument56 return new OptionalValidators(getInternalValidators(validators)); in or()74 private static InternalValidator[] getInternalValidators(Validator[] validators) { in getInternalValidators() argument75 Preconditions.checkArrayElementsNotNull(validators, "validators"); in getInternalValidators()77 final InternalValidator[] internals = new InternalValidator[validators.length]; in getInternalValidators()79 for (int i = 0; i < validators.length; i++) { in getInternalValidators()80 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()81 "element %d not provided by Android System: %s", i, validators[i]); in getInternalValidators() local[all …]
44 RequiredValidators(@NonNull InternalValidator[] validators) { in RequiredValidators() argument45 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in RequiredValidators()
44 OptionalValidators(@NonNull InternalValidator[] validators) { in OptionalValidators() argument45 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in OptionalValidators()
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;20 import static android.provider.settings.validators.SettingsValidators.PACKAGE_NAME_VALIDATOR;
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;20 import static android.provider.settings.validators.SettingsValidators.LOCALE_VALIDATOR;
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.ANY_INTEGER_VALIDATOR;20 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;21 import static android.provider.settings.validators.SettingsValidators.BOOLEAN_VALIDATOR;22 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;23 import static android.provider.settings.validators.SettingsValidators.FONT_SCALE_VALIDATOR;24 import static android.provider.settings.validators.SettingsValidators.LENIENT_IP_ADDRESS_VALIDATOR;25 import static android.provider.settings.validators.SettingsValidators.NON_NEGATIVE_FLOAT_VALIDATOR;26 import static android.provider.settings.validators.SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATO…27 import static android.provider.settings.validators.SettingsValidators.URI_VALIDATOR;[all …]
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.ACCESSIBILITY_SHORTCUT_TARGET…20 import static android.provider.settings.validators.SettingsValidators.ANY_INTEGER_VALIDATOR;21 import static android.provider.settings.validators.SettingsValidators.ANY_LONG_VALIDATOR;22 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;23 import static android.provider.settings.validators.SettingsValidators.AUTOFILL_SERVICE_VALIDATOR;24 import static android.provider.settings.validators.SettingsValidators.BOOLEAN_VALIDATOR;25 import static android.provider.settings.validators.SettingsValidators.COLON_SEPARATED_COMPONENT_LIS…26 import static android.provider.settings.validators.SettingsValidators.COLON_SEPARATED_PACKAGE_LIST_…27 import static android.provider.settings.validators.SettingsValidators.COMMA_SEPARATED_COMPONENT_LIS…[all …]
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.PACKAGE_NAME_VALIDATOR;
17 package android.provider.settings.validators;19 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
17 package android.provider.settings.validators;
17 package android.provider.settings.validators;26 import static android.provider.settings.validators.SettingsValidators.ANY_INTEGER_VALIDATOR;27 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;28 import static android.provider.settings.validators.SettingsValidators.BOOLEAN_VALIDATOR;29 import static android.provider.settings.validators.SettingsValidators.NONE_NEGATIVE_LONG_VALIDATOR;30 import static android.provider.settings.validators.SettingsValidators.NON_NEGATIVE_FLOAT_VALIDATOR;31 import static android.provider.settings.validators.SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATO…32 import static android.provider.settings.validators.SettingsValidators.PACKAGE_NAME_VALIDATOR;33 import static android.provider.settings.validators.SettingsValidators.PERCENTAGE_INTEGER_VALIDATOR;
45 import android.provider.settings.validators.GlobalSettingsValidators;46 import android.provider.settings.validators.SecureSettingsValidators;47 import android.provider.settings.validators.SystemSettingsValidators;48 import android.provider.settings.validators.Validator;1003 Map<String, Validator> validators = null; in getBackupWhitelist() local1008 validators = SecureSettingsValidators.VALIDATORS; in getBackupWhitelist()1012 validators = SystemSettingsValidators.VALIDATORS; in getBackupWhitelist()1016 validators = GlobalSettingsValidators.VALIDATORS; in getBackupWhitelist()1021 return new SettingsBackupWhitelist(whitelist, validators); in getBackupWhitelist()1043 Map<String, Validator> validators) { in isValidSettingValue() argument[all …]
110 import android.provider.settings.validators.SystemSettingsValidators;111 import android.provider.settings.validators.Validator;
17 package android.provider.settings.validators;404 private String getOffenders(String[] settingsToBackup, Map<String, Validator> validators) { in getOffenders() argument407 if (validators.get(setting) == null) { in getOffenders()
36 import android.provider.settings.validators.SettingsValidators;37 import android.provider.settings.validators.Validator;
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...