Home
last modified time | relevance | path

Searched refs:packageName (Results 1 – 13 of 13) 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()
68 if (!isPackageInstalled(packageName, device)) { in uninstallPackage()
69 CLog.i("Package %s is not installed.", packageName); in uninstallPackage()
76 removePackageUpdates(packageName, device); in uninstallPackage()
78 if (!isPackageInstalled(packageName, device)) { in uninstallPackage()
79 CLog.i("Package %s has been removed.", packageName); in uninstallPackage()
83 String packageInstallDirectory = getPackageInstallDirectory(packageName, device); in uninstallPackage()
84 CLog.d("Install directory for package %s is %s", packageName, packageInstallDirectory); in uninstallPackage()
87 CLog.w("%s is not a system app, skipping", packageName); in uninstallPackage()
[all …]
/test/app_compat/csuite/instrumentation/launch/src/main/java/com/android/compatibilitytest/
DAppCompatibility.java110 mLauncherPackageName = resolveInfo.activityInfo.packageName; in setUp()
142 String packageName = mArgs.getString(PACKAGE_TO_LAUNCH); in testAppStability() local
144 packageName, in testAppStability()
149 Log.d(TAG, "Launching app " + packageName); in testAppStability()
150 Intent intent = getLaunchIntentForPackage(packageName); in testAppStability()
152 Log.w(TAG, String.format("Skipping %s; no launch intent", packageName)); in testAppStability()
156 launchActivity(packageName, intent); in testAppStability()
169 checkDropbox(startTime, packageName); in testAppStability()
170 if (mAppErrors.containsKey(packageName)) { in testAppStability()
172 new StringBuilder("Error(s) detected for package: ").append(packageName); in testAppStability()
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/config/
DModuleGenerator.java190 for (String packageName : getPackageNames()) { in generateModules()
191 validatePackageName(packageName); in generateModules()
193 getModulePath(packageName), in generateModules()
194 templateContent.replaceAll(TEMPLATE_PACKAGE_PATTERN, packageName).getBytes()); in generateModules()
201 packageName -> { in cleanUpModules()
203 Files.delete(getModulePath(packageName)); in cleanUpModules()
207 + packageName, in cleanUpModules()
213 private Path getModulePath(String packageName) throws IOException { in getModulePath() argument
215 return testsDir.resolve(packageName + MODULE_FILE_EXTENSION); in getModulePath()
218 private static void validatePackageName(String packageName) { in validatePackageName() argument
[all …]
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/vti/dashboard/src/main/java/com/android/vts/entity/
DApiCoverageExcludedEntity.java52 @Index @Getter @Setter private String packageName; field in ApiCoverageExcludedEntity
74 String packageName, in ApiCoverageExcludedEntity() argument
80 this.packageName = packageName; in ApiCoverageExcludedEntity()
106 return this.packageName in getObjectifyId()
DApiCoverageEntity.java153 public static List<ApiCoverageEntity> getByPackageNameList(String packageName) { in getByPackageNameList() argument
156 .filter("halPackageName", packageName) in getByPackageNameList()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/testtype/
DAppLaunchTest.java114 public AppLaunchTest(String packageName) { in AppLaunchTest() argument
115 this(packageName, 0); in AppLaunchTest()
119 public AppLaunchTest(String packageName, int retryCount) { in AppLaunchTest() argument
120 mPackageName = packageName; in AppLaunchTest()
201 result.packageName = mPackageName; in testPackage()
255 CLog.d("Launching package: %s.", result.packageName); in launchPackage()
264 InstrumentationTest instrTest = createInstrumentationTest(result.packageName); in launchPackage()
271 CLog.w("Failed to launch package: %s.", result.packageName); in launchPackage()
278 CLog.d("Completed launching package: %s", result.packageName); in launchPackage()
323 listener.testLog("logcat_" + result.packageName, LogDataType.LOGCAT, stream); in postLogcat()
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/util/
DPublicApkUtil.java183 public final String packageName; field in PublicApkUtil.ApkInfo
190 String packageName, in ApkInfo() argument
195 this.packageName = packageName; in ApkInfo()
222 packageName, versionCode, versionString, rank, fileName); in toString()
/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/vti/dashboard/src/test/java/com/android/vts/entity/
DApiCoverageExcludedEntityTest.java33 String packageName = "android.hardware.audio"; in saveTest() local
38 packageName, version, "IDevice", apiName, "not testable"); in saveTest()
41 assertEquals(apiCoverageExcludedEntity.getPackageName(), packageName); in saveTest() local
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/config/
DModuleGeneratorTest.java215 Path testsDir, String packageName) throws IOException { in assertThatModuleConfigFileContent() argument
217 new String(Files.readAllBytes(getModuleConfigFile(testsDir, packageName)))); in assertThatModuleConfigFileContent()
228 private static Path getModuleConfigFile(Path baseDir, String packageName) { in getModuleConfigFile() argument
229 return baseDir.resolve(packageName + ".config"); in getModuleConfigFile()
260 GeneratorBuilder addPackage(String packageName) { in addPackage() argument
261 mPackages.add(packageName); in addPackage()
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/result/
DCompatibilityTestResult.java44 public String packageName = null; field in CompatibilityTestResult
59 o.put(KEY_PACKAGE, packageName); in toJsonString()
79 result.packageName = o.getString(KEY_PACKAGE); in fromJsonString()
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/
DAppSetupPreparerTest.java426 private File createPackageFile(String packageName, String apkName) throws IOException { in createPackageFile() argument
429 Paths.get(tempFolder.newFolder("any").getAbsolutePath(), packageName)); in createPackageFile()