/cts/tests/tests/dynamic_linker/com/android/dynamiclinker/ |
D | DynamicLinkerTest.java | 37 String apkPath = InstrumentationRegistry.getContext().getPackageResourcePath(); in testLoadLibInApkByFileName() local 39 System.load(apkPath + "!/lib/arm64-v8a/libdynamiclinker_native_lib_b.so"); in testLoadLibInApkByFileName() 41 System.load(apkPath + "!/lib/armeabi-v7a/libdynamiclinker_native_lib_b.so"); in testLoadLibInApkByFileName() 43 System.load(apkPath + "!/lib/x86_64/libdynamiclinker_native_lib_b.so"); in testLoadLibInApkByFileName() 45 System.load(apkPath + "!/lib/x86/libdynamiclinker_native_lib_b.so"); in testLoadLibInApkByFileName()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | Utils.java | 78 static void installPackage(String apkPath) { in installPackage() argument 79 installPackageForUser(apkPath, null /* user */, null /* installerPackageName */); in installPackage() 85 static void installPackage(String apkPath, String installerPackageName) { in installPackage() argument 86 installPackageForUser(apkPath, null /* user */, installerPackageName); in installPackage() 92 static void installPackageForUser(String apkPath, UserReference user) { in installPackageForUser() argument 93 installPackageForUser(apkPath, user, getContext().getPackageName()); in installPackageForUser() 99 private static void installPackageForUser(String apkPath, UserReference user, in installPackageForUser() argument 101 assertWithMessage(apkPath).that(new File(apkPath).exists()).isTrue(); in installPackageForUser() 109 cmd.append(apkPath); in installPackageForUser() 117 static void installExistPackageForUser(String apkPath, UserReference user) { in installExistPackageForUser() argument [all …]
|
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/ |
D | IncrementalAppErrorStatsTestsHelper.java | 51 final String apkPath = testArgs.getString(HELPER_ARG_APK_PATH); in getPageIndexToBlock() local 52 assertThat(apkPath).isNotNull(); in getPageIndexToBlock() 53 assertThat(new File(apkPath).exists()).isTrue(); in getPageIndexToBlock() 54 ZipFile zip = new ZipFile(apkPath); in getPageIndexToBlock() 77 final String apkPath = apkDir + "/" + apkName; in loadingApks() local 78 if (new File(apkPath).isFile()) { in loadingApks() 80 Files.readAllBytes(Paths.get(apkPath)); in loadingApks()
|
/cts/tests/tests/companion/common/src/android/companion/cts/common/ |
D | AppHelper.kt | 27 private val apkPath: String? = null constant in android.companion.cts.common.AppHelper 41 fun install() = apkPath?.let { runShellCommand("pm install --user $userId $apkPath") } in associate()
|
/cts/tests/tests/gamemanager/src/android/gamemanager/cts/ |
D | TestUtil.java | 30 public static void installPackage(@NonNull String apkPath) { in installPackage() argument 31 assertEquals("Success", runShellCommand("pm install --force-queryable -t " + apkPath)); in installPackage()
|
/cts/hostsidetests/packagemanager/parsing/processing/ |
D | ApkGenerator.py | 89 apkPath = f"{outDir}/{hashCode}.apk" variable 97 "-o", apkPath 104 apkPath
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2023_21253.java | 111 final String apkPath = AdbUtils.TMP_PATH + apkName; in installAndCheck() local 114 AdbUtils.pushResource(AdbUtils.RESOURCE_ROOT + apkName, apkPath, device); in installAndCheck() 117 return device.executeShellV2Command("pm install " + apkPath); in installAndCheck()
|
/cts/hostsidetests/packagemanager/packagesetting/app/src/com/android/tests/packagesetting/app/ |
D | PackageSettingDeviceTest.java | 40 String apkPath = pi.applicationInfo.sourceDir; in testCodePathMatchesExpected() local 41 Assert.assertTrue(apkPath.startsWith(expectedCodePath)); in testCodePathMatchesExpected()
|
/cts/hostsidetests/classloaders/useslibrary/app/src/com/android/cts/useslibrary/ |
D | UsesLibraryTest.java | 80 String apkPath = apkDexFile.getName(); in testDuplicateLibrary() local 84 String testPath = apkPath + File.pathSeparator + apkPath; in testDuplicateLibrary()
|
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/ |
D | Common.kt | 56 fun installPackage(apkPath: String): Boolean { in installPackage() 57 return runShellCommand("pm install --force-queryable -t $apkPath") == "Success\n" in installPackage()
|
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/ |
D | UserRestrictionInstallTest.kt | 135 installPackageViaAdb(apkPath = "$TEST_APK_LOCATION/$TEST_APK_NAME") in <lambda>() 158 installPackageViaAdb(apkPath = "$TEST_APK_LOCATION/$TEST_APK_NAME", user = workProfile) in <lambda>() 218 installPackageViaAdb(apkPath = "$TEST_APK_LOCATION/$TEST_APK_NAME") in <lambda>() 252 installPackageViaAdb(apkPath = "$TEST_APK_LOCATION/$TEST_APK_NAME", user = workProfile) in <lambda>() 328 installPackageViaAdb(apkPath = "$TEST_APK_LOCATION/$TEST_APK_NAME") in <lambda>() 352 private fun installPackageViaAdb(apkPath: String, user: UserReference? = null): String? { in <lambda>() 354 cmd.addOperand(apkPath) in <lambda>()
|
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/ |
D | LoadingProgressTest.java | 107 final String apkPath = apkDir + "/" + apkName; in testReadAllBytes() local 108 assertTrue(new File(apkPath).exists()); in testReadAllBytes() 109 byte[] apkContentBytes = Files.readAllBytes(Paths.get(apkPath)); in testReadAllBytes()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | DynamicPermissionsTest.kt | 110 private fun installPackage(apkPath: String) { in installPackage() 111 runShellCommand("pm install -r --user ${user.identifier} $apkPath") in installPackage()
|
D | RolePermissionOverrideTest.kt | 98 private fun installPackage(apkPath: String) { in installPackage() 99 runShellCommand("pm install -r --user ${user.identifier} $apkPath") in installPackage()
|
D | BasePermissionUiTest.kt | 283 protected fun installPackage(apkPath: String) { in <lambda>() 284 SystemUtil.runShellCommand("pm install -r --user ${user.identifier} $apkPath") in <lambda>()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/ |
D | StaticSharedLibsMultiUserTests.java | 77 private boolean installPackageAsUser(String apkPath, String installerName, UserReference user) { in installPackageAsUser() argument 82 cmd.addOperand(apkPath); in installPackageAsUser()
|
D | StaticSharedLibsTests.java | 262 private boolean installPackage(String apkPath) { in installPackage() argument 263 return runShellCommand("pm install -t " + apkPath).equals("Success\n"); in installPackage()
|
/cts/tests/tests/jni/src/android/jni/cts/ |
D | LinkerNamespacesHelper.java | 336 String apkPath = getSourcePath("android.jni.cts"); in runClassLoaderNamespaces() local 339 apkPath, nativePath, ClassLoader.getSystemClassLoader()); in runClassLoaderNamespaces() 342 apkPath, nativePath, ClassLoader.getSystemClassLoader()); in runClassLoaderNamespaces()
|
/cts/hostsidetests/compilation/src/android/compilation/cts/ |
D | Utils.java | 184 private String getDmPath(String apkPath) throws Exception { in getDmPath() argument 185 return apkPath.replaceAll("\\.apk$", ".dm"); in getDmPath()
|
/cts/tests/tests/jvmti/attaching/src/android.jvmti.attaching.cts/ |
D | AttachingTest.java | 146 String apkPath = clfile.substring(0, clfile.lastIndexOf('!')); in getAgentInputStream() 147 ZipFile zip = new ZipFile(apkPath); in getAgentInputStream()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerMultiArchAppTest.java | 276 private String installPackage(@NonNull String apkPath) { in installPackage() argument 277 Objects.requireNonNull(apkPath); in installPackage() 278 return SystemUtil.runShellCommand("pm install " + apkPath); in installPackage()
|
D | PackageManagerTest.java | 911 final String apkPath = mContext.getPackageCodePath(); in testGetPackageArchiveInfo() local 914 PackageInfo pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 921 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 926 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 936 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 941 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 946 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 951 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 956 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 963 final String apkPath = mContext.getPackageCodePath(); in runTestGetPackageArchiveInfoSameApplicationInfo() local [all …]
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | CtsApiCoverage.java | 304 String apkPath = testApk.getPath(); in addApiCoverage() 311 Process process = new ProcessBuilder(dexdeps, "--format=xml", apkPath).start(); in addApiCoverage() 316 System.err.println("warning: dexdeps failed for: " + apkPath); in addApiCoverage()
|
D | TestCaseReport.java | 208 String apkPath = Paths.get(tsPath, apkName).toString(); in parseApkTestCase() local 210 dexFile = DexFileFactory.loadDexFile(apkPath, Opcodes.forApi(api)); in parseApkTestCase() 212 System.err.println("Unable to load dex file: " + apkPath); in parseApkTestCase()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | TestSuiteParser.java | 208 String apkPath = Paths.get(mFolderPath, pkgBuilder.getPackageFile()).toString(); in parseApkTestCase() local 213 dexFile = DexFileFactory.loadDexFile(apkPath, Opcodes.getDefault()); in parseApkTestCase() 289 System.err.println("Unable to load dex file: " + apkPath); in parseApkTestCase()
|