/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/ |
D | AnnotationManager.kt | 23 fun getAnnotationInfo(annotation: AnnotationItem): AnnotationInfo in getAnnotationInfo() 43 annotation: AnnotationItem, in getAnnotationInfo() 106 override fun getAnnotationInfo(annotation: AnnotationItem): AnnotationInfo { in getAnnotationInfo() 131 protected abstract fun getKeyForAnnotationItem(annotationItem: AnnotationItem): String in getAnnotationInfo() 142 protected abstract fun computeAnnotationInfo(annotationItem: AnnotationItem): AnnotationInfo in getAnnotationInfo() 156 override fun getKeyForAnnotationItem(annotationItem: AnnotationItem): String { in getKeyForAnnotationItem() 162 override fun computeAnnotationInfo(annotationItem: AnnotationItem): AnnotationInfo { in computeAnnotationInfo() 175 annotation: AnnotationItem,
|
D | AnnotationItem.kt | 43 interface AnnotationItem { interface 129 fun findTypedefAnnotation(): AnnotationItem? in resolve() 196 fun simpleName(item: AnnotationItem): String { in simpleName() 249 val List<AnnotationItem>.typeNullability 273 inline fun <reified T : Any> AnnotationItem.getAttributeValue(name: String): T? { in getAttributeValue() 283 internal fun AnnotationItem.nonInlineGetAttributeValue(kClass: KClass<*>, name: String): Any? { in nonInlineGetAttributeValue() 305 inline fun <reified T : Any> AnnotationItem.getAttributeValues(name: String): List<T>? { in getAttributeValues() 314 internal fun <T : Any> AnnotationItem.nonInlineGetAttributeValues( in nonInlineGetAttributeValues() 361 if (kClass == AnnotationItem::class) { in convertValue() 382 ) : AnnotationItem { [all …]
|
D | ModifierList.kt | 22 fun annotations(): List<AnnotationItem> in annotations() 109 fun hasJvmSyntheticAnnotation(): Boolean = hasAnnotation(AnnotationItem::isJvmSynthetic) in hasJvmSyntheticAnnotation() 135 fun findAnnotation(qualifiedName: String): AnnotationItem? { in findAnnotation() 176 inline fun ModifierList.findAnnotation(predicate: (AnnotationItem) -> Boolean): AnnotationItem? { in findAnnotation() 183 inline fun ModifierList.hasAnnotation(predicate: (AnnotationItem) -> Boolean): Boolean { in hasAnnotation()
|
D | TypeModifiers.kt | 25 fun annotations(): List<AnnotationItem> in annotations() 28 fun addAnnotation(annotation: AnnotationItem) in annotations() 31 fun removeAnnotation(annotation: AnnotationItem) in annotations() 82 fun ofAnnotation(annotation: AnnotationItem): TypeNullability { in annotations()
|
D | MutableModifierList.kt | 66 fun addAnnotation(annotation: AnnotationItem) 68 fun removeAnnotation(annotation: AnnotationItem) 70 fun removeAnnotations(predicate: (AnnotationItem) -> Boolean) 72 fun clearAnnotations(annotation: AnnotationItem)
|
D | DefaultModifierList.kt | 22 private var annotations: MutableList<AnnotationItem>? = null 40 override fun annotations(): List<AnnotationItem> { in annotations() 258 override fun addAnnotation(annotation: AnnotationItem) { in addAnnotation() 265 override fun removeAnnotation(annotation: AnnotationItem) { in removeAnnotation() 269 override fun removeAnnotations(predicate: (AnnotationItem) -> Boolean) { in removeAnnotations() 273 override fun clearAnnotations(annotation: AnnotationItem) { in clearAnnotations()
|
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParser.kt | 19 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 96 annotations: List<AnnotationItem> = emptyList(), in <lambda>() 127 annotations: List<AnnotationItem>, in <lambda>() 175 annotations: List<AnnotationItem>, in <lambda>() 205 componentAnnotations: List<AnnotationItem>, in <lambda>() 228 val allAnnotations = mutableListOf<List<AnnotationItem>>() in <lambda>() 298 annotations: List<AnnotationItem>, in <lambda>() 348 annotations: List<AnnotationItem>, in <lambda>() 366 annotations: List<AnnotationItem>, in <lambda>() 382 annotations: List<AnnotationItem>, in <lambda>() [all …]
|
D | TextCodebase.kt | 19 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 237 ): AnnotationItem { in <lambda>()
|
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/type/ |
D | DefaultTypeModifiers.kt | 19 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 26 private val annotations: MutableList<AnnotationItem>, in <lambda>() 39 override fun annotations(): List<AnnotationItem> = annotations in <lambda>() 41 override fun addAnnotation(annotation: AnnotationItem) { in <lambda>() 46 override fun removeAnnotation(annotation: AnnotationItem) { in <lambda>() 76 annotations: List<AnnotationItem>, in <lambda>()
|
D | TypeItemFactory.kt | 19 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 108 itemAnnotations: List<AnnotationItem>, in <lambda>() 133 itemAnnotations: List<AnnotationItem>, in <lambda>() 155 itemAnnotations: List<AnnotationItem>, in <lambda>() 209 val itemAnnotations: List<AnnotationItem>? = null, 223 typeAnnotations: List<AnnotationItem> in compute() 289 itemAnnotations: List<AnnotationItem>, in getFieldType() 315 itemAnnotations: List<AnnotationItem>, in getMethodParameterType() 338 itemAnnotations: List<AnnotationItem>, in getMethodReturnType()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/ |
D | DefaultAnnotationManager.kt | 33 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 54 typealias KeyFactory = (annotationItem: AnnotationItem) -> String in <lambda>() 85 fun useSourceAsKey(annotationItem: AnnotationItem): String { in <lambda>() 123 override fun getKeyForAnnotationItem(annotationItem: AnnotationItem): String { in <lambda>() 136 override fun computeAnnotationInfo(annotationItem: AnnotationItem): AnnotationInfo { in <lambda>() 334 annotation: AnnotationItem, in <lambda>() 480 if (cls.modifiers.hasAnnotation(AnnotationItem::isTypeDefAnnotation)) { in <lambda>() 523 return modifiers.hasAnnotation(AnnotationItem::isHideAnnotation) in <lambda>() 530 return modifiers.hasAnnotation(AnnotationItem::isSuppressCompatibilityAnnotation) in <lambda>() 642 private val annotationItem: AnnotationItem, [all …]
|
D | NullnessMigration.kt | 19 import com.android.tools.metalava.model.AnnotationItem 106 fun findNullnessAnnotation(item: Item): AnnotationItem? { in findNullnessAnnotation() 107 return item.modifiers.findAnnotation(AnnotationItem::isNullnessAnnotation) in findNullnessAnnotation() 111 return item.modifiers.hasAnnotation(AnnotationItem::isNullable) in isNullable() 115 return item.modifiers.hasAnnotation(AnnotationItem::isNonNull) in isNonNull()
|
D | ExtractAnnotations.kt | 23 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 83 LinkedHashMap<PackageItem, MutableList<Pair<Item, AnnotationItem>>>() in <lambda>() 103 private val classToAnnotationHolder = mutableMapOf<String, AnnotationItem>() in <lambda>() 168 private fun addItem(item: Item, annotation: AnnotationItem) { in <lambda>() 179 val new = mutableListOf<Pair<Item, AnnotationItem>>() in <lambda>() 236 typeDefClass.modifiers.findAnnotation(AnnotationItem::isTypeDefAnnotation) in <lambda>() 276 typeDefAnnotation: AnnotationItem, in <lambda>() 434 annotationItem: AnnotationItem in <lambda>() 544 private fun isInlinedConstant(annotationItem: AnnotationItem): Boolean { in <lambda>() 549 private val AnnotationItem.uAnnotation: UAnnotation? in <lambda>() constant
|
D | AnnotationFilter.kt | 22 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 29 fun matches(annotation: AnnotationItem): Boolean in <lambda>() 123 override fun matches(annotation: AnnotationItem): Boolean { in matches() 247 fun fromAnnotationItem(annotationItem: AnnotationItem): AnnotationFilterEntry { in fromAnnotationItem()
|
D | NullabilityAnnotationsValidator.kt | 20 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 153 private fun isNullFromTypeParam(it: AnnotationItem) = in <lambda>() 156 private fun isAnyNullabilityAnnotation(it: AnnotationItem) = in <lambda>() 161 nullability: AnnotationItem?, in <lambda>()
|
D | ComparisonVisitor.kt | 19 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 449 is AnnotationItem -> 6 in pop() 546 is AnnotationItem -> { in pop() 548 (item2 as AnnotationItem).qualifiedName ?: "" in pop()
|
D | AnnotationsMerger.kt | 51 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 299 annotation: AnnotationItem, in <lambda>() 305 if (!newModifiers.hasAnnotation(AnnotationItem::isNullnessAnnotation)) { in <lambda>() 619 private fun createAnnotation(annotationElement: Element): AnnotationItem? { in <lambda>() 834 private fun mergeAnnotation(item: Item, annotation: AnnotationItem) { in <lambda>()
|
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/ |
D | TurbineParameterItem.kt | 19 import com.android.tools.metalava.model.AnnotationItem 43 val annotation = modifiers.findAnnotation(AnnotationItem::isParameterName) in name() 52 return modifiers.hasAnnotation(AnnotationItem::isDefaultValue) in containingMethod() 56 val annotation = modifiers.findAnnotation(AnnotationItem::isDefaultValue) in defaultValue()
|
D | TurbineModifierItem.kt | 18 import com.android.tools.metalava.model.AnnotationItem 41 annotations: List<AnnotationItem>?, in create() 113 private fun isDeprecated(annotations: List<AnnotationItem>?): Boolean { in isDeprecated()
|
D | TurbineBasedCodebase.kt | 19 import com.android.tools.metalava.model.AnnotationItem 62 ): AnnotationItem { in createAnnotation()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/ |
D | DocAnalyzer.kt | 31 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 132 private fun findThreadAnnotations(annotations: List<AnnotationItem>): List<String> { in <lambda>() 173 annotation: AnnotationItem, in <lambda>() 229 private fun handleKotlinDeprecation(annotation: AnnotationItem, item: Item) { in <lambda>() 244 private fun handleInliningDocs(annotation: AnnotationItem, item: Item) { in <lambda>() 289 private fun handleRequiresPermission(annotation: AnnotationItem, item: Item) { in <lambda>() 378 private fun handleRange(annotation: AnnotationItem, item: Item) { in <lambda>() 399 private fun handleTypeDef(annotation: AnnotationItem, item: Item) { in <lambda>() 461 private fun handleRequiresFeature(annotation: AnnotationItem, item: Item) { in <lambda>() 514 private fun handleRequiresApi(annotation: AnnotationItem, item: Item) { in <lambda>() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/annotationitem/ |
D | CommonAnnotationItemTest.kt | 19 import com.android.tools.metalava.model.AnnotationItem 79 val other = anno.getAttributeValue<AnnotationItem>("annotationValue")!! in annotation with annotation values() 83 val otherAsList = anno.getAttributeValues<AnnotationItem>("annotationValue") in annotation with annotation values() 86 val others = anno.getAttributeValues<AnnotationItem>("annotationArrayValue")!! in annotation with annotation values() 1368 inline fun <reified T : Any> AnnotationItem.assertAttributeValue( in assertAttributeValue() 1379 inline fun <reified T : Any> AnnotationItem.assertAttributeValues( in assertAttributeValues()
|
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/ |
D | AnnotationItemTest.kt | 25 Assert.assertEquals(expected, AnnotationItem.shortenAnnotation(source)) in checkShortenAnnotation() 26 Assert.assertEquals(source, AnnotationItem.unshortenAnnotation(expected)) in checkShortenAnnotation()
|
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiParameterItem.kt | 19 import com.android.tools.metalava.model.AnnotationItem 100 val annotation = modifiers.findAnnotation(AnnotationItem::isParameterName) in name() 125 modifiers.hasAnnotation(AnnotationItem::isDefaultValue) in hasDefaultValue() 226 val annotation = modifiers.findAnnotation(AnnotationItem::isDefaultValue) in computeDefaultValue()
|
D | PsiModifierItem.kt | 20 import com.android.tools.metalava.model.AnnotationItem in <lambda>() 422 val annotations: MutableList<AnnotationItem> = in <lambda>() 469 val annotations: MutableList<AnnotationItem> = in <lambda>() 478 val annotations: MutableList<AnnotationItem> = in <lambda>() 522 private fun AnnotationItem.isDeprecatedForSdk(): Boolean { in <lambda>() method
|