Home
last modified time | relevance | path

Searched refs:codebase (Results 1 – 25 of 92) sorted by relevance

1234

/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiModifierItemTest.kt43 ) { codebase -> in <lambda>() method
44 val inherited = codebase.assertClass("Inherited") in <lambda>()
67 ) { codebase -> in <lambda>() method
68 assertTrue(codebase.assertClass("Internal").isInternal) in <lambda>()
69 assertTrue(codebase.assertClass("Public").isPublic) in <lambda>()
70 assertTrue(codebase.assertClass("DefaultPublic").isPublic) in <lambda>()
71 assertTrue(codebase.assertClass("Outer.Private").isPrivate) in <lambda>()
72 assertTrue(codebase.assertClass("Outer.Protected").isProtected) in <lambda>()
90 ) { codebase -> in <lambda>() method
91 codebase.assertClass("Abstract").modifiers.let { in <lambda>()
[all …]
DPsiPropertyItemTest.kt31 testCodebase(kotlin("class Foo(val myVal: Int)")) { codebase -> in <lambda>() method
32 val myVal = codebase.assertClass("Foo").properties().single() in <lambda>()
50 ) { codebase -> in <lambda>() method
51 val properties = codebase.assertClass("Foo").properties() in <lambda>()
68 testCodebase(kotlin("class Foo { var myVar: Int = 0 }")) { codebase -> in <lambda>() method
69 val myVar = codebase.assertClass("Foo").properties().single() in <lambda>()
93 ) { codebase -> in <lambda>() method
94 val properties = codebase.assertClass("Foo").properties() in <lambda>()
124 ) { codebase -> in <lambda>() method
125 val properties = codebase.assertClass("Foo").properties() in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiAnnotationItem.kt50 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiAnnotationItem
53 ) : DefaultAnnotationItem(codebase) { in <lambda>()
54 override val qualifiedName: String? = AnnotationItem.mapName(codebase, originalName) in <lambda>()
60 appendAnnotation(codebase, sb, psiAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
65 return codebase.findOrCreateClass(originalName ?: return null) in <lambda>()
81 PsiAnnotationAttribute(codebase, attribute.name ?: ATTR_VALUE, value) in <lambda>()
87 AnnotationItem.computeTargets(this, codebase::findOrCreateClass) in <lambda>()
91 …fun create(codebase: PsiBasedCodebase, psiAnnotation: PsiAnnotation, qualifiedName: String? = psiA… in <lambda>()
92 return PsiAnnotationItem(codebase, psiAnnotation, qualifiedName) in <lambda>()
95 fun create(codebase: PsiBasedCodebase, original: PsiAnnotationItem): PsiAnnotationItem { in <lambda>()
[all …]
DUAnnotationItem.kt50 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.UAnnotationItem
53 ) : DefaultAnnotationItem(codebase) { in <lambda>()
54 override val qualifiedName: String? = AnnotationItem.mapName(codebase, originalName) in <lambda>()
60 appendAnnotation(codebase, sb, uAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
65 return codebase.findOrCreateClass(originalName ?: return null) in <lambda>()
80 UAnnotationAttribute(codebase, attribute.name ?: ATTR_VALUE, attribute.expression) in <lambda>()
85 AnnotationItem.computeTargets(this, codebase::findOrCreateClass) in <lambda>()
89 …fun create(codebase: PsiBasedCodebase, uAnnotation: UAnnotation, qualifiedName: String? = uAnnotat… in <lambda>()
90 return UAnnotationItem(codebase, uAnnotation, qualifiedName) in <lambda>()
93 fun create(codebase: PsiBasedCodebase, original: UAnnotationItem): UAnnotationItem { in <lambda>()
[all …]
DPsiTypeItem.kt57 private val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiTypeItem
85 codebase = codebase, in toTypeString()
100 codebase = codebase, in toTypeString()
112 codebase = codebase, in toTypeString()
129 codebase = codebase, in toTypeString()
144 codebase = codebase, in toTypeString()
160 codebase = codebase, in toTypeString()
216 asClass = codebase.findClass(psiType) in asClass()
253 codebase.findClass(classType)?.let { in typeArgumentClasses()
323 return create(codebase, codebase.createPsiType(s, owner?.psi())) in convertType()
[all …]
DPsiMethodItem.kt46 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiMethodItem
56 codebase = codebase, in <lambda>()
104 val comment = codebase.getComment(documentation) in <lambda>()
123 psiMethod.findSuperMethods().mapTo(result) { codebase.findMethod(it) } in <lambda>()
133 codebase, in <lambda>()
143 return PsiTypeItem.typeParameterClasses(codebase, psiMethod.typeParameterList) in <lambda>()
198 val exceptionClass = codebase.getType(type).asClass() in <lambda>()
243 codebase.printer.toSourceString(it) in <lambda>()
248 codebase.printer.toSourceExpression(it, this) in <lambda>()
256 val duplicated = create(codebase, targetContainingClass as PsiClassItem, psiMethod) in <lambda>()
[all …]
DPsiModifierItem.kt60 codebase: Codebase, in <lambda>()
63 ) : DefaultModifierList(codebase, flags, annotations), ModifierList, MutableModifierList { in <lambda>()
66 codebase: PsiBasedCodebase, in <lambda>()
72 create(codebase, element, element) in <lambda>()
74 create(codebase, element) in <lambda>()
95 codebase: PsiBasedCodebase, in <lambda>()
163 val descriptor = codebase.bindingContext(sourcePsi) in <lambda>()
239 … private fun create(codebase: PsiBasedCodebase, element: PsiModifierListOwner): PsiModifierItem { in <lambda>()
240 val modifierList = element.modifierList ?: return PsiModifierItem(codebase) in <lambda>()
241 var flags = computeFlag(codebase, element, modifierList) in <lambda>()
[all …]
DPsiClassItem.kt53 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiClassItem
66 codebase = codebase, in <lambda>()
79 override fun isDefined(): Boolean = codebase.unsupported() in <lambda>()
130 val item = codebase.findOrCreateClass(cls) in <lambda>()
178 return PsiTypeItem.create(codebase, codebase.getClassType(psiClass)) in <lambda>()
186 codebase, in <lambda>()
197 codebase, in <lambda>()
222 return PsiSourceFileItem(codebase, containingFile, uFile) in <lambda>()
254 val type = PsiTypeItem.create(codebase, extendsListTypes[0]) in <lambda>()
260 this.superClassType = PsiTypeItem.create(codebase, superType) in <lambda>()
[all …]
DPsiParameterItem.kt33 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiParameterItem
41 codebase = codebase,
169 codebase.printer.toSourceString(defaultExpression) in computeDefaultValue()
207 codebase: PsiBasedCodebase, in create()
213 val modifiers = createParameterModifiers(codebase, psiParameter, commentText) in create()
214 val type = codebase.getType(psiParameter.type) in create()
216 codebase = codebase, in create()
229 codebase: PsiBasedCodebase, in create()
233 codebase = codebase, in create()
238 modifiers = PsiModifierItem.create(codebase, original.modifiers), in create()
[all …]
DPsiConstructorItem.kt35 codebase: PsiBasedCodebase,
47 codebase = codebase,
73 psiMethod.findSuperMethods().mapTo(result) { codebase.findMethod(it) } in isImplicitConstructor()
89 val superConstructor = codebase.findMethod(resolved) in isImplicitConstructor()
112 codebase: PsiBasedCodebase, in create()
119 val modifiers = modifiers(codebase, psiMethod, commentText) in create()
120 val parameters = parameterList(codebase, psiMethod) in create()
122 codebase = codebase, in create()
129 returnType = codebase.getType(containingClass.psiClass), in create()
138 codebase: PsiBasedCodebase, in createDefaultConstructor()
[all …]
DPsiPackageItem.kt25 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiPackageItem
34 codebase = codebase,
60 containingPackageField = codebase.findPackage("")!! in containingClass()
64 val pkg = codebase.findPackage(parentPackage) in containingClass()
142 codebase: PsiBasedCodebase, in isFromClassPath()
148 val modifiers = modifiers(codebase, psiPackage, commentText) in isFromClassPath()
156 codebase = codebase, in isFromClassPath()
167 fun create(codebase: PsiBasedCodebase, original: PsiPackageItem): PsiPackageItem { in isFromClassPath()
169 codebase = codebase, in isFromClassPath()
173 modifiers = PsiModifierItem.create(codebase, original.modifiers), in isFromClassPath()
DPsiSourceFileItem.kt47 codebase: PsiBasedCodebase,
50 ) : SourceFileItem, PsiItem(codebase, file, PsiModifierItem(codebase), documentation = "") {
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()
214 ?.mapNotNull { codebase.findClass(it) } in classes()
220 uFile != null -> codebase.findPackage(uFile.packageName) in containingPackage()
[all …]
DPsiFieldItem.kt29 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiFieldItem
40 codebase = codebase,
84 val duplicated = create(codebase, targetContainingClass as PsiClassItem, psiField) in duplicate()
119 …fun create(codebase: PsiBasedCodebase, containingClass: PsiClassItem, psiField: PsiField): PsiFiel… in toString()
122 val modifiers = modifiers(codebase, psiField, commentText) in toString()
124 val fieldType = codebase.getType(psiField.type) in toString()
129 codebase = codebase, in toString()
DPsiTypeParameterItem.kt26 codebase: PsiBasedCodebase,
32 codebase = codebase,
59 refs.mapNotNull { PsiTypeItem.create(codebase, it) }.filter { !it.isJavaLangObject() } in finishInitialization()
66 fun create(codebase: PsiBasedCodebase, psiClass: PsiTypeParameter): PsiTypeParameterItem { in create()
68 val modifiers = modifiers(codebase, psiClass, "") in create()
71 codebase = codebase, in create()
DPsiPropertyItem.kt29 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiPropertyItem
42 codebase = codebase,
99 codebase: PsiBasedCodebase, in toString()
113 val modifiers = modifiers(codebase, psiMethod, documentation) in toString()
115 codebase = codebase, in toString()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt238 val codebase = in processFlags() constant
254 codebase.apiLevel = options.currentApiLevel + in processFlags()
256 options.manifest?.let { codebase.manifest = it } in processFlags()
264 subtractApi(codebase, it) in processFlags()
271 ApiGenerator.generate(apiLevelJars, options.firstApiLevel, androidApiLevelXml, codebase) in processFlags()
275 if (!codebase.supportsDocumentation()) { in processFlags()
279 val docAnalyzer = DocAnalyzer(codebase) in processFlags()
291 it, codebase, docStubs = true, in processFlags()
303 createReportFile(codebase, apiFile, "API") { printWriter -> in processFlags()
304 SignatureWriter(printWriter, apiEmit, apiReference, codebase.preFiltered) in processFlags()
[all …]
DAnnotationsMerger.kt83 private val codebase: Codebase in <lambda>() constant in com.android.tools.metalava.AnnotationsMerger
242 codebase, in <lambda>()
285 new.codebase.createAnnotation( in <lambda>()
302 val codebase = new.codebase as PsiBasedCodebase in <lambda>() constant
303 val annotationItem = PsiAnnotationItem.create(codebase, annotation) in <lambda>()
311 visitor, externalCodebase, codebase in <lambda>()
341 CodebaseComparator().compare(visitor, externalCodebase, codebase) in <lambda>()
395 val classItem = codebase.findClass(containingClass) in <lambda>()
424 val classItem = codebase.findClass(containingClass) in <lambda>()
527 val qualifiedName = AnnotationItem.mapName(codebase, originalName) ?: originalName in <lambda>()
[all …]
DConvertJarsToSignatureFiles.kt90 … 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>()
DRewriteAnnotations.kt51 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>()
135 if (codebase != null) { in <lambda>()
136 val cls = codebase.findClass(qualifiedName) ?: return true in <lambda>()
DAnnotationsDiffer.kt59 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/
Dcommand.go29 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/
DTextClassItem.kt35 override val codebase: TextCodebase, constant in com.android.tools.metalava.model.text.TextClassItem
46 codebase = codebase,
116 return codebase.obtainTypeFromString( in containingPackage()
136 TextTypeParameterList.create(codebase, this, s.substring(index)) in typeParameterList()
183 typeInfo = codebase.obtainTypeFromString(qualifiedTypeName) in asTypeInfo()
264 fun createClassStub(codebase: TextCodebase, name: String): TextClassItem = in createClassStub()
265 createStub(codebase, name, isInterface = false) in createClassStub()
267 fun createInterfaceStub(codebase: TextCodebase, name: String): TextClassItem = in createClassStub()
268 createStub(codebase, name, isInterface = true) in createClassStub()
270 …private fun createStub(codebase: TextCodebase, name: String, isInterface: Boolean): TextClassItem { in createClassStub()
[all …]
DTextTypeParameterItem.kt25 codebase: TextCodebase,
32 codebase = codebase,
33 modifiers = TextModifiers(codebase, DefaultModifierList.PUBLIC),
46 codebase.obtainTypeFromString(it) in typeBounds()
61 codebase: TextCodebase, in create()
77 codebase = codebase, in create()
DTextModifiers.kt31 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>()
56 val qualifiedName = AnnotationItem.mapName(codebase, originalName) in <lambda>()
69 val codebase = codebase in <lambda>() constant
70 val item = object : DefaultAnnotationItem(codebase) { in <lambda>()
/tools/treble/hacksaw/
DREADME.md7 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 …]

1234