Home
last modified time | relevance | path

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

/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DCommonLauncherHelper.java133 String packageName) { in launchApp() argument
134 return launchApp(launcherStrategy, app, packageName, MAX_SCROLL_ATTEMPTS); in launchApp()
147 String packageName, int maxScrollAttempts) { in launchApp() argument
150 if (isAppOpen(packageName)) { in launchApp()
183 return verifyAppStart(packageName, ready); in launchApp()
195 public long launchApp(LauncherInstrumentation launcher, String appName, String packageName) { in launchApp() argument
198 if (isAppOpen(packageName)) { in launchApp()
211 icon.launch(packageName); in launchApp()
215 private long verifyAppStart(String packageName, long appStartTime) { in verifyAppStart() argument
217 if (packageName != null) { in verifyAppStart()
[all …]
DTvLauncherStrategy.java416 public long launch(String appName, String packageName) { in launch() argument
417 Log.d(LOG_TAG, String.format("launching [name]%s [package]%s", appName, packageName)); in launch()
418 return launchApp(this, appName, packageName, isGame(packageName)); in launch()
588 protected UiObject2 selectAppInAllApps(BySelector appSelector, String packageName) {
606 Log.i(LOG_TAG, String.format("The app %s is selected", packageName));
633 "Failed to navigate to the app icon on screen: " + packageName);
645 protected UiObject2 selectAppInAllAppsZigZag(BySelector appSelector, String packageName) {
654 Log.i(LOG_TAG, String.format("The app %s is selected", packageName));
662 public UiObject2 selectAppInAllApps(String appName, String packageName) {
670 app = selectAppInAllApps(getAppInAppsViewSelector(appName), packageName);
[all …]
DLeanbackLauncherStrategy.java200 public long launch(String appName, String packageName) { in launch() argument
202 return launchApp(this, app, packageName, isGame(packageName)); in launch()
370 String packageName, boolean isGame) { in launchApp() argument
371 return launchApp(launcherStrategy, app, packageName, isGame, MAX_SCROLL_ATTEMPTS); in launchApp()
375 String packageName, boolean isGame, int maxScrollAttempts) { in launchApp() argument
378 if (isAppOpen(packageName)) { in launchApp()
410 + packageName); in launchApp()
443 "Failed to navigate to the app icon on screen: " + packageName); in launchApp()
455 if (!mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT)) { in launchApp()
460 if (packageName != null) { in launchApp()
[all …]
DILauncherStrategy.java120 public long launch(String appName, String packageName); in launch() argument
DNexusLauncherStrategy.java170 public long launch(String appName, String packageName) { in launch() argument
171 return CommonLauncherHelper.getInstance(mDevice).launchApp(mLauncher, appName, packageName); in launch()
DWearLauncherStrategy.java174 public long launch(String appName, String packageName) { in launch() argument
177 return CommonLauncherHelper.getInstance(mDevice).launchApp(this, app, packageName); in launch()
DBaseLauncher3Strategy.java166 public long launch(String appName, String packageName) { in launch() argument
168 return CommonLauncherHelper.getInstance(mDevice).launchApp(this, app, packageName); in launch()
DAospLauncherStrategy.java155 public long launch(String appName, String packageName) { in launch() argument
157 By.res("").clazz(TextView.class).desc(appName), packageName); in launch()
DAutoLauncherStrategy.java452 public long launch(String appName, String packageName) { in launch() argument
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/
DPackageHelper.java52 public void cleanPackage(String packageName) { in cleanPackage() argument
53 cmdHelper.executeShellCommand(String.format("pm clear %s", packageName)); in cleanPackage()
62 public Boolean isPackageInstalled(String packageName) { in isPackageInstalled() argument
64 mPackageManager.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES); in isPackageInstalled()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java138 public List<String> getPermissionByPackage(String packageName, Boolean permitted) { in getPermissionByPackage() argument
144 packageInfo = mContext.getPackageManager().getPackageInfo(packageName, in getPermissionByPackage()
147 throw new RuntimeException(String.format("%s package isn't found", packageName)); in getPermissionByPackage()
170 public void verifyExtraDangerousPermissionNotGranted(String packageName, in verifyExtraDangerousPermissionNotGranted() argument
174 List<String> allPermissionsForPackageList = getPermissionByPackage(packageName, in verifyExtraDangerousPermissionNotGranted()
182 packageName), in verifyExtraDangerousPermissionNotGranted()
192 public void verifyNotPermittedDangerousPermissionDenied(String packageName, in verifyNotPermittedDangerousPermissionDenied() argument
196 List<String> allPermissionsForPackageList = getPermissionByPackage(packageName, in verifyNotPermittedDangerousPermissionDenied()
202 packageName), in verifyNotPermittedDangerousPermissionDenied()
210 public void verifyNormalPermissionsAutoGranted(String packageName) { in verifyNormalPermissionsAutoGranted() argument
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DStandardAppHelper.java30 public StandardAppHelper(Instrumentation instr, String packageName, String launcherName) { in StandardAppHelper() argument
32 mPackageName = packageName; in StandardAppHelper()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java188 public String getPackageVersion(String packageName) throws NameNotFoundException { in getPackageVersion() argument
189 if (null == packageName || packageName.isEmpty()) { in getPackageVersion()
193 PackageInfo pInfo = pm.getPackageInfo(packageName, 0); in getPackageVersion()
197 String.format("Version isn't found for package = %s", packageName)); in getPackageVersion()
/platform_testing/utils/permissions/src/com/android/permissionutils/
DGrantPermissionUtil.java42 pm.grantRuntimePermission(pkgInfo.packageName, permission, myUserHandle()); in grantAllPermissions()
52 Log.e(LOG_TAG, String.format("Missing permissions for %s", pkgInfo.packageName)); in dumpMissingPermissions()
85 int flag = pm.checkPermission(permission, info.packageName); in getMissingPermissions()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DCpuUsageHelper.java100 String packageName = mStatsdHelper.getPackageName(uId); in getMetrics() local
105 + " System_Time: %d", uId, packageName, userTimeMillis, in getMetrics()
121 (packageName == null) ? String.valueOf(uId) : packageName, in getMetrics()
124 (packageName == null) ? String.valueOf(uId) : packageName, in getMetrics()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DIorapCompilationRule.java92 private void purgeIorapPackage(String packageName) { in purgeIorapPackage() argument
97 Log.v(TAG, "Purge iorap package: " + packageName); in purgeIorapPackage()
98 executeShellCommand(String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage()
99 Log.v(TAG, "Executed: " + String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage()
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/
DCalculatorHelper.java59 public void launchApp(String packageName, String appName) { in launchApp() argument
60 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp()
61 mLauncherStrategy.launch(appName, packageName); in launchApp()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemAppJankTests.java110 public void launchApp(String packageName) throws UiObjectNotFoundException { in launchApp() argument
112 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java103 if (pkg.packageName.equals(mInstrumentation.getTargetContext().getPackageName())) { in populateManyRecentApps()
106 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps()
115 Log.i(TAG, "Failed to start package " + pkg.packageName + ", exception: " + e); in populateManyRecentApps()
120 launchedPackages.add(pkg.packageName); in populateManyRecentApps()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java306 String packageName = header.group(2); in parseGfxInfoMetrics() local
307 Log.v(LOG_TAG, String.format("Collecting metrics for: %s", packageName)); in parseGfxInfoMetrics()
312 constructKey(GFXINFO_METRICS_PREFIX, packageName, metric.getMetricId()); in parseGfxInfoMetrics()
316 Log.d(LOG_TAG, String.format("Did not find %s from %s", metricKey, packageName)); in parseGfxInfoMetrics()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DAutomationUtils.java279 public static void stopPackage(Context context, String packageName) { in stopPackage() argument
280 runShellCommand("am force-stop " + packageName); in stopPackage()
283 packageUid = context.getPackageManager().getPackageUid(packageName, /* flags= */ 0); in stopPackage()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java79 public void launchApp(String packageName, String appName) { in launchApp() argument
80 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp()
81 mLauncherStrategy.launch(appName, packageName); in launchApp()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java433 startIntent.setClassName(ri.activityInfo.packageName, in resolveLoop()
489 String packageName = mLaunchIntent.getComponent().getPackageName(); in run() local
572 String packageName = startIntent.getComponent().getPackageName(); in closeApps() local
575 FORCE_STOP + packageName); in closeApps()
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java84 public void launchApp(String packageName) { in launchApp() argument
86 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()