Home
last modified time | relevance | path

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

/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
DHasMethodAnnotation.java32 private final Class<? extends Annotation> annotationClass; field in HasMethodAnnotation
34 public HasMethodAnnotation(Class<? extends Annotation> annotationClass) { in HasMethodAnnotation() argument
35 this.annotationClass = annotationClass; in HasMethodAnnotation()
39 return testMethod.getAnnotation(annotationClass) != null; in apply()
DHasClassAnnotation.java32 private Class<? extends Annotation> annotationClass; field in HasClassAnnotation
34 public HasClassAnnotation(Class<? extends Annotation> annotationClass) { in HasClassAnnotation() argument
35 this.annotationClass = annotationClass; in HasClassAnnotation()
39 return testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
DHasAnnotation.java35 public HasAnnotation(Class<? extends Annotation> annotationClass) { in HasAnnotation() argument
37 new HasMethodAnnotation(annotationClass), in HasAnnotation()
38 new HasClassAnnotation(annotationClass)); in HasAnnotation()
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java479 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getAnnotationPredicate() local
480 if (annotationClass != null) { in getAnnotationPredicate()
481 return new HasAnnotation(annotationClass); in getAnnotationPredicate()
493 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getNotAnnotationPredicate() local
494 if (annotationClass != null) { in getNotAnnotationPredicate()
495 return Predicates.not(new HasAnnotation(annotationClass)); in getNotAnnotationPredicate()
511 Class<?> annotationClass = Class.forName(annotationClassName); in getAnnotationClass() local
512 if (annotationClass.isAnnotation()) { in getAnnotationClass()
513 return (Class<? extends Annotation>)annotationClass; in getAnnotationClass()
/frameworks/testing/support/src/android/support/test/internal/runner/
DTestRequestBuilder.java527 Class<? extends Annotation> annotationClass = loadAnnotationClass(annotation); in addAnnotationInclusionFilter() local
528 if (annotationClass != null) { in addAnnotationInclusionFilter()
529 mFilter = mFilter.intersect(new AnnotationInclusionFilter(annotationClass)); in addAnnotationInclusionFilter()
539 Class<? extends Annotation> annotationClass = loadAnnotationClass(notAnnotation); in addAnnotationExclusionFilter() local
540 if (annotationClass != null) { in addAnnotationExclusionFilter()
541 mFilter = mFilter.intersect(new AnnotationExclusionFilter(annotationClass)); in addAnnotationExclusionFilter()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java58 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() argument
60 return getEnclosingClass().getMethod(getName()).getAnnotation(annotationClass); in getAnnotation()