Home
last modified time | relevance | path

Searched refs:AnnotationItem (Results 1 – 25 of 33) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypePrinter.kt21 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
84 …fun getAnnotatedCanonicalText(type: PsiType, elementAnnotations: List<AnnotationItem>? = null): St… in <lambda>()
91 elementAnnotations: List<AnnotationItem>? in <lambda>()
100 elementAnnotations: List<AnnotationItem>? in <lambda>()
117 elementAnnotations: List<AnnotationItem>? in <lambda>()
155 elementAnnotations: List<AnnotationItem>? in <lambda>()
198 …private fun getCanonicalText(type: PsiArrayType, elementAnnotations: List<AnnotationItem>?): Strin… in <lambda>()
207 elementAnnotations: List<AnnotationItem>? in <lambda>()
232 …private fun getCanonicalText(type: PsiPrimitiveType, elementAnnotations: List<AnnotationItem>?): S… in <lambda>()
239 elementAnnotations: List<AnnotationItem>? in <lambda>()
[all …]
DPsiModifierItem.kt22 import com.android.tools.metalava.model.AnnotationItem
49 annotations: MutableList<AnnotationItem>? = null
180 val annotations: MutableList<AnnotationItem> = in create()
214 val annotations: MutableList<AnnotationItem> = in create()
223 val annotations: MutableList<AnnotationItem> = uAnnotations in create()
274 val copy: MutableList<AnnotationItem> = ArrayList(originalAnnotations.size) in create()
DUAnnotationItem.kt24 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
52 private val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>()
106 targets = AnnotationItem.computeTargets(this) { className -> in <lambda>()
149 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in <lambda>()
DPsiAnnotationItem.kt25 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
53 private val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>()
107 targets = AnnotationItem.computeTargets(this) { className -> in <lambda>()
164 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in <lambda>()
DPsiTypeItem.kt22 import com.android.tools.metalava.model.AnnotationItem
460 … val implicitNullness = if (owner != null) AnnotationItem.getImplicitNullness(owner) else null in getCanonicalText()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt12 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
150 private fun findThreadAnnotations(annotations: List<AnnotationItem>): List<String> { in <lambda>()
183 annotation: AnnotationItem, in <lambda>()
234 private fun handleKotlinDeprecation(annotation: AnnotationItem, item: Item) { in <lambda>()
245 annotation: AnnotationItem, in <lambda>()
277 annotation: AnnotationItem, in <lambda>()
359 annotation: AnnotationItem, in <lambda>()
384 annotation: AnnotationItem, in <lambda>()
443 annotation: AnnotationItem, in <lambda>()
476 annotation: AnnotationItem, in <lambda>()
[all …]
DAnnotationsMerger.kt52 import com.android.tools.metalava.model.AnnotationItem
260 annotation: AnnotationItem, in mergeQualifierAnnotationsFromCodebase()
522 val qualifiedName = AnnotationItem.mapName(codebase, originalName) ?: originalName in mergeAnnotations()
562 private fun createAnnotation(annotationElement: Element): AnnotationItem? { in createAnnotation()
796 override fun qualifiedName(): String? = AnnotationItem.mapName(codebase, qualifiedName) in originalName()
801 … val qualifiedName = AnnotationItem.mapName(codebase, qualifiedName, null, target) ?: return "" in originalName()
DAnnotationFilter.kt5 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
10 fun matches(annotation: AnnotationItem): Boolean in <lambda>()
47 override fun matches(annotation: AnnotationItem): Boolean { in matches()
138 fun fromAnnotationItem(annotationItem: AnnotationItem): AnnotationFilterEntry { in fromAnnotationItem()
DNullabilityAnnotationsValidator.kt20 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
137 private fun isNullFromTypeParam(it: AnnotationItem) = in <lambda>()
140 private fun isAnyNullabilityAnnotation(it: AnnotationItem) = in <lambda>()
145 nullability: AnnotationItem?, in <lambda>()
DComparisonVisitor.kt19 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
307 is AnnotationItem -> 6 in compare()
374 is AnnotationItem -> { in compare()
375 … (item1.qualifiedName() ?: "").compareTo((item2 as AnnotationItem).qualifiedName() ?: "") in compare()
DExtractAnnotations.kt23 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
82 val annotationItem: AnnotationItem, in <lambda>()
608 private fun isInlinedConstant(annotationItem: AnnotationItem): Boolean { in <lambda>()
DCompatibilityCheck.kt25 import com.android.tools.metalava.model.AnnotationItem
110 val implicitNullness = AnnotationItem.getImplicitNullness(new) in compare()
117 val name = AnnotationItem.simpleName(oldNullnessAnnotation) in compare()
DNullnessMigration.kt19 import com.android.tools.metalava.model.AnnotationItem
103 fun findNullnessAnnotation(item: Item): AnnotationItem? { in findNullnessAnnotation()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt25 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
773 val elementAnnotations: List<AnnotationItem>?, in <lambda>()
821 fun handleType(type: PsiType, annotations: List<AnnotationItem> = emptyList()) { in <lambda>()
837 var mergeAnnotations: MutableList<AnnotationItem>? = null in <lambda>()
839 val list = mutableListOf<AnnotationItem>() in <lambda>()
846 val list = mutableListOf<AnnotationItem>() in <lambda>()
891 val annotations = mutableListOf<AnnotationItem>() in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt59 interface AnnotationItem { interface
137 fun findTypedefAnnotation(): AnnotationItem? { in findTypedefAnnotation()
160 fun simpleName(item: AnnotationItem): String { in simpleName()
399 annotation: AnnotationItem, in nullableAnnotationName()
657 abstract class DefaultAnnotationItem(override val codebase: Codebase) : AnnotationItem {
662 targets = AnnotationItem.computeTargets(this) { className -> in targets()
DDefaultModifierList.kt24 protected open var annotations: MutableList<AnnotationItem>? = null
40 override fun annotations(): List<AnnotationItem> { in annotations()
218 override fun addAnnotation(annotation: AnnotationItem) { in addAnnotation()
225 override fun removeAnnotation(annotation: AnnotationItem) { in removeAnnotation()
229 override fun clearAnnotations(annotation: AnnotationItem) { in clearAnnotations()
DModifierList.kt32 fun annotations(): List<AnnotationItem> in <lambda>()
176 fun findAnnotation(qualifiedName: String): AnnotationItem? { in <lambda>()
177 val mappedName = AnnotationItem.mapName(codebase, qualifiedName) in <lambda>()
574 writer.write(AnnotationItem.shortenAnnotation(source)) in <lambda>()
DMutableModifierList.kt36 fun addAnnotation(annotation: AnnotationItem)
37 fun removeAnnotation(annotation: AnnotationItem)
38 fun clearAnnotations(annotation: AnnotationItem)
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextModifiers.kt21 import com.android.tools.metalava.model.AnnotationItem in <lambda>()
33 annotations: MutableList<AnnotationItem>? = null in <lambda>()
53 val annotations = ArrayList<AnnotationItem>(annotationSources.size) in <lambda>()
57 val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>()
DTextBackedAnnotationItem.kt20 import com.android.tools.metalava.model.AnnotationItem
43 …qualifiedName = if (mapName) AnnotationItem.mapName(codebase, annotationClass) else annotationClass
DTextTypeItem.kt21 import com.android.tools.metalava.model.AnnotationItem
63 var nullable: Boolean? = AnnotationItem.getImplicitNullness(context) in toTypeString()
DTextCodebase.kt28 import com.android.tools.metalava.model.AnnotationItem
283 … override fun createAnnotation(source: String, context: Item?, mapName: Boolean): AnnotationItem { in createAnnotation()
DApiFile.java21 import com.android.tools.metalava.model.AnnotationItem;
401 annotation = AnnotationItem.Companion.unshortenAnnotation(annotation); in getAnnotations()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DAnnotationItemTest.kt25 Assert.assertEquals(expected, AnnotationItem.shortenAnnotation(source)) in checkShortenAnnotation()
26 Assert.assertEquals(source, AnnotationItem.unshortenAnnotation(expected)) in checkShortenAnnotation()
/tools/dexter/testdata/expected/
Dtry_catch.map16 AnnotationItem : 549, a [1]

12