Home
last modified time | relevance | path

Searched refs:asType (Results 1 – 25 of 79) sorted by relevance

1234

/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DKeyTest.java73 keyFactory.forInjectConstructorWithResolvedType(constructor.getEnclosingElement().asType())) in forInjectConstructorWithResolvedType()
76 MoreTypes.equivalence().wrap(typeElement.asType()))); in forInjectConstructorWithResolvedType()
85 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in forProvidesMethod()
91 keyFactory.forProvidesMethod((ExecutableType) providesMethod.asType(), providesMethod)) in forProvidesMethod()
105 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in forProvidesMethod_qualified()
113 keyFactory.forProvidesMethod((ExecutableType) providesMethod.asType(), providesMethod); in forProvidesMethod_qualified()
115 .isEqualTo(MoreTypes.equivalence().wrap(qualifierElement.asType())); in forProvidesMethod_qualified()
125 keyFactory.forProvidesMethod((ExecutableType) providesMethod.asType(), providesMethod); in qualifiedKeyEquivalents()
127 TypeMirror type = elements.getTypeElement(String.class.getCanonicalName()).asType(); in qualifiedKeyEquivalents()
160 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in forProvidesMethod_sets()
[all …]
DBindingFieldTest.java65 getXConstructor().getEnclosingElement().asType()); in frameworkType()
81 getXConstructor().getEnclosingElement().asType()); in nameSuffix()
/external/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java116 converterMapBuilder.put(typeElement.asType(), entry.getValue()); in init()
129 converterMapBuilder.put(typeUtils.boxedClass(primitiveType).asType(), entry.getValue()); in init()
140 TypeMirror thisOptionClass = optionField.getEnclosingElement().asType(); in checkInOptionBase()
142 elementUtils.getTypeElement("com.google.devtools.common.options.OptionsBase").asType(); in checkInOptionBase()
174 TypeMirror optionType = optionField.asType(); in getAcceptedConverterReturnTypes()
176 TypeMirror listType = elementUtils.getTypeElement(List.class.getCanonicalName()).asType(); in getAcceptedConverterReturnTypes()
192 if (!typeUtils.isAssignable(optionDeclaredType.asElement().asType(), listType)) { in getAcceptedConverterReturnTypes()
223 return ImmutableList.of(optionField.asType()); in getAcceptedConverterReturnTypes()
271 optionField, "The converter type %s must be a concrete type", converterElement.asType()); in checkProvidedConverter()
274 DeclaredType converterType = (DeclaredType) converterElement.asType(); in checkProvidedConverter()
[all …]
/external/javapoet/src/test/java/com/squareup/javapoet/
DAbstractTypesTest.java61 return getElement(clazz).asType(); in getMirror()
97 ErrorType topLevel = (ErrorType) fields.get(0).asType(); in errorTypes()
98 ErrorType member = (ErrorType) fields.get(1).asType(); in errorTypes()
131 assertThat(TypeName.get(typeVariables.get(0).asType())) in getTypeVariableTypeMirror()
133 assertThat(TypeName.get(typeVariables.get(1).asType())) in getTypeVariableTypeMirror()
135 assertThat(TypeName.get(typeVariables.get(2).asType())) in getTypeVariableTypeMirror()
137 assertThat(TypeName.get(typeVariables.get(3).asType())) in getTypeVariableTypeMirror()
139 assertThat(TypeName.get(typeVariables.get(4).asType())) in getTypeVariableTypeMirror()
141 assertThat(TypeName.get(typeVariables.get(5).asType())) in getTypeVariableTypeMirror()
143 assertThat(((TypeVariableName) TypeName.get(typeVariables.get(4).asType())).bounds) in getTypeVariableTypeMirror()
[all …]
/external/skqp/src/core/
DSkRect.cpp134 static const char* set_scalar(SkString* storage, SkScalar value, SkScalarAsStringType asType) { in set_scalar() argument
136 SkAppendScalar(storage, value, asType); in set_scalar()
141 SkScalarAsStringType asType = asHex ? kHex_SkScalarAsStringType : kDec_SkScalarAsStringType; in dump() local
146 line.printf( "SkRect::MakeLTRB(%s, /* %f */\n", set_scalar(&tmp, fLeft, asType), fLeft); in dump()
147 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fTop, asType), fTop); in dump()
148 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fRight, asType), fRight); in dump()
149 line.appendf(" %s /* %f */);", set_scalar(&tmp, fBottom, asType), fBottom); in dump()
DSkStringUtils.cpp12 void SkAppendScalar(SkString* str, SkScalar value, SkScalarAsStringType asType) { in SkAppendScalar() argument
13 switch (asType) { in SkAppendScalar()
/external/skia/src/core/
DSkRect.cpp134 static const char* set_scalar(SkString* storage, SkScalar value, SkScalarAsStringType asType) { in set_scalar() argument
136 SkAppendScalar(storage, value, asType); in set_scalar()
141 SkScalarAsStringType asType = asHex ? kHex_SkScalarAsStringType : kDec_SkScalarAsStringType; in dump() local
146 line.printf( "SkRect::MakeLTRB(%s, /* %f */\n", set_scalar(&tmp, fLeft, asType), fLeft); in dump()
147 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fTop, asType), fTop); in dump()
148 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fRight, asType), fRight); in dump()
149 line.appendf(" %s /* %f */);", set_scalar(&tmp, fBottom, asType), fBottom); in dump()
DSkStringUtils.cpp12 void SkAppendScalar(SkString* str, SkScalar value, SkScalarAsStringType asType) { in SkAppendScalar() argument
13 switch (asType) { in SkAppendScalar()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DProvisionBinding.java99 ExecutableType cxtorType = MoreTypes.asExecutable(constructorElement.asType()); in forInjectConstructor()
101 MoreTypes.asDeclared(constructorElement.getEnclosingElement().asType()); in forInjectConstructor()
124 MoreElements.asType(constructorElement.getEnclosingElement()); in forInjectConstructor()
144 TypeElement typeElement = MoreElements.asType(type.asElement()); in membersInjectionRequest()
145 if (!types.isSameType(elements.getTypeElement(Object.class.getCanonicalName()).asType(), in membersInjectionRequest()
216 keyFactory.forComponent(componentDefinitionType.asType()), in forComponent()
253 DeclaredType declaredContainer = asDeclared(contributedBy.asType()); in forSubcomponentBuilderMethod()
DMapKeyProcessingStep.java77 getUnwrappedMapKeyType(MoreTypes.asDeclared(element.asType()), types); in process()
81 MoreElements.asType(element), MoreTypes.asTypeElement(keyType))); in process()
84 writeCreatorClass(wrappedMapKey(MoreElements.asType(element))); in process()
DMethodSignatureFormatter.java59 TypeElement type = MoreElements.asType(method.getEnclosingElement()); in format()
60 ExecutableType executableType = MoreTypes.asExecutable(method.asType()); in format()
63 type = MoreElements.asType(container.get().asElement()); in format()
DInjectProcessingStep.java101 MoreTypes.asDeclared(constructorElement.getEnclosingElement().asType()); in process()
118 MoreTypes.asDeclared(fieldElement.getEnclosingElement().asType())); in process()
133 MoreTypes.asDeclared(methodElement.getEnclosingElement().asType())); in process()
DComponentProcessingStep.java112 componentBuilderValidator.validate(MoreElements.asType(element));
124 subcomponentBuilderValidator.validate(MoreElements.asType(element));
137 MoreElements.asType(element), subcomponentElements, subcomponentBuilderElements);
DDependencyRequestFormatter.java77 appendParameter(componentMethodParameter, componentMethodParameter.asType(), builder); in format()
80 .append(componentMethodParameter.asType()) in format()
146 TypeElement type = MoreElements.asType(member.getEnclosingElement());
DMembersInjectionBinding.java163 DeclaredType unresolved = MoreTypes.asDeclared(binding.bindingElement().asType()); in unresolve()
213 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in forInjectedType()
233 ancestors.add(MoreElements.asType(type.asElement())); in getInjectionSites()
289 TypeElement injectionSiteType = MoreElements.asType(injectionSite.getEnclosingElement()); in shouldBeInjected()
DComponentDescriptor.java268 DeclaredType declaredComponentType = MoreTypes.asDeclared(componentDefinitionType.asType());
323 MoreElements.asType(MoreTypes.asElement(resolvedMethod.getReturnType())),
330 MoreElements.asType(
364 MoreTypes.asDeclared(componentElement.asType()), componentMethod));
451 map.build(), buildMethod, element.getEnclosingElement().asType()));
DBuilderValidator.java112 MoreTypes.asExecutable(types.asMemberOf(MoreTypes.asDeclared(subject.asType()), method)); in validate()
116 if (types.isSameType(returnType, componentElement.asType())) { in validate()
132 && !types.isSubtype(subject.asType(), returnType)) { in validate()
DBinding.java195 TypeElement typeElement = MoreElements.asType(t.asElement()); in nonPublicPackageUse()
204 typeElement.getEnclosingElement().asType().accept(this, p); in nonPublicPackageUse()
244 defaultTypes.add(parameter.asType()); in hasNonDefaultTypeParameters()
DInjectConstructorValidator.java55 ValidationReport.about(MoreElements.asType(constructorElement.getEnclosingElement())); in validate()
74 MoreElements.asType(constructorElement.getEnclosingElement()); in validate()
DKey.java95 return kind.isPrimitive() ? types.boxedClass((PrimitiveType) type).asType() : type; in normalize()
124 TypeElement element = MoreElements.asType(type.asElement()); in isValidImplicitProvisionKey()
143 return MoreTypes.asDeclared(element.asType()).getTypeArguments().isEmpty() in isValidImplicitProvisionKey()
144 || !types.isSameType(types.erasure(element.asType()), type()); in isValidImplicitProvisionKey()
DConfigurationAnnotations.java165 TypeMirror objectType = elements.getTypeElement(Object.class.getCanonicalName()).asType(); in getTransitiveModules()
200 builders.add(MoreTypes.asDeclared(element.asType())); in enclosedBuilders()
230 element = MoreElements.asType(types.asElement(superclass)); in addIncludesFromSuperclasses()
DModuleProcessingStep.java94 moduleValidator.validate(MoreElements.asType(moduleElement)); in process()
118 providesMethod.getEnclosingElement().asType()); in process()
DProducerModuleProcessingStep.java97 moduleValidator.validate(MoreElements.asType(moduleElement)); in process()
121 producesMethod.getEnclosingElement().asType()); in process()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInvokeDynamicSupport.java87 return new ConstantCallSite(mh.asType(type)); in bootstrapIntrinsic()
90 …private static final MethodHandle NOTHING = constant(Void.class, null).asType(methodType(void.clas…
133 mh = filterArguments(mh, 0, GET_SHADOW.asType(methodType(shadowType, site.thisType()))); in bindCallSite()
154 mh = switchPoint.guardWithTest(mh.asType(type), boundFallback); in bindWithFallback()
175 return catchException(mh, Throwable.class, EXCEPTION_HANDLER.asType(type)); in cleanStackTraces()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DHelpers.java90 TypeMirror expectedType = annotation.asType(); in getAnnotationMirror()
116 TypeMirror objectMirror = elements.getTypeElement(Object.class.getCanonicalName()).asType(); in Helpers()
178 return impElement.asType(); in getImplementedClassName()
237 .asType(); in findInterface()

1234