Home
last modified time | relevance | path

Searched refs:Item (Results 1 – 25 of 62) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/
DComparisonVisitor.kt24 import com.android.tools.metalava.model.Item in <lambda>()
55 open fun compare(old: Item, new: Item) {} in <lambda>()
56 open fun added(new: Item) {} in <lambda>()
57 open fun removed(old: Item, from: Item?) {} in <lambda>()
75 open fun removed(old: PackageItem, from: Item?) {} in <lambda>()
76 open fun removed(old: ClassItem, from: Item?) {} in <lambda>()
89 …fun compare(visitor: ComparisonVisitor, old: Codebase, new: Codebase, filter: Predicate<Item>? = n… in compare()
107 newParent: Item?, in compare()
108 oldParent: Item? in compare()
166 new: Item, in visitAdded()
[all …]
DApiType.kt24 import com.android.tools.metalava.model.Item in <lambda>()
36 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
42 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
53 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
59 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
70 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
72 val memberIsNotCloned: Predicate<Item> = Predicate { !it.isCloned() } in <lambda>()
76 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
87 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
91 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
[all …]
DNullnessMigration.kt21 import com.android.tools.metalava.model.Item
40 override fun compare(old: Item, new: Item) { in compare()
97 private fun markRecent(new: Item) { in markRecent()
110 fun hasNullnessInformation(item: Item): Boolean { in hasNullnessInformation()
114 fun findNullnessAnnotation(item: Item): AnnotationItem? { in findNullnessAnnotation()
118 fun isNullable(item: Item): Boolean { in isNullable()
122 private fun isNonNull(item: Item): Boolean { in isNonNull()
DAnnotationsDiffer.kt23 import com.android.tools.metalava.model.Item in <lambda>()
64 private val relevant = HashSet<Item>(1000) in <lambda>()
66 private val predicate = object : Predicate<Item> { in <lambda>()
67 override fun test(item: Item): Boolean { in <lambda>()
82 override fun compare(old: Item, new: Item) { in <lambda>()
108 Predicate<Item> { true } in <lambda>()
DDocAnalyzer.kt16 import com.android.tools.metalava.model.Item in <lambda>()
106 override fun visitItem(item: Item) { in <lambda>()
180 item: Item, in <lambda>()
229 private fun handleKotlinDeprecation(annotation: AnnotationItem, item: Item) { in <lambda>()
241 item: Item in <lambda>()
273 item: Item in <lambda>()
355 item: Item in <lambda>()
380 item: Item in <lambda>()
439 item: Item in <lambda>()
472 item: Item in <lambda>()
[all …]
DApiAnalyzer.kt26 import com.android.tools.metalava.model.Item in <lambda>()
66 fun addConstructors(filter: Predicate<Item>) { in <lambda>()
135 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>, isLeaf: Boolean) { in <lambda>()
241 …private fun referencesExcludedType(constructor: ConstructorItem, filter: Predicate<Item>): Boolean… in <lambda>()
265 filter: Predicate<Item> in <lambda>()
303 fun generateInheritedStubs(filterEmit: Predicate<Item>, filterReference: Predicate<Item>) { in <lambda>()
316 …rateInheritedStubs(cls: ClassItem, filterEmit: Predicate<Item>, filterReference: Predicate<Item>) { in <lambda>()
334 filterReference: Predicate<Item> in <lambda>()
376 filterEmit: Predicate<Item>, in <lambda>()
377 filterReference: Predicate<Item> in <lambda>()
[all …]
DAndroidApiChecks.kt25 import com.android.tools.metalava.model.Item
40 override fun skip(item: Item): Boolean { in check()
49 override fun visitItem(item: Item) { in check()
79 private var cachedDocumentationItem: Item? = null
83 private fun getDocumentation(item: Item, tag: String?): String { in getDocumentation()
94 private fun findDocumentation(item: Item, tag: String?): String { in findDocumentation()
169 private fun checkTodos(item: Item) { in checkTodos()
252 item: Item, in checkVariable()
DCompatibilityCheck.kt29 import com.android.tools.metalava.model.Item
30 import com.android.tools.metalava.model.Item.Companion.describe
48 val filterReference: Predicate<Item>,
84 override fun compare(old: Item, new: Item) { in compare()
636 private fun handleAdded(error: Error, item: Item) { in handleAdded()
669 private fun handleRemoved(error: Error, item: Item) { in handleRemoved()
698 item: Item in findBaseItem()
699 ): Item? { in findBaseItem()
787 override fun removed(old: PackageItem, from: Item?) { in removed()
791 override fun removed(old: ClassItem, from: Item?) { in removed()
[all …]
DAnnotationStatistics.kt24 import com.android.tools.metalava.model.Item in <lambda>()
75 override fun skip(item: Item): Boolean { in <lambda>()
204 val classCount = mutableMapOf<Item, Int>() in <lambda>()
233 items: List<Item>, in <lambda>()
234 getLabel: (Item) -> String, in <lambda>()
235 getCount: (Item) -> Int, in <lambda>()
272 private fun printClassTable(classes: List<Item>, classCount: MutableMap<Item, Int>) { in <lambda>()
DConvertJarsToSignatureFiles.kt22 import com.android.tools.metalava.model.Item in <lambda>()
76 override fun visitItem(item: Item) { in <lambda>()
81 private fun unmarkRecent(new: Item) { in <lambda>()
125 override fun compare(old: Item, new: Item) { in <lambda>()
236 val MATCH_ALL: Predicate<Item> = Predicate { true } in <lambda>()
DExtractAnnotations.kt28 import com.android.tools.metalava.model.Item in <lambda>()
76 …private val packageToAnnotationPairs = LinkedHashMap<PackageItem, MutableList<Pair<Item, Annotatio… in <lambda>()
130 var prev: Item? = null in <lambda>()
161 private fun addItem(item: Item, annotation: AnnotationHolder) { in <lambda>()
170 mutableListOf<Pair<Item, AnnotationHolder>>() in <lambda>()
190 private fun checkItem(item: Item) { in <lambda>()
413 private fun Item.getExternalAnnotationSignature(): String? { in <lambda>() method
475 item: Item, in <lambda>()
DDexApiWriter.kt21 import com.android.tools.metalava.model.Item
29 filterEmit: Predicate<Item>,
30 filterReference: Predicate<Item>,
94 private fun writeLocation(item: Item) { in writeLocation()
DSignatureWriter.kt23 import com.android.tools.metalava.model.Item in <lambda>()
37 filterEmit: Predicate<Item>, in <lambda>()
38 filterReference: Predicate<Item>, in <lambda>()
50 override fun skip(item: Item): Boolean { in <lambda>()
177 private fun writeModifiers(item: Item) { in <lambda>()
309 item: Item, in <lambda>()
DAnnotationsMerger.kt59 import com.android.tools.metalava.model.Item
250 override fun compare(old: Item, new: Item) { in mergeQualifierAnnotationsFromCodebase()
263 new: Item in mergeQualifierAnnotationsFromCodebase()
292 new: Item in mergeQualifierAnnotationsFromCodebase()
315 override fun compare(old: Item, new: Item) { in mergeInclusionAnnotationsFromCodebase()
518 private fun mergeAnnotations(xmlElement: Element, item: Item) { in mergeAnnotations()
532 item: Item, in hasNullnessConflicts()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt21 import com.android.tools.metalava.model.Item
73 override fun getImportStatements(predicate: Predicate<Item>): Collection<Item> { in getImportStatements()
74 val imports = mutableListOf<Item>() in getImportStatements()
125 val map: Multimap<String, Item> = ArrayListMultimap.create() in getImportStatements()
143 val result = mutableListOf<Item>() in getImportStatements()
150 override fun visitItem(item: Item) { in getImportStatements()
186 private fun classes(predicate: Predicate<Item>): List<ClassItem> { in classes()
DPsiTypeItem.kt23 import com.android.tools.metalava.model.Item
76 context: Item?, in toTypeString()
77 filter: Predicate<Item>? in toTypeString()
177 override fun toErasedTypeString(context: Item?): String { in toErasedTypeString()
322 override fun convertType(replacementMap: Map<String, String>?, owner: Item?): TypeItem { in convertType()
403 context: Item?, in toTypeString()
404 filter: Predicate<Item>? in toTypeString()
436 owner: Item?, in getCanonicalText()
441 filter: Predicate<Item>? in getCanonicalText()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt102 fun compareWith(visitor: ComparisonVisitor, other: Codebase, filter: Predicate<Item>? = null) { in <lambda>()
111 context: Item? = null, in <lambda>()
172 fun findClassByOwner(owner: String, apiFilter: Predicate<Item>): ClassItem? { in <lambda>()
182 fun findClass(node: ClassNode, apiFilter: Predicate<Item>): ClassItem? { in <lambda>()
186 fun findMethod(node: MethodInsnNode, apiFilter: Predicate<Item>): MethodItem? { in <lambda>()
210 … fun findMethod(classNode: ClassNode, node: MethodNode, apiFilter: Predicate<Item>): MethodItem? { in <lambda>()
234 fun findField(classNode: ClassNode, node: FieldNode, apiFilter: Predicate<Item>): FieldItem? { in <lambda>()
244 fun findField(node: FieldInsnNode, apiFilter: Predicate<Item>): FieldItem? { in <lambda>()
DTypeItem.kt56 context: Item? = null, in <lambda>()
57 filter: Predicate<Item>? = null in <lambda>()
61 fun toErasedTypeString(context: Item? = null): String in <lambda>()
83 fun toCanonicalType(context: Item? = null): String { in <lambda>()
108 fun convertType(replacementMap: Map<String, String>?, owner: Item? = null): TypeItem in <lambda>()
138 fun referencesExcludedType(filter: Predicate<Item>): Boolean { in <lambda>()
DClassItem.kt32 interface ClassItem : Item { in <lambda>()
53 override fun parent(): Item? = containingClass() ?: containingPackage() in <lambda>()
524 fun filteredSuperclass(predicate: Predicate<Item>): ClassItem? { in <lambda>()
533 fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in <lambda>()
562 fun filteredMethods(predicate: Predicate<Item>): Collection<MethodItem> { in <lambda>()
576 fun filteredConstructors(predicate: Predicate<Item>): Sequence<ConstructorItem> { in <lambda>()
584 fun filteredFields(predicate: Predicate<Item>, showUnannotated: Boolean): List<FieldItem> { in <lambda>()
635 fun filteredInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>()
647 fun allInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>()
660 predicate: Predicate<Item>, in <lambda>()
DItem.kt34 interface Item { interface
58 fun parent(): Item? in parent()
168 var curr: Item? = this in compilationUnit()
221 fun describe(item: Item, capitalize: Boolean = false): String { in psi()
335 abstract class DefaultItem(override val sortingRank: Int = nextRank++) : Item {
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt24 import com.android.tools.metalava.model.Item
42 override fun toErasedTypeString(context: Item?): String { in toString()
57 context: Item?, in toTypeString()
58 filter: Predicate<Item>? in toTypeString()
157 private fun findTypeVariableBounds(context: Item?, name: String): List<ClassItem> { in findTypeVariableBounds()
202 override fun convertType(replacementMap: Map<String, String>?, owner: Item?): TypeItem { in typeArgumentClasses()
238 context: Item? = null in markRecent()
257 private fun substituteTypeParameters(s: String, context: Item?): String { in markRecent()
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/
DTypeVisitor.kt19 import com.android.tools.metalava.model.Item
23 open fun skip(item: Item): Boolean = false in skip()
24 open fun visitType(type: TypeItem, owner: Item) {} in skip()
25 open fun afterVisitType(type: TypeItem, owner: Item) {} in afterVisitType()
DItemVisitor.kt24 import com.android.tools.metalava.model.Item
49 open fun skip(item: Item): Boolean = false in skip()
52 open fun visitItem(item: Item) {} in skip()
69 open fun afterVisitItem(item: Item) {} in afterVisitItem()
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DFilterPredicate.kt19 import com.android.tools.metalava.model.Item
25 class FilterPredicate(private val wrapped: Predicate<Item>) : Predicate<Item> {
27 override fun test(method: Item): Boolean { in test()
DElidingPredicate.kt3 import com.android.tools.metalava.model.Item in <lambda>()
14 class ElidingPredicate(private val wrapped: Predicate<Item>) : Predicate<Item> { in <lambda>()
16 override fun test(method: Item): Boolean { in <lambda>()

123