/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Packages.java | 236 public Package install(File apkFile) { in install() argument 237 return install(TestApis.users().instrumented(), apkFile); in install() 241 public Package install(byte[] apkFile) { in install() argument 242 return install(TestApis.users().instrumented(), apkFile); in install() 258 public Package install(UserReference user, File apkFile) { in install() argument 259 if (user == null || apkFile == null) { in install() 264 return install(user, loadBytes(apkFile)); in install() 294 .addOperand(apkFile.getAbsolutePath()) in install() 314 throw new NeneException("Could not install " + apkFile + " for user " + user, e); in install() 345 public Package install(UserReference user, byte[] apkFile) { in install() argument [all …]
|
D | Package.java | 155 public Package install(UserReference user, File apkFile) { in install() argument 161 return TestApis.packages().install(user, apkFile); in install() 168 public Package install(UserReference user, Supplier<File> apkFile) { in install() argument 174 return TestApis.packages().install(user, apkFile.get()); in install() 181 public Package installBytes(UserReference user, byte[] apkFile) { in installBytes() argument 187 return TestApis.packages().install(user, apkFile); in installBytes() 195 public Package installBytes(UserReference user, Supplier<byte[]> apkFile) { in installBytes() argument 201 return TestApis.packages().install(user, apkFile.get()); in installBytes()
|
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/ |
D | PathClassLoaderFactory.java | 28 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/ |
D | ApkParserTest.java | 76 File apkFile = ClassUtils.getResrouceFile(getClass(), fileName); in testApkParser() local 77 ApkParser aParser = new ApkParser(apkFile); in testApkParser()
|
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/ |
D | PackageInstallerTestBase.kt | 71 private val apkFile = File(context.filesDir, TEST_APK_NAME) in <lambda>() constant 92 File(TEST_APK_EXTERNAL_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in <lambda>() 140 apkFile.inputStream().use { fileOnDisk -> in <lambda>() 166 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
|
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/ |
D | PackageInstallerTestBase.kt | 71 private val apkFile = File(context.filesDir, TEST_APK_NAME) in <lambda>() constant 92 File(TEST_APK_EXTERNAL_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in <lambda>() 140 apkFile.inputStream().use { fileOnDisk -> in <lambda>() 166 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
|
/cts/hostsidetests/compilation/src/android/compilation/cts/ |
D | Utils.java | 84 File apkFile = copyResourceToFile(apkResource, File.createTempFile("temp", ".apk")); in installFromResourcesImpl() local 85 apkFile.deleteOnExit(); in installFromResourcesImpl() 90 dmResource, new File(getDmPath(apkFile.getAbsolutePath()))); in installFromResourcesImpl() 96 files.add(apkFile.getAbsolutePath()); in installFromResourcesImpl()
|
D | BackgroundDexOptimizationTest.java | 216 File apkFile = File.createTempFile(APPLICATION_APK, ".apk"); in reinstallAppPackage() local 217 try (OutputStream outputStream = new FileOutputStream(apkFile)) { in reinstallAppPackage() 222 String error = mDevice.installPackage(apkFile, /* reinstall= */ false); in reinstallAppPackage()
|
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ |
D | ApkPackageNameCheck.java | 159 File apkFile = FileUtil.findFile(config.getParentFile(), apkName); in testApkPackageNames() local 160 if (apkFile == null || !apkFile.exists()) { in testApkPackageNames() 168 AaptParser res = AaptParser.parse(apkFile); in testApkPackageNames()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApkNdkApiReport.java | 135 final ZipFile apkFile = new ZipFile(targetFile); in parseTestcasesFolder() local 138 final Enumeration<? extends ZipEntry> entries = apkFile.entries(); in parseTestcasesFolder() 149 InputStream is = apkFile.getInputStream(entry); in parseTestcasesFolder()
|
/cts/hostsidetests/packagemanager/parsing/processing/api/src/android/content/pm/parsing/cts/generator/api/ |
D | ApkGenerator.kt | 65 val apkFile = getFileFromZip(tempFolder, "$hashCode.apk") in <lambda>() constant 66 val error = device.installPackage(apkFile, false, "--bypass-low-target-sdk-block") in <lambda>()
|
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/ |
D | NoPermissionTests.kt | 63 private var apkFile = File(context.filesDir, TEST_APK_NAME) in <lambda>() variable 88 File(TEST_APK_EXTERNAL_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in <lambda>() 104 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
|
/cts/tests/tests/packageinstaller/test-apps/criticaluserjourneyinstaller/src/android/packageinstaller/cts/cujinstaller/ |
D | MainActivity.java | 182 final File apkFile = new File(getFilesDir(), apkName); in startInstallationViaPackageInstallerSession() local 183 try (OutputStream os = session.openWrite("base.apk", 0, apkFile.length()); in startInstallationViaPackageInstallerSession() 184 InputStream is = new FileInputStream(apkFile)) { in startInstallationViaPackageInstallerSession() 192 final File apkFile = new File(getFilesDir(), apkName); in startInstallationViaIntent() local 194 intent.setData(FileProvider.getUriForFile(this, CONTENT_AUTHORITY, apkFile)); in startInstallationViaIntent()
|
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/ |
D | UserRestrictionInstallTest.kt | 106 val apkFile = File(context.filesDir, TEST_APK_NAME) in <lambda>() constant 122 File(TEST_APK_LOCATION, TEST_APK_NAME).copyTo(target = apkFile, overwrite = true) in <lambda>() 196 val appInstallIntent = getAppInstallationIntent(apkFile) in <lambda>() 292 val appInstallIntent = getAppInstallationIntent(apkFile) in <lambda>() 385 apkFile.inputStream().use { fileOnDisk -> in <lambda>() 416 private fun getAppInstallationIntent(apkFile: File): Intent { in <lambda>() 418 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | PkgInstallSignatureVerificationTest.java | 1983 File apkFile = null; in installPackageFromResource() local 1985 apkFile = getFileFromResource(apkFilenameInResources); in installPackageFromResource() 1987 return getDevice().installPackage(apkFile, true, "--ephemeral", in installPackageFromResource() 1990 return getDevice().installPackage(apkFile, true, INSTALL_ARG_FORCE_QUERYABLE, in installPackageFromResource() 1994 cleanUpFile(apkFile); in installPackageFromResource() 1995 getDevice().deleteFile("/data/local/tmp/" + apkFile.getName()); in installPackageFromResource() 2001 File apkFile = null; in installV4PackageFromResource() local 2005 apkFile = getFileFromResource(apkFilenameInResources); in installV4PackageFromResource() 2007 remoteApkFilePath = pushFileToRemote(apkFile); in installV4PackageFromResource() 2011 cleanUpFile(apkFile); in installV4PackageFromResource() [all …]
|
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/ |
D | ApexShimValidationTest.java | 155 for (File apkFile : apkFiles) { in testPackageNameOfShimApkInAllBundledApexesIsAllowed() 156 final AaptParser parser = AaptParser.parse(apkFile); in testPackageNameOfShimApkInAllBundledApexesIsAllowed() 157 assertWithMessage("Apk " + apkFile + " in apex " + apex + " is not valid") in testPackageNameOfShimApkInAllBundledApexesIsAllowed() 159 assertWithMessage("Apk " + apkFile + " in apex " + apex in testPackageNameOfShimApkInAllBundledApexesIsAllowed()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | AccountManagerXUserTest.java | 88 File apkFile = buildHelper.getTestFile(TEST_WITH_PERMISSION_APK); in setUp() local 89 getDevice().installPackageForUser(apkFile, true, true, mParentUserId, "-t"); in setUp() 93 getDevice().installPackageForUser(apkFile, true, true, mProfileUserId, "-t"); in setUp()
|
D | AccountManagerHostSideTest.java | 92 File apkFile = buildHelper.getTestFile(TEST_WITH_PERMISSION_APK); in setUp() local 94 apkFile, in setUp()
|
/cts/hostsidetests/calllog/src/android/provider/cts/contacts/hostside/ |
D | ShadowCallLogTest.java | 72 File apkFile = buildHelper.getTestFile(APK); in testDirectBootCallLog() local 73 getDevice().installPackage(apkFile, true); in testDirectBootCallLog()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 170 File apkFile = new File(applicationInfo.publicSourceDir); in computePackageFileDigest() local 171 return computeFileHash(apkFile); in computePackageFileDigest()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | AdbUtils.java | 294 File apkFile = File.createTempFile("apkFile", ".apk"); in installApk() local 296 apkFile = extractResource(fullResourceName, apkFile); in installApk() 297 return device.installPackage(apkFile, true); in installApk() 299 apkFile.delete(); in installApk()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | PackageInstallerTestBase.kt | 358 val apkFile = File(context.filesDir, apkName) in <lambda>() constant 359 if (!apkFile.exists()) { in <lambda>() 360 File(TEST_APK_LOCATION, apkName).copyTo(target = apkFile, overwrite = true) in <lambda>() 363 intent.data = FileProvider.getUriForFile(context, CONTENT_AUTHORITY, apkFile) in <lambda>()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | AndroidManifestParser.java | 290 File apkFile = new File(apkFileName); in main() local 291 AndroidManifestParser manifestParser = new AndroidManifestParser(apkFile); in main()
|
/cts/hostsidetests/packagemanager/extractnativelibs/src/android/extractnativelibs/cts/ |
D | CtsExtractNativeLibsHostTestBase.java | 255 final File apkFile = getFileFromResource(apkFilenameInRes); in installIncrementalPackageFromResource() local 258 return installPackageIncrementalFromFiles(apkFile, v4SignatureFile, ""); in installIncrementalPackageFromResource()
|
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/ |
D | JvmtiHostTest.java | 210 File apkFile = mBuildHelper.getTestFile(mApk); in installLibToDataData() local 211 zf = new ZipFile(apkFile); in installLibToDataData()
|