Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/service/autofill/
DValidators.java40 public static Validator and(@NonNull Validator...validators) { in and() argument
41 return new RequiredValidators(getInternalValidators(validators)); in and()
51 public static Validator or(@NonNull Validator...validators) { in or() argument
52 return new OptionalValidators(getInternalValidators(validators)); in or()
55 private static InternalValidator[] getInternalValidators(Validator[] validators) { in getInternalValidators() argument
56 Preconditions.checkArrayElementsNotNull(validators, "validators"); in getInternalValidators()
58 final InternalValidator[] internals = new InternalValidator[validators.length]; in getInternalValidators()
60 for (int i = 0; i < validators.length; i++) { in getInternalValidators()
61 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()
62 "element " + i + " not provided by Android System: " + validators[i]); in getInternalValidators() local
[all …]
DOptionalValidators.java39 OptionalValidators(@NonNull InternalValidator[] validators) { in OptionalValidators() argument
40 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in OptionalValidators()
DRequiredValidators.java39 RequiredValidators(@NonNull InternalValidator[] validators) { in RequiredValidators() argument
40 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in RequiredValidators()