/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstaller.java | 90 File apkFile = null; in getLocalPathForFilename() local 93 apkFile = getApkFromVariableTestsDir(apkFileName); in getLocalPathForFilename() 94 if (apkFile != null && apkFile.isFile()) { in getLocalPathForFilename() 95 return apkFile; in getLocalPathForFilename() 99 apkFile = getApkFromBuildTestsDir(buildInfo, apkFileName); in getLocalPathForFilename() 100 if (apkFile != null && apkFile.isFile()) { in getLocalPathForFilename() 101 return apkFile; in getLocalPathForFilename() 105 apkFile = FileUtil.findFile(getTestsDir(buildInfo), apkFileName); in getLocalPathForFilename() 106 if (apkFile == null || !apkFile.isFile()) { in getLocalPathForFilename() 113 return apkFile; in getLocalPathForFilename()
|
/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()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | AppSetup.java | 107 for (VersionedFile apkFile : appBuild.getAppPackageFiles()) { in setUp() 109 AaptParser aaptParser = doAaptParse(apkFile.getFile()); in setUp() 113 apkFile.getFile().getName()), device.getDeviceDescriptor()); in setUp() 118 apkFile.toString(), device.getSerialNumber(), in setUp() 123 String result = device.installPackage(apkFile.getFile(), true, in setUp() 131 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp() 135 addPackageNameToUninstall(apkFile.getFile(), device); in setUp() 155 AaptParser doAaptParse(File apkFile) { in doAaptParse() argument 156 return AaptParser.parse(apkFile); in doAaptParse() 159 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/prod-tests/src/com/android/monkey/ |
D | AppPkgInjector.java | 72 for (VersionedFile apkFile : appBuild.getAppPackageFiles()) { in setUp() 73 AaptParser aapt = AaptParser.parse(apkFile.getFile()); in setUp() 77 apkFile.getFile().getAbsolutePath()), device.getDeviceDescriptor()); in setUp() 83 apkFile.getFile().getAbsolutePath()), device.getDeviceDescriptor()); in setUp()
|
/tools/tradefederation/core/prod-tests/src/com/android/app/tests/ |
D | AppLaunchTest.java | 102 final File apkFile = apkVersionedFile.getFile(); in run() local 103 performInstallTest(apkFile, listener); in run() 116 private void performInstallTest(File apkFile, ITestInvocationListener listener) in performInstallTest() argument 121 FileUtil.getBaseName(apkFile.getName())); in performInstallTest() 123 String result = getDevice().installPackage(apkFile, true); in performInstallTest()
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | PackageManagerHostTestUtils.java | 200 public String installFileForwardLocked(final File apkFile, final boolean replace) in installFileForwardLocked() argument 202 return mDevice.installPackage(apkFile, replace, "-l"); in installFileForwardLocked() 327 public void installAppAndVerifyExistsOnDevice(File apkFile, String pkgName, boolean overwrite) in installAppAndVerifyExistsOnDevice() argument 337 installFile(apkFile, overwrite); in installAppAndVerifyExistsOnDevice() 358 public void installFwdLockedAppAndVerifyExists(File apkFile, in installFwdLockedAppAndVerifyExists() argument 368 String result = installFileForwardLocked(apkFile, overwrite); in installFwdLockedAppAndVerifyExists() 472 public void determinePrivateAppPath(File apkFile, String pkgName) in determinePrivateAppPath() argument
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | AaptParser.java | 105 public static AaptParser parse(File apkFile) { in parse() argument 115 apkFile.getAbsolutePath()); in parse() 130 apkFile.getAbsoluteFile(), result.getStdout()); in parse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 1233 final String apkFile = "foo.apk"; in testInstallPackages() local 1236 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))).andReturn( in testInstallPackages() 1237 apkFile); in testInstallPackages() 1247 EasyMock.contains(apkFile)); in testInstallPackages() 1250 mMockIDevice.removeRemotePackage(apkFile); in testInstallPackages() 1254 assertNull(mTestDevice.installPackage(new File(apkFile), new File(certFile), true, "-l")); in testInstallPackages() 1347 final String apkFile = "foo.apk"; in testInstallPackage_default_runtimePermissionNotSupported() local 1350 EasyMock.contains(apkFile), in testInstallPackage_default_runtimePermissionNotSupported() 1358 assertNull(mTestDevice.installPackage(new File(apkFile), true)); in testInstallPackage_default_runtimePermissionNotSupported() 1375 final String apkFile = "foo.apk"; in testInstallPackage_default_runtimePermissionSupported() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 135 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); in testGetTestsDir_notDir() local 150 mMockBuildInfo, apkFile.getName(), mMockDevice); in testGetTestsDir_notDir() 152 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | AppSetupTest.java | 151 AaptParser doAaptParse(File apkFile) { in testSetup_noPackageName() 184 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_failParsing() 215 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_apiLow() 245 AaptParser doAaptParse(File apkFile) { in testSetup_checkMinSdk_apiOk()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 81 File apkFile, in ApkVerifier() argument 85 mApkFile = apkFile; in ApkVerifier()
|
D | SigningCertificateLineage.java | 160 public static SigningCertificateLineage readFromApkFile(File apkFile) { in readFromApkFile() argument
|