Home
last modified time | relevance | path

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

1234567891011

/external/pdfium/core/fpdfapi/parser/
Dcpdf_read_validator_unittest.cpp71 auto validator = pdfium::MakeRetain<CPDF_ReadValidator>(file, &file_avail); in TEST() local
74 EXPECT_FALSE(validator->ReadBlockAtOffset(read_buffer.data(), 5000, in TEST()
77 EXPECT_FALSE(validator->read_error()); in TEST()
78 EXPECT_TRUE(validator->has_unavailable_data()); in TEST()
80 validator->ResetErrors(); in TEST()
84 EXPECT_TRUE(validator->ReadBlockAtOffset(read_buffer.data(), 5000, in TEST()
86 EXPECT_FALSE(validator->read_error()); in TEST()
87 EXPECT_FALSE(validator->has_unavailable_data()); in TEST()
94 auto validator = pdfium::MakeRetain<CPDF_ReadValidator>(file, &file_avail); in TEST() local
97 validator->SetDownloadHints(&hints); in TEST()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java11 …org.bouncycastle.asn1.x509.PKIXNameConstraintValidator validator = new org.bouncycastle.asn1.x509.… field in PKIXNameConstraintValidator
19 return validator.hashCode(); in hashCode()
29 return this.validator.equals(constraintValidator.validator); in equals()
37 this.validator.checkPermittedDN(X500Name.getInstance(dns)); in checkPermittedDN()
50 this.validator.checkExcludedDN(X500Name.getInstance(dns)); in checkExcludedDN()
70 validator.checkPermitted(name); in checkPermitted()
91 validator.checkExcluded(name); in checkExcluded()
101 validator.intersectPermittedSubtree(permitted); in intersectPermittedSubtree()
113 validator.intersectPermittedSubtree(permitted); in intersectPermittedSubtree()
118 validator.intersectEmptyPermittedSubtree(nameType); in intersectEmptyPermittedSubtree()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java15 …com.android.org.bouncycastle.asn1.x509.PKIXNameConstraintValidator validator = new com.android.org… field in PKIXNameConstraintValidator
23 return validator.hashCode(); in hashCode()
33 return this.validator.equals(constraintValidator.validator); in equals()
41 this.validator.checkPermittedDN(X500Name.getInstance(dns)); in checkPermittedDN()
54 this.validator.checkExcludedDN(X500Name.getInstance(dns)); in checkExcludedDN()
74 validator.checkPermitted(name); in checkPermitted()
95 validator.checkExcluded(name); in checkExcluded()
105 validator.intersectPermittedSubtree(permitted); in intersectPermittedSubtree()
117 validator.intersectPermittedSubtree(permitted); in intersectPermittedSubtree()
122 validator.intersectEmptyPermittedSubtree(nameType); in intersectEmptyPermittedSubtree()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java15 …com.android.internal.org.bouncycastle.asn1.x509.PKIXNameConstraintValidator validator = new com.an… field in PKIXNameConstraintValidator
23 return validator.hashCode(); in hashCode()
33 return this.validator.equals(constraintValidator.validator); in equals()
41 this.validator.checkPermittedDN(X500Name.getInstance(dns)); in checkPermittedDN()
54 this.validator.checkExcludedDN(X500Name.getInstance(dns)); in checkExcludedDN()
74 validator.checkPermitted(name); in checkPermitted()
95 validator.checkExcluded(name); in checkExcluded()
105 validator.intersectPermittedSubtree(permitted); in intersectPermittedSubtree()
117 validator.intersectPermittedSubtree(permitted); in intersectPermittedSubtree()
122 validator.intersectEmptyPermittedSubtree(nameType); in intersectEmptyPermittedSubtree()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DParserConfiguration.java37 import com.github.javaparser.ast.validator.Java10Validator;
38 import com.github.javaparser.ast.validator.Java11Validator;
39 import com.github.javaparser.ast.validator.Java12Validator;
40 import com.github.javaparser.ast.validator.Java1_0Validator;
41 import com.github.javaparser.ast.validator.Java1_1Validator;
42 import com.github.javaparser.ast.validator.Java1_2Validator;
43 import com.github.javaparser.ast.validator.Java1_3Validator;
44 import com.github.javaparser.ast.validator.Java1_4Validator;
45 import com.github.javaparser.ast.validator.Java5Validator;
46 import com.github.javaparser.ast.validator.Java6Validator;
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DSingleNodeTypeValidator.java1 package com.github.javaparser.ast.validator;
10 private final TypedValidator<N> validator; field in SingleNodeTypeValidator
12 public SingleNodeTypeValidator(Class<N> type, TypedValidator<N> validator) { in SingleNodeTypeValidator() argument
14 this.validator = validator; in SingleNodeTypeValidator()
20 validator.accept(type.cast(node), problemReporter); in accept()
22 node.findAll(type).forEach(n -> validator.accept(n, problemReporter)); in accept()
DTreeVisitorValidator.java1 package com.github.javaparser.ast.validator;
9 private final Validator validator; field in TreeVisitorValidator
11 public TreeVisitorValidator(Validator validator) { in TreeVisitorValidator() argument
12 this.validator = validator; in TreeVisitorValidator()
17 validator.accept(node, reporter); in accept()
DJava9Validator.java1 package com.github.javaparser.ast.validator;
4 import com.github.javaparser.ast.validator.chunks.ModifierValidator;
5 import com.github.javaparser.ast.validator.chunks.UnderscoreKeywordValidator;
DValidators.java1 package com.github.javaparser.ast.validator;
23 public Validators remove(Validator validator) { in remove() argument
24 if (!validators.remove(validator)) { in remove()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesGetCheckedBenchmark.java57 final GetCheckedTypeValidator validator; field in FuturesGetCheckedBenchmark.Validator
59 Validator(GetCheckedTypeValidator validator) { in Validator() argument
60 this.validator = validator; in Validator()
101 @Param Validator validator; field in FuturesGetCheckedBenchmark
118 GetCheckedTypeValidator validator = this.validator.validator; in addOtherEntries() local
123 getChecked(validator, immediateFuture(""), exceptionClass); in addOtherEntries()
142 GetCheckedTypeValidator validator = this.validator.validator; in benchmarkGetChecked() local
147 tmp += getChecked(validator, future, exceptionType).hashCode(); in benchmarkGetChecked()
/external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesGetCheckedBenchmark.java57 final GetCheckedTypeValidator validator; field in FuturesGetCheckedBenchmark.Validator
59 Validator(GetCheckedTypeValidator validator) { in Validator() argument
60 this.validator = validator; in Validator()
101 @Param Validator validator; field in FuturesGetCheckedBenchmark
118 GetCheckedTypeValidator validator = this.validator.validator; in addOtherEntries() local
123 getChecked(validator, immediateFuture(""), exceptionClass); in addOtherEntries()
142 GetCheckedTypeValidator validator = this.validator.validator; in benchmarkGetChecked() local
147 tmp += getChecked(validator, future, exceptionType).hashCode(); in benchmarkGetChecked()
/external/dagger2/java/dagger/internal/codegen/validation/
DBindingMethodValidator.java252 protected String errorMessage(BindingMethodValidator validator) { in errorMessage() argument
253 return validator.bindingMethods("may not throw"); in errorMessage()
258 BindingMethodValidator validator, in checkThrows() argument
262 report.addError(validator.bindingMethods("may not throw")); in checkThrows()
271 protected String errorMessage(BindingMethodValidator validator) { in EXCEPTION() argument
272 return validator.bindingMethods( in EXCEPTION()
280 protected String errorMessage(BindingMethodValidator validator) { in RUNTIME_EXCEPTION() argument
281 return validator.bindingMethods("may only throw unchecked exceptions"); in RUNTIME_EXCEPTION()
303 BindingMethodValidator validator, in checkThrows() argument
306 TypeMirror exceptionSupertype = validator.elements.getTypeElement(superclass).asType(); in checkThrows()
[all …]
DBindingMethodValidatorsModule.java43 BindingMethodValidator provides(ProvidesMethodValidator validator); in provides() argument
47 BindingMethodValidator produces(ProducesMethodValidator validator); in produces() argument
51 BindingMethodValidator binds(BindsMethodValidator validator); in binds() argument
55 BindingMethodValidator multibinds(MultibindsMethodValidator validator); in multibinds() argument
59 BindingMethodValidator bindsOptionalOf(BindsOptionalOfMethodValidator validator); in bindsOptionalOf() argument
/external/libchrome/components/json_schema/
Djson_schema_validator_unittest.cc21 JSONSchemaValidator validator(schema, types); in ExpectValid() local
22 if (validator.Validate(instance)) in ExpectValid()
25 for (size_t i = 0; i < validator.errors().size(); ++i) { in ExpectValid()
27 << validator.errors()[i].path << ": " in ExpectValid()
28 << validator.errors()[i].message; in ExpectValid()
38 JSONSchemaValidator validator(schema, types); in ExpectNotValid() local
39 if (validator.Validate(instance)) { in ExpectNotValid()
44 ASSERT_EQ(1u, validator.errors().size()) << test_source; in ExpectNotValid()
45 EXPECT_EQ(expected_error_path, validator.errors()[0].path) << test_source; in ExpectNotValid()
46 EXPECT_EQ(expected_error_message, validator.errors()[0].message) in ExpectNotValid()
/external/junit/src/main/java/org/junit/validator/
DAnnotationsValidator.java1 package org.junit.validator;
35 for (AnnotatableValidator<?> validator : VALIDATORS) { in validateTestClass()
36 List<Exception> additionalErrors= validator in validateTestClass()
49 AnnotationValidator validator, T annotatable); in validateAnnotatable() argument
87 AnnotationValidator validator, TestClass testClass) { in validateAnnotatable() argument
88 return validator.validateAnnotatedClass(testClass); in validateAnnotatable()
102 AnnotationValidator validator, FrameworkMethod method) { in validateAnnotatable() argument
103 return validator.validateAnnotatedMethod(method); in validateAnnotatable()
116 AnnotationValidator validator, FrameworkField field) { in validateAnnotatable() argument
117 return validator.validateAnnotatedField(field); in validateAnnotatable()
DAnnotationValidatorFactory.java1 package org.junit.validator;
24 AnnotationValidator validator = VALIDATORS_FOR_ANNOTATION_TYPES.get(validateWithAnnotation); in createAnnotationValidator() local
25 if (validator != null) { in createAnnotationValidator()
26 return validator; in createAnnotationValidator()
/external/mockito/src/test/java/org/mockito/internal/util/
DMockCreationValidatorTest.java22 MockCreationValidator validator = new MockCreationValidator(); field in MockCreationValidatorTest
28 validator.validateExtraInterfaces(IMethods.class, (Collection) asList(IMethods.class)); in should_not_allow_extra_interface_that_is_the_same_as_the_mocked_type()
39 validator.validateMockedType(List.class, new ArrayList()); in should_not_allow_inconsistent_types()
46 validator.validateMockedType(ArrayList.class, new ArrayList()); in should_allow_only_consistent_types()
53 validator.validateMockedType(null, new ArrayList()); in should_validation_be_safe_when_nulls_passed()
55 validator.validateMockedType(ArrayList.class, null); in should_validation_be_safe_when_nulls_passed()
62 validator.validateType(long.class); in should_fail_when_type_not_mockable()
/external/libchrome/base/i18n/
Dstreaming_utf8_validator_unittest.cc80 StreamingUtf8Validator validator; in TestNumber() local
82 validator.AddBytes(test, sizeof n) == VALID_ENDPOINT) in TestNumber()
239 StreamingUtf8Validator validator; in CheckRange() local
242 validator.AddBytes(sequence.data(), sequence.size())) in CheckRange()
253 StreamingUtf8Validator validator; in CheckRangeByteAtATime() local
259 state = validator.AddBytes(&*cit, 1); in CheckRangeByteAtATime()
278 StreamingUtf8Validator validator; in CheckCombinations() local
283 validator.AddBytes(c1.data(), c1.size()); in CheckCombinations()
284 EXPECT_EQ(expected, validator.AddBytes(c2.data(), c2.size())) in CheckCombinations()
286 validator.Reset(); in CheckCombinations()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DAccessibilityUtil.java33 private static AccessibilityValidator validator; field in AccessibilityUtil
118 validator.setCheckPreset(convertRoboVersionToA11yTestVersion(forVersion)); in setRunChecksForRobolectricVersion()
133 validator.setRunChecksFromRootView(runChecksFromRootView); in setRunChecksFromRootView()
156 validator.setSuppressingResultMatcher( in setSuppressingResultMatcher()
159 validator.setSuppressingResultMatcher( in setSuppressingResultMatcher()
172 validator.setThrowExceptionForErrors(throwExceptionForErrors); in setThrowExceptionForErrors()
195 validator.setCheckPreset( in checkView()
198 validator.setCheckPreset(AccessibilityCheckPreset.LATEST); in checkView()
201 return validator.checkAndReturnResults(view); in checkView()
263 if (validator == null) { in initializeValidator()
[all …]
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DRobolectricProcessor.java23 import org.robolectric.annotation.processing.validator.ImplementationValidator;
24 import org.robolectric.annotation.processing.validator.ImplementsValidator;
25 import org.robolectric.annotation.processing.validator.ImplementsValidator.SdkCheckMode;
26 import org.robolectric.annotation.processing.validator.RealObjectValidator;
27 import org.robolectric.annotation.processing.validator.ResetterValidator;
28 import org.robolectric.annotation.processing.validator.Validator;
89 Validator validator = elementValidators.get(annotation); in process() local
90 if (validator != null) { in process()
92 validator.visit(elem, elem.getEnclosingElement()); in process()
/external/jcommander/src/main/java/com/beust/jcommander/
DParameterDescription.java332 for(final Class<? extends IParameterValidator> validator: validators) { in validateParameter()
333 validateParameter(this, validator, name, value); in validateParameter()
341 for(final Class<? extends IValueValidator> validator: validators) { in validateValueParameter()
342 validateValueParameter(validator, name, value); in validateValueParameter()
347 public static void validateValueParameter(Class<? extends IValueValidator> validator, in validateValueParameter() argument
350 if (validator != NoValueValidator.class) { in validateValueParameter()
351 p("Validating value parameter:" + name + " value:" + value + " validator:" + validator); in validateValueParameter()
353 validator.newInstance().validate(name, value); in validateValueParameter()
360 Class<? extends IParameterValidator> validator, in validateParameter() argument
364 if (validator != NoValidator.class) { in validateParameter()
[all …]
/external/skqp/src/image/
DSkImage_Lazy.cpp124 SkImage_Lazy::SkImage_Lazy(Validator* validator) in SkImage_Lazy() argument
125 : INHERITED(validator->fInfo.width(), validator->fInfo.height(), validator->fUniqueID) in SkImage_Lazy()
126 , fSharedGenerator(std::move(validator->fSharedGenerator)) in SkImage_Lazy()
127 , fInfo(validator->fInfo) in SkImage_Lazy()
128 , fOrigin(validator->fOrigin) { in SkImage_Lazy()
130 fUniqueID = validator->fUniqueID; in SkImage_Lazy()
258 Validator validator(fSharedGenerator, &generatorSubset, &colorType, fInfo.refColorSpace()); in onMakeSubset() local
259 return validator ? sk_sp<SkImage>(new SkImage_Lazy(&validator)) : nullptr; in onMakeSubset()
272 Validator validator(fSharedGenerator, &generatorSubset, &targetCT, targetCS); in onMakeColorTypeAndColorSpace() local
273 sk_sp<SkImage> result = validator ? sk_sp<SkImage>(new SkImage_Lazy(&validator)) : nullptr; in onMakeColorTypeAndColorSpace()
[all …]
/external/llvm-project/lldb/include/lldb/Interpreter/
DOptionValueString.h30 OptionValueString(ValidatorCallback validator, void *baton = nullptr)
32 m_validator(validator), m_validator_baton(baton) {} in OptionValue()
52 OptionValueString(const char *value, ValidatorCallback validator,
55 m_validator(validator), m_validator_baton(baton) { in OptionValue()
63 ValidatorCallback validator, void *baton = nullptr)
65 m_validator(validator), m_validator_baton(baton) { in OptionValue()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
DCommonValidators.java1 package com.github.javaparser.ast.validator.chunks;
7 import com.github.javaparser.ast.validator.SimpleValidator;
8 import com.github.javaparser.ast.validator.SingleNodeTypeValidator;
9 import com.github.javaparser.ast.validator.TreeVisitorValidator;
10 import com.github.javaparser.ast.validator.Validators;
/external/angle/tools/glslang/
DREADME.md1 # Standalone glslang validator
3 This folder contains a standalone glslang validator binary. We use this binary
9 the versions of the validator in cloud storage. It must be run on Linux or
20 Contact jmadill or syoussefi for any help with the validator or updating the binaries.

1234567891011