/aosp12/frameworks/base/test-runner/src/android/test/suitebuilder/ |
H A D | TestPredicates.java | 41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() argument 42 return new HasAnnotation(annotationClass); in hasAnnotation() 47 private final Class<? extends Annotation> annotationClass; field in TestPredicates.HasAnnotation 49 private HasAnnotation(Class<? extends Annotation> annotationClass) { in HasAnnotation() argument 50 this.annotationClass = annotationClass; in HasAnnotation() 55 return testMethod.getAnnotation(annotationClass) != null || in apply() 56 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
|
H A D | TestMethod.java | 62 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() argument 64 return getEnclosingClass().getMethod(getName()).getAnnotation(annotationClass); in getAnnotation()
|
/aosp12/art/test/048-reflect-v8/src/ |
H A D | AnnotationTest.java | 130 private static <A extends Annotation> void printAnnotationsByType(Class<A> annotationClass, in printAnnotationsByType() argument 132 A[] annotationsByType = annotationUseClass.getAnnotationsByType(annotationClass); in printAnnotationsByType() 155 Class<A> annotationClass, Class<?> annotationUseClass) { in printDeclaredAnnotationsByType() argument 159 + " with annotation " + annotationClass.getName() + ": " in printDeclaredAnnotationsByType() 202 A[] annotationsByType = m.getAnnotationsByType(annotationClass); in printMethodAnnotationsByType() 205 annotationClass.getName() + ": " + in printMethodAnnotationsByType() 242 Annotation annotationsByType = m.getDeclaredAnnotation(annotationClass); in printMethodDeclaredAnnotation() 245 + annotationClass.getName() + ": " in printMethodDeclaredAnnotation() 276 Class<A> annotationClass, String methodName, Class<?> annotationUseClass) { in printMethodDeclaredAnnotationByType() argument 283 A[] annotationsByType = m.getDeclaredAnnotationsByType(annotationClass); in printMethodDeclaredAnnotationByType() [all …]
|
/aosp12/art/test/979-const-method-handle/util-src/transformer/ |
H A D | ConstantTransformer.java | 162 Method method, Class<?> annotationClass, String reason) { 165 .append(annotationClass) 174 Method method, Class<?> annotationClass, Class<?> returnType) { 177 throwAnnotationError(method, annotationClass, " method is not private and static"); 180 throwAnnotationError(method, annotationClass, " method expects parameters"); 183 throwAnnotationError(method, annotationClass, " wrong return type");
|
/aosp12/frameworks/base/test-runner/src/android/test/ |
H A D | InstrumentationTestRunner.java | 487 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getAnnotationPredicate() local 488 if (annotationClass != null) { in getAnnotationPredicate() 489 return hasAnnotation(annotationClass); in getAnnotationPredicate() 501 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getNotAnnotationPredicate() local 502 if (annotationClass != null) { in getNotAnnotationPredicate() 503 return TestPredicates.not(hasAnnotation(annotationClass)); in getNotAnnotationPredicate() 519 Class<?> annotationClass = Class.forName(annotationClassName); in getAnnotationClass() local 520 if (annotationClass.isAnnotation()) { in getAnnotationClass() 521 return (Class<? extends Annotation>)annotationClass; in getAnnotationClass()
|
/aosp12/art/test/715-clinit-implicit-parameter-annotations/src/ |
H A D | Main.java | 129 Class<? extends Annotation> annotationClass = in DumpConstructorParameterAnnotations() local 131 Annotation annotation = parameters[i].getDeclaredAnnotation(annotationClass); in DumpConstructorParameterAnnotations() 133 System.out.println(" " + annotationClass.getName() + " " + hasAnnotation); in DumpConstructorParameterAnnotations() 135 … Annotation[] parameterAnnotations = parameters[i].getDeclaredAnnotationsByType(annotationClass); in DumpConstructorParameterAnnotations()
|
/aosp12/frameworks/base/core/java/android/os/health/ |
H A D | HealthKeys.java | 99 final Class<Constant> annotationClass = Constant.class; in Constants() local 110 final Constant constant = field.getAnnotation(annotationClass); in Constants()
|
/aosp12/packages/apps/TV/libs/m2/ |
H A D | auto-common-0.10.jar | META-INF/MANIFEST.MF
META-INF/
com/
com/google/
com/ ... |
H A D | dagger-android-processor-2.23.jar | java/dagger/android/processor/META-INF/gradle/incremental.annotation.processors
... |
H A D | dagger-spi-2.23.jar | dagger/spi/package-info.class
package-info.java
package dagger.spi
abstract ... |
H A D | dagger-compiler-2.23.jar | java/dagger/internal/codegen/META-INF/gradle/incremental.annotation.processors
... |
H A D | auto-value-1.5.3.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |
H A D | guava-28.0-android.jar | META-INF/MANIFEST.MF
META-INF/
META-INF/maven/
META- ... |
H A D | guava-28.0-jre.jar | META-INF/MANIFEST.MF
META-INF/
META-INF/maven/
META- ... |
/aosp12/art/runtime/native/ |
H A D | java_lang_Class.cc | 675 static jobject Class_getDeclaredAnnotation(JNIEnv* env, jobject javaThis, jclass annotationClass) { in Class_getDeclaredAnnotation() argument 685 if (UNLIKELY(annotationClass == nullptr)) { in Class_getDeclaredAnnotation() 693 Handle<mirror::Class> annotation_class(hs.NewHandle(soa.Decode<mirror::Class>(annotationClass))); in Class_getDeclaredAnnotation()
|
/aosp12/art/test/1980-obsolete-object-cleared/ |
H A D | expected-stdout.txt | 46 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass 184 …ava.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass == null 259 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass 280 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass 397 …ava.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass == null
|
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
H A D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |
/aosp12/packages/apps/TV/libs/ |
H A D | google-java-format-1.7-all-deps.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |