/external/dagger2/java/dagger/internal/codegen/javapoet/ |
D | TypeSpecs.java | 38 TypeSpec.Builder typeBuilder, XTypeElement supertype) { in addSupertype() argument 39 return addSupertype(typeBuilder, toJavac(supertype)); in addSupertype() 49 public static TypeSpec.Builder addSupertype(TypeSpec.Builder typeBuilder, TypeElement supertype) { in addSupertype() argument 50 switch (supertype.getKind()) { in addSupertype() 53 .superclass(ClassName.get(supertype)) in addSupertype() 54 .avoidClashesWithNestedClasses(supertype); in addSupertype() 57 .addSuperinterface(ClassName.get(supertype)) in addSupertype() 58 .avoidClashesWithNestedClasses(supertype); in addSupertype() 60 throw new AssertionError(supertype + " is neither a class nor an interface."); in addSupertype()
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 288 TypeToken<?> supertype = of(getCovariantTypeResolver().resolveType(type)); in resolveSupertype() local 290 supertype.covariantTypeResolver = covariantTypeResolver; in resolveSupertype() 291 supertype.invariantTypeResolver = invariantTypeResolver; in resolveSupertype() 292 return supertype; in resolveSupertype() 414 TypeToken<? super T> supertype = in getSupertype() local 416 return supertype; in getSupertype() 489 public final boolean isSubtypeOf(Type supertype) { in isSubtypeOf() argument 490 checkNotNull(supertype); in isSubtypeOf() 491 if (supertype instanceof WildcardType) { in isSubtypeOf() 495 return any(((WildcardType) supertype).getLowerBounds()).isSupertypeOf(runtimeType); in isSubtypeOf() [all …]
|
/external/guava/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 288 TypeToken<?> supertype = of(getCovariantTypeResolver().resolveType(type)); in resolveSupertype() local 290 supertype.covariantTypeResolver = covariantTypeResolver; in resolveSupertype() 291 supertype.invariantTypeResolver = invariantTypeResolver; in resolveSupertype() 292 return supertype; in resolveSupertype() 414 TypeToken<? super T> supertype = in getSupertype() local 416 return supertype; in getSupertype() 489 public final boolean isSubtypeOf(Type supertype) { in isSubtypeOf() argument 490 checkNotNull(supertype); in isSubtypeOf() 491 if (supertype instanceof WildcardType) { in isSubtypeOf() 495 return any(((WildcardType) supertype).getLowerBounds()).isSupertypeOf(runtimeType); in isSubtypeOf() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ext/ |
D | OptionalHandlerFactory.java | 191 …for (Class<?> supertype = rawType.getSuperclass(); supertype != null; supertype = supertype.getSup… in hasSuperClassStartingWith() 192 if (supertype == Object.class) { in hasSuperClassStartingWith() 195 if (supertype.getName().startsWith(prefix)) { in hasSuperClassStartingWith()
|
/external/gson/gson/src/main/java/com/google/gson/internal/ |
D | $Gson$Types.java | 240 private static Type getGenericSupertype(Type context, Class<?> rawType, Class<?> supertype) { in getGenericSupertype() argument 241 if (supertype == rawType) { in getGenericSupertype() 246 if (supertype.isInterface()) { in getGenericSupertype() 249 if (interfaces[i] == supertype) { in getGenericSupertype() 251 } else if (supertype.isAssignableFrom(interfaces[i])) { in getGenericSupertype() 252 return getGenericSupertype(rawType.getGenericInterfaces()[i], interfaces[i], supertype); in getGenericSupertype() 261 if (rawSupertype == supertype) { in getGenericSupertype() 263 } else if (supertype.isAssignableFrom(rawSupertype)) { in getGenericSupertype() 264 return getGenericSupertype(rawType.getGenericSuperclass(), rawSupertype, supertype); in getGenericSupertype() 271 return supertype; in getGenericSupertype() [all …]
|
/external/tensorflow/tensorflow/core/function/polymorphism/ |
D | type_dispatch.py | 126 supertype = relaxed.most_specific_common_supertype([other]) 127 if supertype is not None: 128 relaxed = supertype
|
/external/dagger2/javatests/dagger/internal/codegen/javapoet/ |
D | ExpressionTest.java | 54 TypeMirror supertype = type(Supertype.class); in castTo() local 57 Expression castTo = expression.castTo(supertype); in castTo() 59 assertThat(castTo.type()).isSameInstanceAs(supertype); in castTo()
|
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
D | DexMaker.java | 234 TypeId<?> supertype, TypeId<?>... interfaces) { in declare() argument 247 declaration.supertype = supertype; in declare() 359 if (decl.supertype != null) { in generateFileName() 360 int sum = 31 * decl.supertype.hashCode() + decl.interfaces.hashCode(); in generateFileName() 571 private TypeId<?> supertype; field in DexMaker.TypeDeclaration 595 classDefItem = new ClassDefItem(thisType, flags, supertype.constant, in toClassDefItem()
|
/external/tensorflow/tensorflow/core/function/trace_type/ |
D | default_types_test.py | 283 supertype = default_types.Reference(Mock2AsTopType(2), 1) 288 self.assertTrue(original.is_subtype_of(supertype)) 289 self.assertFalse(supertype.is_subtype_of(original)) 296 supertype = default_types.Reference(Mock2AsTopType(2), 1) 299 self.assertEqual(supertype.most_specific_common_supertype([]), supertype)
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenSubtypeTest.java | 51 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass() local 53 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass() 57 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() local 59 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() 63 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() local 65 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() 69 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_staticAnonymousClass() local 71 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_staticAnonymousClass()
|
D | TypeTokenTest.java | 1279 TypeToken<TwoTypeArgs<?, ?>> supertype = new TypeToken<TwoTypeArgs<?, ?>>() {}; in testGetSubtype_toWildcard() local 1282 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcard() 1284 new TypeToken<StringForFirstTypeArg<?>>() {}, supertype.getSubtype(subtype.getRawType())); in testGetSubtype_toWildcard() 1296 TypeToken<TwoTypeArgs<?, ?>.InnerType<?, ?>> supertype = in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() local 1300 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1302 (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType(); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1321 TypeToken<TwoTypeArgs<?, ? extends Number>> supertype = in testGetSubtype_toWildcardWithBounds() local 1325 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcardWithBounds() 1328 TypeToken<?> unused = supertype.getSubtype(subtype.getRawType()); in testGetSubtype_toWildcardWithBounds() 1333 TypeToken<Base> supertype = new TypeToken<Base>() {}; in testGetSubtype_baseClassWithNoTypeArgs() local [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenSubtypeTest.java | 51 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass() local 53 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass() 57 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() local 59 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() 63 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() local 65 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() 69 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_staticAnonymousClass() local 71 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_staticAnonymousClass()
|
D | TypeTokenTest.java | 1279 TypeToken<TwoTypeArgs<?, ?>> supertype = new TypeToken<TwoTypeArgs<?, ?>>() {}; in testGetSubtype_toWildcard() local 1282 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcard() 1284 new TypeToken<StringForFirstTypeArg<?>>() {}, supertype.getSubtype(subtype.getRawType())); in testGetSubtype_toWildcard() 1296 TypeToken<TwoTypeArgs<?, ?>.InnerType<?, ?>> supertype = in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() local 1300 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1302 (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType(); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1321 TypeToken<TwoTypeArgs<?, ? extends Number>> supertype = in testGetSubtype_toWildcardWithBounds() local 1325 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcardWithBounds() 1328 TypeToken<?> unused = supertype.getSubtype(subtype.getRawType()); in testGetSubtype_toWildcardWithBounds() 1333 TypeToken<Base> supertype = new TypeToken<Base>() {}; in testGetSubtype_baseClassWithNoTypeArgs() local [all …]
|
/external/dagger2/javatests/dagger/internal/codegen/ |
D | DelegateRequestRepresentationTest.java | 399 JavaFileObject supertype = in noCast_rawTypes_Provider_get_toInaccessibleType() local 454 .compile(supertype, subtype, usesSupertype, module, component); in noCast_rawTypes_Provider_get_toInaccessibleType() 678 JavaFileObject supertype = in inlineFactoryOfInacessibleType() local 720 .compile(supertype, injectableSubtype, module, component); in inlineFactoryOfInacessibleType()
|
D | SubcomponentCreatorValidationTest.java | 836 JavaFileObject supertype = in covariantFactoryMethodReturnType() local 860 Compilation compilation = compile(foo, supertype, subcomponent); in covariantFactoryMethodReturnType() 886 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod() local 912 Compilation compilation = compile(foo, bar, supertype, subcomponent); in covariantFactoryMethodReturnType_hasNewMethod() 947 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod_buildMethodInherited() local 980 Compilation compilation = compile(foo, bar, supertype, creatorSupertype, subcomponent); in covariantFactoryMethodReturnType_hasNewMethod_buildMethodInherited()
|
D | ComponentCreatorTest.java | 1063 JavaFileObject supertype = in covariantFactoryMethodReturnType() local 1087 Compilation compilation = compile(foo, supertype, component); in covariantFactoryMethodReturnType() 1114 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod() local 1140 Compilation compilation = compile(foo, bar, supertype, component); in covariantFactoryMethodReturnType_hasNewMethod() 1176 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod_factoryMethodInherited() local 1209 Compilation compilation = compile(foo, bar, supertype, creatorSupertype, component); in covariantFactoryMethodReturnType_hasNewMethod_factoryMethodInherited()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 237 public TypeLiteral<?> getSupertype(Class<?> supertype) { in getSupertype() argument 239 supertype.isAssignableFrom(rawType), "%s is not a supertype of %s", supertype, this.type); in getSupertype() local 240 return resolve(MoreTypes.getGenericSupertype(type, rawType, supertype)); in getSupertype()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | InjectBindingRegistryImpl.java | 331 for (Optional<DeclaredType> supertype = types.nonObjectSuperclass(type); in tryRegisterMembersInjectedType() 332 supertype.isPresent(); in tryRegisterMembersInjectedType() 333 supertype = types.nonObjectSuperclass(supertype.get())) { in tryRegisterMembersInjectedType() 334 getOrFindMembersInjectionBinding(keyFactory.forMembersInjectedType(supertype.get())); in tryRegisterMembersInjectedType()
|
/external/libchrome/base/ |
D | callback_unittest.nc | 32 // Construction of Callback<A> from Callback<B> if A is supertype of B. 43 // Assignment of Callback<A> from Callback<B> if A is supertype of B.
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | AutoFactoryProcessor.java | 187 TypeElement supertype, Element autoFactoryElement) { in implementationMethods() argument 191 ElementFilter.methodsIn(elements.getAllMembers(supertype))) { in implementationMethods() 194 Elements2.getExecutableElementAsMemberOf(types, implementationMethod, supertype); in implementationMethods()
|
/external/guava/android/guava/src/com/google/common/eventbus/ |
D | SubscriberRegistry.java | 187 for (Class<?> supertype : supertypes) { in getAnnotatedMethodsNotCached() 188 for (Method method : supertype.getDeclaredMethods()) { in getAnnotatedMethodsNotCached()
|
/external/guava/guava/src/com/google/common/eventbus/ |
D | SubscriberRegistry.java | 187 for (Class<?> supertype : supertypes) { in getAnnotatedMethodsNotCached() 188 for (Method method : supertype.getDeclaredMethods()) { in getAnnotatedMethodsNotCached()
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | TypeSimplifier.java | 289 for (TypeMirror supertype : typeUtils.directSupertypes(type)) { in nonPrivateDeclaredTypes() 290 declared.addAll(nonPrivateDeclaredTypes(typeUtils, supertype)); in nonPrivateDeclaredTypes()
|
/external/cronet/base/functional/ |
D | callback_unittest.nc | 33 // supertype of B. 45 // supertype of B. See explanation for NCTEST_CONSTRUCTION_FROM_SUBTYPE.
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | Overrides.java | 270 for (TypeMirror supertype : supers) { in erasedParameterTypes() 271 DeclaredType declared = MoreTypes.asDeclared(supertype); in erasedParameterTypes()
|