/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | VolvoLauncherStrategy.java | 80 public void openApp(String appName) { in openApp() argument 81 if (checkApplicationExists(appName)) { in openApp() 82 UiObject2 app = mDevice.findObject(By.clickable(true).hasDescendant(By.text(appName))); in openApp() 86 throw new RuntimeException(String.format("Application %s not found", appName)); in openApp() 92 String appName = "Bluetooth Media Player"; in openBluetoothAudioApp() local 93 if (checkApplicationExists(appName)) { in openBluetoothAudioApp() 94 UiObject2 app = mDevice.findObject(By.clickable(true).hasDescendant(By.text(appName))); in openBluetoothAudioApp() 98 throw new RuntimeException(String.format("Application %s not found", appName)); in openBluetoothAudioApp() 103 public boolean checkApplicationExists(String appName) { in checkApplicationExists() argument 105 UiObject2 app = findApplication(appName); in checkApplicationExists() [all …]
|
D | IAutoLauncherStrategy.java | 46 void openMediaFacet(String appName); in openMediaFacet() argument 89 boolean checkApplicationExists(String appName); in checkApplicationExists() argument 98 void openApp(String appName); in openApp() argument
|
D | AutoLauncherStrategy.java | 154 public void openMediaFacet(String appName) { in openMediaFacet() argument 166 UiObject2 app = findApplication(appName); in openMediaFacet() 168 throw new RuntimeException(String.format("Failed to find %s app in media.", appName)); in openMediaFacet() 174 if (appName.equals("Radio")) { in openMediaFacet() 262 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument 263 waitUntilOneOfTheAppOpen(Arrays.asList(appName), timeout); in waitUntilAppOpen() 277 .map(appName -> mDevice.hasObject(APP_OPEN_VERIFIERS.get(appName))) in waitUntilOneOfTheAppOpen() 326 public boolean checkApplicationExists(String appName) { in checkApplicationExists() argument 328 UiObject2 app = findApplication(appName); in checkApplicationExists() 333 public void openApp(String appName) { in openApp() argument [all …]
|
D | AllAppsScreenHelper.java | 68 for (String appName : appNamesExpected) { in searchAllAppsScreen() 70 + appName, mDevice.wait(Until.findObject in searchAllAppsScreen() 71 (By.text(appName)), TIMEOUT)); in searchAllAppsScreen()
|
D | TvLauncherStrategy.java | 302 public BySelector getFavoriteAppSelector(String appName) { in getFavoriteAppSelector() argument 303 return By.res(getSupportedLauncherPackage(), "favorite_app_banner").desc(appName); in getFavoriteAppSelector() 309 public BySelector getAppInAppsViewSelector(String appName) { in getAppInAppsViewSelector() argument 312 return By.res(getSupportedLauncherPackage(), "banner_image").desc(appName); in getAppInAppsViewSelector() 314 return By.res(getSupportedLauncherPackage(), "app_title").text(appName); in getAppInAppsViewSelector() 416 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() 662 public UiObject2 selectAppInAllApps(String appName, String packageName) { 670 app = selectAppInAllApps(getAppInAppsViewSelector(appName), packageName); [all …]
|
D | ILauncherStrategy.java | 120 public long launch(String appName, String packageName); in launch() argument
|
D | CommonLauncherHelper.java | 195 public long launchApp(LauncherInstrumentation launcher, String appName, String packageName) { in launchApp() argument 205 AppIcon icon = workspace.tryGetWorkspaceAppIcon(appName); in launchApp() 207 icon = workspace.switchToAllApps().getAppIcon(appName); in launchApp()
|
D | NexusLauncherStrategy.java | 170 public long launch(String appName, String packageName) { in launch() argument 171 return CommonLauncherHelper.getInstance(mDevice).launchApp(mLauncher, appName, packageName); in launch()
|
D | WearLauncherStrategy.java | 174 public long launch(String appName, String packageName) { in launch() argument 176 getSupportedLauncherPackage(), "title").clazz(TextView.class).text(appName); in launch()
|
D | BaseLauncher3Strategy.java | 166 public long launch(String appName, String packageName) { in launch() argument 167 BySelector app = By.clazz(TextView.class).text(appName); in launch()
|
D | AospLauncherStrategy.java | 155 public long launch(String appName, String packageName) { in launch() argument 157 By.res("").clazz(TextView.class).desc(appName), packageName); in launch()
|
D | LeanbackLauncherStrategy.java | 200 public long launch(String appName, String packageName) { in launch() argument 201 BySelector app = By.res(getSupportedLauncherPackage(), "app_banner").desc(appName); in launch() 481 public boolean launchNotification(String appName) { in launchNotification() argument 492 By.res(getSupportedLauncherPackage(), "card").descContains(appName)); in launchNotification() 495 String.format("The Notification that matches %s not found", appName)); in launchNotification() 499 appName, card.getContentDescription())); in launchNotification()
|
/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/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
|
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/ |
D | PermissionHelper.java | 234 public Boolean verifyPermissionSettingStatus(String appName, String permission, in verifyPermissionSettingStatus() argument 239 openAppPermissionView(appName); in verifyPermissionSettingStatus() 285 public void openAppPermissionView(String appName) throws UiObjectNotFoundException { in openAppPermissionView() argument 305 appList.scrollIntoView(new UiSelector().text(appName)); in openAppPermissionView() 306 mDevice.findObject(By.text(appName)).clickAndWait(Until.newWindow(), TIMEOUT); in openAppPermissionView() 317 public void togglePermissionSetting(String appName, String permission, Boolean toBeSet) in togglePermissionSetting() argument 319 openAppPermissionView(appName); in togglePermissionSetting() 411 public List<String> getPermissionDescGroupNames(String appName) in getPermissionDescGroupNames() argument 414 openAppPermissionView(appName); in getPermissionDescGroupNames()
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
D | CalculatorHelper.java | 59 public void launchApp(String packageName, String appName) { in launchApp() argument 61 mLauncherStrategy.launch(appName, packageName); in launchApp()
|
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/ |
D | OverviewHelper.java | 125 public void dockAppToTopMultiwindowSlot(String appPackageName, String appName) in dockAppToTopMultiwindowSlot() argument 148 (By.desc(appName)),TIMEOUT); in dockAppToTopMultiwindowSlot()
|
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
D | AccessibilityScannerHelper.java | 413 private UiObject2 getShareApp(String appName) throws UiObjectNotFoundException { in getShareApp() argument 422 while (!mDevice.hasObject(By.text(appName)) && tries-- > 0) { in getShareApp() 425 return mDevice.findObject(By.text(appName)); in getShareApp()
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
D | OverviewHelper.java | 162 public void dockAppToTopMultiwindowSlot(String appPackageName, String appName) in dockAppToTopMultiwindowSlot() argument 185 (By.desc(appName)),TIMEOUT); in dockAppToTopMultiwindowSlot()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 79 public void launchApp(String packageName, String appName) { in launchApp() argument 81 mLauncherStrategy.launch(appName, packageName); in launchApp()
|