Home
last modified time | relevance | path

Searched refs:swipeRegion (Results 1 – 4 of 4) sorted by relevance

/test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/
DSwipeTestActivity.java37 TextView swipeRegion = findViewById(R.id.swipe_region); in onCreate() local
45 swipeRegion.setText(distanceX > 0 ? "swipe_left" : "swipe_right"); in onCreate()
47 swipeRegion.setText(distanceY > 0 ? "swipe_up" : "swipe_down"); in onCreate()
/test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/
DUiObjectTest.java144 UiObject swipeRegion = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testSwipeUp() local
156 assertEquals("no_swipe", swipeRegion.getText()); in testSwipeUp()
157 assertTrue(swipeRegion.swipeUp(10)); in testSwipeUp()
165 UiObject swipeRegion = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testSwipeDown() local
175 assertEquals("no_swipe", swipeRegion.getText()); in testSwipeDown()
176 assertTrue(swipeRegion.swipeDown(10)); in testSwipeDown()
184 UiObject swipeRegion = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testSwipeLeft() local
194 assertEquals("no_swipe", swipeRegion.getText()); in testSwipeLeft()
195 assertTrue(swipeRegion.swipeLeft(10)); in testSwipeLeft()
203 UiObject swipeRegion = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testSwipeRight() local
[all …]
DUiObject2Test.java616 UiObject2 swipeRegion = mDevice.findObject(By.res(TEST_APP, "swipe_region")); in testSwipe() local
618 swipeRegion.swipe(Direction.LEFT, 0.9f); in testSwipe()
619 assertTrue(swipeRegion.wait(Until.textEquals("swipe_left"), TIMEOUT_MS)); in testSwipe()
621 swipeRegion.swipe(Direction.RIGHT, 1.0f); in testSwipe()
622 assertTrue(swipeRegion.wait(Until.textEquals("swipe_right"), TIMEOUT_MS)); in testSwipe()
624 swipeRegion.swipe(Direction.UP, 0.9f, 1000); in testSwipe()
625 assertTrue(swipeRegion.wait(Until.textEquals("swipe_up"), TIMEOUT_MS)); in testSwipe()
627 swipeRegion.swipe(Direction.DOWN, 1.0f, 1000); in testSwipe()
628 assertTrue(swipeRegion.wait(Until.textEquals("swipe_down"), TIMEOUT_MS)); in testSwipe()
635 UiObject2 swipeRegion = mDevice.findObject(By.res(TEST_APP, "swipe_region")); in testSwipe_throwsIllegalArgumentException() local
[all …]
DUiDeviceTest.java331 UiObject2 swipeRegion = mDevice.findObject(By.res(TEST_APP, "swipe_region")); in testSwipe() local
337 assertTrue(swipeRegion.wait(Until.textEquals("swipe_right"), TIMEOUT_MS)); in testSwipe()
360 UiObject2 swipeRegion = mDevice.findObject(By.res(TEST_APP, "swipe_region")); in testSwipe_withPointArray() local
371 assertTrue(swipeRegion.wait(Until.textEquals("swipe_right"), TIMEOUT_MS)); in testSwipe_withPointArray()