Home
last modified time | relevance | path

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

/aosp14/frameworks/base/test-runner/src/android/test/suitebuilder/
H A 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
/aosp14/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
H A DClientSidePermissionCheckChecker.java23 import static com.google.errorprone.matchers.Matchers.hasAnnotation;
51 enclosingClass(hasAnnotation("android.annotation.SystemService"));
H A DContextUserIdChecker.java24 import static com.google.errorprone.matchers.Matchers.hasAnnotation;
62 enclosingClass(hasAnnotation("android.annotation.SystemService"));
H A DRethrowFromSystemChecker.java24 import static com.google.errorprone.matchers.Matchers.hasAnnotation;
68 enclosingClass(hasAnnotation("android.annotation.SystemService"));
H A DBluetoothPermissionChecker.java146 if (ASTHelpers.hasAnnotation(tree, ANNOTATION_ADVERTISE, in matchMethod()
153 if (ASTHelpers.hasAnnotation(tree, ANNOTATION_CONNECT, in matchMethod()
160 if (ASTHelpers.hasAnnotation(tree, ANNOTATION_SCAN, in matchMethod()
/aosp14/frameworks/base/test-runner/src/android/test/
H A 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);
489 return hasAnnotation(annotationClass); in getAnnotationPredicate()
503 return TestPredicates.not(hasAnnotation(annotationClass)); in getNotAnnotationPredicate()
/aosp14/frameworks/base/tools/codegen/src/com/android/codegen/
H A DFieldInfo.kt137 fun hasAnnotation(a: String) = annotations.any { it.startsWith(a) } regex
138 val isNullable by lazy { hasAnnotation("@Nullable") }
139 val isNonEmpty by lazy { hasAnnotation("@${classPrinter.NonEmpty}") }
H A DGenerators.kt457 hasAnnotation("@$DataClassEnum") ->
510 } else if (hasAnnotation("@$DataClassEnum")) {
/aosp14/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DTestPredicatesTest.java48 return TestPredicates.hasAnnotation(Example.class).apply(testMethod); in hasExampleAnnotation()
/aosp14/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
H A 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()
H A DAnnotationUtils.java95 boolean hasAnnotation(@NonNull Element element, @NonNull String annotationQualifiedName) { in hasAnnotation() method in AnnotationUtils
/aosp14/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/
H A DEnforcePermissionHelperDetector.kt46 if (!node.hasAnnotation(ANNOTATION_ENFORCE_PERMISSION)) return