Home
last modified time | relevance | path

Searched refs:fromClass (Results 1 – 25 of 29) sorted by relevance

12

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DProducerFactoryGenerator.java101 ClassName.fromClass(ListenableFuture.class), providedTypeName); in write()
117 ClassName.fromClass(ProducerToken.class), in write()
172 ClassName.fromClass(ListenableFuture.class), in write()
185 ClassName.fromClass(Producers.class), in write()
201 ClassName.fromClass(AsyncFunction.class), in write()
215 ClassName.fromClass(Futures.class), in write()
275 ClassName.fromClass(Futures.class), in futureSnippet()
276 ClassName.fromClass(Void.class)); in futureSnippet()
281 return ClassName.fromClass(Void.class); in applyArgType()
362 ClassName.fromClass(Futures.class), in futureSnippet()
[all …]
DAbstractComponentWriter.java350 ClassName.fromClass(IllegalStateException.class), in addBuildMethod()
393 ClassName.fromClass(UnsupportedOperationException.class), in addBuilderMethods()
394 ClassName.fromClass(String.class), in addBuilderMethods()
569 ClassName.fromClass(MembersInjectors.class), in staticMemberSelect()
571 ClassName.fromClass(MembersInjector.class))); in staticMemberSelect()
772 ClassName.fromClass(factoryClass), in initializeSetMultibindings()
852 ClassName.fromClass(DelegateFactory.class))); in initializeDelegateFactories()
869 ClassName.fromClass(DelegateFactory.class), in initializeMember()
894 ClassName.fromClass(InstanceFactory.class), in initializeFactoryForContributionBinding()
942 /* 1 */ ClassName.fromClass(Factory.class), in initializeFactoryForContributionBinding()
[all …]
DMonitoringModuleGenerator.java47 Set.class, ClassName.fromClass(ProductionComponentMonitor.Factory.class));
83 .addSnippet("return %s.of();", ClassName.fromClass(ImmutableSet.class)); in write()
87 providerField.setInitializer("new %s()", ClassName.fromClass(MonitorCache.class)); in write()
DFactoryGenerator.java153 ParameterizedTypeName.create(ClassName.fromClass(Factory.class), providedTypeName)); in write()
191 TypeName returnType = ParameterizedTypeName.create(ClassName.fromClass(Factory.class), in write()
244 ClassName.fromClass(Collections.class), paramTypeName, providesMethodInvocation); in write()
DFrameworkField.java50 ClassName.fromClass(frameworkClass), in createWithTypeFromKey()
DSourceFiles.java173 return Snippet.format("%s.create(%s)", ClassName.fromClass(DoubleCheckLazy.class), in frameworkTypeUsageStatement()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/writer/
DTypeNamesTest.java47 .isEqualTo(ClassName.fromClass(Object.class)); in forTypeMirror_basicTypes()
49 .isEqualTo(ClassName.fromClass(Charset.class)); in forTypeMirror_basicTypes()
51 .isEqualTo(ClassName.fromClass(TypeNamesTest.class)); in forTypeMirror_basicTypes()
59 .isEqualTo(ParameterizedTypeName.create(Set.class, ClassName.fromClass(Object.class))); in forTypeMirror_parameterizedType()
92 .isEqualTo(new ArrayTypeName(ClassName.fromClass(Object.class))); in forTypeMirror_arrays()
DClassNameTest.java113 ClassName className = ClassName.fromClass(ClassNameTest.class); in fromClass_NonNestedClass()
119 ClassName className = ClassName.fromClass(InnerClass.class); in fromClass_NestedClass()
125 ClassName className = ClassName.fromClass(InnerClass.class); in fromClass_classFileName()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
DReflectiveTypeFinder.java41 public Class<?> findExpectedType(Class<?> fromClass) { in findExpectedType() argument
42 for (Class<?> c = fromClass; c != Object.class; c = c.getSuperclass()) { in findExpectedType()
/external/junit/src/main/java/org/junit/internal/matchers/
DTypeSafeMatcher.java30 private static Class<?> findExpectedType(Class<?> fromClass) { in findExpectedType() argument
31 for (Class<?> c = fromClass; c != Object.class; c = c.getSuperclass()) { in findExpectedType()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeWriter.java70 new MethodWriter(ClassName.fromClass(returnType), name); in addMethod()
90 return addField(ClassName.fromClass(type), name); in addField()
DModifiable.java52 return annotate(ClassName.fromClass(annotation)); in annotate()
DAnnotationWriter.java51 Snippet snippet = Snippet.format("%s.%s", ClassName.fromClass(value.getClass()), value); in setMember()
DTypeNames.java47 return ClassName.fromClass(clazz); in forClass()
DParameterizedTypeName.java104 return new ParameterizedTypeName(ClassName.fromClass(parameterizedClass), in create()
DConstructorWriter.java41 return addParameter(ClassName.fromClass(type), name); in addParameter()
DMethodWriter.java64 return addParameter(ClassName.fromClass(type), name); in addParameter()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DBindingFieldTest.java71 ClassName.fromClass(Provider.class), xClass)); in frameworkType()
76 ClassName.fromClass(MembersInjector.class), xClass)); in frameworkType()
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/op/core/
DZeros.java50 int zeroSize = DataType.fromClass(type).byteSize(); in create()
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/
DTensor.java106 DataType dtype = DataType.fromClass(type); in create()
244 Tensor<T> ret = (Tensor<T>) create(DataType.fromClass(type), shape, data); in create()
292 DataType dt = DataType.fromClass(type); in expect()
DDataType.java96 public static DataType fromClass(Class<?> c) { in fromClass() method in DataType
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/examples/
DLabelImage.java185 DataType dtype = DataType.fromClass(type); in cast()
204 .setAttr("dtype", DataType.fromClass(type)) in constant()
/external/guava/guava/src/com/google/common/reflect/
DTypeResolver.java144 @Override void visitClass(Class<?> fromClass) { in populateTypeMappings() argument
148 throw new IllegalArgumentException("No type mapping from " + fromClass); in populateTypeMappings()
DTypeToken.java839 Class<?> fromClass = (Class<?>) from;
840 if (!fromClass.isArray()) {
843 return isAssignable(fromClass.getComponentType(), to.getGenericComponentType());
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTestUtil.java59 .setAttr("dtype", DataType.fromClass(type)) in placeholder()

12