Home
last modified time | relevance | path

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

12

/external/auto/common/src/main/java/com/google/auto/common/
DSuperficialValidation.java202 TypeMirror expectedType = valueEntry.getKey().getReturnType(); in validateAnnotationValues()
203 return validateAnnotationValue(valueEntry.getValue(), expectedType); in validateAnnotationValues()
209 @Override protected Boolean defaultAction(Object o, TypeMirror expectedType) {
210 return MoreTypes.isTypeOf(o.getClass(), expectedType);
213 @Override public Boolean visitUnknown(AnnotationValue av, TypeMirror expectedType) {
215 return defaultAction(av, expectedType);
218 @Override public Boolean visitAnnotation(AnnotationMirror a, TypeMirror expectedType) {
219 return MoreTypes.equivalence().equivalent(a.getAnnotationType(), expectedType)
224 public Boolean visitArray(List<? extends AnnotationValue> values, TypeMirror expectedType) {
225 if (!expectedType.getKind().equals(TypeKind.ARRAY)) {
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/
DConstructorResolutionLogic.java69 Type expectedType = constructor.getLastParam().getType(); in isApplicable() local
71 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
73expectedType = MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver); in isApplicable()
75 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
77 … && expectedType.isAssignableBy(actualType.asArrayType().getComponentType())) { in isApplicable()
100 Type expectedType = constructor.getParam(i).getType(); in isApplicable() local
102 if ((expectedType.isTypeVariable() && !(expectedType.isWildcard())) in isApplicable()
103 && expectedType.asTypeParameter().declaredOnMethod()) { in isApplicable()
104 matchedParameters.put(expectedType.asTypeParameter().getName(), actualType); in isApplicable()
108 expectedType.isAssignableBy(actualType) || (constructor.getParam(i).isVariadic() in isApplicable()
[all …]
DMethodResolutionLogic.java77 Type expectedType = method.getLastParam().getType(); in isApplicable() local
79 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
81 expectedType = replaceTypeParam(expectedType, tp, typeSolver); in isApplicable()
83 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
84 …if (actualType.isArray() && expectedType.isAssignableBy(actualType.asArrayType().getComponentType(… in isApplicable()
105 Type expectedType = method.getParam(i).getType(); in isApplicable() local
107 …if ((expectedType.isTypeVariable() && !(expectedType.isWildcard())) && expectedType.asTypeParamete… in isApplicable()
108 matchedParameters.put(expectedType.asTypeParameter().getName(), actualType); in isApplicable()
111 boolean isAssignableWithoutSubstitution = expectedType.isAssignableBy(actualType) || in isApplicable()
112 … (method.getParam(i).isVariadic() && new ArrayType(expectedType).isAssignableBy(actualType)); in isApplicable()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DConstructorResolutionLogic.java69 ResolvedType expectedType = constructor.getLastParam().getType(); in isApplicable() local
71 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
73expectedType = MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver); in isApplicable()
75 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
77 … && expectedType.isAssignableBy(actualType.asArrayType().getComponentType())) { in isApplicable()
100 ResolvedType expectedType = constructor.getParam(i).getType(); in isApplicable() local
102 if ((expectedType.isTypeVariable() && !(expectedType.isWildcard())) in isApplicable()
103 && expectedType.asTypeParameter().declaredOnMethod()) { in isApplicable()
104 matchedParameters.put(expectedType.asTypeParameter().getName(), actualType); in isApplicable()
108 expectedType.isAssignableBy(actualType) || (constructor.getParam(i).isVariadic() in isApplicable()
[all …]
DMethodResolutionLogic.java72 ResolvedType expectedType = method.getLastParam().getType(); in isApplicable() local
74 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
76 expectedType = replaceTypeParam(expectedType, tp, typeSolver); in isApplicable()
78 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
79 …if (actualType.isArray() && expectedType.isAssignableBy(actualType.asArrayType().getComponentType(… in isApplicable()
100 ResolvedType expectedType = method.getParam(i).getType(); in isApplicable() local
102 …if ((expectedType.isTypeVariable() && !(expectedType.isWildcard())) && expectedType.asTypeParamete… in isApplicable()
103 matchedParameters.put(expectedType.asTypeParameter().getName(), actualType); in isApplicable()
106 boolean isAssignableWithoutSubstitution = expectedType.isAssignableBy(actualType) || in isApplicable()
107 …(method.getParam(i).isVariadic() && new ResolvedArrayType(expectedType).isAssignableBy(actualType)… in isApplicable()
[all …]
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DTypeSafeDiagnosingMatcher.java19 private final Class<?> expectedType; field in TypeSafeDiagnosingMatcher
32 protected TypeSafeDiagnosingMatcher(Class<?> expectedType) { in TypeSafeDiagnosingMatcher() argument
33 this.expectedType = expectedType; in TypeSafeDiagnosingMatcher()
42 this.expectedType = typeFinder.findExpectedType(getClass()); in TypeSafeDiagnosingMatcher()
56 && expectedType.isInstance(item) in matches()
63 if (item == null || !expectedType.isInstance(item)) { in describeMismatch()
DTypeSafeMatcher.java16 final private Class<?> expectedType; field in TypeSafeMatcher
30 protected TypeSafeMatcher(Class<?> expectedType) { in TypeSafeMatcher() argument
31 this.expectedType = expectedType; in TypeSafeMatcher()
40 this.expectedType = typeFinder.findExpectedType(getClass()); in TypeSafeMatcher()
66 && expectedType.isInstance(item) in matches()
75 } else if (! expectedType.isInstance(item)) { in describeMismatch()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DParameterizedRobolectricTestRunnerConfigTest.java23 private final int expectedType; field in ParameterizedRobolectricTestRunnerConfigTest
25 public ParameterizedRobolectricTestRunnerConfigTest(int expectedType) { in ParameterizedRobolectricTestRunnerConfigTest() argument
26 this.expectedType = expectedType; in ParameterizedRobolectricTestRunnerConfigTest()
32 assertThat(new CursorWrapper(null).getType(expectedType)).isEqualTo(1); in getType1()
38 assertThat(new CursorWrapper(null).getType(expectedType)).isEqualTo(expectedType); in getTypeEcho()
/external/guice/core/src/com/google/inject/internal/
DConstructionContext.java61 public Object createProxy(InjectorOptions injectorOptions, Class<?> expectedType) in createProxy() argument
64 throw InternalProvisionException.circularDependenciesDisabled(expectedType); in createProxy()
66 if (!expectedType.isInterface()) { in createProxy()
67 throw InternalProvisionException.cannotProxyClass(expectedType); in createProxy()
80 ClassLoader classLoader = BytecodeGen.getClassLoader(expectedType); in createProxy()
81 return expectedType.cast( in createProxy()
84 new Class[] {expectedType, CircularDependencyProxy.class}, in createProxy()
DInternalProvisionException.java72 public static InternalProvisionException circularDependenciesDisabled(Class<?> expectedType) { in circularDependenciesDisabled() argument
75 expectedType); in circularDependenciesDisabled()
78 public static InternalProvisionException cannotProxyClass(Class<?> expectedType) { in cannotProxyClass() argument
81 expectedType); in cannotProxyClass()
DProviderInternalFactory.java48 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType(); in circularGet() local
51 T proxyType = (T) constructionContext.createProxy(context.getInjectorOptions(), expectedType); in circularGet()
/external/junit/src/main/java/org/junit/internal/matchers/
DTypeSafeMatcher.java18 private Class<?> expectedType; field in TypeSafeMatcher
27 expectedType = findExpectedType(getClass()); in TypeSafeMatcher()
48 protected TypeSafeMatcher(Class<T> expectedType) { in TypeSafeMatcher() argument
49 this.expectedType = expectedType; in TypeSafeMatcher()
60 && expectedType.isInstance(item) in matches()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMethodCallExprContext.java310 ResolvedType expectedType = in resolveMethodTypeParameters() local
317 if (!expectedType.isAssignableBy(actualType)) { in resolveMethodTypeParameters()
319expectedType = MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver); in resolveMethodTypeParameters()
322 if (!expectedType.isAssignableBy(actualType)) { in resolveMethodTypeParameters()
326 expectedType, in resolveMethodTypeParameters()
332 matchTypeParameters(expectedType, actualType, matchedTypeParameters); in resolveMethodTypeParameters()
343 ResolvedType expectedType = methodUsage.getParamType(i); in resolveMethodTypeParameters() local
345 matchTypeParameters(expectedType, actualType, matchedTypeParameters); in resolveMethodTypeParameters()
353 …private void matchTypeParameters(ResolvedType expectedType, ResolvedType actualType, Map<ResolvedT… in matchTypeParameters() argument
354 if (expectedType.isTypeVariable()) { in matchTypeParameters()
[all …]
/external/angle/src/tests/preprocessor_tests/
Dchar_test.cpp53 int expectedType = pp::Token::LAST; in TEST_P() local
63 expectedType = pp::Token::IDENTIFIER; in TEST_P()
68 expectedType = pp::Token::CONST_INT; in TEST_P()
73 expectedType = str[0]; in TEST_P()
89 EXPECT_EQ(expectedType, token.type); in TEST_P()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMethodCallExprContext.java346 Type expectedType = in resolveMethodTypeParameters() local
353 if (!expectedType.isAssignableBy(actualType)) { in resolveMethodTypeParameters()
355expectedType = MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver); in resolveMethodTypeParameters()
358 if (!expectedType.isAssignableBy(actualType)) { in resolveMethodTypeParameters()
362 expectedType, in resolveMethodTypeParameters()
368 matchTypeParameters(expectedType, actualType, matchedTypeParameters); in resolveMethodTypeParameters()
379 Type expectedType = methodUsage.getParamType(i); in resolveMethodTypeParameters() local
381 matchTypeParameters(expectedType, actualType, matchedTypeParameters); in resolveMethodTypeParameters()
389 …private void matchTypeParameters(Type expectedType, Type actualType, Map<TypeParameterDeclaration,… in matchTypeParameters() argument
390 if (expectedType.isTypeVariable()) { in matchTypeParameters()
[all …]
/external/boringssl/src/util/fipstools/acvp/acvptool/subprocess/
Drsa.go130 const expectedType = "GDT"
131 if group.Type != expectedType {
132 …en test group has type %q, but only generation tests (%q) are supported", group.Type, expectedType)
171 const expectedType = "GDT"
172 if group.Type != expectedType {
173 …en test group has type %q, but only generation tests (%q) are supported", group.Type, expectedType)
222 const expectedType = "GDT"
223 if group.Type != expectedType {
224 … test group has type %q, but only 'generation' tests (%q) are supported", group.Type, expectedType)
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_resolution_ConstructorResolutionLogic.txt18 …Line 71) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type…
20 …Line 73) MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver) ==> com.github.javap…
21 …Line 75) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type…
23 …Line 77) expectedType.isAssignableBy(actualType.asArrayType().getComponentType()) ==> com.github.j…
42 …Line 102) expectedType.isTypeVariable() ==> com.github.javaparser.symbolsolver.model.typesystem.Ty…
43 …Line 102) expectedType.isWildcard() ==> com.github.javaparser.symbolsolver.model.typesystem.Type.i…
44 …Line 103) expectedType.asTypeParameter().declaredOnMethod() ==> com.github.javaparser.symbolsolver…
45 …Line 103) expectedType.asTypeParameter() ==> com.github.javaparser.symbolsolver.model.typesystem.T…
46 …Line 104) matchedParameters.put(expectedType.asTypeParameter().getName(), actualType) ==> java.uti…
47 …Line 104) expectedType.asTypeParameter().getName() ==> com.github.javaparser.symbolsolver.model.de…
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DRegionTest.java400 Region.RegionType expectedType = Region.RegionType.valueOf(data[2]); in TestGetInstanceString() local
405 if ( !expectedType.equals(r.getType())) { in TestGetInstanceString()
406 …egion type for Region.getInstance(\"" + inputID + "\"); Expected: " + expectedType + " Got: " + r.… in TestGetInstanceString()
431 Region.RegionType expectedType = Region.RegionType.valueOf(data[2]); in TestGetInstanceInt() local
436 if ( !expectedType.equals(r.getType())) { in TestGetInstanceInt()
437 …ed region type for Region.getInstance(" + inputID + "); Expected: " + expectedType + " Got: " + r.… in TestGetInstanceInt()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DRegionTest.java397 Region.RegionType expectedType = Region.RegionType.valueOf(data[2]); in TestGetInstanceString() local
402 if ( !expectedType.equals(r.getType())) { in TestGetInstanceString()
403 …egion type for Region.getInstance(\"" + inputID + "\"); Expected: " + expectedType + " Got: " + r.… in TestGetInstanceString()
428 Region.RegionType expectedType = Region.RegionType.valueOf(data[2]); in TestGetInstanceInt() local
433 if ( !expectedType.equals(r.getType())) { in TestGetInstanceInt()
434 …ed region type for Region.getInstance(" + inputID + "); Expected: " + expectedType + " Got: " + r.… in TestGetInstanceInt()
/external/turbine/javatests/com/google/turbine/processing/
DTurbineTypesUnaryTest.java64 String expectedType = null; in unboxedType() local
66 expectedType = javacTypes.unboxedType(javacA).toString(); in unboxedType()
81 .isEqualTo(expectedType); in unboxedType()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResName.java156 public void mustBe(String expectedType) { in mustBe() argument
157 if (!type.equals(expectedType)) { in mustBe()
158 …throw new RuntimeException("expected " + getFullyQualifiedName() + " to be a " + expectedType + ",… in mustBe()
/external/skqp/tests/
DSkDOMTest.cpp17 SkDOM::Type expectedType) { in check_node() argument
21 REPORTER_ASSERT(r, dom.getType(node) == expectedType); in check_node()
/external/skia/tests/
DSkDOMTest.cpp17 SkDOM::Type expectedType) { in check_node() argument
21 REPORTER_ASSERT(r, dom.getType(node) == expectedType); in check_node()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java63 public static void assertInstanceOf(Class<?> expectedType, Object instance) { in assertInstanceOf() argument
64 …assertTrue(expectedType.isAssignableFrom(instance.getClass()), f("%s is not an instance of %s.", i… in assertInstanceOf()
/external/angle/src/tests/compiler_tests/
DInitOutputVariables_test.cpp34 const TType &expectedType = expected->getType(); in AreSymbolsTheSame() local
36 const bool sameTypes = expectedType == candidateType && in AreSymbolsTheSame()
37 expectedType.getPrecision() == candidateType.getPrecision() && in AreSymbolsTheSame()
38 expectedType.getQualifier() == candidateType.getQualifier(); in AreSymbolsTheSame()

12