Searched defs:validator (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/core/java/android/service/autofill/
H A DNegationValidator.java35 NegationValidator(@NonNull InternalValidator validator) { argument
36 mValidator = Preconditions.checkNotNull(validator);
51 return "NegationValidator: [validator=" + mValidator + "]";
H A DValidators.java34 * Creates a validator that is only valid if all {@code validators} are valid.
47 * Creates a validator that is valid if any of the {@code validators} is valid.
60 * Creates a validator that is valid when {@code validator} is not, and vice versa.
64 * @throws IllegalArgumentException if {@code validator} is an instance of a class that is not
68 public static Validator not(@NonNull Validator validator) { argument
69 Preconditions.checkArgument(validator instanceof InternalValidator,
70 "validator not provided by Android System: " + validator);
71 return new NegationValidator((InternalValidator) validator);
[all...]
H A DSaveInfo.java521 * Validator validator = new RegexValidator(ccNumberId, Pattern.compile(""^\\d{16}$"))
531 * Validator validator =
541 * <p><b>Note:</b> the example above is just for illustrative purposes; the same validator
545 * Validator validator =
558 * Validator validator =
567 * @param validator an implementation provided by the Android System.
570 * @throws IllegalArgumentException if {@code validator} is not a class provided
573 public @NonNull Builder setValidator(@NonNull Validator validator) { argument
575 Preconditions.checkArgument((validator instanceof InternalValidator),
576 "not provided by Android System: " + validator);
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpStateTests.cpp95 const std::function<void(const ResolvedRenderState&)> validator; member in struct:android::uirenderer::StrokeTestCase
162 testCase.validator(state);
H A DBakedOpDispatcherTests.cpp40 std::function<void(const Glop& glop)> validator)
42 , mValidator(validator) {
198 std::function<void(const Glop& glop)> validator) {
218 ValidatingBakedOpRenderer renderer(renderThread.renderState(), validator);
39 ValidatingBakedOpRenderer(RenderState& renderState, std::function<void(const Glop& glop)> validator) argument
197 validateLayerDraw(renderthread::RenderThread& renderThread, std::function<void(const Glop& glop)> validator) argument
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecMessageValidator.java57 public ValidationInfo(ParameterValidator validator, int type) { argument
58 parameterValidator = validator;
189 private void addValidationInfo(int opcode, ParameterValidator validator, int addrType) { argument
190 mValidationInfo.append(opcode, new ValidationInfo(validator, addrType));
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenModeFiltering.java92 UserHandle userHandle, Bundle extras, ValidateNotificationPeople validator,
101 if (validator != null) {
102 final float contactAffinity = validator.getContactAffinity(userHandle, extras,
91 matchesCallFilter(Context context, int zen, ZenModeConfig config, UserHandle userHandle, Bundle extras, ValidateNotificationPeople validator, int contactsTimeoutMs, float timeoutAffinity) argument
H A DZenModeHelper.java155 ValidateNotificationPeople validator, int contactsTimeoutMs, float timeoutAffinity) {
158 extras, validator, contactsTimeoutMs, timeoutAffinity);
154 matchesCallFilter(UserHandle userHandle, Bundle extras, ValidateNotificationPeople validator, int contactsTimeoutMs, float timeoutAffinity) argument
/frameworks/base/core/java/android/widget/
H A DAutoCompleteTextView.java1263 * Sets the validator used to perform text validation.
1265 * @param validator The validator used to validate the text entered in this widget.
1270 public void setValidator(Validator validator) { argument
1271 mValidator = validator;
1286 * If a validator was set on this view and the current string is not valid,
1287 * ask the validator to fix it.
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncStorageEngine.java1650 AccountAuthorityValidator validator = new AccountAuthorityValidator(mContext);
1656 authority = parseAuthority(parser, version, validator);
1786 AccountAuthorityValidator validator) {
1830 if (validator.isAccountValid(info.account, userId)
1831 && validator.isAuthorityValid(authorityName, userId)) {
1785 parseAuthority(XmlPullParser parser, int version, AccountAuthorityValidator validator) argument
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java1516 // Try fixing up the entry using the validator.
1520 // protect against the case of a validator with a null
1531 // by the validator. In this case, just use the original
1563 public void setValidator(Validator validator) { argument
1564 mValidator = validator;
1565 super.setValidator(validator);

Completed in 222 milliseconds