Home
last modified time | relevance | path

Searched refs:apkName (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt234 protected fun writeSession(session: Session, apkName: String) { in <lambda>()
236 File(TEST_APK_LOCATION, apkName).inputStream().use { fileOnDisk -> in <lambda>()
237 session.openWrite(apkName, 0, -1).use { sessionFile -> in <lambda>()
313 apkName: String = TEST_APK_NAME, in <lambda>()
320 writeSession(session, apkName) in <lambda>()
325 apkName: String, in <lambda>()
329 writeSession(session, apkName) in <lambda>()
339 for (apkName in apkNames) { in <lambda>() constant
341 writeSession(childSession, apkName) in <lambda>()
357 protected fun getInstallationIntent(apkName: String = TEST_APK_NAME): Intent { in <lambda>()
[all …]
DInstallAppMetadataTest.kt181 private fun installApk(apkName: String, shouldHaveAppMetadata: Boolean) { in installApk()
182 installPackage(apkName) in installApk()
203 private fun installApkViaSession(data: PersistableBundle?, apkName: String = TEST_APK_NAME) { in installApkViaSession()
205 writeSession(session, apkName) in installApkViaSession()
DSessionParamsPermissionStateTest.kt221 apkName = params.testApkName, in <lambda>()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_21253.java109 private CommandResult installAndCheck(String apkName) throws Exception { in installAndCheck() argument
111 final String apkPath = AdbUtils.TMP_PATH + apkName; in installAndCheck()
114 AdbUtils.pushResource(AdbUtils.RESOURCE_ROOT + apkName, apkPath, device); in installAndCheck()
123 AdbUtils.removeResources(new String[] {apkName}, AdbUtils.TMP_PATH, device); in installAndCheck()
DCVE_2021_0478.java41 String apkName = "CVE-2021-0478.apk"; in testPocCVE_2021_0478() local
42 String appPath = AdbUtils.TMP_PATH + apkName; in testPocCVE_2021_0478()
50 pocPusher.pushFile(apkName, appPath); in testPocCVE_2021_0478()
DCVE_2021_30351.java39 String apkName = "CVE-2021-30351.apk"; in testPocCVE_2021_30351() local
40 String appPath = AdbUtils.TMP_PATH + apkName; in testPocCVE_2021_30351()
48 pocPusher.pushFile(apkName, appPath); in testPocCVE_2021_30351()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerHostSideTransferTest.java101 protected int setupManagedProfileOnDeviceOwner(String apkName, String adminReceiverClassName) in setupManagedProfileOnDeviceOwner() argument
103 return setupManagedProfile(apkName, adminReceiverClassName); in setupManagedProfileOnDeviceOwner()
106 protected int setupManagedProfile(String apkName, String adminReceiverClassName) in setupManagedProfile() argument
109 installAppAsUser(apkName, userId); in setupManagedProfile()
DDeviceOwnerPlusProfileOwnerTest.java274 private int setupManagedProfile(String apkName, String packageName, in setupManagedProfile() argument
277 installAppAsUser(apkName, userId); in setupManagedProfile()
/cts/hostsidetests/packagemanager/extractnativelibs/src/android/extractnativelibs/cts/
DCtsExtractNativeLibsHostTestBase.java98 final void installPackage(boolean isIncremental, String apkName) throws Exception { in installPackage() argument
99 installPackage(isIncremental, apkName, ""); in installPackage()
102 final void installPackage(boolean isIncremental, String apkName, String abi) throws Exception { in installPackage() argument
104 installPackageIncremental(apkName, abi); in installPackage()
106 installPackageLegacy(apkName, abi); in installPackage()
229 private void installPackageIncremental(String apkName, String abi) throws Exception { in installPackageIncremental() argument
231 final File apk = buildHelper.getTestFile(apkName); in installPackageIncremental()
233 final File v4Signature = buildHelper.getTestFile(apkName + IDSIG_SUFFIX); in installPackageIncremental()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DApkPackageNameCheck.java158 String apkName = apk.getName(); in testApkPackageNames() local
159 File apkFile = FileUtil.findFile(config.getParentFile(), apkName); in testApkPackageNames()
165 + "'data' field.", config.getName(), apkName)); in testApkPackageNames()
171 String put = packageNames.put(packageName, apkName); in testApkPackageNames()
174 … if (put != null && !apkName.equals(put) && !EXCEPTION_LIST.contains(packageName)) { in testApkPackageNames()
178 config.getName(), packageName, apkName, put)); in testApkPackageNames()
/cts/hostsidetests/packagemanager/domainverification/host/src/com/android/cts/packagemanager/verify/domain/host/
DDomainVerificationHostUtils.kt29 apkName: DomainUtils.ApkName, in <lambda>()
33 copyResourceToHostFile(apkName.value, tempFolder.newFile()), in <lambda>()
/cts/tests/tests/packageinstaller/test-apps/criticaluserjourneyinstaller/src/android/packageinstaller/cts/cujinstaller/
DMainActivity.java162 private void copyApkFromUri(Uri uri, String apkName) throws Exception { in copyApkFromUri() argument
163 File file = new File(getFilesDir(), apkName); in copyApkFromUri()
174 private void startInstallationViaPackageInstallerSession(String apkName) throws Exception { in startInstallationViaPackageInstallerSession() argument
182 final File apkFile = new File(getFilesDir(), apkName); in startInstallationViaPackageInstallerSession()
191 private void startInstallationViaIntent(boolean getResult, String apkName) { in startInstallationViaIntent() argument
192 final File apkFile = new File(getFilesDir(), apkName); in startInstallationViaIntent()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPkgInstallSignatureVerificationTest.java1878 private void assertInstallV4FromBuildSucceeds(String apkName) throws Exception { in assertInstallV4FromBuildSucceeds() argument
1879 String installResult = installV4PackageFromBuild(apkName); in assertInstallV4FromBuildSucceeds()
1881 fail("Failed to install " + apkName + ": " + installResult); in assertInstallV4FromBuildSucceeds()
1957 private void assertInstallFromBuildSucceeds(String apkName) throws Exception { in assertInstallFromBuildSucceeds() argument
1958 String result = installApkFromBuild(apkName); in assertInstallFromBuildSucceeds()
1959 assertNull("failed to install " + apkName + ", Reason: " + result, result); in assertInstallFromBuildSucceeds()
1962 private void assertInstallFromBuildFails(String apkName) throws Exception { in assertInstallFromBuildFails() argument
1963 String result = installApkFromBuild(apkName); in assertInstallFromBuildFails()
1964 assertNotNull("Successfully installed " + apkName + " when failure was expected", result); in assertInstallFromBuildFails()
1967 private String installApkFromBuild(String apkName) throws Exception { in installApkFromBuild() argument
[all …]
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DUtils.java40 public static String pushApkToRemote(String apkName, String remoteDirPath, IBuildInfo ctsBuild, in pushApkToRemote() argument
43 final File apk = buildHelper.getTestFile(apkName); in pushApkToRemote()
44 final File signature = buildHelper.getTestFile(apkName + SIGNATURE_FILE_SUFFIX); in pushApkToRemote()
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
DIncrementalAppErrorStatsTestsHelper.java76 for (String apkName : new File(apkDir).list()) { in loadingApks()
77 final String apkPath = apkDir + "/" + apkName; in loadingApks()
/cts/hostsidetests/media/src/android/media/router/cts/
DProxyMediaRouter2HostSideTest.java371 TestInformation testInformation, String apkName, int userId) in installTestAppAsUser() argument
373 LogUtil.CLog.d("Installing app " + apkName); in installTestAppAsUser()
380 buildHelper.getTestFile(apkName), in installTestAppAsUser()
385 assertWithMessage("Failed to install " + apkName + ": " + result).that(result).isNull(); in installTestAppAsUser()
DMediaRouter2HostSideTest.java535 private static void installTestApp(TestInformation testInfo, String apkName) in installTestApp() argument
537 LogUtil.CLog.d("Installing app " + apkName); in installTestApp()
541 buildHelper.getTestFile(apkName), /*reinstall=*/true, /*grantPermissions=*/true, in installTestApp()
543 assertWithMessage("Failed to install " + apkName + ": " + result).that(result).isNull(); in installTestApp()
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/
DLoadingProgressTest.java106 for (String apkName : new File(apkDir).list()) { in testReadAllBytes()
107 final String apkPath = apkDir + "/" + apkName; in testReadAllBytes()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestCaseReport.java206 for (String apkName : apkList) { in parseApkTestCase()
208 String apkPath = Paths.get(tsPath, apkName).toString(); in parseApkTestCase()
217 tsPkgBuilder.setName(apkName); in parseApkTestCase()
232 tClassBuilder.setApk(apkName); in parseApkTestCase()
255 tClassBuilder.setApk(apkName); in parseApkTestCase()
272 tClassBuilder.setApk(apkName); in parseApkTestCase()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppProvider.java225 private String getApkNameWithoutSuffix(String apkName) { in getApkNameWithoutSuffix() argument
226 return apkName.split("\\.", 2)[0]; in getApkNameWithoutSuffix()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java177 public static void installTestApp(ITestDevice device, String apkName, String pkgName, in installTestApp() argument
179 CLog.d("Installing app " + apkName); in installTestApp()
182 buildHelper.getTestFile(apkName), /*reinstall=*/true, /*grantPermissions=*/true); in installTestApp()
183 assertWithMessage("Failed to install " + apkName + ": " + result).that(result).isNull(); in installTestApp()
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/
DSignedConfigHostTest.java141 private void installPackage(String apkName, String... extraArgs) in installPackage() argument
143 assertThat(getDevice().installPackage(getTestApk(apkName), false, extraArgs)).isNull(); in installPackage()
/cts/tests/tests/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/
DPackageInstallerCujTestBase.java754 private static void installPackage(@NonNull String apkName) throws IOException { in installPackage() argument
755 Log.d(TAG, "installPackage(): apkName= " + apkName); in installPackage()
757 + new File(TEST_APK_LOCATION, apkName).getCanonicalPath()); in installPackage()
/cts/hostsidetests/incrementalinstall/src/android/incrementalinstall/cts/
DIncrementalInstallTest.java412 private boolean checkNativeLibInApkCompression(String apkName, String nativeLibName, in checkNativeLibInApkCompression() argument
416 File apk = new File(getFilePathFromBuildInfo(apkName)); in checkNativeLibInApkCompression()
/cts/tests/tests/content/src/android/content/pm/cts/
DChecksumsTest.java1436 private void installApkWithChecksums(String apkName, String checksumsName, Checksum[] checksums) in installApkWithChecksums() argument
1439 installApkWithChecksums(TEST_FIXED_APK, apkName, checksumsName, checksums)); in installApkWithChecksums()
1442 private Intent installApkWithChecksums(String apk, String apkName, in installApkWithChecksums() argument
1444 return installApkWithChecksums(apk, apkName, checksumsName, checksums, NO_SIGNATURE); in installApkWithChecksums()
1447 private Intent installApkWithChecksums(String apk, String apkName, in installApkWithChecksums() argument
1457 writeFileToSession(session, apkName, apk); in installApkWithChecksums()

12