Home
last modified time | relevance | path

Searched refs:annotationClass (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java41 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()
DTestMethod.java62 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() argument
64 return getEnclosingClass().getMethod(getName()).getAnnotation(annotationClass); in getAnnotation()
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java487 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()
/frameworks/base/core/java/android/os/health/
DHealthKeys.java99 final Class<Constant> annotationClass = Constant.class; in Constants() local
110 final Constant constant = field.getAnnotation(annotationClass); in Constants()