Home
last modified time | relevance | path

Searched refs:annotationMirror (Results 1 – 25 of 109) sorted by relevance

12345

/aosp_15_r20/external/auto/common/src/test/java/com/google/auto/common/
H A DAnnotationValuesTest.java146 private AnnotationMirror annotationMirror; field in AnnotationValuesTest
153 annotationMirror = in setUp()
160 AnnotationValue value = AnnotationMirrors.getAnnotationValue(annotationMirror, "classValue"); in getTypeMirror()
168 AnnotationMirrors.getAnnotationValue(annotationMirror, "genericClassValue"); in getTypeMirrorGenericClass()
176 AnnotationValue value = AnnotationMirrors.getAnnotationValue(annotationMirror, "classValues"); in getTypeMirrors()
188 AnnotationMirrors.getAnnotationValue(annotationMirror, "insideAnnotationValue"); in getAnnotationMirror()
189 AnnotationMirror annotationMirror = AnnotationValues.getAnnotationMirror(value); in getAnnotationMirror() local
190 assertThat(annotationMirror.getAnnotationType().asElement()).isEqualTo(insideAnnotation); in getAnnotationMirror()
191 assertThat(AnnotationMirrors.getAnnotationValue(annotationMirror, "value").getValue()) in getAnnotationMirror()
199 AnnotationMirrors.getAnnotationValue(annotationMirror, "insideAnnotationValues"); in getAnnotationMirrors()
[all …]
/aosp_15_r20/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
H A DAnnotationUtils.java127 @NonNull AnnotationMirror annotationMirror) { in typedArrayValuesByName() argument
128 return untypedArrayValuesByName(propertyName, element, annotationMirror) in typedArrayValuesByName()
137 annotationMirror, in typedArrayValuesByName()
150 annotationMirror, in typedArrayValuesByName()
169 @NonNull AnnotationMirror annotationMirror) { in untypedArrayValuesByName() argument
170 return typedValueByName(propertyName, List.class, element, annotationMirror) in untypedArrayValuesByName()
181 annotationMirror); in untypedArrayValuesByName()
207 AnnotationMirror annotationMirror) {
208 return valueByName(propertyName, annotationMirror).map(annotationValue -> {
217 annotationMirror,
[all …]
H A DProcessingException.java48 @NonNull AnnotationMirror annotationMirror) { in ProcessingException() argument
49 this(message, element, annotationMirror, null); in ProcessingException()
55 @Nullable AnnotationMirror annotationMirror, in ProcessingException() argument
59 mAnnotationMirror = annotationMirror; in ProcessingException()
/aosp_15_r20/external/auto/service/processor/src/main/java/com/google/auto/service/processor/
H A DAutoServiceProcessor.java148 AnnotationMirror annotationMirror = getAnnotationMirror(e, AutoService.class).get(); in processAnnotations() local
149 Set<DeclaredType> providerInterfaces = getValueFieldOfClasses(annotationMirror); in processAnnotations()
151 error(MISSING_SERVICES_ERROR, e, annotationMirror); in processAnnotations()
160 if (checkImplementer(providerImplementer, providerType, annotationMirror)) { in processAnnotations()
168 error(message, e, annotationMirror); in processAnnotations()
230 AnnotationMirror annotationMirror) { in checkImplementer() argument
248 return checkNotAbstract(providerImplementer, annotationMirror); in checkImplementer()
262 annotationMirror); in checkImplementer()
264 return checkNotAbstract(providerImplementer, annotationMirror); in checkImplementer()
272 error(message, providerImplementer, annotationMirror); in checkImplementer()
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/tools/processors/view_inspector/libview-inspector-annotation-processor/linux_glibc_common/javac/
Dlibview-inspector-annotation-processor.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/processor/ android/ ...
/aosp_15_r20/external/auto/common/src/main/java/com/google/auto/common/
H A DAnnotationMirrors.java129 AnnotationMirror annotationMirror, String elementName) { in getAnnotationValue() argument
130 return getAnnotationElementAndValue(annotationMirror, elementName).getValue(); in getAnnotationValue()
141 AnnotationMirror annotationMirror, final String elementName) { in getAnnotationElementAndValue() argument
142 checkNotNull(annotationMirror); in getAnnotationElementAndValue()
145 getAnnotationValuesWithDefaults(annotationMirror).entrySet()) { in getAnnotationElementAndValue()
153 MoreElements.asType(annotationMirror.getAnnotationType().asElement()) in getAnnotationElementAndValue()
201 public static String toString(AnnotationMirror annotationMirror) { in toString() argument
202 return AnnotationOutput.toString(annotationMirror); in toString()
H A DSuperficialValidation.java189 for (AnnotationMirror annotationMirror : annotationMirrors) { in validateAnnotations()
190 if (!validateAnnotation(annotationMirror)) { in validateAnnotations()
197 private static boolean validateAnnotation(AnnotationMirror annotationMirror) { in validateAnnotation() argument
198 return validateType(annotationMirror.getAnnotationType()) in validateAnnotation()
199 && validateAnnotationValues(annotationMirror.getElementValues()); in validateAnnotation()
H A DMoreElements.java287 for (AnnotationMirror annotationMirror : element.getAnnotationMirrors()) { in getAnnotationMirror()
288 TypeElement annotationTypeElement = asType(annotationMirror.getAnnotationType().asElement()); in getAnnotationMirror()
290 return Optional.of(annotationMirror); in getAnnotationMirror()
/aosp_15_r20/external/dagger2/java/dagger/internal/codegen/kotlin/
H A DKotlinMetadata.java161 XAnnotation annotationMirror = typeElement.getAnnotation(TypeNames.KOTLIN_METADATA);
162 Preconditions.checkNotNull(annotationMirror);
165 annotationMirror.getAsInt("k"),
166 annotationMirror.getAsIntList("mv").stream().mapToInt(Integer::intValue).toArray(),
167 annotationMirror.getAsStringList("d1").toArray(new String[0]),
168 annotationMirror.getAsStringList("d2").toArray(new String[0]),
169 annotationMirror.getAsString("xs"),
170 annotationMirror.getAnnotationValue("pn").hasStringValue()
171 ? annotationMirror.getAsString("pn")
173 annotationMirror.getAnnotationValue("xi").hasIntValue()
[all …]
/aosp_15_r20/out/soong/.intermediates/external/auto/service/libauto_service_plugin/linux_glibc_common/javac/
Dlibauto_service_plugin.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/aosp_15_r20/external/auto/value/src/main/java/com/google/auto/value/processor/
H A DAnnotationOutput.java228 static String sourceFormForAnnotation(AnnotationMirror annotationMirror) { in sourceFormForAnnotation() argument
237 validateClassValues(annotationMirror); in sourceFormForAnnotation()
239 new AnnotationSourceFormVisitor().visitAnnotation(annotationMirror, sb); in sourceFormForAnnotation()
248 private static void validateClassValues(AnnotationMirror annotationMirror) { in validateClassValues() argument
254 annotationMirror in validateClassValues()
/aosp_15_r20/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
H A DUnsupportedAppUsageProcessor.java142 AnnotationMirror annotationMirror = getSupportedAnnotationMirror(annotation, element); in getAnnotationIndex() local
143 String position = getSourcePositionOverride(element, annotationMirror); in getAnnotationIndex()
145 SourcePosition sourcePosition = getSourcePosition(element, annotationMirror); in getAnnotationIndex()
159 getAllProperties(annotationMirror)); in getAnnotationIndex()
H A DSignatureConverter.java217 AnnotationMirror annotationMirror = null; in verifyExpectedSignature() local
220 annotationMirror = mirror; in verifyExpectedSignature()
224 if (annotationMirror == null) { in verifyExpectedSignature()
228 String expectedSignature = annotationMirror.getElementValues().entrySet().stream() in verifyExpectedSignature()
/aosp_15_r20/tools/platform-compat/java/android/processor/compat/
H A DSingleAnnotationProcessor.java92 AnnotationMirror annotationMirror = in process() local
94 if (ignoreAnnotatedElement(annotatedElement, annotationMirror)) { in process()
151 AnnotationMirror annotationMirror) { in getSourcePosition() argument
152 TreePath path = trees.getPath(element, annotationMirror); in getSourcePosition()
/aosp_15_r20/external/dagger2/java/dagger/hilt/processor/internal/uninstallmodules/
H A DAggregatedUninstallModulesMetadata.java82 XAnnotation annotationMirror = element.getAnnotation(ClassNames.AGGREGATED_UNINSTALL_MODULES); in create() local
86 env.requireTypeElement(annotationMirror.getAsString("test")), in create()
87 annotationMirror.getAsStringList("uninstallModules").stream() in create()
/aosp_15_r20/frameworks/base/tools/processors/intdef_mappings/src/android/processor/
H A DIntDefProcessor.kt80 val annotationMirror = annotatedElement.annotationMirrors constant
84 val value = annotationMirror.elementValues.entries
89 val tree = trees.getTree(annotatedElement, annotationMirror, value)
/aosp_15_r20/out/soong/.intermediates/tools/platform-compat/java/android/processor/compat/compat-processor/linux_glibc_common/local-javac-header/
Dcompat-processor.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/processor/ android/ ...
/aosp_15_r20/out/soong/.intermediates/tools/platform-compat/java/android/processor/compat/compat-processor/linux_glibc_common/javac/
Dcompat-processor.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/processor/ android/ ...
/aosp_15_r20/out/soong/.intermediates/frameworks/base/tools/processors/view_inspector/view-inspector-annotation-processor/linux_glibc_common/withres/
Dview-inspector-annotation-processor.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...
/aosp_15_r20/external/dagger2/java/dagger/hilt/processor/internal/root/
H A DProcessedRootSentinelMetadata.java63 XAnnotation annotationMirror = element.getAnnotation(ClassNames.PROCESSED_ROOT_SENTINEL); in create() local
67 annotationMirror.getAsStringList("roots").stream() in create()
/aosp_15_r20/external/nullaway/nullaway/src/main/java/com/uber/nullaway/
H A DNullabilityUtil.java234 for (AnnotationMirror annotationMirror : methodSymbol.getAnnotationMirrors()) { in getAnnotationValueArray()
235 String name = AnnotationUtils.annotationName(annotationMirror); in getAnnotationValueArray()
237 annot = annotationMirror; in getAnnotationValueArray()
/aosp_15_r20/out/soong/.intermediates/tools/platform-compat/java/android/processor/compat/unsupportedappusage/unsupportedappusage-annotation-processor-lib/linux_glibc_common/javac/
Dunsupportedappusage-annotation-processor-lib.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/processor/ android/ ...
/aosp_15_r20/external/dagger2/java/dagger/internal/codegen/javac/
H A DJavacPluginProcessingEnvironment.java131 AnnotationMirror annotationMirror) {} in printMessage() argument
138 AnnotationMirror annotationMirror, in printMessage() argument
/aosp_15_r20/out/soong/.intermediates/external/auto/common/auto_common/linux_glibc_common/javac/
Dauto_common.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/aosp_15_r20/prebuilts/tools/common/m2/repository/com/google/auto/auto-common/1.1.2/
HDauto-common-1.1.2.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...

12345