/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/ |
D | BootstrapSourceModelProviderTest.kt | 47 runSourceCodebaseTest(java("")) { assertNotNull(codebase) } in 020 - check empty file() 62 val classItem = codebase.assertClass("test.pkg.Test") in 030 - check simplest class() 79 val packageItem = codebase.assertPackage("test.pkg") in 040 - check package exists() 98 val testClass = codebase.assertClass("test.pkg.Test") in 050 - check field exists() 118 val testClass = codebase.assertClass("test.pkg.Test") in 060 - check method exists() 137 val testClass = codebase.assertClass("test.pkg.Test") in 070 - check constructor exists() 156 val classItem = codebase.assertClass("test.pkg.Test") in 080 - check inner class() 157 val innerClassItem = codebase.assertClass("test.pkg.Test.InnerTestClass") in 080 - check inner class() 193 val classItem = codebase.assertClass("test.pkg.Test") in 090 - check class hierarchy() 194 val superClassItem = codebase.assertClass("test.pkg.SuperClass") in 090 - check class hierarchy() [all …]
|
D | CommonModelTest.kt | 40 assertNotNull(codebase) in empty file() 86 codebase.accept( in test findCorrespondingItemIn check all, no super methods() 89 val foundItem = item.findCorrespondingItemIn(codebase) in test findCorrespondingItemIn check all, no super methods() 190 val previouslyReleased = codebase in test findCorrespondingItemIn does not find super methods() 192 val latest = codebase in test findCorrespondingItemIn does not find super methods() 209 val previouslyReleased = codebase in test findCorrespondingItemIn does find super methods() 214 val latest = codebase in test findCorrespondingItemIn does find super methods() 237 val previouslyReleased = codebase in test findCorrespondingItemIn does duplicate super methods() 242 val latest = codebase in test findCorrespondingItemIn does duplicate super methods() 327 for (classItem in codebase.getPackages().allClasses()) { in Test iterate and resolve unknown super classes() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/methoditem/ |
D | CommonSuperMethodsTest.kt | 56 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test no super method() 101 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test no super method from parent class as static() 132 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test no super method from parent class as private() 177 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from parent class() 178 val parentClassMethod = codebase.assertClass("test.pkg.ParentClass").methods().first() in Test single super method from parent class() 233 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from grand parent class() 235 codebase.assertClass("test.pkg.GrandParentClass").methods().first() in Test single super method from grand parent class() 292 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from parent and grand parent class() 293 val parentClassMethod = codebase.assertClass("test.pkg.ParentClass").methods().first() in Test single super method from parent and grand parent class() 338 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from parent interface() [all …]
|
D | CommonMethodItemTest.kt | 81 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in <lambda>() 83 codebase in <lambda>() 120 val testClass = codebase.assertClass("test.pkg.Test") in <lambda>() 188 val testClass = codebase.assertClass("test.pkg.Test") in <lambda>() 237 val baseClass = codebase.assertClass("test.pkg.Base") in <lambda>() 238 val testClass = codebase.assertClass("test.pkg.Test") in <lambda>() 271 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 308 val methodItem = codebase.assertClass("test.pkg.Test").methods().single() in <lambda>() 344 val methodItem = codebase.assertClass("test.pkg.Test").methods().single() in <lambda>() 372 val methodItem = codebase.assertClass("test.pkg.Test").methods().single() in <lambda>() [all …]
|
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/ |
D | PsiModifierItemTest.kt | 58 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test type-use nullability annotation used from Java and Kotlin source() 82 val inherited = codebase.assertClass("Inherited") in Kotlin implicit internal visibility inheritance() 106 assertTrue(codebase.assertClass("Internal").isInternal) in Kotlin class visibility modifiers() 107 assertTrue(codebase.assertClass("Public").isPublic) in Kotlin class visibility modifiers() 108 assertTrue(codebase.assertClass("DefaultPublic").isPublic) in Kotlin class visibility modifiers() 109 assertTrue(codebase.assertClass("Outer.Private").isPrivate) in Kotlin class visibility modifiers() 110 assertTrue(codebase.assertClass("Outer.Protected").isProtected) in Kotlin class visibility modifiers() 129 codebase.assertClass("Abstract").modifiers.let { in Kotlin class abstract and final modifiers() 135 codebase.assertClass("Sealed").modifiers.let { in Kotlin class abstract and final modifiers() 141 codebase.assertClass("Open").modifiers.let { in Kotlin class abstract and final modifiers() [all …]
|
D | PsiMethodItemTest.kt | 34 val classItem = codebase.assertClass("Foo") in property accessors have properties() 50 val classItem = codebase.assertClass("Foo") in destructuring functions do not have a property relationship() 69 val ctorItem = codebase.assertClass("Foo").assertMethod("Foo", "") in method return type is non-null() 72 val methodItem = codebase.assertClass("Foo").assertMethod("bar", "") in method return type is non-null() 107 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method does not need to be added to signature file if super method is concrete() 135 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method only needs to be added to signature file if all multiple direct super methods requires override() 164 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method does not need to be added to signature file if override requiring super method is hidden() 181 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method need to be added to signature file if extending Object method and return type changes() 198 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method need to be added to signature file if extending Object method and visibility changes() 218 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method does not need to be added to signature file even if extending Object method and modifier changes when it is not a direct override() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/classitem/ |
D | CommonClassItemTest.kt | 63 val testClass = codebase.assertClass("test.pkg.Test") in empty class() 98 val fooClass = codebase.assertClass("test.pkg.Foo") in Find method with type parameterized by two types() 157 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class in type parameters() 159 codebase in Test access type parameter of outer class in type parameters() 223 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class in extends type() 224 val extendsType = codebase.assertClass("test.pkg.Outer.Middle.Inner").superClassType()!! in Test access type parameter of outer class in extends type() 283 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class in interface type() 285 codebase.assertClass("test.pkg.Outer.Middle.Inner").interfaceTypes().single() in Test access type parameter of outer class in interface type() 319 val fooInterface = codebase.assertClass("test.pkg.Foo") in Test interface no extends list() 371 val interfaceA = codebase.assertClass("test.pkg.A") in Test interface extends list() [all …]
|
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/ |
D | UAnnotationItem.kt | 52 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.UAnnotationItem 57 codebase, in <lambda>() 59 { getAnnotationAttributes(codebase, uAnnotation) } in <lambda>() 64 appendAnnotation(codebase, sb, uAnnotation, qualifiedName, target, showDefaultAttrs) in toSource() 69 return codebase.findOrCreateClass(originalName ?: return null) in resolve() 81 codebase.annotationManager.computeTargets(this, codebase::findOrCreateClass) in <lambda>() 86 codebase: PsiBasedCodebase, in getAnnotationAttributes() 93 createValue(codebase, attribute.expression) in getAnnotationAttributes() 99 codebase: PsiBasedCodebase, in create() 103 return UAnnotationItem(codebase, uAnnotation, qualifiedName) in create() [all …]
|
D | PsiAnnotationItem.kt | 50 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiAnnotationItem 55 codebase, in <lambda>() 57 { getAnnotationAttributes(codebase, psiAnnotation) } in <lambda>() 62 appendAnnotation(codebase, sb, psiAnnotation, qualifiedName, target, showDefaultAttrs) in toSource() 67 return codebase.findOrCreateClass(originalName ?: return null) in resolve() 79 codebase.annotationManager.computeTargets(this, codebase::findOrCreateClass) in <lambda>() 84 codebase: PsiBasedCodebase, in getAnnotationAttributes() 92 createValue(codebase, value), in getAnnotationAttributes() 99 codebase: PsiBasedCodebase, in create() 103 return PsiAnnotationItem(codebase, psiAnnotation, qualifiedName) in create() [all …]
|
D | PsiConstructorItem.kt | 36 codebase: PsiBasedCodebase, 51 codebase = codebase, 75 codebase: PsiBasedCodebase, in isImplicitConstructor() 82 val commentText = javadoc(psiMethod, codebase.allowReadingComments) in isImplicitConstructor() 83 val modifiers = modifiers(codebase, psiMethod, commentText) in isImplicitConstructor() 88 codebase, in isImplicitConstructor() 93 val parameters = parameterList(codebase, psiMethod, constructorTypeItemFactory) in isImplicitConstructor() 96 codebase = codebase, in isImplicitConstructor() 113 codebase: PsiBasedCodebase, in isImplicitConstructor() 121 val modifiers = DefaultModifierList(codebase, PACKAGE_PRIVATE, null) in isImplicitConstructor() [all …]
|
D | PsiMethodItem.kt | 50 codebase: PsiBasedCodebase, in <lambda>() 65 codebase = codebase, in <lambda>() 107 val comment = codebase.getComment(documentation) in <lambda>() 167 codebase.globalTypeItemFactory.from(this@PsiMethodItem) in <lambda>() 217 psiMethod.uastDefaultValue?.let { codebase.printer.toSourceString(it) } ?: "" in <lambda>() 220 psiMethod.defaultValue?.let { codebase.printer.toSourceExpression(it, this) } in <lambda>() 230 codebase, in <lambda>() 235 codebase.globalTypeItemFactory.from(containingClass) in <lambda>() 286 codebase: PsiBasedCodebase, in <lambda>() 315 val commentText = javadoc(psiMethod, codebase.allowReadingComments) in <lambda>() [all …]
|
D | PsiClassItem.kt | 55 codebase: PsiBasedCodebase, in <lambda>() 71 codebase = codebase, in <lambda>() 133 val item = codebase.findOrCreateClass(cls) in <lambda>() 187 classTypeItem = codebase.globalTypeItemFactory.getClassTypeForClass(this) in <lambda>() 211 return PsiSourceFile(codebase, containingFile, uFile) in <lambda>() 223 return PsiConstructorItem.createDefaultConstructor(codebase, this, psiClass) in <lambda>() 228 require(method.codebase == codebase) { in <lambda>() 287 codebase: PsiBasedCodebase, in <lambda>() 304 val commentText = javadoc(psiClass, codebase.allowReadingComments) in <lambda>() 305 val modifiers = PsiModifierItem.create(codebase, psiClass, commentText) in <lambda>() [all …]
|
D | PsiPackageItem.kt | 27 codebase: PsiBasedCodebase, 37 codebase = codebase, 64 containingPackageField = codebase.findPackage("")!! in containingClass() 68 val pkg = codebase.findPackage(parentPackage) in containingClass() 124 codebase: PsiBasedCodebase, in hashCode() 131 javadoc(psiPackage, codebase.allowReadingComments) + in hashCode() 133 val modifiers = modifiers(codebase, psiPackage, commentText) in hashCode() 142 codebase = codebase, in hashCode()
|
D | PsiPropertyItem.kt | 31 codebase: PsiBasedCodebase, in <lambda>() 44 codebase = codebase, in <lambda>() 91 codebase: PsiBasedCodebase, in <lambda>() 104 javadoc(sourcePsi.property, codebase.allowReadingComments) in <lambda>() 105 else -> javadoc(sourcePsi ?: psiMethod, codebase.allowReadingComments) in <lambda>() 107 val modifiers = modifiers(codebase, psiMethod, documentation) in <lambda>() 124 val annotationItem = UAnnotationItem.create(codebase, uAnnotation) in <lambda>() 132 codebase = codebase, in <lambda>()
|
D | PsiParameterItem.kt | 52 codebase: PsiBasedCodebase, 60 codebase = codebase, 218 codebase.printer.toSourceString(defaultExpression) in computeDefaultValue() 308 codebase: PsiBasedCodebase, in create() 315 val modifiers = createParameterModifiers(codebase, psiParameter) in create() 327 when (codebase.uastResolveService?.nullability(ktParameter)) { in create() 329 codebase.getNonNullAnnotationProvider() in create() 330 KtTypeNullability.NULLABLE -> codebase.getNullableAnnotationProvider() in create() 353 codebase = codebase, in create() 372 codebase = original.codebase, in create() [all …]
|
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/ |
D | ApiFileTest.kt | 75 val codebase = in <lambda>() constant 79 codebase.assertClass("test.pkg.Foo") in <lambda>() 100 val throwable = codebase.assertClass("java.lang.Throwable") in <lambda>() 106 val objectClass = codebase.assertClass("java.lang.Object") in <lambda>() 112 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>() 135 val error = codebase.assertClass("java.lang.Error") in <lambda>() 141 val throwable = codebase.assertClass("java.lang.Throwable") in <lambda>() 147 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>() 166 val throwable = codebase.assertResolvedClass("java.lang.Throwable") in <lambda>() 172 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>() [all …]
|
D | TextModelSuiteRunner.kt | 51 val codebase = ApiFile.parseApi(signatureFiles, classResolver = resolver) in <lambda>() constant 52 test(codebase) in <lambda>() 72 private val codebase by lazy { in <lambda>() constant 103 return codebase.findClass(erasedName) in resolveClass() 109 codebase.findPackage(packageName) in resolveClass() 111 codebase = codebase, in resolveClass() 113 modifiers = DefaultModifierList(codebase), in resolveClass() 116 .also { newPackageItem -> codebase.addPackage(newPackageItem) } in resolveClass() 119 codebase = codebase, in resolveClass() 120 modifiers = DefaultModifierList(codebase), in resolveClass() [all …]
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | SignatureInputOutputTest.kt | 48 val codebase = ApiFile.parseApi("test", fullSignature) in <lambda>() constant 50 codebaseTest(codebase) in <lambda>() 66 codebase.accept(signatureWriter) in <lambda>() 86 runInputOutputTest(api, kotlinStyleFormat) { codebase -> in <lambda>() method 87 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 105 runInputOutputTest(api, kotlinStyleFormat) { codebase -> in <lambda>() method 106 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 127 runInputOutputTest(api, kotlinStyleFormat) { codebase -> in <lambda>() method 128 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 150 runInputOutputTest(api, kotlinStyleFormat) { codebase -> in <lambda>() method [all …]
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/ |
D | Driver.kt | 174 val codebase = in processFlags() constant 215 actionContext.subtractApi(signatureFileCache, codebase, it) in processFlags() 245 codebase, in processFlags() 252 if (!codebase.supportsDocumentation()) { in processFlags() 256 val docAnalyzer = DocAnalyzer(executionEnvironment, codebase, reporterApiLint) in processFlags() 279 codebase, in processFlags() 292 codebase, in processFlags() 304 createReportFile(progressTracker, codebase, apiFile, "API") { printWriter -> in processFlags() 309 codebase.preFiltered, in processFlags() 324 codebase, in processFlags() [all …]
|
/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/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/annotationitem/ |
D | CommonAnnotationItemTest.kt | 76 val testClass = codebase.assertClass("test.pkg.Test") in annotation with annotation values() 135 val testClass = codebase.assertClass("test.pkg.Test") in annotation with boolean values() 185 val testClass = codebase.assertClass("test.pkg.Test") in annotation with char values() 235 val testClass = codebase.assertClass("test.pkg.Test") in annotation with class values() 346 val testClass = codebase.assertClass("test.pkg.Test") in annotation with number values() 416 val testClass = codebase.assertClass("test.pkg.Test") in annotation with string values() 458 val testClass = codebase.assertClass("test.pkg.Test") in annotation array values with single element() 499 val testClass = codebase.assertClass("test.pkg.Test") in annotation array values with single array element() 558 val testClass = codebase.assertClass("test.pkg.Test") in annotation with enum values() 606 val testClass = codebase.assertClass("test.pkg.Test") in annotation with constant literal values() [all …]
|
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/ |
D | TextCodebaseBuilder.kt | 38 class TextCodebaseBuilder private constructor(private val codebase: TextCodebase) { constant in com.android.tools.metalava.model.text.TextCodebaseBuilder 46 val codebase = in build() constant 52 val builder = TextCodebaseBuilder(codebase) in build() 55 return codebase in build() 59 var description by codebase::description 62 val pkg = codebase.findPackage(pkgName) in getOrAddPackage() 68 codebase, in getOrAddPackage() 70 DefaultModifierList(codebase, DefaultModifierList.PUBLIC), in getOrAddPackage() 73 codebase.addPackage(newPkg) in getOrAddPackage() 78 codebase.addPackage(pkg as TextPackageItem) in addPackage() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/ |
D | CommonTypeModifiersTest.kt | 81 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 157 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 208 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 249 val fooClass = codebase.assertClass("test.pkg.Foo") in <lambda>() 294 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 329 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 373 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 413 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 448 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 500 codebase.assertClass("test.pkg.Foo").methods().single().parameters().single().type() in <lambda>() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/propertyitem/ |
D | CommonPropertyItemTest.kt | 60 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class() 62 codebase in Test access type parameter of outer class() 89 val barClass = codebase.assertClass("test.pkg.Bar") in Test deprecated getter and setter by annotation() 118 val fooClass = codebase.assertClass("test.pkg.Foo") in Test property delegate to Kotlin object() 146 val fooClass = codebase.assertClass("test.pkg.Foo") in Test property delegate to generic Kotlin object() 180 val fooClass = codebase.assertClass("test.pkg.Foo") in Test property delegate to lambda Kotlin object() 216 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of non-null string() 241 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of nullable string() 266 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of list of non-null string() 292 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of list of nullable string() [all …]
|
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/ |
D | AnnotationItem.kt | 44 val codebase: Codebase constant 293 return convertValue(codebase, kClass, value) in nonInlineGetAttributeValue() 326 return values.map { caster(convertValue(codebase, kClass, it)) } in nonInlineGetAttributeValues() 336 private fun convertValue(codebase: Codebase, kClass: KClass<*>, value: Any): Any { in convertValue() 362 return DefaultAnnotationItem.create(codebase, value as String) in convertValue() 372 override val codebase: Codebase, constant in com.android.tools.metalava.model.DefaultAnnotationItem 390 codebase: Codebase, 394 codebase, 396 qualifiedName = codebase.annotationManager.normalizeInputName(originalName), 401 codebase.annotationManager.computeTargets(this, codebase::findClass) in <lambda>() [all …]
|