/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | AddAppToHomescreenRule.java | 39 public AddAppToHomescreenRule(String appName) { in AddAppToHomescreenRule() argument 40 mAppName = appName; in AddAppToHomescreenRule() 50 String appName = getArguments().getString(HOME_SCREEN_APP_NAME, ""); in starting() local 51 if(appName != null && !appName.isEmpty()) { in starting() 52 mAppName = appName; in starting()
|
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/ |
D | AppTransitionTests.java | 179 String appName = mAppListArray[appCount]; in testColdLaunchFromLauncher() local 181 if (setupAppLaunch(appName) == ILauncherStrategy.LAUNCH_FAILED_TIMESTAMP) { in testColdLaunchFromLauncher() 185 appName in testColdLaunchFromLauncher() 194 String.format("%s-%d", appName, launchCount)); in testColdLaunchFromLauncher() 196 mLauncherStrategy.launch(appName, mComponentName.split("\\/")[0]); in testColdLaunchFromLauncher() 204 appName in testColdLaunchFromLauncher() 213 updateResult(appName); in testColdLaunchFromLauncher() 231 String appName = mAppListArray[appCount]; in testHotLaunchFromLauncher() local 233 if (setupAppLaunch(appName) == ILauncherStrategy.LAUNCH_FAILED_TIMESTAMP) { in testHotLaunchFromLauncher() 241 String.format("%s-%d", appName, (launchCount))); in testHotLaunchFromLauncher() [all …]
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/ |
D | AutoLauncherStrategy.java | 156 public void openMediaFacet(String appName) { in openMediaFacet() argument 175 UiObject2 app = findApplication(appName); in openMediaFacet() 177 throw new RuntimeException(String.format("Failed to find %s app in media.", appName)); in openMediaFacet() 183 if (appName.equals("Radio")) { in openMediaFacet() 260 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument 261 waitUntilOneOfTheAppOpen(Arrays.asList(appName), timeout); in waitUntilAppOpen() 275 .map(appName -> mDevice.hasObject(APP_OPEN_VERIFIERS.get(appName))) in waitUntilOneOfTheAppOpen() 320 public boolean checkApplicationExists(String appName) { in checkApplicationExists() argument 322 UiObject2 app = findApplication(appName); in checkApplicationExists() 327 public void openApp(String appName) { in openApp() argument [all …]
|
D | IAutoLauncherStrategy.java | 39 void openMediaFacet(String appName); in openMediaFacet() argument 73 boolean checkApplicationExists(String appName); in checkApplicationExists() argument 82 void openApp(String appName); in openApp() argument
|
D | AllAppsScreenHelper.java | 69 for (String appName : appNamesExpected) { in searchAllAppsScreen() 71 "The following app couldn't be found in the search results: " + appName, in searchAllAppsScreen() 72 mDevice.wait(Until.findObject(By.text(appName)), TIMEOUT)); in searchAllAppsScreen()
|
D | TvLauncherStrategy.java | 286 public BySelector getFavoriteAppSelector(String appName) { in getFavoriteAppSelector() argument 287 return By.res(getSupportedLauncherPackage(), "favorite_app_banner").desc(appName); in getFavoriteAppSelector() 291 public BySelector getAppInAppsViewSelector(String appName) { in getAppInAppsViewSelector() argument 294 return By.res(getSupportedLauncherPackage(), "banner_image").desc(appName); in getAppInAppsViewSelector() 296 return By.res(getSupportedLauncherPackage(), "app_title").text(appName); in getAppInAppsViewSelector() 404 public long launch(String appName, String packageName) { in launch() argument 405 Log.d(LOG_TAG, String.format("launching [name]%s [package]%s", appName, packageName)); in launch() 406 return launchApp(this, appName, packageName, isGame(packageName)); in launch() 640 public UiObject2 selectAppInAllApps(String appName, String packageName) { 650 app = selectAppInAllApps(getAppInAppsViewSelector(appName), packageName); [all …]
|
D | ILauncherStrategy.java | 148 long launch(String appName, String packageName); in launch() argument
|
D | CommonLauncherHelper.java | 212 public long launchApp(LauncherInstrumentation launcher, String appName, String packageName) { in launchApp() argument 222 AppIcon icon = workspace.tryGetWorkspaceAppIcon(appName); in launchApp() 224 icon = workspace.switchToAllApps().getAppIcon(appName); in launchApp()
|
D | WearLauncherStrategy.java | 187 public long launch(String appName, String packageName) { in launch() argument 189 By.res(getSupportedLauncherPackage(), "title").clazz(TextView.class).text(appName); in launch()
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | AutoLauncherStrategy.java | 161 public void openMediaFacet(String appName) { in openMediaFacet() argument 181 UiObject2 app = findApplication(appName); in openMediaFacet() 183 throw new RuntimeException(String.format("Failed to find %s app in media.", appName)); in openMediaFacet() 189 if (appName.equals("Radio")) { in openMediaFacet() 275 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument 276 waitUntilOneOfTheAppOpen(Arrays.asList(appName), timeout); in waitUntilAppOpen() 290 .map(appName -> mDevice.hasObject(APP_OPEN_VERIFIERS.get(appName))) in waitUntilOneOfTheAppOpen() 339 public boolean checkApplicationExists(String appName) { in checkApplicationExists() argument 341 UiObject2 app = findApplication(appName); in checkApplicationExists() 346 public void openApp(String appName) { in openApp() argument [all …]
|
D | IAutoLauncherStrategy.java | 46 void openMediaFacet(String appName); in openMediaFacet() argument 92 boolean checkApplicationExists(String appName); in checkApplicationExists() argument 101 void openApp(String appName); in openApp() argument
|
D | AllAppsScreenHelper.java | 69 for (String appName : appNamesExpected) { in searchAllAppsScreen() 71 + appName, mDevice.wait(Until.findObject in searchAllAppsScreen() 72 (By.text(appName)), TIMEOUT)); in searchAllAppsScreen()
|
D | TvLauncherStrategy.java | 314 public BySelector getFavoriteAppSelector(String appName) { in getFavoriteAppSelector() argument 315 return By.res(getSupportedLauncherPackage(), "favorite_app_banner").desc(appName); in getFavoriteAppSelector() 321 public BySelector getAppInAppsViewSelector(String appName) { in getAppInAppsViewSelector() argument 324 return By.res(getSupportedLauncherPackage(), "banner_image").desc(appName); in getAppInAppsViewSelector() 326 return By.res(getSupportedLauncherPackage(), "app_title").text(appName); in getAppInAppsViewSelector() 428 public long launch(String appName, String packageName) { in launch() argument 429 Log.d(LOG_TAG, String.format("launching [name]%s [package]%s", appName, packageName)); in launch() 430 return launchApp(this, appName, packageName, isGame(packageName)); in launch() 674 public UiObject2 selectAppInAllApps(String appName, String packageName) { 682 app = selectAppInAllApps(getAppInAppsViewSelector(appName), packageName); [all …]
|
D | ILauncherStrategy.java | 147 long launch(String appName, String packageName); in launch() argument
|
D | CommonLauncherHelper.java | 203 public long launchApp(LauncherInstrumentation launcher, String appName, String packageName) { in launchApp() argument 213 AppIcon icon = workspace.tryGetWorkspaceAppIcon(appName); in launchApp() 215 icon = workspace.switchToAllApps().getAppIcon(appName); in launchApp()
|
D | WearLauncherStrategy.java | 190 public long launch(String appName, String packageName) { in launch() argument 192 getSupportedLauncherPackage(), "title").clazz(TextView.class).text(appName); in launch()
|
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/ |
D | IAutoGooglePlayHelper.java | 26 void searchAndClick(String appName); in searchAndClick() argument 33 void searchApp(String appName); in searchApp() argument
|
D | IAutoAppGridHelper.java | 61 void openApp(String appName); in openApp() argument 70 String getScreenBlockingMessage(String appName); in getScreenBlockingMessage() argument
|
D | IAutoPrivacySettingsHelper.java | 189 String getRecentPermissionDecisionMessage(String appName); in getRecentPermissionDecisionMessage() argument
|
D | IAutoMediaHelper.java | 160 void openApp(String appName); in openApp() argument
|
/platform_testing/libraries/automotive-helpers/app-grid-helper/src/android/platform/helpers/ |
D | AppGridHelperImpl.java | 112 public void openApp(String appName) { in openApp() argument 113 BySelector appNameSelector = By.text(appName); in openApp() 123 String.format("Scroll on app grid to find %s", appName)); in openApp() 125 getSpectatioUiUtil().validateUiObject(app, String.format("Given app %s", appName)); in openApp() 241 public String getScreenBlockingMessage(String appName) { in getScreenBlockingMessage() argument 248 String.format("Screen Blocking message when opening %s app", appName)); in getScreenBlockingMessage() 256 String.format("Screen Blocking message for %s app", appName)); in getScreenBlockingMessage()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/ |
D | LaunchAppRule.kt | 54 appName: String = "", 60 StandardAppHelper(instrumentation, appName, componentMatcher),
|
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/ |
D | StandardAppHelper.kt | 43 val appName: String, constant in android.tools.device.apphelpers.StandardAppHelper 48 appName: String, 51 ) : this(instr, appName, ComponentNameMatcher(packageName, ".$activity")) 81 tapl.goHome().switchToAllApps().getAppIcon(appName).launch(expectedPackageName) in open()
|
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/ |
D | PermissionHelper.java | 235 public Boolean verifyPermissionSettingStatus(String appName, String permission, in verifyPermissionSettingStatus() argument 240 openAppPermissionView(appName); in verifyPermissionSettingStatus() 286 public void openAppPermissionView(String appName) throws UiObjectNotFoundException { in openAppPermissionView() argument 306 appList.scrollIntoView(new UiSelector().text(appName)); in openAppPermissionView() 307 mDevice.findObject(By.text(appName)).clickAndWait(Until.newWindow(), TIMEOUT); in openAppPermissionView() 318 public void togglePermissionSetting(String appName, String permission, Boolean toBeSet) in togglePermissionSetting() argument 320 openAppPermissionView(appName); in togglePermissionSetting() 412 public List<String> getPermissionDescGroupNames(String appName) in getPermissionDescGroupNames() argument 415 openAppPermissionView(appName); in getPermissionDescGroupNames()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | UiActionLatencyHelperTest.java | 105 private void startApp(LauncherInstrumentation sLauncher, String appName, String appPackage) { in startApp() argument 109 allApps.getAppIcon(appName).launch(appPackage); in startApp()
|