Searched refs:downY (Results 1 – 2 of 2) sorted by relevance
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | UiScrollable.java | 350 int downY = 0; in scrollForward() local 360 downY = rect.bottom - swipeAreaAdjust; in scrollForward() 368 downY = rect.centerY(); in scrollForward() 373 downY, upX, upY, steps)); in scrollForward() 374 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollForward() 424 int downY = 0; in scrollBackward() local 434 downY = rect.top + swipeAreaAdjust; in scrollBackward() 442 downY = rect.centerY(); in scrollBackward() 447 downY, upX, upY, steps)); in scrollBackward() 448 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollBackward()
|
| D | InteractionController.java | 294 public boolean scrollSwipe(final int downX, final int downY, final int upX, final int upY, in scrollSwipe() argument 296 Runnable command = () -> swipe(downX, downY, upX, upY, steps); in scrollSwipe() 300 if (Math.abs(downX - upX) > Math.abs(downY - upY)) { in scrollSwipe() 305 direction = downY > upY ? Direction.DOWN : Direction.UP; in scrollSwipe() 324 public boolean swipe(int downX, int downY, int upX, int upY, int steps) { in swipe() argument 325 return swipe(downX, downY, upX, upY, steps, false /*drag*/); in swipe() 338 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) { in swipe() argument 348 yStep = ((double)(upY - downY)) / swipeSteps; in swipe() 351 ret = touchDown(downX, downY); in swipe() 356 ret &= touchMove(downX + (int)(xStep * i), downY + (int)(yStep * i)); in swipe()
|