Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBuildTestsZipUtilsTest.java46 File apkFile = in testGetApkFile_notFound() local
54 assertNull(apkFile); in testGetApkFile_notFound()
71 File apkFile = in testGetApkFile_fromTestDir() local
79 assertNotNull(apkFile); in testGetApkFile_fromTestDir()
80 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir()
102 File apkFile = in testGetApkFile_fromTestDir_testCase() local
110 assertNotNull(apkFile); in testGetApkFile_fromTestDir_testCase()
111 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir_testCase()
133 File apkFile = in testGetApkFile_fromTestDir_differentModule_testCase() local
141 assertNotNull(apkFile); in testGetApkFile_fromTestDir_differentModule_testCase()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAppSetup.java114 for (VersionedFile apkFile : apps) { in setUp()
116 AaptParser aaptParser = doAaptParse(apkFile.getFile()); in setUp()
121 apkFile.getFile().getName()), in setUp()
128 apkFile.toString(), device.getSerialNumber(), in setUp()
136 apkFile.getFile(), true, args.toArray(new String[args.size()])); in setUp()
144 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp()
149 addPackageNameToUninstall(apkFile.getFile(), device); in setUp()
169 AaptParser doAaptParse(File apkFile) { in doAaptParse() argument
170 return AaptParser.parse(apkFile); in doAaptParse()
173 private void addPackageNameToUninstall(File apkFile, ITestDevice device) in addPackageNameToUninstall() argument
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DOldApkReadTest.java30 File apkFile = ApkZFileTestUtils.getResource("/testData/packaging/test.apk"); in testReadOldApk() local
31 assertTrue(apkFile.exists()); in testReadOldApk()
33 try (ZFile zf = new ZFile(apkFile, new ZFileOptions())) { in testReadOldApk()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstaller.java39 File apkFile = null; in getLocalPathForFilename() local
41 apkFile = testInfo.getDependencyFile(apkFileName, true); in getLocalPathForFilename()
49 return apkFile; in getLocalPathForFilename()
/tools/tradefederation/contrib/src/com/android/monkey/
DAppPkgInjector.java70 for (VersionedFile apkFile : appBuild.getAppPackageFiles()) { in setUp()
71 AaptParser aapt = AaptParser.parse(apkFile.getFile()); in setUp()
76 "aapt parse of %s failed", apkFile.getFile().getAbsolutePath()), in setUp()
85 apkFile.getFile().getAbsolutePath()), in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAaptParser.java132 public static AaptParser parse(File apkFile) { in parse() argument
142 apkFile.getAbsolutePath()); in parse()
152 apkFile.getAbsoluteFile(), result.getStdout()); in parse()
164 apkFile.getAbsolutePath(), in parse()
176 apkFile.getAbsoluteFile(), result.getStdout()); in parse()
DBuildTestsZipUtils.java147 File apkFile = buildInfo.stageRemoteFile(apkFileName, testsDir); in getApkFile() local
148 if (apkFile != null) { in getApkFile()
149 return apkFile; in getApkFile()
/tools/tradefederation/core/src/com/android/tradefed/device/helper/
DTelephonyHelper.java91 File apkFile = null; in getSimInfo() local
94 apkFile = extractTelephonyUtilApk(); in getSimInfo()
95 if (apkFile == null) { in getSimInfo()
98 final String error = device.installPackage(apkFile, true); in getSimInfo()
134 FileUtil.deleteFile(apkFile); in getSimInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java1263 final String apkFile = "foo.apk"; in testInstallPackages() local
1266 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))).andReturn( in testInstallPackages()
1267 apkFile); in testInstallPackages()
1277 EasyMock.contains(apkFile)); in testInstallPackages()
1281 mMockIDevice.removeRemotePackage(apkFile); in testInstallPackages()
1285 assertNull(mTestDevice.installPackage(new File(apkFile), new File(certFile), true, "-l")); in testInstallPackages()
1306 final String apkFile = "foo.apk"; in testInstallPackages_timeout() local
1309 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))) in testInstallPackages_timeout()
1310 .andReturn(apkFile); in testInstallPackages_timeout()
1322 EasyMock.contains(apkFile)); in testInstallPackages_timeout()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/
DPerformanceTest.java152 File apkFile = findApk(mApk.getFileName()); in setUp() local
158 apkFile); in setUp()
159 CLog.i("Installing %s on %s.", apkFile.getName(), mDevice.getSerialNumber()); in setUp()
160 mDevice.installPackage(apkFile, true); in setUp()
170 File apkFile = findApk(mApk.getFileName()); in run() local
176 apkFile); in run()
/tools/tradefederation/contrib/src/com/android/aetest/tradefed/targetprep/
DAeTestManagedProfileCreator.java139 File apkFile = in getApk() local
147 if (apkFile == null) { in getApk()
152 return apkFile; in getApk()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java99 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); in testGetTestsDir_notDir() local
101 File res = mPreparer.getLocalPathForFilename(mTestInfo, apkFile.getName()); in testGetTestsDir_notDir()
103 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DAppSetupTest.java162 AaptParser doAaptParse(File apkFile) { in testSetup_noPackageName()
198 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_failParsing()
230 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_apiLow()
260 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_apiOk()
DTestAppInstallSetupTest.java512 File apkFile = Files.createFile(directoryPath.resolve("base.apk")).toFile(); in setUp_directoryContainingSingleApk_installsFile() local
520 assertThat(installs).containsExactly(ImmutableSet.of(apkFile)); in setUp_directoryContainingSingleApk_installsFile()
606 File apkFile = (File) EasyMock.getCurrentArguments()[0]; in runSetUpAndCaptureInstalls() local
607 installs.add(ImmutableSet.of(apkFile)); in runSetUpAndCaptureInstalls()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparer.java434 TestInformation testInfo, String deviceSpecFilePath, File apkFile) in installSingleModuleUsingBundletool() argument
437 File apks = apkFile; in installSingleModuleUsingBundletool()
443 String.format("Extraction for %s failed. No apk/apex is extracted.", apkFile), in installSingleModuleUsingBundletool()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java171 public static SigningCertificateLineage readFromApkFile(File apkFile) in readFromApkFile() argument
173 try (RandomAccessFile f = new RandomAccessFile(apkFile, "r")) { in readFromApkFile()
DApkVerifier.java95 File apkFile, in ApkVerifier() argument
100 mApkFile = apkFile; in ApkVerifier()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...