Home
last modified time | relevance | path

Searched refs:findAnnotation (Results 1 – 9 of 9) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt96 val annotation = method.modifiers.findAnnotation("kotlin.jvm.Throws") in ensureExceptionsDocumented()
136 if (modifiers.findAnnotation("kotlin.jvm.JvmField") == null) { in ensureCompanionFieldJvmField()
141 } else if (modifiers.findAnnotation("kotlin.jvm.JvmStatic") != null) { in ensureCompanionFieldJvmField()
213 } else if (method.modifiers.findAnnotation("kotlin.jvm.JvmStatic") == null) { in ensureCompanionJvmStatic()
253 if (haveDefault && method.modifiers.findAnnotation("kotlin.jvm.JvmOverloads") == null && in ensureDefaultParamsHaveJvmOverloads()
DAndroidApiChecks.kt178 … val annotation = method.modifiers.findAnnotation("android.support.annotation.RequiresPermission") in checkRequiresPermission()
219 … val hasBehavior = field.modifiers.findAnnotation("android.annotation.BroadcastBehavior") != null in checkIntentAction()
220 … val hasSdkConstant = field.modifiers.findAnnotation("android.annotation.SdkConstant") != null in checkIntentAction()
263 if (modifiers.findAnnotation(SdkConstants.INT_DEF_ANNOTATION.oldName()) != null || in checkVariable()
264 modifiers.findAnnotation(SdkConstants.INT_DEF_ANNOTATION.newName()) != null in checkVariable()
DAnnotationsDiffer.kt93 if (newModifiers.findAnnotation(qualifiedName) == null) { in <lambda>()
DAnnotationsMerger.kt273 if (newModifiers.findAnnotation(qualifiedName) == null) { in mergeQualifierAnnotationsFromCodebase()
320 new.modifiers.findAnnotation(qualifiedName) == null in mergeInclusionAnnotationsFromCodebase()
DReporter.kt166 val annotation = item.modifiers.findAnnotation("android.annotation.SuppressLint") in toString()
DApiAnalyzer.kt695 val annotation = method.modifiers.findAnnotation(ANDROID_REQUIRES_PERMISSION) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt135 return findAnnotation(qualifiedName) != null in isAnnotatedWith()
139 fun findAnnotation(qualifiedName: String): AnnotationItem? { in findAnnotation() method
DClassItem.kt356 val annotation = modifiers.findAnnotation("java.lang.annotation.Retention") in <lambda>()
357 ?: modifiers.findAnnotation("kotlin.annotation.Retention") in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiClassItem.kt381 if (modifiers.findAnnotation("java.lang.annotation.Retention") != null) { in <lambda>()
384 if (modifiers.findAnnotation("kotlin.annotation.Retention") != null) { in <lambda>()