/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/ |
D | SceneContainerRule.kt | 37 if (description.hasAnnotation<EnableSceneContainer>()) { in <lambda>() 62 description.hasAnnotation<BrokenWithSceneContainer>() && in <lambda>() 85 inline fun <reified T : Annotation> Description?.hasAnnotation(): Boolean = in <lambda>() method in com.android.systemui.flags.SceneContainerRule
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestPredicates.java | 35 static final Predicate<TestMethod> SELECT_SMOKE = hasAnnotation(Smoke.class); 37 static final Predicate<TestMethod> REJECT_SUPPRESSED = not(hasAnnotation(Suppress.class)); 43 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() method in TestPredicates
|
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
D | ClientSidePermissionCheckChecker.java | 23 import static com.google.errorprone.matchers.Matchers.hasAnnotation; 51 enclosingClass(hasAnnotation("android.annotation.SystemService"));
|
D | ContextUserIdChecker.java | 24 import static com.google.errorprone.matchers.Matchers.hasAnnotation; 62 enclosingClass(hasAnnotation("android.annotation.SystemService"));
|
D | RethrowFromSystemChecker.java | 24 import static com.google.errorprone.matchers.Matchers.hasAnnotation; 68 enclosingClass(hasAnnotation("android.annotation.SystemService"));
|
D | BluetoothPermissionChecker.java | 146 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()
|
/frameworks/base/tools/lint/utils/checks/src/main/java/com/google/android/lint/aidl/ |
D | AnnotatedAidlCounter.kt | 56 node.hasAnnotation(ANNOTATION_ENFORCE_PERMISSION) -> packageStat.enforced += 1 in visitAidlMethod() 57 node.hasAnnotation(ANNOTATION_REQUIRES_NO_PERMISSION) -> packageStat.notRequired += 1 in visitAidlMethod()
|
/frameworks/base/test-runner/src/android/test/ |
D | InstrumentationTestRunner.java | 19 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()
|
/frameworks/base/tools/codegen/src/com/android/codegen/ |
D | FieldInfo.kt | 137 fun hasAnnotation(a: String) = annotations.any { it.startsWith(a) } in <lambda>() method in com.android.codegen.FieldInfo 138 val isNullable by lazy { hasAnnotation("@Nullable") } in <lambda>() 139 val isNonEmpty by lazy { hasAnnotation("@${classPrinter.NonEmpty}") } in <lambda>()
|
D | Generators.kt | 458 hasAnnotation("@$DataClassEnum") -> in generateParcelable() 511 } else if (hasAnnotation("@$DataClassEnum")) { in generateParcelable()
|
/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/ |
D | PermissionAnnotationDetector.kt | 48 if (AIDL_PERMISSION_ANNOTATIONS.any { node.hasAnnotation(it) }) return in visitAidlMethod()
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
D | TestPredicatesTest.java | 48 return TestPredicates.hasAnnotation(Example.class).apply(testMethod); in hasExampleAnnotation()
|
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/ |
D | InspectablePropertyProcessor.java | 544 if (mAnnotationUtils.hasAnnotation(accessor, name)) { in hasColorAnnotation() 551 if (mAnnotationUtils.hasAnnotation(accessor, name)) { in hasColorAnnotation() 570 if (mAnnotationUtils.hasAnnotation(accessor, name)) { in hasResourceIdAnnotation()
|
D | AnnotationUtils.java | 95 boolean hasAnnotation(@NonNull Element element, @NonNull String annotationQualifiedName) { in hasAnnotation() method in AnnotationUtils
|
/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/ |
D | EnforcePermissionDetector.kt | 185 if (!node.hasAnnotation(ANNOTATION_ENFORCE_PERMISSION)) return in createUastHandler()
|