/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | DumpsysPackageReceiverTest.java | 43 PackageInfo pkg = p.getPackages().get("com.android.soundrecorder"); in testParse_classic() local 44 assertEquals("com.android.soundrecorder", pkg.getPackageName()); in testParse_classic() 45 assertTrue(pkg.isSystemApp()); in testParse_classic() 46 assertFalse(pkg.isUpdatedSystemApp()); in testParse_classic() 47 assertEquals("3.1.36 (88)", pkg.getVersionName()); in testParse_classic() 64 PackageInfo pkg = p.getPackages().get("com.android.soundrecorder"); in testParse_future() local 65 assertNotNull("failed to parse package data", pkg); in testParse_future() 66 assertEquals("com.android.soundrecorder", pkg.getPackageName()); in testParse_future() 67 assertTrue(pkg.isSystemApp()); in testParse_future() 68 assertFalse(pkg.isUpdatedSystemApp()); in testParse_future() [all …]
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | ShowForStubPurposesAnnotationTest.kt | 525 package test.pkg; 558 package test.pkg; 597 package test.pkg { in Complecated case - SystemApi + ModuleApi() 602 public class ModuleClassExtendingPublic extends test.pkg.PublicSubClass { in Complecated case - SystemApi + ModuleApi() 614 public class PublicSubClass extends test.pkg.PublicClass { in Complecated case - SystemApi + ModuleApi() 634 package test.pkg { in Complecated case - SystemApi only() 643 public class PublicSubClass extends test.pkg.PublicClass { in Complecated case - SystemApi only() 664 package test.pkg { in Hierarchy test - Module API only() 669 public class ModuleClassExtendingPublic extends test.pkg.PublicSubClass { in Hierarchy test - Module API only() 693 package test.pkg; in Hierarchy test - Module API only with lint() [all …]
|
D | RequiresFeatureTest.kt | 39 package test.pkg; 61 package android.pkg.other; 76 package test.pkg;
|
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/ |
D | TextCodebaseBuilder.kt | 62 val pkg = codebase.findPackage(pkgName) in getOrAddPackage() constant 63 if (pkg != null) { in getOrAddPackage() 64 return pkg in getOrAddPackage() 77 fun addPackage(pkg: PackageItem) { in addPackage() 78 codebase.addPackage(pkg as TextPackageItem) in addPackage() 82 val pkg = getOrAddPackage(cls.containingPackage().qualifiedName()) in addClass() constant 83 pkg.addClass(cls as TextClassItem) in addClass() 126 val pkg = getOrAddPackage(fullClass.containingPackage().qualifiedName()) in getOrAddClass() constant 127 pkg.addClass(newClass) in getOrAddClass() 128 newClass.setContainingPackage(pkg) in getOrAddClass()
|
D | TextCodebase.kt | 210 val pkg = in <lambda>() constant 224 stubClass.setContainingPackage(pkg) in <lambda>() 225 pkg.addClass(stubClass) in <lambda>()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | StubWriter.kt | 64 override fun visitPackage(pkg: PackageItem) { in visitPackage() 65 getPackageDir(pkg, create = true) in visitPackage() 67 writePackageInfo(pkg) in visitPackage() 70 pkg.overviewDocumentation?.let { writeDocOverview(pkg, it) } in visitPackage() 74 fun writeDocOverview(pkg: PackageItem, content: String) { in writeDocOverview() 79 val sourceFile = File(getPackageDir(pkg), "overview.html") in writeDocOverview() 96 private fun writePackageInfo(pkg: PackageItem) { in writePackageInfo() 97 val annotations = pkg.modifiers.annotations() in writePackageInfo() 100 config.includeDocumentationInStubs && pkg.documentation.isNotBlank() in writePackageInfo() 102 val sourceFile = File(getPackageDir(pkg), "package-info.java") in writePackageInfo() [all …]
|
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/ |
D | BaseItemVisitor.kt | 123 override fun visit(pkg: PackageItem) { in visit() 124 if (skip(pkg)) { in visit() 128 visitItem(pkg) in visit() 129 visitPackage(pkg) in visit() 131 for (cls in pkg.topLevelClasses()) { in visit() 135 afterVisitPackage(pkg) in visit() 136 afterVisitItem(pkg) in visit() 179 open fun visitPackage(pkg: PackageItem) {} in visitPackage() 201 open fun afterVisitPackage(pkg: PackageItem) {} in afterVisitPackage()
|
D | TraversingVisitor.kt | 91 final override fun visit(pkg: PackageItem) { in visit() 92 when (visitItem(pkg)) { in visit() 100 for (cls in pkg.topLevelClasses()) { in visit()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/ |
D | PackageFilter.kt | 43 val pkg = arg.removePrefix("-").removePrefix("+") in addPackages() constant 44 val index = pkg.indexOf('*') in addPackages() 46 if (index < pkg.length - 1) { in addPackages() 49 "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 | ApiPredicate.kt | 150 var pkg: PackageItem? = clazz.containingPackage() in test() variable 151 while (pkg != null) { in test() 152 hidden = hidden or pkg.hidden in test() 153 docOnly = docOnly or pkg.docOnly in test() 154 removed = removed or pkg.removed in test() 155 pkg = pkg.containingPackage() in test()
|
D | ApiAnalyzer.kt | 552 val pkg = codebase.findPackage(pkgName) ?: continue in <lambda>() constant 553 pkg.emit = false in <lambda>() 610 override fun visitPackage(pkg: PackageItem) { in <lambda>() 612 config.hidePackages.contains(pkg.qualifiedName()) -> pkg.hidden = true in <lambda>() 614 val showability = pkg.showability in <lambda>() 616 showability.show() -> pkg.hidden = false in <lambda>() 617 showability.hide() -> pkg.hidden = true in <lambda>() 621 val containingPackage = pkg.containingPackage() in <lambda>() 624 pkg.hidden = true in <lambda>() 627 pkg.docOnly = true in <lambda>()
|
D | ExtractAnnotations.kt | 117 for (pkg in sortedPackages) { in <lambda>() method 119 val name = pkg.qualifiedName().replace('.', '/') + "/annotations.xml" in <lambda>() 125 val pairs = packageToAnnotationPairs[pkg] ?: continue in <lambda>() 169 val pkg = in <lambda>() constant 177 packageToAnnotationPairs[pkg] in <lambda>() 180 packageToAnnotationPairs[pkg] = new 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 | 97 [setup_common.PKG_INSTALL_CMD % pkg 98 for pkg in self.PACKAGES 99 if not setup_common.PackageInstalled(pkg)]) 107 for pkg in self.PACKAGES: 108 setup_common.InstallPackage(pkg)
|
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiPackageItem.kt | 68 val pkg = codebase.findPackage(parentPackage) in containingClass() constant 69 if (pkg != null) { in containingClass() 70 containingPackageField = pkg in containingClass() 71 return pkg in containingClass() 140 val pkg = in hashCode() constant 150 return pkg in hashCode()
|
D | PsiBasedCodebase.kt | 314 val pkg = findPackage(pkgName) in <lambda>() constant 315 if (pkg == null) { in <lambda>() 322 pkg.addClass(classItem) in <lambda>() 405 for (pkg in packageMap.values) { in <lambda>() constant 406 var name = pkg.qualifiedName() in <lambda>() 419 pkg.containingPackageField = parent in <lambda>() 541 var pkg = packageName in <lambda>() variable 543 if (hiddenPackages[pkg] != null) { in <lambda>() 544 hiddenPackages[packageName] = hiddenPackages[pkg] in <lambda>() 545 if (hiddenPackages[pkg] == true) { in <lambda>() [all …]
|
D | PsiSourceParser.kt | 356 var pkg = in gatherPackageJavadoc() variable 363 if (pkg == null) { in gatherPackageJavadoc() 366 pkg = file.parentFile.path.substring(prefix.length).trim('/').replace("/", ".") in gatherPackageJavadoc() 368 map[pkg] = contents in gatherPackageJavadoc() 370 hiddenPackages.add(pkg) in gatherPackageJavadoc()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/model/visitors/ |
D | ApiVisitor.kt | 171 override fun visit(pkg: PackageItem) { in visit() 172 if (!pkg.emit) { in visit() 178 pkg.topLevelClasses().asSequence().sortedWith(ClassItem.classNameSorter()).forEach { in visit() 184 afterVisitPackage(pkg) in visit() 185 afterVisitItem(pkg) in visit() 337 val pkg = cls.containingPackage() in accept() constant 338 visitItem(pkg) in accept() 339 visitPackage(pkg) in accept()
|
/tools/acloud/hostcleanup/ |
D | host_cleanup_runner.py | 119 self.purge_packages = [pkg for pkg in packages 120 if setup_common.PackageInstalled(pkg)] 123 _PURGE_PACKAGE_CMD % pkg for pkg in self.purge_packages]
|
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/ |
D | AddWhitelistPackage.java | 39 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/metalava/metalava/src/main/java/com/android/tools/metalava/cli/internal/ |
D | RewriteAnnotations.kt | 39 fun modifyAnnotationSources(codebase: Codebase?, source: File, target: File, pkg: String = "") { in modifyAnnotationSources() 43 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in modifyAnnotationSources() 52 val newPackage = if (pkg.isEmpty()) fileName else "$pkg.$fileName" in modifyAnnotationSources()
|
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/ |
D | TurbineUtils.kt | 30 val optPkg = unit.pkg() in getPackageName() 31 val pkg = if (optPkg.isPresent()) optPkg.get() else null in getPackageName() constant 32 return pkg?.let { extractNameFromIdent(it.name()) } ?: "" in getPackageName()
|
/tools/aadevtools/validation/ |
D | batch_install_app.sh | 53 pkg=$1 54 cmd="adb shell dumpsys package ${pkg}" 85 pkg=${pkg0%\' versionCode*}
|
/tools/asuite/atest/ |
D | atest_completion.sh | 56 for pkg in "$@"; do 57 if ! $(dpkg -l $pkg | egrep -q '^ii'); then 58 missing_pkgs+=($pkg)
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | AppSetup.java | 250 for (String pkg : pkgs) { in uninstallAllApps() 251 String result = device.uninstallPackage(pkg); in uninstallAllApps() 253 CLog.w("Uninstall of %s on %s failed: %s", pkg, device.getSerialNumber(), in uninstallAllApps()
|