/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ComparisonVisitor.kt | 24 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() 180 new: Item, in visitAdded() [all …]
|
D | DocAnalyzer.kt | 16 import com.android.tools.metalava.model.Item in <lambda>() 110 override fun visitItem(item: Item) { in <lambda>() 184 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 …]
|
D | ApiAnalyzer.kt | 26 import com.android.tools.metalava.model.Item in <lambda>() 66 fun addConstructors(filter: Predicate<Item>) { in <lambda>() 132 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>() 253 fun generateInheritedStubs(filterEmit: Predicate<Item>, filterReference: Predicate<Item>) { in <lambda>() 266 …rateInheritedStubs(cls: ClassItem, filterEmit: Predicate<Item>, filterReference: Predicate<Item>) { in <lambda>() 284 filterReference: Predicate<Item> in <lambda>() 326 filterEmit: Predicate<Item>, in <lambda>() 327 filterReference: Predicate<Item> in <lambda>() 660 private fun ensureParentVisible(item: Item) { in <lambda>() 781 override fun visitItem(item: Item) { in <lambda>() [all …]
|
D | ApiLint.kt | 146 import com.android.tools.metalava.model.Item in <lambda>() 181 private fun report(id: Issue, item: Item, message: String, element: PsiElement? = null) { in <lambda>() 203 override fun added(new: Item) { in <lambda>() 243 override fun skip(item: Item): Boolean { in <lambda>() 283 private fun checkType(type: TypeItem, item: Item) { in <lambda>() 305 filterReference: Predicate<Item> in <lambda>() 360 filterReference: Predicate<Item> in <lambda>() 1381 val expectedGetters = mutableListOf<Pair<Item, String>>() in <lambda>() 1706 item: Item in <lambda>() 1753 fun Item.containingClass(): ClassItem? { in <lambda>() method [all …]
|
D | CompatibilityCheck.kt | 29 import com.android.tools.metalava.model.Item 30 import com.android.tools.metalava.model.Item.Companion.describe 48 val filterReference: Predicate<Item>, 85 override fun compare(old: Item, new: Item) { in compare() 652 private fun handleAdded(issue: Issue, item: Item) { in handleAdded() 685 private fun handleRemoved(issue: Issue, item: Item) { in handleRemoved() 714 item: Item in findBaseItem() 715 ): Item? { in findBaseItem() 810 override fun removed(old: PackageItem, from: Item?) { in removed() 814 override fun removed(old: ClassItem, from: Item?) { in removed() [all …]
|
D | ApiType.kt | 24 import com.android.tools.metalava.model.Item in <lambda>() 36 override fun getEmitFilter(): Predicate<Item> { in <lambda>() 43 override fun getReferenceFilter(): Predicate<Item> { in <lambda>() 54 override fun getEmitFilter(): Predicate<Item> { in <lambda>() 61 override fun getReferenceFilter(): Predicate<Item> { in <lambda>() 72 override fun getEmitFilter(): Predicate<Item> { in <lambda>() 76 override fun getReferenceFilter(): Predicate<Item> { in <lambda>() 84 abstract fun getEmitFilter(): Predicate<Item> in <lambda>() 86 abstract fun getReferenceFilter(): Predicate<Item> in <lambda>()
|
D | AndroidApiChecks.kt | 25 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()
|
D | NullnessMigration.kt | 21 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()
|
D | AnnotationsDiffer.kt | 23 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>()
|
D | AnnotationStatistics.kt | 24 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>()
|
D | AnnotationsMerger.kt | 58 import com.android.tools.metalava.model.Item 249 override fun compare(old: Item, new: Item) { in mergeQualifierAnnotationsFromCodebase() 262 new: Item in mergeQualifierAnnotationsFromCodebase() 291 new: Item in mergeQualifierAnnotationsFromCodebase() 316 override fun compare(old: Item, new: Item) { in mergeInclusionAnnotationsFromCodebase() 519 private fun mergeAnnotations(xmlElement: Element, item: Item) { in mergeAnnotations() 533 item: Item, in hasNullnessConflicts()
|
D | ExtractAnnotations.kt | 28 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>()
|
D | ConvertJarsToSignatureFiles.kt | 22 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>()
|
D | SignatureWriter.kt | 23 import com.android.tools.metalava.model.Item in <lambda>() 37 filterEmit: Predicate<Item>, in <lambda>() 38 filterReference: Predicate<Item>, in <lambda>() 173 private fun writeModifiers(item: Item) { in <lambda>() 305 item: Item, in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | ClassItem.kt | 37 interface ClassItem : Item { in <lambda>() 61 override fun parent(): Item? = containingClass() ?: containingPackage() in <lambda>() 527 fun filteredSuperclass(predicate: Predicate<Item>): ClassItem? { in <lambda>() 536 fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in <lambda>() 565 fun filteredMethods(predicate: Predicate<Item>): Collection<MethodItem> { in <lambda>() 579 fun filteredConstructors(predicate: Predicate<Item>): Sequence<ConstructorItem> { in <lambda>() 587 fun filteredFields(predicate: Predicate<Item>, showUnannotated: Boolean): List<FieldItem> { in <lambda>() 638 fun filteredInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>() 650 fun allInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>() 663 predicate: Predicate<Item>, in <lambda>()
|
D | Codebase.kt | 103 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>()
|
D | TypeItem.kt | 56 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>()
|
D | Item.kt | 37 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/psi/ |
D | PsiCompilationUnit.kt | 21 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()
|
D | PsiTypeItem.kt | 24 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() 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()
|
D | CodePrinter.kt | 23 import com.android.tools.metalava.model.Item 66 private val filterReference: Predicate<Item>? = null 77 fun toSourceExpression(value: PsiAnnotationMemberValue, owner: Item): String { in toSourceExpression() 83 … appendSourceExpression(value: PsiAnnotationMemberValue, sb: StringBuilder, owner: Item): Boolean { in appendSourceExpression() 488 private fun appendSourceLiteral(v: Any?, sb: StringBuilder, owner: Item): Boolean { in appendSourceLiteral()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeItem.kt | 23 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/ |
D | README.md | 330 The basic API element class is "Item". (In doclava1 this was called a 331 "DocInfo".) There are several sub interfaces of Item: PackageItem, ClassItem, 374 private val filter: (Item) -> Boolean) : ApiVisitor( 404 open fun compare(old: Item, new: Item) {} 405 open fun added(item: Item) {} 406 open fun removed(item: Item) {} 431 overrides the `compare(old: Item, new: Item)` method, and checks whether the old 437 open fun removed(item: Item) { 438 reporter.report(error, item, "Removing ${Item.describe(item)} is not allowed")
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | KotlinStubWriter.kt | 21 import com.android.tools.metalava.model.Item in <lambda>() 36 private val filterEmit: Predicate<Item>, in <lambda>() 37 private val filterReference: Predicate<Item>, in <lambda>() 107 item: Item, in <lambda>() 191 item: Item, in <lambda>()
|
D | JavaStubWriter.kt | 24 import com.android.tools.metalava.model.Item in <lambda>() 38 private val filterEmit: Predicate<Item>, in <lambda>() 39 private val filterReference: Predicate<Item>, in <lambda>() 143 item: Item, in <lambda>() 152 item: Item, in <lambda>()
|