Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java223 public Package install(File apkFile) { in install() argument
224 return install(TestApis.users().instrumented(), apkFile); in install()
228 public Package install(byte[] apkFile) { in install() argument
229 return install(TestApis.users().instrumented(), apkFile); in install()
245 public Package install(UserReference user, File apkFile) { in install() argument
246 if (user == null || apkFile == null) { in install()
251 return install(user, loadBytes(apkFile)); in install()
268 .addOperand(apkFile.getAbsolutePath()) in install()
274 throw new NeneException("Could not install " + apkFile + " for user " + user, e); in install()
329 public Package install(UserReference user, byte[] apkFile) { in install() argument
[all …]
DPackage.java119 public Package install(UserReference user, File apkFile) { in install() argument
124 return TestApis.packages().install(user, apkFile); in install()
131 public Package install(UserReference user, Supplier<File> apkFile) { in install() argument
136 return TestApis.packages().install(user, apkFile.get()); in install()
143 public Package installBytes(UserReference user, byte[] apkFile) { in installBytes() argument
148 return TestApis.packages().install(user, apkFile); in installBytes()
155 public Package installBytes(UserReference user, Supplier<byte[]> apkFile) { in installBytes() argument
160 return TestApis.packages().install(user, apkFile.get()); in installBytes()
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/
DPathClassLoaderFactory.java28 File apkFile = AppComponentFactoryTest.writeSecondaryApkToDisk(aInfo); in instantiateClassLoader() local
29 return new PathClassLoader(apkFile.getAbsolutePath(), defaultCL); in instantiateClassLoader()
/cts/tools/release-parser/tests/src/com/android/cts/releaseparser/
DApkParserTest.java76 File apkFile = ClassUtils.getResrouceFile(getClass(), fileName); in testApkParser() local
77 ApkParser aParser = new ApkParser(apkFile); in testApkParser()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DApkPackageNameCheck.java130 File apkFile = new File(testcases, apkName); in testApkPackageNames() local
131 if (!apkFile.exists()) { in testApkPackageNames()
133 + "exists in testcases/", config.getName(), apkFile)); in testApkPackageNames()
135 AaptParser res = AaptParser.parse(apkFile); in testApkPackageNames()
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/
DPackageInstallerTestBase.kt71 private val apkFile = File(context.filesDir, TEST_APK_NAME) in <lambda>() constant in android.packageinstaller.install_appop_default.cts.PackageInstallerTestBase
92 File(TEST_APK_EXTERNAL_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in <lambda>()
140 apkFile.inputStream().use { fileOnDisk -> in <lambda>()
164 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPkgInstallSignatureVerificationTest.java1538 File apkFile = null; in installPackageFromResource() local
1540 apkFile = getFileFromResource(apkFilenameInResources); in installPackageFromResource()
1542 return getDevice().installPackage(apkFile, true, "--ephemeral", in installPackageFromResource()
1545 return getDevice().installPackage(apkFile, true, INSTALL_ARG_FORCE_QUERYABLE); in installPackageFromResource()
1548 cleanUpFile(apkFile); in installPackageFromResource()
1554 File apkFile = null; in installV4PackageFromResource() local
1557 apkFile = getFileFromResource(apkFilenameInResources); in installV4PackageFromResource()
1559 String remoteApkFilePath = pushFileToRemote(apkFile); in installV4PackageFromResource()
1563 cleanUpFile(apkFile); in installV4PackageFromResource()
1571 File apkFile = buildHelper.getTestFile(apkName); in installV4PackageFromBuild() local
[all …]
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt75 private val apkFile = File(context.filesDir, TEST_APK_NAME) in <lambda>() constant in android.packageinstaller.install.cts.PackageInstallerTestBase
96 File(TEST_APK_EXTERNAL_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in <lambda>()
154 apkFile.inputStream().use { fileOnDisk -> in <lambda>()
178 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
/cts/hostsidetests/packagemanager/parsing/processing/api/src/android/content/pm/parsing/cts/generator/api/
DApkGenerator.kt65 val apkFile = getFileFromZip(tempFolder, "$hashCode.apk") in <lambda>() constant
66 val error = device.installPackage(apkFile, false) in <lambda>()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApkNdkApiReport.java133 final ZipFile apkFile = new ZipFile(targetFile); in parseTestcasesFolder() local
136 final Enumeration<? extends ZipEntry> entries = apkFile.entries(); in parseTestcasesFolder()
147 InputStream is = apkFile.getInputStream(entry); in parseTestcasesFolder()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java77 private File apkFile; field in AdbRootDependentCompilationTest
94 apkFile = File.createTempFile("CtsCompilationApp", ".apk"); in setUp()
95 try (OutputStream outputStream = new FileOutputStream(apkFile)) { in setUp()
100 String error = mDevice.installPackage(apkFile, false); in setUp()
117 FileUtil.deleteFile(apkFile); in tearDown()
298 executePush(apkFile.getAbsolutePath(), targetPathApk, targetDir); in writeProfile()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt70 private var apkFile = File(context.filesDir, TEST_APK_NAME) variable
111 File(TEST_APK_EXTERNAL_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in copyTestApk()
126 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in launchPackageInstallerViaIntent()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DApexShimValidationTest.java159 for (File apkFile : apkFiles) { in testPackageNameOfShimApkInAllBundledApexesIsAllowed()
160 final AaptParser parser = AaptParser.parse(apkFile); in testPackageNameOfShimApkInAllBundledApexesIsAllowed()
161 assertWithMessage("Apk " + apkFile + " in apex " + apex + " is not valid") in testPackageNameOfShimApkInAllBundledApexesIsAllowed()
163 assertWithMessage("Apk " + apkFile + " in apex " + apex in testPackageNameOfShimApkInAllBundledApexesIsAllowed()
/cts/hostsidetests/calllog/src/android/provider/cts/contacts/hostside/
DShadowCallLogTest.java77 File apkFile = buildHelper.getTestFile(APK); in testDirectBootCallLog() local
78 getDevice().installPackage(apkFile, true); in testDirectBootCallLog()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerHostSideTest.java91 File apkFile = buildHelper.getTestFile(TEST_WITH_PERMISSION_APK); in setUp() local
93 apkFile, in setUp()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java170 File apkFile = new File(applicationInfo.publicSourceDir); in computePackageFileDigest() local
171 return computeFileHash(apkFile); in computePackageFileDigest()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DAndroidManifestParser.java290 File apkFile = new File(apkFileName); in main() local
291 AndroidManifestParser manifestParser = new AndroidManifestParser(apkFile); in main()
DDexParser.java347 File apkFile = new File(fileName); in main() local
348 DexParser aParser = new DexParser(apkFile); in main()
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java96 public static void install(@NonNull String apkFile) { in install() argument
102 + apkFile); in install()
/cts/hostsidetests/packagemanager/extractnativelibs/src/android/extractnativelibs/cts/
DCtsExtractNativeLibsHostTestBase.java255 final File apkFile = getFileFromResource(apkFilenameInRes); in installIncrementalPackageFromResource() local
258 return installPackageIncrementalFromFiles(apkFile, v4SignatureFile, ""); in installIncrementalPackageFromResource()
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/
DJvmtiHostTest.java210 File apkFile = mBuildHelper.getTestFile(mApk); in installLibToDataData() local
211 zf = new ZipFile(apkFile); in installLibToDataData()
/cts/tests/tests/permission/src/android/permission/cts/
DSplitPermissionTest.java141 public void install(@NonNull String apkFile) { in install() argument
142 PermissionUtils.install(apkFile); in install()
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/
DJvmtiAttachingHostTest.java286 File apkFile = mBuildHelper.getTestFile(apk); in installLibToDataData() local
287 zf = new ZipFile(apkFile); in installLibToDataData()