/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BuildTestsZipUtilsTest.java | 46 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/ |
D | AppSetup.java | 114 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/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 1268 final String apkFile = "foo.apk"; in testInstallPackages() local 1271 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))).andReturn( in testInstallPackages() 1272 apkFile); in testInstallPackages() 1282 EasyMock.contains(apkFile)); in testInstallPackages() 1286 mMockIDevice.removeRemotePackage(apkFile); in testInstallPackages() 1290 assertNull(mTestDevice.installPackage(new File(apkFile), new File(certFile), true, "-l")); in testInstallPackages() 1311 final String apkFile = "foo.apk"; in testInstallPackages_timeout() local 1314 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))) in testInstallPackages_timeout() 1315 .andReturn(apkFile); in testInstallPackages_timeout() 1327 EasyMock.contains(apkFile)); in testInstallPackages_timeout() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/helper/ |
D | TelephonyHelper.java | 91 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/src/com/android/tradefed/util/ |
D | AaptParser.java | 132 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()
|
D | BuildTestsZipUtils.java | 147 File apkFile = buildInfo.stageRemoteFile(apkFileName, testsDir); in getApkFile() local 148 if (apkFile != null) { in getApkFile() 149 return apkFile; in getApkFile()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/ |
D | PerformanceTest.java | 152 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/monkey/ |
D | AppPkgInjector.java | 70 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/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | OldApkReadTest.java | 30 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/ |
D | SuiteApkInstaller.java | 39 File apkFile = null; in getLocalPathForFilename() local 41 apkFile = testInfo.getDependencyFile(apkFileName, true); in getLocalPathForFilename() 49 return apkFile; in getLocalPathForFilename()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | TestAppInstallSetup.java | 461 for (File apkFile : apkFiles) { in resolveApkFiles() 463 if (apkFile.isAbsolute()) { in resolveApkFiles() 464 testAppFile = apkFile; in resolveApkFiles() 467 testAppFile = getLocalPathForFilename(testInfo, apkFile.getName()); in resolveApkFiles() 472 String.format("Test app %s was not found.", apkFile.getName()), in resolveApkFiles() 476 CLog.d("Test app %s was not found.", apkFile.getName()); in resolveApkFiles()
|
D | InstallApexModuleTargetPreparer.java | 434 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/tradefederation/contrib/src/com/android/aetest/tradefed/targetprep/ |
D | AeTestManagedProfileCreator.java | 139 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/ |
D | AppSetupTest.java | 162 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()
|
D | TestAppInstallSetupTest.java | 512 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/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 99 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/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 172 public static SigningCertificateLineage readFromApkFile(File apkFile) in readFromApkFile() argument 174 try (RandomAccessFile f = new RandomAccessFile(apkFile, "r")) { in readFromApkFile()
|
D | SourceStampVerifier.java | 83 File apkFile, in SourceStampVerifier() argument 87 mApkFile = apkFile; in SourceStampVerifier()
|
D | ApkVerifier.java | 104 File apkFile, in ApkVerifier() argument 109 mApkFile = apkFile; in ApkVerifier()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 1299 File apkFile, int signatureVersionId, int signatureVersionBlockId) in getSignatureInfoFromApk() argument 1302 try (RandomAccessFile f = new RandomAccessFile(apkFile, "r")) { in getSignatureInfoFromApk()
|