/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/ |
D | ConstructorResolutionLogic.java | 69 ResolvedType expectedType = constructor.getLastParam().getType(); in isApplicable() local 71 if (!expectedType.isAssignableBy(actualType)) { in isApplicable() 73 … expectedType = 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 …]
|
D | MethodResolutionLogic.java | 80 ResolvedType expectedType = method.getLastParam().getType(); in isApplicable() local 82 if (!expectedType.isAssignableBy(actualType)) { in isApplicable() 84 expectedType = replaceTypeParam(expectedType, tp, typeSolver); in isApplicable() 86 if (!expectedType.isAssignableBy(actualType)) { in isApplicable() 87 …if (actualType.isArray() && expectedType.isAssignableBy(actualType.asArrayType().getComponentType(… in isApplicable() 108 ResolvedType expectedType = method.getParam(i).getType(); in isApplicable() local 110 …if ((expectedType.isTypeVariable() && !(expectedType.isWildcard())) && expectedType.asTypeParamete… in isApplicable() 111 matchedParameters.put(expectedType.asTypeParameter().getName(), actualType); in isApplicable() 114 boolean isAssignableWithoutSubstitution = expectedType.isAssignableBy(actualType) || in isApplicable() 115 …(method.getParam(i).isVariadic() && new ResolvedArrayType(expectedType).isAssignableBy(actualType)… in isApplicable() [all …]
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/ |
D | TypeSafeDiagnosingMatcher.java | 19 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()
|
D | TypeSafeMatcher.java | 16 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/ |
D | ParameterizedRobolectricTestRunnerConfigTest.java | 23 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/ |
D | ConstructionContext.java | 61 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()
|
D | InternalProvisionException.java | 72 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()
|
D | ProviderInternalFactory.java | 48 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType(); in circularGet() local 51 T proxyType = (T) constructionContext.createProxy(context.getInjectorOptions(), expectedType); in circularGet()
|
D | InternalProviderInstanceBindingImpl.java | 152 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType(); 155 (T) constructionContext.createProxy(context.getInjectorOptions(), expectedType);
|
/external/junit/src/main/java/org/junit/internal/matchers/ |
D | TypeSafeMatcher.java | 18 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/ |
D | MethodCallExprContext.java | 304 ResolvedType expectedType = in resolveMethodTypeParameters() local 311 if (!expectedType.isAssignableBy(actualType)) { in resolveMethodTypeParameters() 313 … expectedType = MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver); in resolveMethodTypeParameters() 316 if (!expectedType.isAssignableBy(actualType)) { in resolveMethodTypeParameters() 320 expectedType, in resolveMethodTypeParameters() 326 matchTypeParameters(expectedType, actualType, matchedTypeParameters); in resolveMethodTypeParameters() 337 ResolvedType expectedType = methodUsage.getParamType(i); in resolveMethodTypeParameters() local 339 matchTypeParameters(expectedType, actualType, matchedTypeParameters); in resolveMethodTypeParameters() 347 …private void matchTypeParameters(ResolvedType expectedType, ResolvedType actualType, Map<ResolvedT… in matchTypeParameters() argument 348 if (expectedType.isTypeVariable()) { in matchTypeParameters() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_resolution_ConstructorResolutionLogic.txt | 18 …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 …]
|
D | com_github_javaparser_symbolsolver_resolution_MethodResolutionLogic.txt | 20 …Line 79) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type… 22 …Line 81) replaceTypeParam(expectedType, tp, typeSolver) ==> com.github.javaparser.symbolsolver.res… 23 …Line 83) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type… 25 …Line 84) expectedType.isAssignableBy(actualType.asArrayType().getComponentType()) ==> com.github.j… 44 …Line 107) expectedType.isTypeVariable() ==> com.github.javaparser.symbolsolver.model.typesystem.Ty… 45 …Line 107) expectedType.isWildcard() ==> com.github.javaparser.symbolsolver.model.typesystem.Type.i… 46 …Line 107) expectedType.asTypeParameter().declaredOnMethod() ==> com.github.javaparser.symbolsolver… 47 …Line 107) expectedType.asTypeParameter() ==> com.github.javaparser.symbolsolver.model.typesystem.T… 48 …Line 108) matchedParameters.put(expectedType.asTypeParameter().getName(), actualType) ==> java.uti… 49 …Line 108) expectedType.asTypeParameter().getName() ==> com.github.javaparser.symbolsolver.model.de… [all …]
|
D | com_github_javaparser_symbolsolver_javaparsermodel_contexts_MethodCallExprContext.txt | 242 …Line 353) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ… 245 …Line 355) MethodResolutionLogic.replaceTypeParam(expectedType, tp, typeSolver) ==> com.github.java… 246 …Line 358) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ… 247 … type: %s, Actual type: %s. Method Declaration: %s. MethodUsage: %s", expectedType, actualType, me… 249 …Line 368) matchTypeParameters(expectedType, actualType, matchedTypeParameters) ==> com.github.java… 256 …Line 381) matchTypeParameters(expectedType, actualType, matchedTypeParameters) ==> com.github.java… 260 …Line 390) expectedType.isTypeVariable() ==> com.github.javaparser.symbolsolver.model.typesystem.Ty… 265 …Line 394) matchedTypeParameters.put(expectedType.asTypeParameter(), actualType) ==> java.util.Map.… 266 …Line 394) expectedType.asTypeParameter() ==> com.github.javaparser.symbolsolver.model.typesystem.T… 267 …Line 395) expectedType.isArray() ==> com.github.javaparser.symbolsolver.model.typesystem.Type.isAr… [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | RegionTest.java | 397 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | RegionTest.java | 400 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/archive-patcher/tools/src/main/java/com/google/archivepatcher/tools/ |
D | AbstractTool.java | 34 protected String popOrDie(Iterator<String> iterator, String expectedType) { in popOrDie() argument 36 exitWithUsage("missing argument for " + expectedType); in popOrDie()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | ResName.java | 156 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/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/ |
D | TestUtils.java | 52 public static void assertInstanceOf(Class<?> expectedType, Object instance) { in assertInstanceOf() argument 53 …sertEquals(true, expectedType.isAssignableFrom(instance.getClass()), f("%s is not an instance of %… in assertInstanceOf()
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 495 …public static MockitoException wrongTypeOfReturnValue(String expectedType, String actualType, Stri… in wrongTypeOfReturnValue() argument 498 methodName + "() should return " + expectedType, in wrongTypeOfReturnValue() 510 …MockitoException wrongTypeReturnedByDefaultAnswer(Object mock, String expectedType, String actualT… in wrongTypeReturnedByDefaultAnswer() argument 514 methodName + "() should return " + expectedType, in wrongTypeReturnedByDefaultAnswer() 773 …ption wrongTypeOfArgumentToReturn(InvocationOnMock invocation, String expectedType, Class<?> actua… in wrongTypeOfArgumentToReturn() argument 776 "method should return the type '" + expectedType + "'", in wrongTypeOfArgumentToReturn()
|
/external/skia/tests/ |
D | SkDOMTest.cpp | 17 SkDOM::Type expectedType) { in check_node() argument 21 REPORTER_ASSERT(r, dom.getType(node) == expectedType); in check_node()
|
/external/skqp/tests/ |
D | SkDOMTest.cpp | 17 SkDOM::Type expectedType) { in check_node() argument 21 REPORTER_ASSERT(r, dom.getType(node) == expectedType); in check_node()
|
/external/icu/icu4c/source/test/intltest/ |
D | regiontst.cpp | 399 URegionType expectedType; in TestGetInstanceString() member 444 if ( type != data.expectedType) { in TestGetInstanceString() 445 …n type for Region::getInstance(\"%s\"); Expected: %d Got: %d",data.inputID,data.expectedType,type); in TestGetInstanceString() 454 URegionType expectedType; in TestGetInstanceInt() member 488 if ( data.expectedType != type) { in TestGetInstanceInt() 489 …egion type for Region.getInstance(%d)); Expected: %d Got: %d",data.inputID,data.expectedType,type); in TestGetInstanceInt()
|
D | dcfmtest.cpp | 317 const UnicodeString &expectedType, in execParseTest() argument 347 expectedType.extract(0, 1, expectedTypeC, 2, US_INV); in execParseTest() 355 lineNum, InvariantStringPiece(expectedType).data()); in execParseTest()
|
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
D | MessageHeader.java | 171 public boolean validateHeader(int expectedType, int expectedFlags) { in validateHeader() argument 172 return getType() == expectedType && validateHeader(expectedFlags); in validateHeader()
|