Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 42) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiBasedCodebase.kt233 for (pkg in added) { in <lambda>() constant
234 pkg.finishInitialization() in <lambda>()
270 val pkg = registerPackage(psiPackage, sortedClasses, packageHtml, pkgName) in <lambda>() constant
271 pkg.emit = false // don't expose these packages in the API signature files, stubs, etc in <lambda>()
275 for (pkg in packageMap.values) { in <lambda>() constant
276 var name = pkg.qualifiedName() in <lambda>()
288 pkg.containingPackageField = parent in <lambda>()
404 for (pkg in packageMap.values) { in <lambda>() constant
405 pkg.finishInitialization() in <lambda>()
433 var pkg = packageName in <lambda>() variable
[all …]
DPsiPackageItem.kt60 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()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDumpsysPackageReceiverTest.java39 PackageInfo pkg = p.getPackages().get("com.android.soundrecorder"); in testParse_classic() local
40 assertEquals("com.android.soundrecorder", pkg.getPackageName()); in testParse_classic()
41 assertTrue(pkg.isSystemApp()); in testParse_classic()
42 assertFalse(pkg.isUpdatedSystemApp()); in testParse_classic()
43 assertEquals("3.1.36 (88)", pkg.getVersionName()); in testParse_classic()
59 PackageInfo pkg = p.getPackages().get("com.android.soundrecorder"); in testParse_future() local
60 assertNotNull("failed to parse package data", pkg); in testParse_future()
61 assertEquals("com.android.soundrecorder", pkg.getPackageName()); in testParse_future()
62 assertTrue(pkg.isSystemApp()); in testParse_future()
63 assertFalse(pkg.isUpdatedSystemApp()); in testParse_future()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextCodebase.kt185 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 …]
DApiFile.java184 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/stub/
DStubWriter.kt84 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/test/java/com/android/tools/metalava/
DShowForStubPurposesAnnotationTest.kt483 package test.pkg;
515 package test.pkg;
552 package test.pkg { in Complecated case - SystemApi + ModuleApi()
557 public class ModuleClassExtendingPublic extends test.pkg.PublicSubClass { in Complecated case - SystemApi + ModuleApi()
569 public class PublicSubClass extends test.pkg.PublicClass { in Complecated case - SystemApi + ModuleApi()
588 package test.pkg { in Complecated case - SystemApi only()
597 public class PublicSubClass extends test.pkg.PublicClass { in Complecated case - SystemApi only()
618 package test.pkg { in Hierarchy test - Module API only()
623 public class ModuleClassExtendingPublic extends test.pkg.PublicSubClass { in Hierarchy test - Module API only()
644 package test.pkg; in Hierarchy test - Module API only with lint()
[all …]
DDriverTest.kt571 val pkg = cls.packageName in <lambda>() constant
572 val relative = pkg?.replace('.', File.separatorChar) ?: "." in <lambda>()
583 val pkg = cls.packageName in <lambda>() constant
584 val relative = pkg?.replace('.', File.separatorChar) ?: "." in <lambda>()
1296 for ((pkg, xml) in extractAnnotations) { in <lambda>() constant
1297 assertPackageXml(pkg, extractedAnnotationsZip, xml) in <lambda>()
1419 private fun assertPackageXml(pkg: String, output: File, @Language("XML") expected: String) { in <lambda>()
1423 "jar:" + SdkUtils.fileToUrlString(output) + "!/" + pkg.replace('.', '/') + in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiAnalyzer.kt509 val pkg = codebase.findPackage(pkgName) ?: continue in <lambda>() constant
510 pkg.hidden = true in <lambda>()
517 val pkg = codebase.findPackage(pkgName) ?: continue in <lambda>() constant
518 pkg.emit = false in <lambda>()
545 override fun visitPackage(pkg: PackageItem) { in <lambda>()
547 options.hidePackages.contains(pkg.qualifiedName()) -> pkg.hidden = true in <lambda>()
548 pkg.modifiers.hasShowAnnotation() -> pkg.hidden = false in <lambda>()
549 pkg.modifiers.hasHideAnnotations() -> pkg.hidden = true in <lambda>()
551 val containingPackage = pkg.containingPackage() in <lambda>()
554 pkg.hidden = true in <lambda>()
[all …]
DRewriteAnnotations.kt51 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>()
DDocReplacement.kt36 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>()
DPackageFilter.kt46 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()
DExtractAnnotations.kt111 for (pkg in sortedPackages) { in <lambda>() method
113 val name = pkg.qualifiedName().replace('.', '/') + "/annotations.xml" in <lambda>()
119 val pairs = packageToAnnotationPairs[pkg] ?: continue in <lambda>()
162 val pkg = when (item) { in <lambda>() constant
168 val list = packageToAnnotationPairs[pkg] ?: run { in <lambda>()
171 packageToAnnotationPairs[pkg] = new in <lambda>()
DDriver.kt1135 pkg: String in addHiddenPackages()
1154 if (pkg.isEmpty()) in addHiddenPackages()
1156 else pkg + "." + child.name in addHiddenPackages()
1157 else pkg in addHiddenPackages()
1184 var realPkg = pkg in addHiddenPackages()
1251 val pkg = findPackage(file) ?: return null in findRoot() constant
1253 val endIndex = parent.path.length - pkg.length in findRoot()
DDocAnalyzer.kt741 val pkg = cls.containingPackage() in <lambda>() constant
742 pkgApi[pkg] = min(pkgApi[pkg] ?: Integer.MAX_VALUE, since) in <lambda>()
756 for ((pkg, api) in pkgApi.entries) { in <lambda>() constant
758 addApiLevelDocumentation(code, pkg) in <lambda>()
DSignatureWriter.kt56 override fun visitPackage(pkg: PackageItem) { in <lambda>()
58 writeModifiers(pkg) in <lambda>()
62 override fun afterVisitPackage(pkg: PackageItem) { in <lambda>()
DReporter.kt162 val pkg = item.containingPackage(false) in report() constant
163 if (pkg != null && !packageFilter.matches(pkg)) { in report()
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DApiPredicate.kt88 var pkg: PackageItem? = clazz.containingPackage() in test() variable
89 while (pkg != null) { in test()
90 hidden = hidden or pkg.hidden in test()
91 docOnly = docOnly or pkg.docOnly in test()
92 removed = removed or pkg.removed in test()
93 pkg = pkg.containingPackage() in test()
/tools/acloud/setup/
Dsetup_common.py57 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 + "]")
Dhost_setup_runner.py81 [setup_common.PKG_INSTALL_CMD % pkg
82 for pkg in self.PACKAGES
83 if not setup_common.PackageInstalled(pkg)])
92 for pkg in self.PACKAGES:
93 setup_common.InstallPackage(pkg)
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/
DAddWhitelistPackage.java39 for (String pkg : mPackages) { in setUp()
41 .executeShellCommand(String.format("dumpsys deviceidle whitelist +%s", pkg)); in setUp()
49 for (String pkg : mPackages) { in tearDown()
51 .executeShellCommand(String.format("dumpsys deviceidle whitelist -%s", pkg)); in tearDown()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java848 public final boolean isPackageInstalled(String pkg) throws DeviceNotAvailableException { in isPackageInstalled() argument
849 return isPackageInstalled(getDevice(), pkg); in isPackageInstalled()
859 public final boolean isPackageInstalled(ITestDevice device, String pkg) in isPackageInstalled() argument
862 if (pkg.equals(installedPackage)) { in isPackageInstalled()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAppSetup.java240 for (String pkg : pkgs) { in uninstallAllApps()
241 String result = device.uninstallPackage(pkg); in uninstallAllApps()
243 CLog.w("Uninstall of %s on %s failed: %s", pkg, device.getSerialNumber(), in uninstallAllApps()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt827 val pkg = cls.containingPackage() in accept() constant
828 visitor.visitItem(pkg) in accept()
829 visitor.visitPackage(pkg) in accept()
DPackageDocs.kt24 fun getOverviewDocumentation(pkg: PackageItem): String? = overviewDocs[pkg.qualifiedName()]

12