Home
last modified time | relevance | path

Searched refs:hasAnnotation (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java33 static final Predicate<TestMethod> SELECT_SMOKE = hasAnnotation(Smoke.class);
35 static final Predicate<TestMethod> REJECT_SUPPRESSED = not(hasAnnotation(Suppress.class));
41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() method in TestPredicates
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
DRethrowFromSystemChecker.java21 import static com.google.errorprone.matchers.Matchers.hasAnnotation;
59 enclosingClass(hasAnnotation("android.annotation.SystemService"));
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java52 import static android.test.suitebuilder.TestPredicates.hasAnnotation;
198 private static final Predicate<TestMethod> SELECT_SMALL = hasAnnotation(SmallTest.class);
200 private static final Predicate<TestMethod> SELECT_MEDIUM = hasAnnotation(MediumTest.class);
202 private static final Predicate<TestMethod> SELECT_LARGE = hasAnnotation(LargeTest.class);
490 return hasAnnotation(annotationClass); in getAnnotationPredicate()
504 return TestPredicates.not(hasAnnotation(annotationClass)); in getNotAnnotationPredicate()
/frameworks/base/tools/codegen/src/com/android/codegen/
DFieldInfo.kt137 fun hasAnnotation(a: String) = annotations.any { it.startsWith(a) } in <lambda>() method
138 val isNullable by lazy { hasAnnotation("@Nullable") } in <lambda>()
139 val isNonEmpty by lazy { hasAnnotation("@${classPrinter.NonEmpty}") } in <lambda>()
DGenerators.kt454 hasAnnotation("@$DataClassEnum") -> in generateParcelable()
507 } else if (hasAnnotation("@$DataClassEnum")) { in generateParcelable()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DTestPredicatesTest.java48 return TestPredicates.hasAnnotation(Example.class).apply(testMethod); in hasExampleAnnotation()
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DInspectablePropertyProcessor.java544 if (mAnnotationUtils.hasAnnotation(accessor, name)) { in hasColorAnnotation()
551 if (mAnnotationUtils.hasAnnotation(accessor, name)) { in hasColorAnnotation()
570 if (mAnnotationUtils.hasAnnotation(accessor, name)) { in hasResourceIdAnnotation()
DAnnotationUtils.java95 boolean hasAnnotation(@NonNull Element element, @NonNull String annotationQualifiedName) { in hasAnnotation() method in AnnotationUtils