Home
last modified time | relevance | path

Searched full:annotationtype (Results 1 – 25 of 1601) sorted by relevance

12345678910>>...65

/aosp_15_r20/external/TestParameterInjector/src/main/java/com/google/testing/junit/testparameterinjector/
H A DTestParameterAnnotationMethodProcessor.java122 Class<? extends Annotation> annotationType = annotationTypeOrigin().annotationType(); in toTestNameString() local
123 String namePattern = annotationType.getAnnotation(TestParameterAnnotation.class).name(); in toTestNameString()
152 annotationWithMetadata.annotation().annotationType(), origin), in create()
168 return annotationType -> Optional.absent(); in getTestParameterValues()
170 return annotationType -> in getTestParameterValues()
176 .filter(matches(annotationType)) in getTestParameterValues()
185 * testInfo}, or {@link Optional#absent()} if the {@code annotationType} is not found.
188 TestInfo testInfo, Class<? extends Annotation> annotationType) { in getTestParameterValue() argument
189 return getTestParameterValues(testInfo).getValue(annotationType); in getTestParameterValue()
196 annotation.annotationType().getAnnotation(TestParameterAnnotation.class); in getParametersAnnotationValues()
[all …]
/aosp_15_r20/external/guice/core/src/com/google/inject/internal/
H A DAnnotations.java57 public static boolean isMarker(Class<? extends Annotation> annotationType) { in isMarker() argument
58 return annotationType.getDeclaredMethods().length == 0; in isMarker()
61 public static boolean isAllDefaultMethods(Class<? extends Annotation> annotationType) { in isAllDefaultMethods() argument
63 for (Method m : annotationType.getDeclaredMethods()) { in isAllDefaultMethods()
87 public static <T extends Annotation> T generateAnnotation(Class<T> annotationType) { in generateAnnotation() argument
89 isAllDefaultMethods(annotationType), "%s is not all default methods", annotationType); in generateAnnotation() local
90 return (T) cache.getUnchecked(annotationType); in generateAnnotation()
93 private static <T extends Annotation> T generateAnnotationImpl(final Class<T> annotationType) { in generateAnnotationImpl() argument
94 final Map<String, Object> members = resolveMembers(annotationType); in generateAnnotationImpl()
95 return annotationType.cast( in generateAnnotationImpl()
[all …]
H A DScopeBindingProcessor.java40 Class<? extends Annotation> annotationType = in visit() local
43 if (!Annotations.isScopeAnnotation(annotationType)) { in visit()
44 errors.missingScopeAnnotation(annotationType); in visit()
48 if (!Annotations.isRetainedAtRuntime(annotationType)) { in visit()
49 errors.missingRuntimeRetention(annotationType); in visit()
53 ScopeBinding existing = injector.state.getScopeBinding(annotationType); in visit()
56 errors.duplicateScopes(existing, annotationType, scope); in visit()
59 injector.state.putScopeBinding(annotationType, command); in visit()
/aosp_15_r20/external/TestParameterInjector/junit5/src/main/java/com/google/testing/junit/testparameterinjector/junit5/
H A DTestParameterAnnotationMethodProcessor.java137 annotationWithMetadata.annotation().annotationType(), origin), in create()
155 return annotationType -> Optional.absent(); in getTestParameterValues()
157 return annotationType -> in getTestParameterValues()
166 .annotationType() in getTestParameterValues()
167 .equals(annotationType)) in getTestParameterValues()
175 * testInfo}, or {@link Optional#absent()} if the {@code annotationType} is not found.
178 TestInfo testInfo, Class<? extends Annotation> annotationType) { in getTestParameterValue() argument
179 return getTestParameterValues(testInfo).getValue(annotationType); in getTestParameterValue()
186 annotation.annotationType().getAnnotation(TestParameterAnnotation.class); in getParametersAnnotationValues()
226 abstract Class<? extends Annotation> annotationType(); in annotationType() method in TestParameterAnnotationMethodProcessor.AnnotationTypeOrigin
[all …]
H A DGenericParameterContext.java61 /* getAnnotationsFunction= */ annotationType -> { in create()
63 return ImmutableList.copyOf(field.getAnnotationsByType(annotationType)); in create()
66 ImmutableList.copyOf(field.getAnnotations()), annotationType); in create()
78 /* getAnnotationsFunction= */ annotationType ->
79 ImmutableList.copyOf(parameter.getAnnotationsByType(annotationType)),
89 /* getAnnotationsFunction= */ annotationType ->
90 ImmutableList.copyOf(executable.getAnnotationsByType(annotationType)),
98 /* getAnnotationsFunction= */ annotationType ->
99 getAnnotationsFallback(ImmutableList.copyOf(annotationsOnParameter), annotationType),
106 /* getAnnotationsFunction= */ annotationType ->
[all …]
/aosp_15_r20/external/TestParameterInjector/junit4/src/main/java/com/google/testing/junit/testparameterinjector/
H A DTestParameterAnnotationMethodProcessor.java137 annotationWithMetadata.annotation().annotationType(), origin), in create()
155 return annotationType -> Optional.absent(); in getTestParameterValues()
157 return annotationType -> in getTestParameterValues()
166 .annotationType() in getTestParameterValues()
167 .equals(annotationType)) in getTestParameterValues()
175 * testInfo}, or {@link Optional#absent()} if the {@code annotationType} is not found.
178 TestInfo testInfo, Class<? extends Annotation> annotationType) { in getTestParameterValue() argument
179 return getTestParameterValues(testInfo).getValue(annotationType); in getTestParameterValue()
186 annotation.annotationType().getAnnotation(TestParameterAnnotation.class); in getParametersAnnotationValues()
226 abstract Class<? extends Annotation> annotationType(); in annotationType() method in TestParameterAnnotationMethodProcessor.AnnotationTypeOrigin
[all …]
H A DGenericParameterContext.java61 /* getAnnotationsFunction= */ annotationType -> { in create()
63 return ImmutableList.copyOf(field.getAnnotationsByType(annotationType)); in create()
66 ImmutableList.copyOf(field.getAnnotations()), annotationType); in create()
78 /* getAnnotationsFunction= */ annotationType ->
79 ImmutableList.copyOf(parameter.getAnnotationsByType(annotationType)),
89 /* getAnnotationsFunction= */ annotationType ->
90 ImmutableList.copyOf(executable.getAnnotationsByType(annotationType)),
98 /* getAnnotationsFunction= */ annotationType ->
99 getAnnotationsFallback(ImmutableList.copyOf(annotationsOnParameter), annotationType),
106 /* getAnnotationsFunction= */ annotationType ->
[all …]
/aosp_15_r20/external/guice/core/src/com/google/inject/
H A DKey.java72 protected Key(Class<? extends Annotation> annotationType) { in Key() argument
73 this.annotationStrategy = strategyFor(annotationType); in Key()
218 public static <T> Key<T> get(Class<T> type, Class<? extends Annotation> annotationType) { in get() argument
219 return new Key<T>(type, strategyFor(annotationType)); in get()
233 public static Key<?> get(Type type, Class<? extends Annotation> annotationType) { in get() argument
234 return new Key<Object>(type, strategyFor(annotationType)); in get()
249 TypeLiteral<T> typeLiteral, Class<? extends Annotation> annotationType) { in get() argument
250 return new Key<T>(typeLiteral, strategyFor(annotationType)); in get()
316 Class<? extends Annotation> annotationType = annotation.annotationType(); in strategyFor() local
317 ensureRetainedAtRuntime(annotationType); in strategyFor()
[all …]
/aosp_15_r20/external/auto/common/src/main/java/com/google/auto/common/
H A DSimpleAnnotationMirror.java46 private final TypeElement annotationType; field in SimpleAnnotationMirror
51 TypeElement annotationType, Map<String, ? extends AnnotationValue> namedValues) { in SimpleAnnotationMirror() argument
53 annotationType.getKind().equals(ElementKind.ANNOTATION_TYPE), in SimpleAnnotationMirror()
54 "annotationType must be an annotation: %s", in SimpleAnnotationMirror()
55 annotationType); in SimpleAnnotationMirror() local
59 for (ExecutableElement method : methodsIn(annotationType.getEnclosedElements())) { in SimpleAnnotationMirror()
73 annotationType, in SimpleAnnotationMirror() local
78 this.annotationType = annotationType; in SimpleAnnotationMirror()
81 methodsIn(annotationType.getEnclosedElements()).stream() in SimpleAnnotationMirror()
87 * {@code annotationType} has any annotation members, they must have default values.
[all …]
/aosp_15_r20/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp273 void LogEvent::parseIsUidAnnotation(uint8_t annotationType, std::optional<uint8_t> numElements) { in parseIsUidAnnotation() argument
280 if (numElements == 0 && annotationType == BOOL_TYPE) { in parseIsUidAnnotation()
287 annotationType != BOOL_TYPE) { in parseIsUidAnnotation()
303 void LogEvent::parseTruncateTimestampAnnotation(uint8_t annotationType) { in parseTruncateTimestampAnnotation() argument
304 if (!mValues.empty() || annotationType != BOOL_TYPE) { in parseTruncateTimestampAnnotation()
313 void LogEvent::parsePrimaryFieldAnnotation(uint8_t annotationType, in parsePrimaryFieldAnnotation() argument
317 if (mValues.empty() || annotationType != BOOL_TYPE || firstUidInChainIndex || numElements) { in parsePrimaryFieldAnnotation()
327 void LogEvent::parsePrimaryFieldFirstUidAnnotation(uint8_t annotationType, in parsePrimaryFieldFirstUidAnnotation() argument
330 if (mValues.empty() || annotationType != BOOL_TYPE || !firstUidInChainIndex) { in parsePrimaryFieldFirstUidAnnotation()
347 void LogEvent::parseExclusiveStateAnnotation(uint8_t annotationType, in parseExclusiveStateAnnotation() argument
[all …]
/aosp_15_r20/external/guava/android/guava/src/com/google/common/reflect/
H A DParameter.java73 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument
74 return getAnnotation(annotationType) != null; in isAnnotationPresent()
79 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument
80 checkNotNull(annotationType); in getAnnotation()
82 if (annotationType.isInstance(annotation)) { in getAnnotation()
83 return annotationType.cast(annotation); in getAnnotation()
98 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument
99 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType()
113 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument
114 checkNotNull(annotationType); in getDeclaredAnnotation()
[all …]
/aosp_15_r20/external/guava/guava/src/com/google/common/reflect/
H A DParameter.java75 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument
76 return getAnnotation(annotationType) != null; in isAnnotationPresent()
81 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument
82 checkNotNull(annotationType); in getAnnotation()
84 if (annotationType.isInstance(annotation)) { in getAnnotation()
85 return annotationType.cast(annotation); in getAnnotation()
100 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument
101 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType()
115 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument
116 checkNotNull(annotationType); in getDeclaredAnnotation()
[all …]
/aosp_15_r20/external/guice/core/src/com/google/inject/matcher/
H A DMatchers.java97 private static void checkForRuntimeRetention(Class<? extends Annotation> annotationType) { in checkForRuntimeRetention() argument
98 Retention retention = annotationType.getAnnotation(Retention.class); in checkForRuntimeRetention()
102 annotationType.getSimpleName()); in checkForRuntimeRetention()
107 final Class<? extends Annotation> annotationType) { in annotatedWith() argument
108 return new AnnotatedWithType(annotationType); in annotatedWith()
113 private final Class<? extends Annotation> annotationType; field in Matchers.AnnotatedWithType
115 public AnnotatedWithType(Class<? extends Annotation> annotationType) { in AnnotatedWithType() argument
116 this.annotationType = checkNotNull(annotationType, "annotation type"); in AnnotatedWithType()
117 checkForRuntimeRetention(annotationType); in AnnotatedWithType()
122 return element.isAnnotationPresent(annotationType); in matches()
[all …]
/aosp_15_r20/external/turbine/java/com/google/turbine/processing/
H A DTurbineAnnotationProxy.java45 ModelFactory factory, Class<A> annotationType, AnnoInfo anno) { in create() argument
46 ClassLoader loader = annotationType.getClassLoader(); in create()
51 return annotationType.cast( in create()
54 new Class<?>[] {annotationType}, in create()
55 new TurbineAnnotationProxy(factory, loader, annotationType, anno))); in create()
60 private final Class<?> annotationType; field in TurbineAnnotationProxy
64 ModelFactory factory, ClassLoader loader, Class<?> annotationType, AnnoInfo anno) { in TurbineAnnotationProxy() argument
67 this.annotationType = annotationType; in TurbineAnnotationProxy()
77 case "annotationType": in invoke()
79 return annotationType; in invoke()
[all …]
/aosp_15_r20/external/junit/src/main/java/org/junit/experimental/theories/
H A DParameterSignature.java102 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) { in findDeepAnnotation() argument
104 return findDeepAnnotation(annotations2, annotationType, 3); in findDeepAnnotation()
108 Annotation[] annotations, Class<T> annotationType, int depth) { in findDeepAnnotation() argument
113 if (annotationType.isInstance(each)) { in findDeepAnnotation()
114 return annotationType.cast(each); in findDeepAnnotation()
116 Annotation candidate = findDeepAnnotation(each.annotationType() in findDeepAnnotation()
117 .getAnnotations(), annotationType, depth - 1); in findDeepAnnotation()
119 return annotationType.cast(candidate); in findDeepAnnotation()
126 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation() argument
128 if (annotationType.isInstance(each)) { in getAnnotation()
[all …]
/aosp_15_r20/external/spdx-tools/rdfloader/parser2v2/
H A Dparse_annotation_test.go45 // TestCase 1: invalid input (empty annotationType)
54 t.Errorf("expected an error for invalid annotationType")
62 if ann.AnnotationType != "OTHER" {
63 t.Errorf("expected: OTHER, found: %s", ann.AnnotationType)
71 if ann.AnnotationType != "REVIEW" {
72 t.Errorf("expected: REVIEW, found: %s", ann.AnnotationType)
105 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/>
120 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/>
135 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/>
151 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/>
[all …]
/aosp_15_r20/external/spdx-tools/rdfloader/parser2v3/
H A Dparse_annotation_test.go45 // TestCase 1: invalid input (empty annotationType)
54 t.Errorf("expected an error for invalid annotationType")
62 if ann.AnnotationType != "OTHER" {
63 t.Errorf("expected: OTHER, found: %s", ann.AnnotationType)
71 if ann.AnnotationType != "REVIEW" {
72 t.Errorf("expected: REVIEW, found: %s", ann.AnnotationType)
105 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/>
120 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/>
135 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/>
151 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/>
[all …]
/aosp_15_r20/external/google-cloud-java/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/
H A DAnnotationType.java21 /** Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationType} */
22 public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { enum
309 public static AnnotationType valueOf(int value) { in valueOf()
317 public static AnnotationType forNumber(int value) { in forNumber()
352 public static com.google.protobuf.Internal.EnumLiteMap<AnnotationType> internalGetValueMap() { in internalGetValueMap()
356 private static final com.google.protobuf.Internal.EnumLiteMap<AnnotationType> internalValueMap =
357 new com.google.protobuf.Internal.EnumLiteMap<AnnotationType>() {
358 public AnnotationType findValueByNumber(int number) {
359 return AnnotationType.forNumber(number);
381 private static final AnnotationType[] VALUES = values();
[all …]
H A DEvaluation.java338 …* [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJob…
342 * <code>.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;</code>
344 * @return The enum numeric value on the wire for annotationType.
356 …* [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJob…
360 * <code>.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;</code>
362 * @return The annotationType.
365 public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { in getAnnotationType()
366 com.google.cloud.datalabeling.v1beta1.AnnotationType result = in getAnnotationType()
367 com.google.cloud.datalabeling.v1beta1.AnnotationType.forNumber(annotationType_); in getAnnotationType()
369 ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED in getAnnotationType()
[all …]
/aosp_15_r20/external/moshi/moshi/src/main/java/com/squareup/moshi/
H A DTypes.java96 if (jsonQualifier.equals(annotation.annotationType())) { in nextAnnotations()
291 if (annotation.annotationType().isAnnotationPresent(JsonQualifier.class)) { in getFieldJsonQualifierAnnotations()
303 static <T extends Annotation> T createJsonQualifierImplementation(final Class<T> annotationType) { in createJsonQualifierImplementation() argument
304 if (!annotationType.isAnnotation()) { in createJsonQualifierImplementation()
305 throw new IllegalArgumentException(annotationType + " must be an annotation."); in createJsonQualifierImplementation()
307 if (!annotationType.isAnnotationPresent(JsonQualifier.class)) { in createJsonQualifierImplementation()
308 throw new IllegalArgumentException(annotationType + " must have @JsonQualifier."); in createJsonQualifierImplementation()
310 if (annotationType.getDeclaredMethods().length != 0) { in createJsonQualifierImplementation()
311 throw new IllegalArgumentException(annotationType + " must not declare methods."); in createJsonQualifierImplementation()
315 annotationType.getClassLoader(), in createJsonQualifierImplementation()
[all …]
/aosp_15_r20/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java58 …blic static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType) { in getElementsDescription() argument
60 AnnotationMember[] desc = cache.get(annotationType); in getElementsDescription()
65 if (!annotationType.isAnnotation()) { in getElementsDescription()
66 … throw new IllegalArgumentException("Type is not annotation: " + annotationType.getName()); in getElementsDescription()
68 Method[] declaredMethods = annotationType.getDeclaredMethods(); in getElementsDescription()
81 cache.put(annotationType, desc); in getElementsDescription()
88 * @param annotationType the annotation type definition
92 …public static <A extends Annotation> A createAnnotation(Class<? extends Annotation> annotationType, in createAnnotation() argument
94 AnnotationFactory factory = new AnnotationFactory(annotationType, elements); in createAnnotation()
95 return (A) Proxy.newProxyInstance(annotationType.getClassLoader(), in createAnnotation()
[all …]
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DAnnotatedElementTestSupport.java163 * Extracts the annotation types ({@link Annotation#annotationType()} from the supplied
169 result.add(annotation.annotationType()); in annotationsToTypes()
203 AnnotatedElement element, Class<? extends Annotation> annotationType, in assertIsAnnotationPresent() argument
205 assertEquals("element.isAnnotationPresent() for " + element + " and " + annotationType, in assertIsAnnotationPresent()
206 expected, element.isAnnotationPresent(annotationType)); in assertIsAnnotationPresent()
215 Class<? extends Annotation> annotationType, String expectedAnnotationString) { in assertGetDeclaredAnnotation() argument
216 Annotation annotation = annotatedElement.getDeclaredAnnotation(annotationType); in assertGetDeclaredAnnotation()
226 AnnotatedElement annotatedElement, Class<? extends Annotation> annotationType, in assertGetDeclaredAnnotationsByType() argument
228 Annotation[] annotations = annotatedElement.getDeclaredAnnotationsByType(annotationType); in assertGetDeclaredAnnotationsByType()
238 Class<? extends Annotation> annotationType, String[] expectedAnnotationStrings) in assertGetAnnotationsByType() argument
[all …]
/aosp_15_r20/external/cronet/base/test/android/javatests/src/org/chromium/base/test/util/
H A DAnnotationProcessingUtils.java52 Description description, Class<A> annotationType) { in getAnnotations() argument
54 new AnnotationExtractor(annotationType).getMatchingAnnotations(description); in getAnnotations()
60 AnnotatedElement annotatedElement, Class<A> annotationType) { in getAnnotations() argument
62 new AnnotationExtractor(annotationType).getMatchingAnnotations(annotatedElement); in getAnnotations()
66 Package pkg = annotation.annotationType().getPackage(); in isChromiumAnnotation()
114 t1.annotationType(), t2.annotationType()); in AnnotationExtractor()
180 if (mAnnotationTypes.contains(annotation.annotationType())) { in sweepAnnotations()
185 if (!visited.add(annotation.annotationType())) return; in sweepAnnotations()
190 Arrays.asList(annotation.annotationType().getDeclaredAnnotations()), in sweepAnnotations()
/aosp_15_r20/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/
H A DAnnotationProcessingUtils.java53 Description description, Class<A> annotationType) { in getAnnotations() argument
54 return (List<A>) new AnnotationExtractor(annotationType) in getAnnotations()
61 AnnotatedElement annotatedElement, Class<A> annotationType) { in getAnnotations() argument
62 return (List<A>) new AnnotationExtractor(annotationType) in getAnnotations()
67 Package pkg = annotation.annotationType().getPackage(); in isChromiumAnnotation()
113 -> mAnnotationTypeComparator.compare(t1.annotationType(), t2.annotationType()); in AnnotationExtractor()
177 if (mAnnotationTypes.contains(annotation.annotationType())) { in sweepAnnotations()
182 if (!visited.add(annotation.annotationType())) return; in sweepAnnotations()
186 queueAnnotations(Arrays.asList(annotation.annotationType().getDeclaredAnnotations()), in sweepAnnotations()
/aosp_15_r20/external/testng/src/main/java/org/testng/xml/
H A DSuiteGenerator.java24 Map<String, String> parameters, String annotationType, int logLevel) { in createSuite() argument
34 parameters, annotationType, logLevel); in createSuite()
40 parameters, annotationType, logLevel); in createSuite()
46 annotationType, logLevel); in createSuite()
60 Map<String, String> parameters, String annotationType, int logLevel) { in createCustomizedSuite() argument
63 parameters, annotationType, logLevel); in createCustomizedSuite()
67 parameters, annotationType, logLevel); in createCustomizedSuite()
70 parameters, annotationType, logLevel); in createCustomizedSuite()

12345678910>>...65