/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | UiAutomatorUtils.java | 70 public static UiDevice getUiDevice() { in getUiDevice() method in UiAutomatorUtils 99 if (getUiDevice().getDisplayWidth() > getUiDevice().getDisplayHeight()) { in isHandheldLandscapeDev() 100 int smallestWidth = Math.min(getUiDevice().getDisplaySizeDp().x, in isHandheldLandscapeDev() 101 getUiDevice().getDisplaySizeDp().y); in isHandheldLandscapeDev() 134 view = getUiDevice().wait(Until.findObject(selector), 1000); in waitFindObjectOrNull() 139 getUiDevice().waitForIdle(); in waitFindObjectOrNull() 185 final UiObject2 collapsingToolbar = getUiDevice().findObject( in scrollPastCollapsibleToolbar() 195 getUiDevice().drag(scrollableBounds.centerX(), scrollableBounds.centerY(), in scrollPastCollapsibleToolbar() 200 int maxY = getUiDevice().getDisplayHeight(); in scrollPastCollapsibleToolbar() 203 getUiDevice().drag(0, maxY, 0, minY, steps); in scrollPastCollapsibleToolbar()
|
D | UiAutomatorUtils2.java | 60 public static UiDevice getUiDevice() { in getUiDevice() method in UiAutomatorUtils2 85 if (getUiDevice().wait(Until.gone(selector), timeoutMs)) { in waitUntilObjectGone() 136 view = getUiDevice().wait(Until.findObject(selector), 1000); in waitFindObjectOrNull() 145 getUiDevice().waitForIdle(); in waitFindObjectOrNull() 214 final UiObject2 collapsingToolbar = getUiDevice().findObject( in scrollPastCollapsibleToolbar() 224 getUiDevice().swipe(scrollableBounds.centerX(), scrollableBounds.centerY(), in scrollPastCollapsibleToolbar() 229 int maxY = getUiDevice().getDisplayHeight(); in scrollPastCollapsibleToolbar() 232 getUiDevice().drag(0, maxY, 0, minY, steps); in scrollPastCollapsibleToolbar()
|
/cts/hostsidetests/harmfulappwarning/testapp/src/android/harmfulappwarning/testapp/ |
D | HarmfulAppWarningDeviceTest.java | 63 protected static UiDevice getUiDevice() { in getUiDevice() method in HarmfulAppWarningDeviceTest 75 getUiDevice().wait(Until.findObject(By.res("android:id/message")), TIMEOUT_MILLIS); in verifyWarningShown() 76 UiObject2 obj = getUiDevice().findObject(By.res("android:id/message")); in verifyWarningShown() 92 UiObject2 obj = getUiDevice().findObject(By.res("android:id/button2")); in clickLaunchAnyway() 98 UiObject2 obj = getUiDevice().findObject(By.res("android:id/button1")); in clickUninstall() 141 getUiDevice().pressHome(); in testDismissDialog()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/preferred/ |
D | PreferredActivitiesTest.java | 278 getUiDevice().pressHome(); in runTest() 303 getUiDevice().pressHome(); in triggerResolutionDialog() 309 getUiDevice().pressBack(); in verifyResolutionDialog() 316 UiObject2 buttonAlways = getUiDevice().wait(Until.findObject(BUTTON_ALWAYS), TIMEOUT); in verifyDialogIsShown() 336 getUiDevice().pressBack(); in chooseActivity() 341 getUiDevice() in findObjectInDialog() 347 return getUiDevice().findObject(By.text(label)); in findObjectInDialog() 354 getUiDevice() in chooseUseAlways() 414 private static UiDevice getUiDevice() { in getUiDevice() method in PreferredActivitiesTest
|
/cts/tests/tests/gameservice/src/android/service/games/ |
D | GameServiceTest.java | 312 assertThat(UiAutomatorUtils.getUiDevice().findObject( in setTaskOverlayView_addsViewsToOverlay() 323 UiAutomatorUtils.getUiDevice().click(touchableBounds.centerX(), touchableBounds.centerY()); in setTaskOverlayView_passesTouchesOutsideOverlayToGame() 328 UiAutomatorUtils.getUiDevice().click(touchableBounds.centerX(), touchableBounds.top - 30); in setTaskOverlayView_passesTouchesOutsideOverlayToGame() 332 UiAutomatorUtils.getUiDevice() in setTaskOverlayView_passesTouchesOutsideOverlayToGame() 337 UiAutomatorUtils.getUiDevice().click(touchableBounds.left - 30, touchableBounds.centerY()); in setTaskOverlayView_passesTouchesOutsideOverlayToGame() 341 UiAutomatorUtils.getUiDevice().click(touchableBounds.right + 30, touchableBounds.centerY()); in setTaskOverlayView_passesTouchesOutsideOverlayToGame() 353 UiAutomatorUtils.getUiDevice().findObject( in onTransientSystemBarVisibilityChanged_nonTransient_doesNotDispatchShow() 582 UiAutomatorUtils.getUiDevice().pressBack(); in gamePutInBackgroundAndRestoredViaRecentsUi_gameSessionRestarted() 583 UiAutomatorUtils.getUiDevice().waitForIdle(); in gamePutInBackgroundAndRestoredViaRecentsUi_gameSessionRestarted() 597 UiAutomatorUtils.getUiDevice().pressRecentApps(); in gamePutInBackgroundAndRestoredViaRecentsUi_gameSessionRestarted() [all …]
|
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
D | CtsDeviceLeanback.java | 84 if (!getUiDevice().wait(Until.hasObject(By.pkg(APP_PACKAGE)), WAIT_TIMEOUT)) { in setUp() 94 getUiDevice().pressHome(); in tearDown()
|
D | CtsJankTestBase.java | 110 protected UiDevice getUiDevice() { in getUiDevice() method in CtsJankTestBase
|
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/ |
D | CtsSyncAccountAccessOtherCertTestCases.java | 23 import static com.android.cts.content.Utils.getUiDevice; 115 UiDevice uiDevice = getUiDevice(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 170 getUiDevice().dumpWindowHierarchy(os); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
|
/cts/tests/tests/hibernation/src/android/hibernation/cts/ |
D | AppHibernationUtils.kt | 279 expandNotificationsWatch(UiAutomatorUtils2.getUiDevice()) in openUnusedAppsNotification() 299 UiAutomatorUtils2.getUiDevice().wait( in openUnusedAppsNotification() 347 val uiDevice = UiAutomatorUtils2.getUiDevice() in waitFindNotification()
|
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/ |
D | Utils.java | 58 public static UiDevice getUiDevice() { in getUiDevice() method in Utils
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/ |
D | ActivityLifecycleKeyguardTests.java | 58 UiAutomatorUtils2.getUiDevice().waitForIdle(); in setUp()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/ |
D | DragDropTest.java | 343 UiAutomatorUtils.getUiDevice().waitForIdle(); in setUp()
|