Home
last modified time | relevance | path

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

/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiCoverage.java30 public void addPackage(ApiPackage pkg) { in addPackage() argument
31 mPackages.put(pkg.getName(), pkg); in addPackage() local
45 ApiPackage pkg = entry.getValue(); in resolveSuperClasses() local
46 pkg.resolveSuperClasses(mPackages); in resolveSuperClasses()
DXmlReport.java59 for (ApiPackage pkg : packages) { in printXmlReport()
60 if (packageFilter.accept(pkg.getName()) && pkg.getTotalMethods() > 0) { in printXmlReport()
61 int pkgTotal = pkg.getTotalMethods(); in printXmlReport()
63 int pkgTotalCovered = pkg.getNumCoveredMethods(); in printXmlReport()
65 out.println("<package name=\"" + pkg.getName() in printXmlReport()
69 + Math.round(pkg.getCoveragePercentage()) in printXmlReport()
72 List<ApiClass> classes = new ArrayList<ApiClass>(pkg.getClasses()); in printXmlReport()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java39 for (PackageInfo pkg : pm.getInstalledPackages(0)) { in collectDeviceInfo()
41 addResult(NAME, pkg.packageName); in collectDeviceInfo()
42 addResult(VERSION_NAME, pkg.versionName); in collectDeviceInfo()
44 String dir = pkg.applicationInfo.sourceDir; in collectDeviceInfo()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DTestResultsTest.java67 TestPackageResult pkg = parser.getPackages().iterator().next(); in testParse_package() local
68 assertEquals("pkgName", pkg.getName()); in testParse_package()
69 assertEquals("appPkgName", pkg.getAppPackageName()); in testParse_package()
70 assertEquals("digValue", pkg.getDigest()); in testParse_package()
94 TestPackageResult pkg = parser.getPackages().iterator().next(); in testParse_test() local
95 TestSuite comSuite = pkg.getTestSuites().iterator().next(); in testParse_test()
/cts/tools/cts-reference-app-lib/src/android/cts/refapp/
DReferenceAppTestCase.java44 public ReferenceAppTestCase(String pkg, Class<T> activityClass, int maxStartupTimeMs) { in ReferenceAppTestCase() argument
45 super(pkg, activityClass); in ReferenceAppTestCase()
55 public ReferenceAppTestCase(String pkg, Class<T> activityClass) { in ReferenceAppTestCase() argument
56 this(pkg, activityClass, DEFAULT_MAX_STATUP_TIME_MS); in ReferenceAppTestCase()
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/
DPermissionsHostTest.java131 private void grantPermission(String pkg, String permission) throws Exception { in grantPermission() argument
132 assertEmpty(getDevice().executeShellCommand("pm grant " + pkg + " " + permission)); in grantPermission()
135 private void revokePermission(String pkg, String permission) throws Exception { in revokePermission() argument
136 assertEmpty(getDevice().executeShellCommand("pm revoke " + pkg + " " + permission)); in revokePermission()
139 private void setAppOps(String pkg, String op, String mode) throws Exception { in setAppOps() argument
140 assertEmpty(getDevice().executeShellCommand("appops set " + pkg + " " + op + " " + mode)); in setAppOps()
/cts/
DCtsBuild.mk32 $(foreach pkg,$(1),$(CTS_TESTCASES_OUT)/$(pkg).apk)
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java36 .pkg("com.google.android.packageinstaller");
40 .pkg("com.google.android.packageinstaller");
44 .pkg("com.google.android.packageinstaller");
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestResults.java70 TestPackageResult pkg = new TestPackageResult(); in parse() local
71 pkg.parse(parser); in parse()
72 if (pkg.getId() != null) { in parse()
73 mPackageResults.put(pkg.getId(), pkg); in parse() local
DPlanCreator.java122 for (TestPackageResult pkg : mResult.getPackages()) { in createDerivedPlan()
123 Collection<TestIdentifier> filteredTests = pkg.getTestsWithStatus(mResultFilter); in createDerivedPlan()
124 String pkgId = pkg.getId(); in createDerivedPlan()
/cts/suite/cts/deviceTests/jank2/src/android/cts/jank/ui/
DCtsDeviceJankUi.java46 getUiDevice().wait(Until.hasObject(By.pkg(PACKAGE)), DEFAULT_ANIMATION_TIME); in setUp()
/cts/tests/leanbackjank/src/android/cts/leanbackjank/
DCtsDeviceLeanback.java77 if (!getUiDevice().wait(Until.hasObject(By.pkg(APP_PACKAGE)), WAIT_TIMEOUT)) { in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java66 .pkg("android");
69 .pkg("android");
/cts/tests/signature/src/android/signature/cts/
DJDiffClassDescription.java86 public JDiffClassDescription(String pkg, String className) { in JDiffClassDescription() argument
87 this(pkg, className, new ResultObserver() { in JDiffClassDescription()
103 public JDiffClassDescription(String pkg, String className, ResultObserver resultObserver) { in JDiffClassDescription() argument
104 mPackageName = pkg; in JDiffClassDescription()
DSignatureTest.java274 String pkg) { in loadClassInfo() argument
276 JDiffClassDescription currentClass = new JDiffClassDescription(pkg, in loadClassInfo()