Home
last modified time | relevance | path

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

123

/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/
DJvmtiAttachingHostTest.java64 public void run(ITestDevice device, String pkg, String apk, String abiName); in run() argument
70 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { in testJvmtiAttachDuringBind() argument
72 runAttachTestCmd(device, pkg, "--attach-agent-bind " + AGENT); in testJvmtiAttachDuringBind()
80 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { in testJvmtiAttachEarly() argument
82 String pwd = device.executeShellCommand("run-as " + pkg + " pwd"); in testJvmtiAttachEarly()
96 installLibToDataData(device, pkg, abiName, apk, pwd, AGENT, in testJvmtiAttachEarly()
98 runAttachTestCmd(device, pkg, "--attach-agent " + agentInDataData); in testJvmtiAttachEarly()
106 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { in testJvmtiAgentAppInternal() argument
108 String setAgentAppCmd = "cmd activity set-agent-app " + pkg + " " + AGENT; in testJvmtiAgentAppInternal()
115 runAttachTestCmd(device, pkg, ""); in testJvmtiAgentAppInternal()
[all …]
/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.java61 for (ApiPackage pkg : packages) { in printXmlReport()
62 if (packageFilter.accept(pkg.getName()) && pkg.getTotalMethods() > 0) { in printXmlReport()
63 int pkgTotal = pkg.getTotalMethods(); in printXmlReport()
65 int pkgTotalCovered = pkg.getNumCoveredMethods(); in printXmlReport()
67 out.println("<package name=\"" + pkg.getName() in printXmlReport()
71 + Math.round(pkg.getCoveragePercentage()) in printXmlReport()
74 List<ApiClass> classes = new ArrayList<ApiClass>(pkg.getClasses()); in printXmlReport()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java40 for (PackageInfo pkg : pm.getInstalledPackages(0)) { in collectDeviceInfo()
42 store.addResult(NAME, pkg.packageName); in collectDeviceInfo()
43 store.addResult(VERSION_NAME, pkg.versionName); in collectDeviceInfo()
45 if (pkg.applicationInfo != null) { in collectDeviceInfo()
46 String dir = pkg.applicationInfo.sourceDir; in collectDeviceInfo()
/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/tests/tests/provider/src/android/provider/cts/
DMediaStoreUiTest.java167 final String pkg = ri.activityInfo.packageName; in testImageCapture() local
172 ui.grantRuntimePermission(pkg, android.Manifest.permission.CAMERA); in testImageCapture()
173 ui.grantRuntimePermission(pkg, android.Manifest.permission.ACCESS_COARSE_LOCATION); in testImageCapture()
174 ui.grantRuntimePermission(pkg, android.Manifest.permission.ACCESS_FINE_LOCATION); in testImageCapture()
175 ui.grantRuntimePermission(pkg, android.Manifest.permission.RECORD_AUDIO); in testImageCapture()
176 ui.grantRuntimePermission(pkg, android.Manifest.permission.READ_EXTERNAL_STORAGE); in testImageCapture()
177 ui.grantRuntimePermission(pkg, android.Manifest.permission.WRITE_EXTERNAL_STORAGE); in testImageCapture()
201 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); in testImageCapture()
204 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); in testImageCapture()
206 maybeClick(new UiSelector().resourceId(pkg + ":id/done_button")); in testImageCapture()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DCorruptApkTests.java70 public void uninstall(String pkg) throws Exception { in uninstall() argument
72 if (device.getInstalledPackageNames().contains(pkg)) { in uninstall()
73 device.uninstallPackage(pkg); in uninstall()
105 private void assertInstallNoFatalError(String filename, String pkg) throws Exception { in assertInstallNoFatalError() argument
117 assertThat(device.getInstalledPackageNames()).doesNotContain(pkg); in assertInstallNoFatalError()
/cts/tests/tests/permission/src/android/permission/cts/
DAppIdleStatePermissionTest.java53 for (PackageInfo pkg : holding) { in testChangeAppIdleStatePermission()
54 int uid = pm.getApplicationInfo(pkg.packageName, 0).uid; in testChangeAppIdleStatePermission()
56 pkgNames += pkg.packageName + "\n"; in testChangeAppIdleStatePermission()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DH264Yuv420_8bitBpBitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun) { in H264Yuv420_8bitBpBitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun); in H264Yuv420_8bitBpBitstreamsTest()
DH264Yuv420_8bitMpBitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun) { in H264Yuv420_8bitMpBitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun); in H264Yuv420_8bitMpBitstreamsTest()
DVp9Yuv420BitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun) { in Vp9Yuv420BitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun); in Vp9Yuv420BitstreamsTest()
DH264Yuv420_8bitHpBitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun) { in H264Yuv420_8bitHpBitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun); in H264Yuv420_8bitHpBitstreamsTest()
DHevcYuv420BitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun) { in HevcYuv420BitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun); in HevcYuv420BitstreamsTest()
DVp8BitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun) { in Vp8BitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun); in Vp8BitstreamsTest()
DVp8BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in Vp8BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in Vp8BitstreamsFullTest()
DH264Yuv420_8bitBpBitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in H264Yuv420_8bitBpBitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in H264Yuv420_8bitBpBitstreamsFullTest()
DH264Yuv420_8bitHpBitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in H264Yuv420_8bitHpBitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in H264Yuv420_8bitHpBitstreamsFullTest()
DHevcYuv420BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in HevcYuv420BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in HevcYuv420BitstreamsFullTest()
DVp9Yuv420BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in Vp9Yuv420BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in Vp9Yuv420BitstreamsFullTest()
DH264Yuv420_8bitMpBitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in H264Yuv420_8bitMpBitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in H264Yuv420_8bitMpBitstreamsFullTest()
DVp9Yuv444BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in Vp9Yuv444BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in Vp9Yuv444BitstreamsFullTest()
DHevcYuv422BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in HevcYuv422BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in HevcYuv422BitstreamsFullTest()
DHevcYuv444BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in HevcYuv444BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in HevcYuv444BitstreamsFullTest()
DHevcYuv400BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in HevcYuv400BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in HevcYuv400BitstreamsFullTest()
DVp9Yuv422BitstreamsFullTest.java34 BitstreamPackage pkg, BitstreamPackage packageToRun) { in Vp9Yuv422BitstreamsFullTest() argument
35 super(prefix, path, pkg, packageToRun); in Vp9Yuv422BitstreamsFullTest()

123