Home
last modified time | relevance | path

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

123

/tools/metalava/src/main/java/com/android/tools/metalava/
DComparisonVisitor.kt24 import com.android.tools.metalava.model.Item in <lambda>()
56 open fun compare(old: Item, new: Item) {} in <lambda>()
57 open fun added(new: Item) {} in <lambda>()
58 open fun removed(old: Item, from: Item?) {} in <lambda>()
76 open fun removed(old: PackageItem, from: Item?) {} in <lambda>()
77 open fun removed(old: ClassItem, from: Item?) {} in <lambda>()
90 …fun compare(visitor: ComparisonVisitor, old: Codebase, new: Codebase, filter: Predicate<Item>? = n… in compare()
104 …or: ComparisonVisitor, old: MergedCodebase, new: MergedCodebase, filter: Predicate<Item>? = null) { in compare()
122 newParent: Item?, in compare()
123 oldParent: Item?, in compare()
[all …]
DApiType.kt21 import com.android.tools.metalava.model.Item in <lambda>()
33 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
40 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
51 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
58 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
69 override fun getEmitFilter(): Predicate<Item> { in <lambda>()
73 override fun getReferenceFilter(): Predicate<Item> { in <lambda>()
81 abstract fun getEmitFilter(): Predicate<Item> in <lambda>()
83 abstract fun getReferenceFilter(): Predicate<Item> in <lambda>()
DDocAnalyzer.kt14 import com.android.tools.metalava.model.Item in <lambda>()
108 override fun visitItem(item: Item) { in <lambda>()
182 item: Item, in <lambda>()
234 private fun handleKotlinDeprecation(annotation: AnnotationItem, item: Item) { in <lambda>()
246 item: Item in <lambda>()
278 item: Item in <lambda>()
360 item: Item in <lambda>()
385 item: Item in <lambda>()
444 item: Item in <lambda>()
477 item: Item in <lambda>()
[all …]
DCompatibilityCheck.kt27 import com.android.tools.metalava.model.Item
28 import com.android.tools.metalava.model.Item.Companion.describe
47 val filterReference: Predicate<Item>,
84 private fun containingMethod(item: Item): MethodItem? { in containingMethod()
94 private fun compareNullability(old: Item, new: Item) { in compareNullability()
156 override fun compare(old: Item, new: Item) { in compare()
692 private fun handleAdded(issue: Issue, item: Item) { in handleAdded()
730 private fun handleRemoved(issue: Issue, item: Item) { in handleRemoved()
742 item: Item in findBaseItem()
743 ): Item? { in findBaseItem()
[all …]
DAnnotationsDiffer.kt20 import com.android.tools.metalava.model.Item in <lambda>()
61 private val relevant = HashSet<Item>(1000) in <lambda>()
63 private val predicate = object : Predicate<Item> { in <lambda>()
64 override fun test(item: Item): Boolean { in <lambda>()
79 override fun compare(old: Item, new: Item) { in <lambda>()
105 Predicate<Item> { true } in <lambda>()
DNullnessMigration.kt21 import com.android.tools.metalava.model.Item
40 override fun compare(old: Item, new: Item) { in compare()
99 fun hasNullnessInformation(item: Item): Boolean { in hasNullnessInformation()
103 fun findNullnessAnnotation(item: Item): AnnotationItem? { in findNullnessAnnotation()
107 fun isNullable(item: Item): Boolean { in isNullable()
111 private fun isNonNull(item: Item): Boolean { in isNonNull()
DApiAnalyzer.kt24 import com.android.tools.metalava.model.Item in <lambda>()
64 fun addConstructors(filter: Predicate<Item>) { in <lambda>()
130 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>()
251 fun generateInheritedStubs(filterEmit: Predicate<Item>, filterReference: Predicate<Item>) { in <lambda>()
264 …rateInheritedStubs(cls: ClassItem, filterEmit: Predicate<Item>, filterReference: Predicate<Item>) { in <lambda>()
282 filterReference: Predicate<Item> in <lambda>()
324 filterEmit: Predicate<Item>, in <lambda>()
325 filterReference: Predicate<Item> in <lambda>()
658 private fun ensureParentVisible(item: Item) { in <lambda>()
779 override fun visitItem(item: Item) { in <lambda>()
[all …]
DAndroidApiChecks.kt24 import com.android.tools.metalava.model.Item
39 override fun skip(item: Item): Boolean { in check()
48 override fun visitItem(item: Item) { in check()
78 private var cachedDocumentationItem: Item? = null
82 private fun getDocumentation(item: Item, tag: String?): String { in getDocumentation()
93 private fun findDocumentation(item: Item, tag: String?): String { in findDocumentation()
168 private fun checkTodos(item: Item) { in checkTodos()
251 item: Item, in checkVariable()
DAnnotationStatistics.kt23 import com.android.tools.metalava.model.Item in <lambda>()
74 override fun skip(item: Item): Boolean { in <lambda>()
203 val classCount = mutableMapOf<Item, Int>() in <lambda>()
232 items: List<Item>, in <lambda>()
233 getLabel: (Item) -> String, in <lambda>()
234 getCount: (Item) -> Int, in <lambda>()
271 private fun printClassTable(classes: List<Item>, classCount: MutableMap<Item, Int>) { in <lambda>()
DApiLint.kt147 import com.android.tools.metalava.model.Item in <lambda>()
182 private fun report(id: Issue, item: Item, message: String, element: PsiElement? = null) { in <lambda>()
206 override fun added(new: Item) { in <lambda>()
216 override fun skip(item: Item): Boolean { in <lambda>()
257 private fun checkType(type: TypeItem, item: Item) { in <lambda>()
279 filterReference: Predicate<Item> in <lambda>()
335 filterReference: Predicate<Item> in <lambda>()
1373 val expectedGetters = mutableListOf<Pair<Item, Set<String>>>() in <lambda>()
1724 item: Item in <lambda>()
1771 fun Item.containingClass(): ClassItem? { in <lambda>() method
[all …]
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>()
DAnnotationsMerger.kt58 import com.android.tools.metalava.model.Item
250 override fun compare(old: Item, new: Item) { in mergeQualifierAnnotationsFromCodebase()
260 override fun removed(old: Item, from: Item?) { in mergeQualifierAnnotationsFromCodebase()
267 new: Item in mergeQualifierAnnotationsFromCodebase()
296 new: Item in mergeQualifierAnnotationsFromCodebase()
321 override fun compare(old: Item, new: Item) { in mergeInclusionAnnotationsFromCodebase()
524 private fun mergeAnnotations(xmlElement: Element, item: Item) { in mergeAnnotations()
538 item: Item, in hasNullnessConflicts()
DFilterPredicate.kt19 import com.android.tools.metalava.model.Item
23 class FilterPredicate(private val wrapped: Predicate<Item>) : Predicate<Item> {
25 override fun test(method: Item): Boolean { in test()
DElidingPredicate.kt19 import com.android.tools.metalava.model.Item in <lambda>()
28 class ElidingPredicate(private val wrapped: Predicate<Item>) : Predicate<Item> { in <lambda>()
30 override fun test(method: Item): Boolean { in <lambda>()
DExtractAnnotations.kt27 import com.android.tools.metalava.model.Item in <lambda>()
75 …private val packageToAnnotationPairs = LinkedHashMap<PackageItem, MutableList<Pair<Item, Annotatio… in <lambda>()
129 var prev: Item? = null in <lambda>()
160 private fun addItem(item: Item, annotation: AnnotationHolder) { in <lambda>()
169 mutableListOf<Pair<Item, AnnotationHolder>>() in <lambda>()
189 private fun checkItem(item: Item) { in <lambda>()
412 private fun Item.getExternalAnnotationSignature(): String? { in <lambda>() method
474 item: Item, in <lambda>()
DApiPredicate.kt20 import com.android.tools.metalava.model.Item
68 ) : Predicate<Item> {
70 override fun test(member: Item): Boolean { in test()
135 private fun includeOnlyForStubPurposes(item: Item): Boolean { in includeOnlyForStubPurposes()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt21 import com.android.tools.metalava.model.Item
91 override fun getImportStatements(predicate: Predicate<Item>): Collection<Item> { in getImportStatements()
92 val imports = mutableListOf<Item>() in getImportStatements()
147 val map: Multimap<String, Item> = ArrayListMultimap.create() in getImportStatements()
165 val result = mutableListOf<Item>() in getImportStatements()
172 override fun visitItem(item: Item) { in getImportStatements()
212 private fun classes(predicate: Predicate<Item>): List<ClassItem> { in classes()
DPsiTypeItem.kt24 import com.android.tools.metalava.model.Item
77 context: Item?, in toTypeString()
78 filter: Predicate<Item>? in toTypeString()
178 override fun toErasedTypeString(context: Item?): String { in toErasedTypeString()
192 override fun internalName(context: Item?): String { in internalName()
323 override fun convertType(replacementMap: Map<String, String>?, owner: Item?): TypeItem { in convertType()
402 context: Item?, in toTypeString()
403 filter: Predicate<Item>? in toTypeString()
443 owner: Item?, in getCanonicalText()
448 filter: Predicate<Item>? in getCanonicalText()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt103 fun compareWith(visitor: ComparisonVisitor, other: Codebase, filter: Predicate<Item>? = null) { in <lambda>()
112 context: Item? = null, in <lambda>()
175 fun findClassByOwner(owner: String, apiFilter: Predicate<Item>): ClassItem? { in <lambda>()
185 fun findClass(node: ClassNode, apiFilter: Predicate<Item>): ClassItem? { in <lambda>()
189 fun findMethod(node: MethodInsnNode, apiFilter: Predicate<Item>): MethodItem? { in <lambda>()
213 … fun findMethod(classNode: ClassNode, node: MethodNode, apiFilter: Predicate<Item>): MethodItem? { in <lambda>()
237 fun findField(classNode: ClassNode, node: FieldNode, apiFilter: Predicate<Item>): FieldItem? { in <lambda>()
247 fun findField(node: FieldInsnNode, apiFilter: Predicate<Item>): FieldItem? { in <lambda>()
DClassItem.kt37 interface ClassItem : Item { in <lambda>()
61 override fun parent(): Item? = containingClass() ?: containingPackage() in <lambda>()
424 fun findPredicateMethodWithSuper(template: MethodItem, filter: Predicate<Item>?): MethodItem? { in <lambda>()
542 fun filteredSuperclass(predicate: Predicate<Item>): ClassItem? { in <lambda>()
551 fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in <lambda>()
581 predicate: Predicate<Item>, in <lambda>()
600 fun filteredConstructors(predicate: Predicate<Item>): Sequence<ConstructorItem> { in <lambda>()
608 fun filteredFields(predicate: Predicate<Item>, showUnannotated: Boolean): List<FieldItem> { in <lambda>()
659 fun filteredInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>()
671 fun allInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>()
[all …]
DTypeItem.kt56 context: Item? = null, in <lambda>()
57 filter: Predicate<Item>? = null in <lambda>()
61 fun toErasedTypeString(context: Item? = null): String in <lambda>()
68 fun internalName(context: Item? = null): String { in <lambda>()
87 fun toCanonicalType(context: Item? = null): String { in <lambda>()
112 fun convertType(replacementMap: Map<String, String>?, owner: Item? = null): TypeItem in <lambda>()
DItem.kt37 interface Item { interface
54 fun parent(): Item? in parent()
193 var curr: Item? = this in compilationUnit()
262 fun describe(item: Item, capitalize: Boolean = false): String { in describe()
376 abstract class DefaultItem(override val sortingRank: Int = nextRank++) : Item {
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt23 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()

123