Home
last modified time | relevance | path

Searched refs:packageName (Results 1 – 22 of 22) sorted by relevance

/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DSystemPackageUninstaller.java49 public static void uninstallPackage(String packageName, ITestDevice device) in uninstallPackage() argument
51 checkNotNull(packageName); in uninstallPackage()
69 if (!isPackageInstalled(packageName, device)) { in uninstallPackage()
70 CLog.i("Package %s is not installed.", packageName); in uninstallPackage()
77 removePackageUpdates(packageName, device); in uninstallPackage()
79 if (!isPackageInstalled(packageName, device)) { in uninstallPackage()
80 CLog.i("Package %s has been removed.", packageName); in uninstallPackage()
84 String packageInstallDirectory = getPackageInstallDirectory(packageName, device); in uninstallPackage()
85 CLog.d("Install directory for package %s is %s", packageName, packageInstallDirectory); in uninstallPackage()
88 CLog.w("%s is not a system app, skipping", packageName); in uninstallPackage()
[all …]
DApkInstaller.java79 String packageName; in install() local
81 packageName = mPackageNameParser.parsePackageName(apkFilePaths.get(0)); in install()
86 CLog.d("Attempting to uninstall package %s before installation", packageName); in install()
87 String[] uninstallCmd = createUninstallCommand(packageName, mDeviceSerial); in install()
93 CLog.d("Installing package %s from %s", packageName, apkPath); in install()
105 mInstalledPackages.add(packageName); in install()
108 createObbInstallCommands(apkFilePaths, mDeviceSerial, packageName); in install()
195 List<Path> apkFilePaths, String deviceSerial, String packageName) { in createObbInstallCommands() argument
203 "/sdcard/Android/obb/" + packageName + "/" + path.getFileName(); in createObbInstallCommands()
224 "/sdcard/Android/obb/" + packageName in createObbInstallCommands()
[all …]
DDeviceUtils.java135 public void grantExternalStoragePermissions(String packageName) in grantExternalStoragePermissions() argument
139 String.format("appops set %s MANAGE_EXTERNAL_STORAGE allow", packageName)); in grantExternalStoragePermissions()
144 packageName, cmdResult.toString()); in grantExternalStoragePermissions()
358 public void launchPackage(String packageName) in launchPackage() argument
363 "monkey -p %s -c android.intent.category.LAUNCHER 1", packageName)); in launchPackage()
370 packageName, monkeyResult); in launchPackage()
373 mDevice.executeShellV2Command(String.format("pm dump %s", packageName)); in launchPackage()
375 if (isPackageInstalled(packageName)) { in launchPackage()
379 packageName, pmResult)); in launchPackage()
382 String.format("Package %s is not installed on the device.", packageName)); in launchPackage()
[all …]
DPackageModuleInfoProvider.java68 packageName -> in get()
70 packageName, in get()
72 packageName, in get()
73 Map.of(PACKAGE_PLACEHOLDER, packageName)))); in get()
DPackagesFileModuleInfoProvider.java67 packageName -> in get()
69 packageName, in get()
71 packageName, in get()
72 Map.of(PACKAGE_PLACEHOLDER, packageName)))); in get()
DTestUtils.java217 public void collectAppVersion(String packageName) throws DeviceNotAvailableException { in collectAppVersion() argument
218 String versionCode = mDeviceUtils.getPackageVersionCode(packageName); in collectAppVersion()
219 String versionName = mDeviceUtils.getPackageVersionName(packageName); in collectAppVersion()
220 CLog.i("Package %s versionCode=%s, versionName=%s", packageName, versionCode, versionName); in collectAppVersion()
225 String.format("%s_[versionCode=%s]", packageName, versionCode), in collectAppVersion()
229 String.format("%s_[versionName=%s]", packageName, versionName), in collectAppVersion()
246 String packageName, DeviceTimestamp startTimeOnDevice, boolean saveToFile) in getDropboxPackageCrashLog() argument
250 DeviceUtils.DROPBOX_APP_CRASH_TAGS, packageName, startTimeOnDevice, null); in getDropboxPackageCrashLog()
251 return compileTestFailureMessage(packageName, crashEntries, saveToFile, null); in getDropboxPackageCrashLog()
267 String packageName, in compileTestFailureMessage() argument
[all …]
DRoboLoginConfigProvider.java48 public RoboLoginConfig findConfigFor(String packageName, boolean isUtpClient) { in findConfigFor() argument
49 Path crawlGuidanceFile = mLoginFilesDir.resolve(packageName + CRAWL_GUIDANCE_FILE_SUFFIX); in findConfigFor()
50 Path roboScriptFile = mLoginFilesDir.resolve(packageName + ROBOSCRIPT_FILE_SUFFIX); in findConfigFor()
DAppCrawlTester.java87 String packageName, TestInformation testInformation, TestLogData testLogData) { in newInstance() argument
89 packageName, in newInstance()
97 String packageName, in AppCrawlTester() argument
102 mPackageName = packageName; in AppCrawlTester()
361 private void generateRoboscriptSignalFile(Path roboOutputFile, String packageName) { in generateRoboscriptSignalFile() argument
365 packageName in generateRoboscriptSignalFile()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DPackageUtil.java29 public static boolean exists(ITestDevice device, String packageName) in exists() argument
31 return device.getInstalledPackageNames().contains(packageName); in exists()
35 public static boolean isSystemApp(ITestDevice device, String packageName) in isSystemApp() argument
37 PackageInfo info = device.getAppPackageInfo(packageName); in isSystemApp()
42 public static String getVersionString(ITestDevice device, String packageName) in getVersionString() argument
44 PackageInfo info = device.getAppPackageInfo(packageName); in getVersionString()
/test/cts-root/tests/packagemanagerlocal/src/android/packagemanagerlocal/cts_root/
DPackageManagerLocalTest.java51 final String packageName = "android.packagemanagerlocal.test"; in testPackageManagerLocal_ReconcileSdkData_DifferentStorageFlags() local
63 File cePackageDirFile = new File("/data/misc_ce/0/sdksandbox/" + packageName); in testPackageManagerLocal_ReconcileSdkData_DifferentStorageFlags()
64 File dePackageDirFile = new File("/data/misc_de/0/sdksandbox/" + packageName); in testPackageManagerLocal_ReconcileSdkData_DifferentStorageFlags()
67 mPackageManagerLocal.reconcileSdkData(volumeUuid, packageName, subDirNames, userId, in testPackageManagerLocal_ReconcileSdkData_DifferentStorageFlags()
91 mPackageManagerLocal.reconcileSdkData(volumeUuid, packageName, emptyDir, userId, in testPackageManagerLocal_ReconcileSdkData_DifferentStorageFlags()
102 final String packageName = "android.packagemanagerlocal.test"; in testPackageManagerLocal_ReconcileSdkData_Reconcile() local
110 File cePackageDirFile = new File("/data/misc_ce/0/sdksandbox/" + packageName); in testPackageManagerLocal_ReconcileSdkData_Reconcile()
113 mPackageManagerLocal.reconcileSdkData(volumeUuid, packageName, subDirNames, userId, in testPackageManagerLocal_ReconcileSdkData_Reconcile()
118 mPackageManagerLocal.reconcileSdkData(volumeUuid, packageName, differentSubDirNames, in testPackageManagerLocal_ReconcileSdkData_Reconcile()
127 mPackageManagerLocal.reconcileSdkData(volumeUuid, packageName, emptyDir, userId, appId, in testPackageManagerLocal_ReconcileSdkData_Reconcile()
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/
DDeviceUtilsTest.java80 String packageName = "package.name"; in isPackageInstalled_packageIsInstalled_returnsTrue() local
83 createSuccessfulCommandResultWithStdout("\npackage:" + packageName + "\n")); in isPackageInstalled_packageIsInstalled_returnsTrue()
86 boolean res = sut.isPackageInstalled(packageName); in isPackageInstalled_packageIsInstalled_returnsTrue()
93 String packageName = "package.name"; in isPackageInstalled_packageIsNotInstalled_returnsFalse() local
98 boolean res = sut.isPackageInstalled(packageName); in isPackageInstalled_packageIsNotInstalled_returnsFalse()
530 String packageName = "com.app.package"; in isDropboxEntryFromPackageProcess_cmdlineMatched_returnsTrue() local
533 boolean res = sut.isDropboxEntryFromPackageProcess(dropboxEntryData, packageName); in isDropboxEntryFromPackageProcess_cmdlineMatched_returnsTrue()
541 String packageName = "com.app.package"; in isDropboxEntryFromPackageProcess_processMatched_returnsTrue() local
544 boolean res = sut.isDropboxEntryFromPackageProcess(dropboxEntryData, packageName); in isDropboxEntryFromPackageProcess_processMatched_returnsTrue()
553 String packageName = "com.app.package"; in isDropboxEntryFromPackageProcess_processMatchedInLines_returnsTrue() local
[all …]
DPackageModuleInfoProviderTest.java163 ProviderBuilder addPackage(String packageName) { in addPackage() argument
164 mPackages.add(packageName); in addPackage()
168 ProviderBuilder addAltPackage(String packageName) { in addAltPackage() argument
169 mAltPackages.add(packageName); in addAltPackage()
DDirectoryBasedModuleInfoProviderTest.java107 String packageName = "package.name"; in get_directoryContainsApk_packagePlaceholderIsSubstituted() local
110 apk -> packageName, createDirectoryWithApkFiles("package.apk")); in get_directoryContainsApk_packagePlaceholderIsSubstituted()
118 .containsExactly(packageName); in get_directoryContainsApk_packagePlaceholderIsSubstituted()
DModuleGeneratorTest.java289 Path testsDir, String packageName) throws IOException { in assertThatModuleConfigFileContent() argument
291 new String(Files.readAllBytes(getModuleConfigFile(testsDir, packageName)))); in assertThatModuleConfigFileContent()
302 private static Path getModuleConfigFile(Path baseDir, String packageName) { in getModuleConfigFile() argument
303 return baseDir.resolve(packageName + ".config"); in getModuleConfigFile()
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/config/
DAppRemoteFileResolver.java148 String packageName = appUri.getAuthority(); in resolveRemoteFiles() local
149 String expanded = expandVars(mUriTemplate, ImmutableMap.of("package", packageName)); in resolveRemoteFiles()
169 return resolveUriToFile(packageName, uri, uriQueryAndExtraParameters); in resolveRemoteFiles()
197 String packageName = uri.getAuthority(); in checkAppUri() local
198 if (Strings.isNullOrEmpty(packageName)) { in checkAppUri()
201 "Invalid package name (%s) in provided URI (%s)", packageName, uri)); in checkAppUri()
244 private File resolveUriToFile(String packageName, URI uri, Map<String, String> params) in resolveUriToFile() argument
260 String.format("Could not resolve URI (%s) for package '%s'", uri, packageName), in resolveUriToFile()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/webview/lib/
DWebviewPackage.java33 public WebviewPackage(String packageName, String version, long versionCode, Path apkPath) { in WebviewPackage() argument
34 this(packageName, version, versionCode); in WebviewPackage()
38 public WebviewPackage(String packageName, String version, long versionCode) { in WebviewPackage() argument
39 mPackageName = packageName; in WebviewPackage()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/pixel/utils/
DDeviceUtils.java111 public void launchApp(String packageName) { in launchApp() argument
113 Intent intent = context.getPackageManager().getLaunchIntentForPackage(packageName); in launchApp()
124 public void takeScreenshot(String packageName, String description) { in takeScreenshot() argument
129 "%s_%s_screenshot_%s.png", mTestName, packageName, description)); in takeScreenshot()
138 public void startRecording(String packageName) { in startRecording() argument
143 String.format("%s_%s_screenrecord", mTestName, packageName)); in startRecording()
/test/cts-root/tests/usage/src/android/usage/cts_root/
DStorageStatsManagerLocalTest.java57 String packageName = context.getPackageName(); in testStorageAugmenter() local
63 storageStatsManager.queryStatsForPackage(UUID_DEFAULT, packageName, user); in testStorageAugmenter()
73 storageStatsManager.queryStatsForPackage(UUID_DEFAULT, packageName, user); in testStorageAugmenter()
91 String packageName, in augmentStatsForPackageForUser() argument
/test/cts-root/tests/permission/src/android/permission/cts-root/
DSignaturePermissionAllowlistTest.java128 private void uninstallPackage(@NonNull String packageName) throws Exception { in uninstallPackage() argument
129 SystemUtil.runShellCommandOrThrow("pm uninstall " + packageName); in uninstallPackage()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DDeviceInteractionHelperInstallerTest.java95 private void mockApkPackage(File apk, String packageName) { in mockApkPackage() argument
97 when(mockParser.getPackageName()).thenReturn(packageName); in mockApkPackage()
/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/
DRollbackManagerHostTest.java571 private void startActivity(String packageName) throws Exception { in startActivity() argument
573 + "-c android.intent.category.LAUNCHER " + packageName; in startActivity()
/test/cts-root/tests/packagewatchdog/src/android/packagewatchdog/cts_root/
DPackageWatchdogTest.java300 public boolean mayObservePackage(String packageName) { in mayObservePackage() argument