Home
last modified time | relevance | path

Searched refs:validators (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/service/autofill/
DValidators.java42 public static Validator and(@NonNull Validator...validators) { in and() argument
43 return new RequiredValidators(getInternalValidators(validators)); in and()
55 public static Validator or(@NonNull Validator...validators) { in or() argument
56 return new OptionalValidators(getInternalValidators(validators)); in or()
74 private static InternalValidator[] getInternalValidators(Validator[] validators) { in getInternalValidators() argument
75 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 " + i + " not provided by Android System: " + validators[i]); in getInternalValidators() local
[all …]
DOptionalValidators.java42 OptionalValidators(@NonNull InternalValidator[] validators) { in OptionalValidators() argument
43 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in OptionalValidators()
DRequiredValidators.java42 RequiredValidators(@NonNull InternalValidator[] validators) { in RequiredValidators() argument
43 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in RequiredValidators()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java601 Map<String, Validator> validators = null; in restoreSettings() local
605 validators = Settings.Secure.VALIDATORS; in restoreSettings()
609 validators = Settings.System.VALIDATORS; in restoreSettings()
613 validators = Settings.Global.VALIDATORS; in restoreSettings()
662 if (!isValidSettingValue(key, value, validators)) { in restoreSettings()
686 Map<String, Validator> validators) { in isValidSettingValue() argument
687 if (key == null || validators == null) { in isValidSettingValue()
690 Validator validator = validators.get(key); in isValidSettingValue()
DSettingsProvider.java370 SettingsValidators.Validator> validators) { in getOffenders() argument
373 if (validators.get(setting) == null) { in getOffenders()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsValidatorsTest.java280 private String getOffenders(String[] settingsToBackup, Map<String, Validator> validators) { in getOffenders() argument
283 if (validators.get(setting) == null) { in getOffenders()