Home
last modified time | relevance | path

Searched refs:validator (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/ex/common/tests/src/com/android/common/
DRfc822ValidatorTest.java82 Rfc822Validator validator = new Rfc822Validator("gmail.com"); in testEmailValidator() local
85 assertTrue(email + " should be a valid email address", validator.isValid(email)); in testEmailValidator()
89 assertFalse(email + " should not be a valid email address", validator.isValid(email)); in testEmailValidator()
99 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); in testEmailValidator()
105 Rfc822Validator validator = new Rfc822Validator(null); in testEmailValidatorNullDomain() local
114 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); in testEmailValidatorNullDomain()
120 Rfc822Validator validator = new Rfc822Validator("google.com"); in testEmailValidatorRemoveInvalid() local
121 validator.setRemoveInvalid(true); in testEmailValidatorRemoveInvalid()
130 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); in testEmailValidatorRemoveInvalid()
/frameworks/base/startop/view_compiler/
Dtinyxml_layout_parser.cc23 LayoutValidationVisitor validator; in CanCompileLayout() local
24 TinyXmlVisitorAdapter adapter{&validator}; in CanCompileLayout()
28 *message = validator.message(); in CanCompileLayout()
31 return validator.can_compile(); in CanCompileLayout()
/frameworks/base/core/java/android/service/autofill/
DValidators.java68 public static Validator not(@NonNull Validator validator) { in not() argument
69 Preconditions.checkArgument(validator instanceof InternalValidator, in not()
70 "validator not provided by Android System: " + validator); in not()
71 return new NegationValidator((InternalValidator) validator); in not()
DOptionalValidators.java48 for (InternalValidator validator : mValidators) { in isValid()
49 final boolean valid = validator.isValid(finder); in isValid()
50 if (sDebug) Log.d(TAG, "isValid(" + validator + "): " + valid); in isValid()
DRequiredValidators.java48 for (InternalValidator validator : mValidators) { in isValid()
49 final boolean valid = validator.isValid(finder); in isValid()
50 if (sDebug) Log.d(TAG, "isValid(" + validator + "): " + valid); in isValid()
DSaveInfo.java596 public @NonNull Builder setValidator(@NonNull Validator validator) { in setValidator() argument
598 Preconditions.checkArgument((validator instanceof InternalValidator), in setValidator()
599 "not provided by Android System: " + validator); in setValidator() local
600 mValidator = (InternalValidator) validator; in setValidator()
802 final InternalValidator validator = parcel.readParcelable(null);
803 if (validator != null) {
804 builder.setValidator(validator);
DNegationValidator.java35 NegationValidator(@NonNull InternalValidator validator) { in NegationValidator() argument
36 mValidator = Preconditions.checkNotNull(validator); in NegationValidator()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DCertificateVerifier.java47 CertPathValidator validator = in verifyCaCert() local
55 validator.validate(path, params); in verifyCaCert()
/frameworks/opt/gamesdk/samples/tuningfork/tfvalidate/
Dmain.cpp35 tf::ApkValidator validator(zipFile, asset_path, debug); in validateApk() local
36 return validator.Validate(enforce_enums_in_annotations, in validateApk()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java57 public ValidationInfo(ParameterValidator validator, int type) { in ValidationInfo() argument
58 parameterValidator = validator; in ValidationInfo()
189 private void addValidationInfo(int opcode, ParameterValidator validator, int addrType) { in addValidationInfo() argument
190 mValidationInfo.append(opcode, new ValidationInfo(validator, addrType)); in addValidationInfo()
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.h168 LocalParamValidator validator; member
170 validator = [validator_](std::unique_ptr<C2Param>& p){
182 mLocalParams.emplace(index, validator);
DCCodecConfig.cpp1560 LocalParamValidator validator = mLocalParams.find(param->index())->second; in setParameters() local
1563 if (validator) { in setParameters()
1564 err = validator(copy); in setParameters()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeFiltering.java90 ValidateNotificationPeople validator, int contactsTimeoutMs, float timeoutAffinity) { in matchesCallFilter() argument
99 if (validator != null) { in matchesCallFilter()
100 final float contactAffinity = validator.getContactAffinity(userHandle, extras, in matchesCallFilter()
DZenModeHelper.java157 ValidateNotificationPeople validator, int contactsTimeoutMs, float timeoutAffinity) { in matchesCallFilter() argument
160 userHandle, extras, validator, contactsTimeoutMs, timeoutAffinity); in matchesCallFilter()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/
Dconformance_test.h140 const Validator& validator);
Dconformance_test.cc410 const Validator& validator) { in RunValidJsonTestWithValidator() argument
439 if (!validator(value)) { in RunValidJsonTestWithValidator()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java671 Validator validator = validators.get(key); in isValidSettingValue() local
672 return (validator != null) && validator.validate(value); in isValidSettingValue()
DSettingsProvider.java1776 SettingsValidators.Validator validator = Settings.System.VALIDATORS.get(name);
1777 if (validator != null && !validator.validate(value)) {
/frameworks/base/core/java/android/widget/
DAutoCompleteTextView.java1370 public void setValidator(Validator validator) { in setValidator() argument
1371 mValidator = validator; in setValidator()
/frameworks/base/tools/aapt2/
DResourceTable.h322 bool ValidateName(NameValidator validator, const ResourceNameRef& name, const Source& source,
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java1666 AccountAuthorityValidator validator = new AccountAuthorityValidator(mContext); in readAccountInfoLocked() local
1672 authority = parseAuthority(parser, version, validator); in readAccountInfoLocked()
1802 AccountAuthorityValidator validator) { in parseAuthority() argument
1846 if (validator.isAccountValid(info.account, userId) in parseAuthority()
1847 && validator.isAuthorityValid(authorityName, userId)) { in parseAuthority()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DSession.java1800 final InternalValidator validator = saveInfo.getValidator(); in showSaveLocked() local
1801 if (validator != null) { in showSaveLocked()
1805 isValid = validator.isValid(this); in showSaveLocked()
1806 if (sDebug) Slog.d(TAG, validator + " returned " + isValid); in showSaveLocked()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1563 public void setValidator(Validator validator) { in setValidator() argument
1564 mValidator = validator; in setValidator()
1565 super.setValidator(validator); in setValidator()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java2082 CertPathValidator validator = in verifyCert() local
2090 validator.validate(path, params); in verifyCert()
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto4850 // Result of the validation on save when an autofill service provided a validator

12