/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | AaptParser.java | 73 public String[] dumpBadgingCommand(File apkFile) { in dumpBadgingCommand() argument 74 return new String[] {"aapt", "dump", "badging", apkFile.getAbsolutePath()}; in dumpBadgingCommand() 78 public String[] dumpXmlTreeCommand(File apkFile) { in dumpXmlTreeCommand() argument 80 "aapt", "dump", "xmltree", apkFile.getAbsolutePath(), "AndroidManifest.xml" in dumpXmlTreeCommand() 87 public String[] dumpBadgingCommand(File apkFile) { in dumpBadgingCommand() argument 88 return new String[] {"aapt2", "dump", "badging", apkFile.getAbsolutePath()}; in dumpBadgingCommand() 92 public String[] dumpXmlTreeCommand(File apkFile) { in dumpXmlTreeCommand() argument 97 apkFile.getAbsolutePath(), in dumpXmlTreeCommand() 104 public abstract String[] dumpBadgingCommand(File apkFile); in dumpBadgingCommand() argument 106 public abstract String[] dumpXmlTreeCommand(File apkFile); in dumpXmlTreeCommand() argument [all …]
|
D | BuildTestsZipUtils.java | 149 File apkFile = buildInfo.stageRemoteFile(apkFileName, testsDir); in getApkFile() local 150 if (apkFile != null) { in getApkFile() 153 return apkFile; in getApkFile()
|
/tools/tradefederation/core/javatests/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 | 124 for (VersionedFile apkFile : apps) { in setUp() 126 AaptParser aaptParser = doAaptParse(apkFile.getFile()); in setUp() 131 apkFile.getFile().getName()), in setUp() 138 apkFile.toString(), device.getSerialNumber(), in setUp() 146 apkFile.getFile(), true, args.toArray(new String[args.size()])); in setUp() 154 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp() 159 addPackageNameToUninstall(apkFile.getFile(), device); in setUp() 179 AaptParser doAaptParse(File apkFile) { in doAaptParse() argument 180 return AaptParser.parse(apkFile); in doAaptParse() 183 private void addPackageNameToUninstall(File apkFile, ITestDevice device) in addPackageNameToUninstall() argument [all …]
|
/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/contrib/src/com/android/monkey/ |
D | AppPkgInjector.java | 71 for (VersionedFile apkFile : appBuild.getAppPackageFiles()) { in setUp() 72 AaptParser aapt = AaptParser.parse(apkFile.getFile()); in setUp() 77 "aapt parse of %s failed", apkFile.getFile().getAbsolutePath()), in setUp() 87 apkFile.getFile().getAbsolutePath()), in setUp()
|
/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/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/core/javatests/com/android/tradefed/device/ |
D | TestDeviceTest.java | 1343 final String apkFile = "foo.apk"; in testInstallPackages() local 1345 when(mMockIDevice.syncPackageToDevice(Mockito.contains(apkFile))).thenReturn(apkFile); in testInstallPackages() 1355 Mockito.contains(apkFile)); in testInstallPackages() 1358 mMockIDevice.removeRemotePackage(apkFile); in testInstallPackages() 1360 assertNull(mTestDevice.installPackage(new File(apkFile), new File(certFile), true, "-l")); in testInstallPackages() 1396 final String apkFile = "foo.apk"; in testInstallPackages_timeout() local 1398 when(mMockIDevice.syncPackageToDevice(Mockito.contains(apkFile))).thenReturn(apkFile); in testInstallPackages_timeout() 1412 Mockito.contains(apkFile)); in testInstallPackages_timeout() 1416 .installPackage(new File(apkFile), new File(certFile), true, "-l") in testInstallPackages_timeout() 1421 verify(mMockIDevice).removeRemotePackage(apkFile); in testInstallPackages_timeout() [all …]
|
/tools/tradefederation/contrib/src/com/android/aetest/tradefed/targetprep/ |
D | AeTestManagedProfileCreator.java | 190 File apkFile = in getApk() local 198 if (apkFile == null) { in getApk() 203 return apkFile; in getApk()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | TestAppInstallSetup.java | 239 AaptParser doAaptParse(File apkFile) { in doAaptParse() argument 240 return AaptParser.parse(apkFile); in doAaptParse() 576 for (File apkFile : apkFiles) { in resolveApkFiles() 578 if (apkFile.isAbsolute()) { in resolveApkFiles() 579 testAppFile = apkFile; in resolveApkFiles() 582 testAppFile = getLocalPathForFilename(testInfo, apkFile.getName()); in resolveApkFiles() 587 String.format("Test app %s was not found.", apkFile.getName()), in resolveApkFiles() 591 CLog.d("Test app %s was not found.", apkFile.getName()); in resolveApkFiles() 619 apkFile.toString(), in resolveApkFiles()
|
D | InstallApexModuleTargetPreparer.java | 952 TestInformation testInfo, String deviceSpecFilePath, File apkFile) in installSingleModuleUsingBundletool() argument 955 File apks = apkFile; in installSingleModuleUsingBundletool() 961 String.format("Extraction for %s failed. No apk/apex is extracted.", apkFile), in installSingleModuleUsingBundletool()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | AppSetupTest.java | 133 AaptParser doAaptParse(File apkFile) { in testSetup_deviceApi34_forceQueryableIsFalse() 189 AaptParser doAaptParse(File apkFile) { in testSetup_noPackageName() 225 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_failParsing() 257 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_apiLow() 289 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_apiOk()
|
D | TestAppInstallSetupTest.java | 738 File apkFile = Files.createFile(directoryPath.resolve("base.apk")).toFile(); in setUp_directoryContainingSingleApk_installsFile() local 746 assertThat(installs).containsExactly(ImmutableSet.of(apkFile)); in setUp_directoryContainingSingleApk_installsFile() 811 AaptParser doAaptParse(File apkFile) { in testResolveApkFiles_checkMinSdk_failParsing() 837 AaptParser doAaptParse(File apkFile) { in testResolveApkFiles_checkMinSdk_apiLow() 869 AaptParser doAaptParse(File apkFile) { in testResolveApkFiles_checkMinSdk_apiOk() 926 File apkFile = (File) invocation.getArguments()[0]; in runSetUpAndCaptureInstalls() 927 installs.add(ImmutableSet.of(apkFile)); in runSetUpAndCaptureInstalls()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 100 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); in testGetTestsDir_notDir() local 102 File res = mPreparer.getLocalPathForFilename(mTestInfo, apkFile.getName()); in testGetTestsDir_notDir() 104 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir()
|
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/ |
D | GeneralTestsConfigValidation.java | 424 File apkFile = FileUtil.findFile(config.getParentFile(), apkName); in validatePreparers() local 425 if (apkFile == null || !apkFile.exists()) { in validatePreparers()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SourceStampVerifier.java | 85 File apkFile, in SourceStampVerifier() argument 89 mApkFile = apkFile; in SourceStampVerifier()
|
D | SigningCertificateLineage.java | 187 public static SigningCertificateLineage readFromApkFile(File apkFile) in readFromApkFile() argument 189 try (RandomAccessFile f = new RandomAccessFile(apkFile, "r")) { in readFromApkFile()
|
D | ApkVerifier.java | 119 File apkFile, in ApkVerifier() argument 124 mApkFile = apkFile; in ApkVerifier()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 3526 try (RandomAccessFile apkFile = new RandomAccessFile(signedApk, "r")) { in assertSigningBlockContains() argument 3528 DataSources.asDataSource(apkFile)); in assertSigningBlockContains() 3806 File apkFile, int signatureVersionId, int signatureVersionBlockId) in getSignatureInfoFromApk() argument 3809 try (RandomAccessFile f = new RandomAccessFile(apkFile, "r")) { in getSignatureInfoFromApk() 3869 try (RandomAccessFile apkFile = new RandomAccessFile(inApkFile, "r")) { in sign() argument 3870 DataSource in = DataSources.asDataSource(apkFile); in sign()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 3262 private MicrodroidBuilder(File apkFile, String apkPath, @Nonnull String configPath) { in MicrodroidBuilder() argument 3263 mApkFile = apkFile; in MicrodroidBuilder() 3282 @Nonnull File apkFile, @Nonnull String configPath) { in fromFile() 3283 return new MicrodroidBuilder(apkFile, null, configPath); in fromFile()
|