/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiPackageItem.kt | 60 val pkg = codebase.findPackage(parentPackage) in containingClass() constant 61 if (pkg != null) { in containingClass() 62 containingPackageField = pkg in containingClass() 63 return pkg in containingClass() 144 val pkg = PsiPackageItem( in create() constant 151 pkg.modifiers.setOwner(pkg) in create() 152 return pkg in create() 156 val pkg = PsiPackageItem( in create() constant 163 pkg.modifiers.setOwner(pkg) in create() 164 return pkg in create()
|
D | PsiBasedCodebase.kt | 232 for (pkg in added) { in <lambda>() constant 233 pkg.finishInitialization() in <lambda>() 269 val pkg = registerPackage(psiPackage, sortedClasses, packageHtml, pkgName) in <lambda>() constant 270 pkg.emit = false // don't expose these packages in the API signature files, stubs, etc in <lambda>() 274 for (pkg in packageMap.values) { in <lambda>() constant 275 var name = pkg.qualifiedName() in <lambda>() 287 pkg.containingPackageField = parent in <lambda>() 403 for (pkg in packageMap.values) { in <lambda>() constant 404 pkg.finishInitialization() in <lambda>() 432 var pkg = packageName in <lambda>() variable [all …]
|
D | PsiCompilationUnit.kt | 67 val pkg = file.packageStatement ?: return null in getHeaderComments() constant 68 return file.text.substring(0, pkg.startOffset) in getHeaderComments()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | ShowForStubPurposesAnnotationTest.kt | 501 package test.pkg; 533 package test.pkg; 570 package test.pkg { in Complecated case - SystemApi + ModuleApi() 575 public class ModuleClassExtendingPublic extends test.pkg.PublicSubClass { in Complecated case - SystemApi + ModuleApi() 587 public class PublicSubClass extends test.pkg.PublicClass { in Complecated case - SystemApi + ModuleApi() 606 package test.pkg { in Complecated case - SystemApi only() 615 public class PublicSubClass extends test.pkg.PublicClass { in Complecated case - SystemApi only() 636 package test.pkg { in Hierarchy test - Module API only() 641 public class ModuleClassExtendingPublic extends test.pkg.PublicSubClass { in Hierarchy test - Module API only() 662 package test.pkg; in Hierarchy test - Module API only with lint() [all …]
|
D | DriverTest.kt | 580 val pkg = cls.packageName in <lambda>() constant 581 val relative = pkg?.replace('.', File.separatorChar) ?: "." in <lambda>() 592 val pkg = cls.packageName in <lambda>() constant 593 val relative = pkg?.replace('.', File.separatorChar) ?: "." in <lambda>() 1361 for ((pkg, xml) in extractAnnotations) { in <lambda>() constant 1362 assertPackageXml(pkg, extractedAnnotationsZip, xml) in <lambda>() 1444 private fun assertPackageXml(pkg: String, output: File, @Language("XML") expected: String) { in <lambda>() 1448 "jar:" + SdkUtils.fileToUrlString(output) + "!/" + pkg.replace('.', '/') + in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | StubWriter.kt | 84 override fun visitPackage(pkg: PackageItem) { in <lambda>() 85 getPackageDir(pkg, create = true) in <lambda>() 87 writePackageInfo(pkg) in <lambda>() 91 packageDocs.getOverviewDocumentation(pkg)?.let { writeDocOverview(pkg, it) } in <lambda>() 96 fun writeDocOverview(pkg: PackageItem, content: String) { in <lambda>() 101 val sourceFile = File(getPackageDir(pkg), "overview.html") in <lambda>() 117 private fun writePackageInfo(pkg: PackageItem) { in <lambda>() 118 val annotations = pkg.modifiers.annotations() in <lambda>() 119 if (annotations.isNotEmpty() && generateAnnotations || !pkg.documentation.isBlank()) { in <lambda>() 120 val sourceFile = File(getPackageDir(pkg), "package-info.java") in <lambda>() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextCodebase.kt | 185 for (pkg in packages) { in resolveInnerClasses() method 187 val classes = ArrayList(pkg.classList()) in resolveInnerClasses() 205 for (pkg in packages) { in resolveInnerClasses() constant 206 pkg.pruneClassList() in resolveInnerClasses() 240 val pkg = findPackage(pkgPath) ?: run { in getOrCreateClass() constant 251 newClass.setContainingPackage(pkg) in getOrCreateClass() 252 pkg.addClass(newClass) in getOrCreateClass() 349 val pkg = getOrAddPackage(new.containingPackage().qualifiedName()) in computeDelta() constant 350 pkg.addClass(new as TextClassItem) in computeDelta() 394 val pkg = getOrAddPackage(fullClass.containingPackage().qualifiedName()) in computeDelta() constant [all …]
|
D | ApiFile.java | 184 TextPackageItem pkg; in parsePackage() local 210 pkg = new TextPackageItem(api, name, modifiers, tokenizer.pos()); in parsePackage() 214 if (!pkg.getModifiers().toString().equals(existing.getModifiers().toString())) { in parsePackage() 217 name, pkg.getModifiers(), modifiers), tokenizer); in parsePackage() 219 pkg = existing; in parsePackage() 231 parseClass(api, pkg, tokenizer, token); in parsePackage() 234 api.addPackage(pkg); in parsePackage() 237 …private static void parseClass(TextCodebase api, TextPackageItem pkg, Tokenizer tokenizer, String … in parseClass() argument 276 qualifiedName = qualifiedName(pkg.name(), name); in parseClass() 296 cl.setContainingPackage(pkg); in parseClass() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | DocReplacement.kt | 36 pkg -> fqn.startsWith(pkg) && (fqn.length == pkg.length || fqn[pkg.length] == '.') in <lambda>() method 45 val pkg = item.containingPackage(strict = false) in <lambda>() constant 46 if (pkg != null && appliesToPackage(pkg)) { in <lambda>()
|
D | ApiPredicate.kt | 100 var pkg: PackageItem? = clazz.containingPackage() in test() variable 101 while (pkg != null) { in test() 102 hidden = hidden or pkg.hidden in test() 103 docOnly = docOnly or pkg.docOnly in test() 104 removed = removed or pkg.removed in test() 105 pkg = pkg.containingPackage() in test()
|
D | PackageFilter.kt | 46 val pkg = arg.removePrefix("-").removePrefix("+") in addPackages() constant 47 val index = pkg.indexOf('*') in addPackages() 49 if (index < pkg.length - 1) { in addPackages() 50 …row DriverException(stderr = "Wildcards in stub packages must be at the end of the package: $pkg)") in addPackages() 52 val prefix = pkg.removeSuffix("*") in addPackages() 60 add(StringEqualsPredicate(pkg), treatAsPositiveMatch) in addPackages()
|
D | RewriteAnnotations.kt | 51 fun modifyAnnotationSources(codebase: Codebase?, source: File, target: File, pkg: String = "") { in <lambda>() 56 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in <lambda>() 71 val newPackage = if (pkg.isEmpty()) fileName else "$pkg.$fileName" in <lambda>() 79 fun copyAnnotations(codebase: Codebase, source: File, target: File, pkg: String = "") { in <lambda>() 84 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in <lambda>() 94 val newPackage = if (pkg.isEmpty()) fileName else "$pkg.$fileName" in <lambda>()
|
D | ApiAnalyzer.kt | 507 val pkg = codebase.findPackage(pkgName) ?: continue in <lambda>() constant 508 pkg.hidden = true in <lambda>() 515 val pkg = codebase.findPackage(pkgName) ?: continue in <lambda>() constant 516 pkg.emit = false in <lambda>() 543 override fun visitPackage(pkg: PackageItem) { in <lambda>() 545 options.hidePackages.contains(pkg.qualifiedName()) -> pkg.hidden = true in <lambda>() 546 pkg.modifiers.hasShowAnnotation() -> pkg.hidden = false in <lambda>() 547 pkg.modifiers.hasHideAnnotations() -> pkg.hidden = true in <lambda>() 549 val containingPackage = pkg.containingPackage() in <lambda>() 552 pkg.hidden = true in <lambda>() [all …]
|
D | ExtractAnnotations.kt | 110 for (pkg in sortedPackages) { in <lambda>() method 112 val name = pkg.qualifiedName().replace('.', '/') + "/annotations.xml" in <lambda>() 118 val pairs = packageToAnnotationPairs[pkg] ?: continue in <lambda>() 161 val pkg = when (item) { in <lambda>() constant 167 val list = packageToAnnotationPairs[pkg] ?: run { in <lambda>() 170 packageToAnnotationPairs[pkg] = new in <lambda>()
|
D | DocAnalyzer.kt | 737 val pkg = cls.containingPackage() in <lambda>() constant 738 pkgApi[pkg] = min(pkgApi[pkg] ?: Integer.MAX_VALUE, since) in <lambda>() 752 for ((pkg, api) in pkgApi.entries) { in <lambda>() constant 754 addApiLevelDocumentation(code, pkg) in <lambda>()
|
D | Driver.kt | 1169 var pkg = file.parentFile?.listFiles() in gatherPackageJavadoc() variable 1173 if (pkg == null) { in gatherPackageJavadoc() 1176 pkg = file.parentFile.path.substring(prefix.length).trim('/').replace("/", ".") in gatherPackageJavadoc() 1178 map[pkg] = contents in gatherPackageJavadoc() 1180 hiddenPackages.add(pkg) in gatherPackageJavadoc() 1216 val pkg = findPackage(file) ?: return null in findRoot() constant 1218 val endIndex = parent.path.length - pkg.length in findRoot()
|
D | SignatureWriter.kt | 56 override fun visitPackage(pkg: PackageItem) { in <lambda>() 58 writeModifiers(pkg) in <lambda>() 62 override fun afterVisitPackage(pkg: PackageItem) { in <lambda>()
|
D | ArtifactTagger.kt | 100 val pkg = codebase.findPackage(specPkg.qualifiedName()) ?: continue in applyArtifactsFromSpec() constant 101 for (cls in pkg.allClasses()) { in applyArtifactsFromSpec()
|
D | Reporter.kt | 162 val pkg = item.containingPackage(false) in report() constant 163 if (pkg != null && !packageFilter.matches(pkg)) { in report()
|
D | JDiffXmlWriter.kt | 79 override fun visitPackage(pkg: PackageItem) { in <lambda>() 84 override fun afterVisitPackage(pkg: PackageItem) { in <lambda>()
|
/tools/acloud/setup/ |
D | setup_common.py | 57 def InstallPackage(pkg): argument 67 print(CheckCmdOutput(PKG_INSTALL_CMD % pkg, 71 logger.error("Package install for %s failed: %s", pkg, cpe.output) 73 "Could not install package [" + pkg + "], :" + str(cpe.output)) 75 if not PackageInstalled(pkg, compare_version=False): 78 pkg + "]")
|
D | host_setup_runner.py | 81 [setup_common.PKG_INSTALL_CMD % pkg 82 for pkg in self.PACKAGES 83 if not setup_common.PackageInstalled(pkg)]) 91 for pkg in self.PACKAGES: 92 setup_common.InstallPackage(pkg)
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | PackageDocs.kt | 24 fun getOverviewDocumentation(pkg: PackageItem): String? = overviewDocs[pkg.qualifiedName()]
|
D | Codebase.kt | 146 … getPackages().packages.forEach { pkg -> pkg.allClasses().forEach { cls -> cls.tag = false } } in <lambda>() method
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/ |
D | ItemVisitor.kt | 55 open fun visitPackage(pkg: PackageItem) {} in visitPackage() 71 open fun afterVisitPackage(pkg: PackageItem) {} in afterVisitPackage()
|