Home
last modified time | relevance | path

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

/test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/
DDragTestActivity.java41 Button dragButton = findViewById(R.id.drag_button); in onCreate() local
44 dragButton.setOnLongClickListener(v -> { in onCreate()
46 new View.DragShadowBuilder(dragButton), in onCreate()
52 dragButton.setOnDragListener((v, e) -> { in onCreate()
/test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/
DUiObject2Test.java176 UiObject2 dragButton = mDevice.findObject(By.res(TEST_APP, "drag_button")); in testDrag_dest() local
180 dragButton.drag(dest); in testDrag_dest()
190 UiObject2 dragButton = mDevice.findObject(By.res(TEST_APP, "drag_button")); in testDrag_destAndSpeed() local
194 dragButton.drag(dest, 1000); in testDrag_destAndSpeed()
204 UiObject2 dragButton = mDevice.findObject(By.res(TEST_APP, "drag_button")); in testDrag_destAndSpeed_throwsIllegalArgumentException() local
209 () -> dragButton.drag(dest, -1000)); in testDrag_destAndSpeed_throwsIllegalArgumentException()
DUiObjectTest.java105 UiObject dragButton = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testDragTo_destObjAndSteps() local
117 assertTrue(dragButton.dragTo(dragDestination, 40)); in testDragTo_destObjAndSteps()
126 UiObject dragButton = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testDragTo_destXAndDestYAndSteps() local
136 assertTrue(dragButton.dragTo(destBounds.centerX(), destBounds.centerY(), 40)); in testDragTo_destXAndDestYAndSteps()
DUiDeviceTest.java345 UiObject2 dragButton = mDevice.findObject(By.res(TEST_APP, "drag_button")); in testDrag() local
348 Point start = dragButton.getVisibleCenter(); in testDrag()