/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
SettingsJankTests.java | 33 import android.support.test.uiautomator.Until; 73 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); 84 UiObject2 list = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), TIMEOUT); 87 mDevice.wait(Until.findObject(By.text("SEE ALL")), TIMEOUT).click(); 88 list = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), TIMEOUT);
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
LeanbackLauncherStrategy.java | 31 import android.support.test.uiautomator.Until; 79 if (!mDevice.wait(Until.hasObject(getWorkspaceSelector()), SHORT_WAIT_TIME)) { 223 UiObject2 orbButton = mDevice.wait(Until.findObject(keyboardOrb), SHORT_WAIT_TIME); 236 mDevice.wait(Until.gone(keyboardOrb), SHORT_WAIT_TIME); 239 UiObject2 editText = mDevice.wait(Until.findObject(searchEditor), SHORT_WAIT_TIME); 249 mDevice.wait(Until.gone(searchEditor), SHORT_WAIT_TIME); 264 return mDevice.wait(Until.findObject( 277 return mDevice.wait(Until.findObject( 316 return mDevice.wait(Until.hasObject(getAppWidgetSelector()), SHORT_WAIT_TIME); 324 return mDevice.wait(Until.hasObject(getNowPlayingCardSelector()), SHORT_WAIT_TIME) [all...] |
TvLauncherStrategy.java | 31 import android.support.test.uiautomator.Until; 104 if (!mDevice.wait(Until.hasObject(getWorkspaceSelector()), SHORT_WAIT_TIME)) { 137 return mDevice.wait(Until.findObject(getAllAppsSelector()), SHORT_WAIT_TIME); 285 * down to the next row like a zigzag pattern until the app is found. 297 focused = mDevice.wait(Until.findObject(By.focused(true)), SHORT_WAIT_TIME); 298 expected = mDevice.wait(Until.findObject(appSelector), SHORT_WAIT_TIME); 341 * down to the next row like a zigzag pattern until it founds a given app. 378 // because the app title no longer appears until focused. 390 if (!mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT)) { 477 * in a given {@link Direction} until it finds a matched element [all...] |
AospLauncherStrategy.java | 23 import android.support.test.uiautomator.Until; 50 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); 71 // wait until hotseat disappears, so that we know that we are no longer on home screen 72 mDevice.wait(Until.gone(getHotSeatSelector()), 2000); 116 // wait until hotseat disappears, so that we know that we are no longer on home screen 117 mDevice.wait(Until.gone(getHotSeatSelector()), 2000);
|
WearLauncherStrategy.java | 31 import android.support.test.uiautomator.Until; 67 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) { 85 if (!mDevice.wait(Until.hasObject(getAllAppsSelector()), 5000)) { 90 UiObject2 allAppsContainer = mDevice.wait(Until.findObject(getAllAppsSelector()), 2000);
|
CommonLauncherHelper.java | 26 import android.support.test.uiautomator.Until; 171 if (!mDevice.findObject(app).clickAndWait(Until.newWindow(), APP_LAUNCH_TIMEOUT)) { 179 boolean success = mDevice.wait(Until.hasObject(
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
CalculatorTests.java | 25 import android.support.test.uiautomator.Until; 109 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "del")), 167 Until.findObject(By.res("android:id/alertTitle")), SHORT_TIMEOUT); 170 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "message")), 175 Until.findObject(By.res("android:id/button2")), SHORT_TIMEOUT); 189 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "toggle_mode")), 194 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "mode")),
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
ManualPackageInstallTest.java | 24 import android.support.test.uiautomator.Until; 101 mDevice.wait(Until.hasObject(INSTALL_BUTTON_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); 108 mDevice.wait(Until.hasObject(POPUP_IMAGE_SELECTOR), AUTOMATOR_WAIT_TIMEOUT);
|
/platform_testing/libraries/app-helpers/tv/src/android/platform/test/helpers/tv/ |
AbstractLeanbackAppHelper.java | 30 import android.support.test.uiautomator.Until; 151 return mDevice.wait(Until.hasObject(By.pkg(getPackage()).depth(0)), timeoutMs); 185 if (!mDevice.wait(Until.hasObject(rowContent), OPEN_ROW_CONTENT_WAIT_TIME_MS)) { 219 * This action keeps moving a focus in a given {@link Direction} until it finds matched element. 223 * Set null if move a focus until it can't move any more. 237 Log.d(TAG, "select: not found until it reaches to an end."); 290 focused = mDevice.wait(Until.findObject(By.focused(true)), timeoutMs); 292 focused = fromObject.wait(Until.findObject(By.focused(true)), timeoutMs); 314 Until.findObject( 336 Until.findObject(By.res(getPackage(), "guidance_title")), UI_WAIT_TIME_MS) [all...] |
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/ |
SystemAppJankTests.java | 30 import android.support.test.uiautomator.Until; 66 Until.findObject(By.scrollable(true).res(YOUTUBE_PACKAGE, "guide")), LONG_TIMEOUT); 85 UiObject2 youtubeScreen = mDevice.wait( Until.findObject(By.scrollable(true)
|
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/ |
TouchLatencyHelper.java | 25 import android.support.test.uiautomator.Until; 68 UiObject2 actionSettings = mDevice.wait(Until.findObject( 116 Until.findObject(By.res(launcherPackageName, resourceId)),
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
UiBot.java | 26 import android.support.test.uiautomator.Until; 59 boolean gotIt = mDevice.wait(Until.hasObject(By.pkg(SYSTEMUI_PACKAGE)), mTimeout); 88 boolean gotIt = mDevice.wait(Until.hasObject(By.text(text)), mTimeout); 99 boolean gotIt = mDevice.wait(Until.hasObject(By.res(id)), mTimeout); 130 // TODO: not working when the bugreport dialog is shown, it hangs until the dialog is
|
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/ |
ProgramGuideJankTest.java | 26 import android.support.test.uiautomator.Until; 121 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE)); 128 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE)); 135 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE));
|
/platform_testing/libraries/system-helpers/settings-helper/src/android/system/helpers/ |
SettingsHelper.java | 38 import android.support.test.uiautomator.Until; 158 UiObject2 settingsDashboard = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), 163 mDevice.wait(Until.findObject(By.text("SEE ALL")), TIMEOUT * 2).click(); 164 settingsDashboard = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), 178 while (count > 0 && mDevice.wait(Until.findObject(By.text(settingName)), TIMEOUT) == null) { 182 mDevice.wait(Until.findObject(By.text(settingName)), TIMEOUT).click(); 209 mDevice.wait(Until.findObject(By.text(settingName)), TIMEOUT).click(); 502 UiObject2 qsTile = mDevice.wait(Until.findObject(bySelector), TIMEOUT * 3); 506 mDevice.wait(Until.findObject(bySelector), TIMEOUT * 3).click(); 518 mDevice.wait(Until.findObject(By.descContains(DND)) [all...] |
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
SuspendPackageTest.java | 10 import android.support.test.uiautomator.Until; 78 device.wait(Until.hasObject(POPUP_IMAGE_SELECTOR), WAIT_DIALOG_TIMEOUT_IN_MS);
|
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
CtsDeviceLeanback.java | 26 import android.support.test.uiautomator.Until; 77 if (!getUiDevice().wait(Until.hasObject(By.pkg(APP_PACKAGE)), WAIT_TIMEOUT)) { 81 // Wait until scroll animation starts.
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
ShortcutsLaunchTest.java | 8 import android.support.test.uiautomator.Until; 53 // Press icon center until shortcuts appear 65 assertTrue(mDevice.wait(Until.hasObject(By.pkg(
|
ShortcutsToHomeTest.java | 8 import android.support.test.uiautomator.Until; 54 // Press icon center until shortcuts appear 71 assertTrue(mDevice.wait(Until.hasObject(By.pkg(
|
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/ |
AppLauncherFlingJankTest.java | 30 import android.support.test.uiautomator.Until; 79 UiObject2 recyclerViewContents = mDevice.wait(Until.findObject(
|
QuickSettingsJankTest.java | 27 import android.support.test.uiautomator.Until; 58 //Wait until date & battery info transitions to page indicator 61 Until.findObject(By.desc(QUICK_SETTINGS_LAUNCHED_INDICATOR)),
|
SettingsFlingJankTest.java | 29 import android.support.test.uiautomator.Until; 70 UiObject2 listViewContents = mDevice.wait(Until.findObject(
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
DownloadAppTestHelper.java | 34 import android.support.test.uiautomator.Until; 88 .wait(Until.findObject(By.res(PACKAGE_NAME, "menu_sort")), 200); 90 mDevice.wait(Until.findObject(By.desc("More options")), 200).click(); 91 sortMenu = mDevice.wait(Until.findObject(By.res("android:id/submenuarrow")), 200); 94 mDevice.wait(Until.findObject(By.text(String.format("By %s", sortby))), 200).click(); 100 List<UiObject2> itmesList = mDevice.wait(Until.findObjects(By.res("android:id/title")), 152 Until.findObject(By.res(String.format("%s:id/%s",
|
/prebuilts/misc/common/ub-uiautomator/ |
ub-uiautomator.jar | |
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
MenuHelper.java | 27 import android.support.test.uiautomator.Until; 160 * Waits until the menu is visible. 163 UiDeviceAsserts.assertWaitForCondition(mUiDevice, Until.hasObject(MENU)); 174 UiDeviceAsserts.assertWaitForCondition(mUiDevice, Until.hasObject(MENU));
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
PlayControlsRowViewTest.java | 27 import android.support.test.uiautomator.Until; 117 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 126 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 143 // Wait until home screen is shown. 146 // Wait until TV is resumed.
|