Home
last modified time | relevance | path

Searched refs:appName (Results 1 – 20 of 20) sorted by relevance

/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DVolvoLauncherStrategy.java80 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 …]
DIAutoLauncherStrategy.java46 void openMediaFacet(String appName); in openMediaFacet() argument
89 boolean checkApplicationExists(String appName); in checkApplicationExists() argument
98 void openApp(String appName); in openApp() argument
DAutoLauncherStrategy.java154 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 …]
DAllAppsScreenHelper.java68 for (String appName : appNamesExpected) { in searchAllAppsScreen()
70 + appName, mDevice.wait(Until.findObject in searchAllAppsScreen()
71 (By.text(appName)), TIMEOUT)); in searchAllAppsScreen()
DTvLauncherStrategy.java302 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 …]
DILauncherStrategy.java120 public long launch(String appName, String packageName); in launch() argument
DCommonLauncherHelper.java195 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()
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
176 getSupportedLauncherPackage(), "title").clazz(TextView.class).text(appName); in launch()
DBaseLauncher3Strategy.java166 public long launch(String appName, String packageName) { in launch() argument
167 BySelector app = By.clazz(TextView.class).text(appName); 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()
DLeanbackLauncherStrategy.java200 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/
DAppTransitionTests.java179 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/
DIAutoGooglePlayHelper.java26 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/
DPermissionHelper.java234 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/
DCalculatorHelper.java59 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/
DOverviewHelper.java125 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/
DAccessibilityScannerHelper.java413 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/
DOverviewHelper.java162 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/
DDownloadAppTestHelper.java79 public void launchApp(String packageName, String appName) { in launchApp() argument
81 mLauncherStrategy.launch(appName, packageName); in launchApp()