Home
last modified time | relevance | path

Searched refs:apkFile (Results 1 – 7 of 7) sorted by relevance

/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DDeviceInteractionHelperInstaller.java110 File apkFile = testInfo.getDependencyFile(apkName, true); in setUp() local
111 checkApkFile(device, apkFile, pkg); in setUp()
112 installHelperApk(device, apkFile, pkg); in setUp()
139 private void checkApkFile(ITestDevice device, File apkFile, String expectedPackage) in checkApkFile() argument
141 String path = apkFile.getPath(); in checkApkFile()
142 if (!apkFile.canRead()) { in checkApkFile()
147 AaptParser parser = parseApk(apkFile); in checkApkFile()
166 protected AaptParser parseApk(File apkFile) { in parseApk() argument
167 return AaptParser.parse(apkFile); in parseApk()
171 private void installHelperApk(ITestDevice device, File apkFile, String apkPackage) in installHelperApk() argument
[all …]
DApkInstaller.java60 File apkFile = null; in getLocalPathForFilename() local
62 apkFile = getTestFile(testInfo.getBuildInfo(), apkFileName); in getLocalPathForFilename()
63 if (!apkFile.isFile()) { in getLocalPathForFilename()
72 return apkFile; in getLocalPathForFilename()
DApkInstrumentationPreparer.java136 File apkFile = buildHelper.getTestFile(mApkFileName); in instrument() local
137 if (!apkFile.exists()) { in instrument()
153 instrTest.setInstallFile(apkFile); in instrument()
DMediaPreparer.java574 File apkFile = null; in setMaxRes() local
576 apkFile = buildHelper.getTestFile(APP_APK); in setMaxRes()
577 if (!apkFile.exists()) { in setMaxRes()
595 instrTest.setInstallFile(apkFile); in setMaxRes()
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DDirectoryBasedModuleInfoProvider.java96 public String parsePackageName(File apkFile) throws IOException {
97 AaptParser parseResult = AaptParser.parse(apkFile, AaptParser.AaptVersion.AAPT2);
99 CLog.e(String.format("Failed to parse package name with AAPT for %s", apkFile));
100 return UNKNOWN_PACKAGE + "_" + apkFile.getName();
108 String parsePackageName(File apkFile) throws IOException;
DApkInstaller.java272 public String parsePackageName(Path apkFile) throws IOException { in parsePackageName() argument
274 AaptParser.parse(apkFile.toFile(), AaptParser.AaptVersion.AAPT2); in parsePackageName()
277 String.format("Failed to parse package name with AAPT for %s", apkFile)); in parsePackageName()
285 String parsePackageName(Path apkFile) throws IOException; in parsePackageName() argument
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DDeviceInteractionHelperInstallerTest.java63 protected AaptParser parseApk(File apkFile) { in setUp()
64 return mAaptParsers.getOrDefault(apkFile, AaptParser.parse(apkFile)); in setUp()