Home
last modified time | relevance | path

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

/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/ml/nn/runtime/
DMemory.h187 void setValidator(std::unique_ptr<MemoryValidatorBase> validator) { in setValidator() argument
188 mValidator = std::move(validator); in setValidator()
203 Memory(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator);
326 MemoryAHWB(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator) in MemoryAHWB() argument
327 : Memory(std::move(memory), std::move(validator)) {} in MemoryAHWB()
DMemory.cpp190 Memory::Memory(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator) in Memory() argument
191 : kHidlMemory(std::move(memory)), mValidator(std::move(validator)) {} in Memory()
516 auto validator = in allocate() local
518 memory->setValidator(std::move(validator)); in allocate()
590 std::unique_ptr<MemoryValidatorBase> validator; in create() local
593 validator = std::make_unique<SizedMemoryValidator>(bufferDesc.width); in create()
597 validator = std::make_unique<AHardwareBufferNonBlobValidator>(); in create()
599 auto memory = std::make_unique<MemoryAHWB>(std::move(hidlMemory), std::move(validator)); in create()
/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.h170 LocalParamValidator validator; member
172 validator = [validator_](std::unique_ptr<C2Param>& p){
184 mLocalParams.emplace(index, validator);
DCCodecConfig.cpp1577 LocalParamValidator validator = mLocalParams.find(param->index())->second; in setParameters() local
1580 if (validator) { in setParameters()
1581 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/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java690 Validator validator = validators.get(key); in isValidSettingValue() local
691 return (validator != null) && validator.validate(value); in isValidSettingValue()
DSettingsProvider.java1784 SettingsValidators.Validator validator = Settings.System.VALIDATORS.get(name);
1785 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.java1566 public void setValidator(Validator validator) { in setValidator() argument
1567 mValidator = validator; in setValidator()
1568 super.setValidator(validator); in setValidator()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java2129 CertPathValidator validator = in verifyCert() local
2137 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
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt102649 Lcom/android/org/conscrypt/TrustManagerImpl;->validator:Ljava/security/cert/CertPathValidator;