Searched refs:validator (Results 1 - 22 of 22) sorted by relevance

/frameworks/ex/common/tests/src/com/android/common/
H A DRfc822ValidatorTest.java82 Rfc822Validator validator = new Rfc822Validator("gmail.com");
85 assertTrue(email + " should be a valid email address", validator.isValid(email));
89 assertFalse(email + " should not be a valid email address", validator.isValid(email));
99 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString());
105 Rfc822Validator validator = new Rfc822Validator(null);
114 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString());
120 Rfc822Validator validator = new Rfc822Validator("google.com");
121 validator.setRemoveInvalid(true);
130 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString());
/frameworks/base/core/java/android/service/autofill/
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 DOptionalValidators.java29 * Compound validator that returns {@code true} on {@link #isValid(ValueFinder)} if any
48 for (InternalValidator validator : mValidators) {
49 final boolean valid = validator.isValid(finder);
50 if (sDebug) Log.d(TAG, "isValid(" + validator + "): " + valid);
H A DRequiredValidators.java29 * Compound validator that only returns {@code true} on {@link #isValid(ValueFinder)} if all
48 for (InternalValidator validator : mValidators) {
49 final boolean valid = validator.isValid(finder);
50 if (sDebug) Log.d(TAG, "isValid(" + validator + "): " + valid);
H A DNegationValidator.java35 NegationValidator(@NonNull InternalValidator validator) { argument
36 mValidator = Preconditions.checkNotNull(validator);
51 return "NegationValidator: [validator=" + mValidator + "]";
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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DCertificateVerifier.java47 CertPathValidator validator =
55 validator.validate(path, params);
/frameworks/support/lifecycle/compiler/src/main/kotlin/androidx/lifecycle/
H A Dinput_collector.kt40 val validator = Validator(processingEnv)
44 validator.printErrorMessage(ErrorMessages.INVALID_ANNOTATED_ELEMENT, elem)
48 if (validator.validateClass(enclosingElement)) {
69 val validator = Validator(processingEnv)
97 if (!validator.validateClass(typeElement)) {
104 if (validator.validateMethod(executable, onState.value)) {
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/
H A DPagedStorageDiffHelperTest.kt113 validator: (callback: ListUpdateCallback) -> Unit) {
119 validator(listUpdateCallback)
/frameworks/base/libs/hwui/tests/unit/
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
H A DBakedOpStateTests.cpp95 const std::function<void(const ResolvedRenderState&)> validator; member in struct:android::uirenderer::StrokeTestCase
162 testCase.validator(state);
/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/tools/aapt2/
H A DResourceTable.h276 bool ValidateName(NameValidator validator, const ResourceNameRef& name, const Source& source,
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java671 Validator validator = validators.get(key);
672 return (validator != null) && validator.validate(value);
H A DSettingsProvider.java305 // fail to boot if there're any backed up settings that don't have a non-null validator
352 + " have to have a non-null validator, but those don't: " + offenders);
1542 SettingsValidators.Validator validator = Settings.System.VALIDATORS.get(name);
1543 if (validator != null && !validator.validate(value)) {
/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/base/services/autofill/java/com/android/server/autofill/
H A DSession.java1576 final InternalValidator validator = saveInfo.getValidator();
1577 if (validator != null) {
1581 isValid = validator.isValid(this);
1582 if (sDebug) Slog.d(TAG, validator + " returned " + isValid);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiServiceImpl.java1899 CertPathValidator validator =
1907 validator.validate(path, params);
/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 515 milliseconds