/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiAnnotationItem.kt | 49 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiAnnotationItem 52 ) : DefaultAnnotationItem(codebase) { in <lambda>() 53 private val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>() 63 appendAnnotation(codebase, sb, psiAnnotation, originalName, target, showDefaultAttrs) in <lambda>() 68 return codebase.findOrCreateClass(originalName ?: return null) in <lambda>() 93 codebase, in <lambda>() 108 codebase.findOrCreateClass(className) in <lambda>() 115 …fun create(codebase: PsiBasedCodebase, psiAnnotation: PsiAnnotation, qualifiedName: String? = psiA… in <lambda>() 116 return PsiAnnotationItem(codebase, psiAnnotation, qualifiedName) in <lambda>() 119 fun create(codebase: PsiBasedCodebase, original: PsiAnnotationItem): PsiAnnotationItem { in <lambda>() [all …]
|
D | UAnnotationItem.kt | 48 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.UAnnotationItem 51 ) : DefaultAnnotationItem(codebase) { in <lambda>() 52 private val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>() 62 appendAnnotation(codebase, sb, uAnnotation, originalName, target, showDefaultAttrs) in <lambda>() 67 return codebase.findOrCreateClass(originalName ?: return null) in <lambda>() 92 codebase, in <lambda>() 107 codebase.findOrCreateClass(className) in <lambda>() 114 …fun create(codebase: PsiBasedCodebase, uAnnotation: UAnnotation, qualifiedName: String? = uAnnotat… in <lambda>() 115 return UAnnotationItem(codebase, uAnnotation, qualifiedName) in <lambda>() 118 fun create(codebase: PsiBasedCodebase, original: UAnnotationItem): UAnnotationItem { in <lambda>() [all …]
|
D | PsiTypeItem.kt | 59 private val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiTypeItem 87 codebase = codebase, in toTypeString() 102 codebase = codebase, in toTypeString() 114 codebase = codebase, in toTypeString() 131 codebase = codebase, in toTypeString() 146 codebase = codebase, in toTypeString() 162 codebase = codebase, in toTypeString() 218 asClass = codebase.findClass(psiType) in asClass() 255 codebase.findClass(classType)?.let { in typeArgumentClasses() 325 return create(codebase, codebase.createPsiType(s, owner?.psi())) in convertType() [all …]
|
D | PsiMethodItem.kt | 51 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiMethodItem 61 codebase = codebase, in <lambda>() 118 psiMethod.findSuperMethods().mapTo(result) { codebase.findMethod(it) } in <lambda>() 128 codebase, psiMethod.typeParameterList in <lambda>() 137 return PsiTypeItem.typeParameterClasses(codebase, psiMethod.typeParameterList) in <lambda>() 191 val exceptionClass = codebase.getType(type).asClass() in <lambda>() 247 codebase.printer.toSourceString(defaultExpression) ?: "" in <lambda>() 250 return codebase.printer.toSourceExpression(value, this) in <lambda>() 259 val duplicated = create(codebase, targetContainingClass as PsiClassItem, psiMethod) in <lambda>() 368 throwsTypes = throwsTypes(codebase, psiMethod) in <lambda>() [all …]
|
D | PsiClassItem.kt | 53 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiClassItem 64 codebase = codebase, in <lambda>() 76 override fun isDefined(): Boolean = codebase.unsupported() in <lambda>() 126 val item = codebase.findOrCreateClass(cls) in <lambda>() 171 return PsiTypeItem.create(codebase, codebase.getClassType(psiClass)) in <lambda>() 179 codebase, psiClass.typeParameterList in <lambda>() 189 codebase, in <lambda>() 213 return PsiCompilationUnit(codebase, uFile, containingFile) in <lambda>() 245 val type = PsiTypeItem.create(codebase, extendsListTypes[0]) in <lambda>() 251 this.superClassType = PsiTypeItem.create(codebase, superType) in <lambda>() [all …]
|
D | PsiModifierItem.kt | 49 codebase: Codebase, in <lambda>() 52 ) : DefaultModifierList(codebase, flags, annotations), ModifierList, MutableModifierList { in <lambda>() 54 …fun create(codebase: PsiBasedCodebase, element: PsiModifierListOwner, documentation: String?): Psi… in <lambda>() 57 create(codebase, element, element) in <lambda>() 59 create(codebase, element) in <lambda>() 179 … private fun create(codebase: PsiBasedCodebase, element: PsiModifierListOwner): PsiModifierItem { in <lambda>() 180 val modifierList = element.modifierList ?: return PsiModifierItem(codebase) in <lambda>() 186 PsiModifierItem(codebase, flags) in <lambda>() 204 PsiAnnotationItem.create(codebase, it, qualifiedName) in <lambda>() 206 PsiModifierItem(codebase, flags, annotations) in <lambda>() [all …]
|
D | PsiParameterItem.kt | 33 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiParameterItem 41 codebase = codebase, 157 codebase.printer.toSourceString(defaultExpression) in computeDefaultValue() 195 codebase: PsiBasedCodebase, in create() 201 val modifiers = createParameterModifiers(codebase, psiParameter, commentText) in create() 202 val type = codebase.getType(psiParameter.type) in create() 204 codebase = codebase, in create() 217 codebase: PsiBasedCodebase, in create() 221 codebase = codebase, in create() 226 modifiers = PsiModifierItem.create(codebase, original.modifiers), in create() [all …]
|
D | PsiConstructorItem.kt | 32 codebase: PsiBasedCodebase, 43 codebase = codebase, 68 psiMethod.findSuperMethods().mapTo(result) { codebase.findMethod(it) } in isImplicitConstructor() 84 val superConstructor = codebase.findMethod(resolved) in isImplicitConstructor() 107 codebase: PsiBasedCodebase, in create() 114 val modifiers = modifiers(codebase, psiMethod, commentText) in create() 115 val parameters = parameterList(codebase, psiMethod) in create() 117 codebase = codebase, in create() 124 returnType = codebase.getType(containingClass.psiClass), in create() 132 codebase: PsiBasedCodebase, in createDefaultConstructor() [all …]
|
D | PsiPackageItem.kt | 25 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiPackageItem 32 codebase = codebase, 56 containingPackageField = codebase.findPackage("")!! in containingClass() 60 val pkg = codebase.findPackage(parentPackage) in containingClass() 135 …fun create(codebase: PsiBasedCodebase, psiPackage: PsiPackage, extraDocs: String?): PsiPackageItem… in create() 137 val modifiers = modifiers(codebase, psiPackage, commentText) in create() 145 codebase = codebase, in create() 155 fun create(codebase: PsiBasedCodebase, original: PsiPackageItem): PsiPackageItem { in create() 157 codebase = codebase, in create() 161 modifiers = PsiModifierItem.create(codebase, original.modifiers) in create()
|
D | PsiFieldItem.kt | 29 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiFieldItem 40 codebase = codebase, 81 val duplicated = create(codebase, targetContainingClass as PsiClassItem, psiField) in duplicate() 116 …fun create(codebase: PsiBasedCodebase, containingClass: PsiClassItem, psiField: PsiField): PsiFiel… in toString() 119 val modifiers = modifiers(codebase, psiField, commentText) in toString() 121 val fieldType = codebase.getType(psiField.type) in toString() 126 codebase = codebase, in toString()
|
D | PsiPropertyItem.kt | 29 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiPropertyItem 38 codebase = codebase, 75 codebase: PsiBasedCodebase, in toString() 82 val modifiers = modifiers(codebase, psiMethod, commentText) in toString() 83 val typeItem = codebase.getType(psiType) in toString() 85 codebase = codebase, in toString()
|
D | PsiTypeParameterItem.kt | 27 codebase: PsiBasedCodebase, 33 codebase = codebase, 58 … refs.mapNotNull { PsiTypeItem.create(codebase, it).asClass() }.filter { !it.isJavaLangObject() } in finishInitialization() 65 fun create(codebase: PsiBasedCodebase, psiClass: PsiTypeParameter): PsiTypeParameterItem { in create() 67 val modifiers = modifiers(codebase, psiClass, "") in create() 70 codebase = codebase, in create()
|
D | PsiCompilationUnit.kt | 47 val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiCompilationUnit 100 val classItem = codebase.findClass(resolved) ?: continue in getImportStatements() 105 val pkgItem = codebase.findPackage(resolved.qualifiedName) ?: continue in getImportStatements() 114 codebase.findClass(resolved.containingClass ?: continue) ?: continue in getImportStatements() 115 val methodItem = codebase.findMethod(resolved) in getImportStatements() 120 … val classItem = codebase.findClass(resolved.containingClass ?: continue) ?: continue in getImportStatements() 136 val classItem = codebase.findClass(resolved) ?: continue in getImportStatements() 216 val classItem = codebase.findClass(psiClass) ?: continue in classes()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Driver.kt | 245 val codebase = in processFlags() constant 261 options.manifest?.let { codebase.manifest = it } in processFlags() 269 subtractApi(codebase, it) in processFlags() 276 ApiGenerator.generate(apiLevelJars, androidApiLevelXml, codebase) in processFlags() 279 if (options.docStubsDir != null && codebase.supportsDocumentation()) { in processFlags() 281 val docAnalyzer = DocAnalyzer(codebase) in processFlags() 294 it, codebase, docStubs = true, in processFlags() 306 createReportFile(codebase, apiFile, "API") { printWriter -> in processFlags() 307 SignatureWriter(printWriter, apiEmit, apiReference, codebase.preFiltered) in processFlags() 316 createReportFile(codebase, apiFile, "XML API") { printWriter -> in processFlags() [all …]
|
D | AnnotationsMerger.kt | 84 private val codebase: Codebase constant in com.android.tools.metalava.AnnotationsMerger 242 codebase, in mergeAndValidateQualifierAnnotationsFromJavaStubsCodebase() 285 new.codebase.createAnnotation( in mergeQualifierAnnotationsFromCodebase() 302 val codebase = new.codebase as PsiBasedCodebase in mergeQualifierAnnotationsFromCodebase() constant 303 val annotationItem = PsiAnnotationItem.create(codebase, annotation) in mergeQualifierAnnotationsFromCodebase() 311 visitor, externalCodebase, codebase in mergeQualifierAnnotationsFromCodebase() 341 CodebaseComparator().compare(visitor, externalCodebase, codebase) in mergeInclusionAnnotationsFromCodebase() 395 val classItem = codebase.findClass(containingClass) in mergeDocument() 424 val classItem = codebase.findClass(containingClass) in mergeDocument() 527 val qualifiedName = AnnotationItem.mapName(codebase, originalName) ?: originalName in mergeAnnotations() [all …]
|
D | ConvertJarsToSignatureFiles.kt | 90 … modifiers.addAnnotation(new.codebase.createAnnotation("@$annotationClass", new, mapName = false)) in <lambda>() 149 private fun markDeprecated(codebase: Codebase, file: File, path: String) { in <lambda>() 161 markDeprecated(codebase, bytes, path + ":" + entry.name) in <lambda>() 176 markDeprecated(codebase, it, it.path) in <lambda>() 181 markDeprecated(codebase, bytes, file.path) in <lambda>() 187 private fun markDeprecated(codebase: Codebase, bytes: ByteArray, path: String) { in <lambda>() 201 val item = codebase.findClass(classNode, MATCH_ALL) in <lambda>() 214 val item = codebase.findMethod(classNode, methodNode, MATCH_ALL) in <lambda>() 227 val item = codebase.findField(classNode, fieldNode, MATCH_ALL) in <lambda>()
|
D | RewriteAnnotations.kt | 51 fun modifyAnnotationSources(codebase: Codebase?, source: File, target: File, pkg: String = "") { in <lambda>() 57 if (hasSourceRetention(codebase, qualifiedName)) { in <lambda>() 73 modifyAnnotationSources(codebase, it, File(target, it.name), newPackage) in <lambda>() 79 fun copyAnnotations(codebase: Codebase, source: File, target: File, pkg: String = "") { in <lambda>() 85 if (hasSourceRetention(codebase, qualifiedName)) { in <lambda>() 96 copyAnnotations(codebase, it, File(target, it.name), newPackage) in <lambda>() 124 private fun hasSourceRetention(codebase: Codebase?, qualifiedName: String): Boolean { in <lambda>() 134 if (codebase != null) { in <lambda>() 135 val cls = codebase.findClass(qualifiedName) ?: return true in <lambda>()
|
D | AnnotationsDiffer.kt | 59 codebase: Codebase in <lambda>() 102 if (codebase.supportsDocumentation()) { in <lambda>() 107 CodebaseComparator().compare(visitor, superset, codebase, filter) in <lambda>() 111 val codebase = superset in <lambda>() constant 121 … val apiWriter = SignatureWriter(printWriter, apiEmit, apiReference, codebase.preFiltered) in <lambda>() 122 codebase.accept(apiWriter) in <lambda>()
|
/tools/treble/hacksaw/client/ |
D | command.go | 29 codebase add <name> <path>: Add codebase to hacksaw's list. 30 codebase list: List all codebases that hacksaw knows about. 31 codebase default <name>: Change the default codebase. 32 codebase remove <name>: Remove a codebase from hacksaw's list. 34 from a codebase. The codebase is optional if a default codebase 59 _, err := codebase.Add(name, path) 74 if err := codebase.SetDefault(name); err != nil { 82 def := codebase.Default() 89 list := codebase.List() 103 _, err := codebase.Remove(name) [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextClassItem.kt | 35 override val codebase: TextCodebase, constant in com.android.tools.metalava.model.text.TextClassItem 46 codebase = codebase, 114 return codebase.obtainTypeFromString( in containingPackage() 134 TextTypeParameterList.create(codebase, this, s.substring(index)) in typeParameterList() 181 typeInfo = codebase.obtainTypeFromString(qualifiedTypeName) in asTypeInfo() 262 fun createClassStub(codebase: TextCodebase, name: String): TextClassItem = in createClassStub() 263 createStub(codebase, name, isInterface = false) in createClassStub() 265 fun createInterfaceStub(codebase: TextCodebase, name: String): TextClassItem = in createClassStub() 266 createStub(codebase, name, isInterface = true) in createClassStub() 268 …private fun createStub(codebase: TextCodebase, name: String, isInterface: Boolean): TextClassItem { in createClassStub() [all …]
|
D | TextTypeParameterItem.kt | 25 codebase: TextCodebase, 32 codebase = codebase, 33 modifiers = TextModifiers(codebase, DefaultModifierList.PUBLIC), 46 val clz = codebase.findClass(it) in bounds() 48 codebase.getOrCreateClass(it) in bounds() 66 codebase: TextCodebase, in create() 82 codebase = codebase, in create()
|
D | TextModifiers.kt | 31 override val codebase: Codebase, in <lambda>() constant in com.android.tools.metalava.model.text.TextModifiers 34 ) : DefaultModifierList(codebase, flags, annotations) { in <lambda>() 44 return TextModifiers(codebase, flags, newAnnotations) in <lambda>() 57 val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>() 70 val codebase = codebase in <lambda>() constant 71 val item = object : DefaultAnnotationItem(codebase) { in <lambda>()
|
/tools/treble/hacksaw/ |
D | README.md | 7 If you have a large multi-gigabyte codebase spread out through multiple git projects it can take a … 9 …are read-only bind mounts. This lets you build without cloning the full codebase to a new location! 13 Lets look at some performance numbers for creating a hacksaw workspace using as a codebase the AOSP… 51 $ hacksaw codebase add aosp ~/aosp 52 Added codebase aosp 53 $ hacksaw codebase default aosp 54 Default codebase set to aosp 110 Hacksaw creates bind mounts for all git projects in a codebase. It then 112 codebase before create a workspace, otherwise it may spend a long time copying 123 Other commmands like `hacksaw workspace list` or `hacksaw add codebase` do not [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | AnnotationItem.kt | 60 val codebase: Codebase constant 133 return codebase.findClass(qualifiedName() ?: return null) in resolve() 139 …return codebase.findClass(className)?.modifiers?.annotations()?.firstOrNull { it.isTypeDefAnnotati… in findTypedefAnnotation() 147 … val cls = codebase.findClass(name) ?: (codebase as? PsiBasedCodebase)?.findOrCreateClass(name) 170 codebase: Codebase, in mapName() 324 val cls = codebase.findClass(qualifiedName) in mapName() 372 codebase, in mapName() 384 val cls = codebase.findClass(qualifiedName) in mapName() 674 abstract class DefaultAnnotationItem(override val codebase: Codebase) : AnnotationItem { constant in com.android.tools.metalava.model.DefaultAnnotationItem 680 codebase.findClass(className) in targets()
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/text/ |
D | TextTypeItemTest.kt | 68 val codebase = ApiFile.parseApi( in check erasure() constant 81 val cls = codebase.findClass("androidx.navigation.NavDestinationBuilder") in check erasure() 108 val codebase = ApiFile.parseApi( in check erasure from object() constant 117 val cls = codebase.findClass("test.pkg.TestClass") in check erasure from object() 139 val codebase = ApiFile.parseApi( in check erasure from enums() constant 149 val cls = codebase.findClass("test.pkg.EnumMap") in check erasure from enums()
|