Home
last modified time | relevance | path

Searched refs:validator (Results 1 – 25 of 31) 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/layoutlib/validator/src/com/android/tools/idea/validator/
DLayoutValidator.java17 package com.android.tools.idea.validator;
19 import com.android.tools.idea.validator.ValidatorData.Level;
20 import com.android.tools.idea.validator.ValidatorData.Policy;
21 import com.android.tools.idea.validator.ValidatorData.Type;
22 import com.android.tools.idea.validator.accessibility.AccessibilityValidator;
DValidatorResult.java17 package com.android.tools.idea.validator;
19 import com.android.tools.idea.validator.ValidatorData.Issue;
20 import com.android.tools.idea.validator.ValidatorData.Level;
DValidatorData.java17 package com.android.tools.idea.validator;
/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: %s", validator); in not()
71 return new NegationValidator((InternalValidator) validator); in not()
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()
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()
DSaveInfo.java687 public @NonNull Builder setValidator(@NonNull Validator validator) { in setValidator() argument
689 Preconditions.checkArgument((validator instanceof InternalValidator), in setValidator()
690 "not provided by Android System: %s", validator); in setValidator() local
691 mValidator = (InternalValidator) validator; in setValidator()
897 final InternalValidator validator = parcel.readParcelable(null);
898 if (validator != null) {
899 builder.setValidator(validator);
DNegationValidator.java35 NegationValidator(@NonNull InternalValidator validator) { in NegationValidator() argument
36 mValidator = Preconditions.checkNotNull(validator); in NegationValidator()
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/accessibility/
DAccessibilityValidator.java17 package com.android.tools.idea.validator.accessibility;
19 import com.android.tools.idea.validator.ValidatorData;
20 import com.android.tools.idea.validator.ValidatorData.Fix;
21 import com.android.tools.idea.validator.ValidatorData.Issue.IssueBuilder;
22 import com.android.tools.idea.validator.ValidatorData.Level;
23 import com.android.tools.idea.validator.ValidatorData.Type;
24 import com.android.tools.idea.validator.ValidatorResult;
25 import com.android.tools.idea.validator.ValidatorResult.Metric;
DAtfBufferedImage.java17 package com.android.tools.idea.validator.accessibility;
19 import com.android.tools.idea.validator.ValidatorResult.Metric;
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/
DWaitUtils.kt25 val (success, _) = waitForResult(extractor = condition, validator = { it }) in wait()
33 validator: (R) -> Boolean = { it != null } in waitForResult()
38 if (validator(result)) {
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/accessibility/
DAccessibilityValidatorTests.java17 package com.android.tools.idea.validator.accessibility;
26 import com.android.tools.idea.validator.LayoutValidator;
27 import com.android.tools.idea.validator.ValidatorData;
28 import com.android.tools.idea.validator.ValidatorData.Issue;
29 import com.android.tools.idea.validator.ValidatorData.Level;
30 import com.android.tools.idea.validator.ValidatorData.Policy;
31 import com.android.tools.idea.validator.ValidatorData.Type;
32 import com.android.tools.idea.validator.ValidatorResult;
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DMain.java25 import com.android.tools.idea.validator.LayoutValidatorTests;
26 import com.android.tools.idea.validator.accessibility.AccessibilityValidatorTests;
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/
DLayoutValidatorTests.java17 package com.android.tools.idea.validator;
24 import com.android.tools.idea.validator.ValidatorData.Issue;
25 import com.android.tools.idea.validator.ValidatorData.Level;
26 import com.android.tools.idea.validator.ValidatorData.Type;
/frameworks/layoutlib/bridge/
DAndroid.bp38 "layoutlib-validator",
67 "layoutlib-validator",
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.h181 LocalParamValidator validator; member
183 validator = [validator_](std::unique_ptr<C2Param>& p){
195 mLocalParams.emplace(index, validator);
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeFiltering.java91 ValidateNotificationPeople validator, int contactsTimeoutMs, float timeoutAffinity) { in matchesCallFilter() argument
100 if (validator != null) { in matchesCallFilter()
101 final float contactAffinity = validator.getContactAffinity(userHandle, extras, in matchesCallFilter()
/frameworks/layoutlib/validator/
DAndroid.bp22 name: "layoutlib-validator",
/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()
253 private void addValidationInfo(int opcode, ParameterValidator validator, int addrType) { in addValidationInfo() argument
254 mValidationInfo.append(opcode, new ValidationInfo(validator, addrType)); in addValidationInfo()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java49 import com.android.tools.idea.validator.LayoutValidator;
50 import com.android.tools.idea.validator.ValidatorResult;
51 import com.android.tools.idea.validator.ValidatorResult.Builder;
/frameworks/base/core/java/android/widget/
DAutoCompleteTextView.java1371 public void setValidator(Validator validator) { in setValidator() argument
1372 mValidator = validator; in setValidator()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java906 Validator validator = validators.get(key); in isValidSettingValue() local
907 return (validator != null) && validator.validate(value); in isValidSettingValue()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java1670 AccountAuthorityValidator validator = new AccountAuthorityValidator(mContext); in readAccountInfoLocked() local
1676 authority = parseAuthority(parser, version, validator); in readAccountInfoLocked()
1802 AccountAuthorityValidator validator) throws XmlPullParserException { in parseAuthority() argument
1843 if (validator.isAccountValid(info.account, userId) in parseAuthority()
1844 && validator.isAuthorityValid(authorityName, userId)) { in parseAuthority()

12