Searched refs:upX (Results 1 – 2 of 2) sorted by relevance
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | UiScrollable.java | 351 int upX = 0; in scrollForward() local 361 upX = rect.centerX(); in scrollForward() 369 upX = rect.left + swipeAreaAdjust; in scrollForward() 373 downY, upX, upY, steps)); in scrollForward() 374 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollForward() 425 int upX = 0; in scrollBackward() local 435 upX = rect.centerX(); in scrollBackward() 443 upX = rect.right - swipeAreaAdjust; 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() 302 direction = downX > upX ? Direction.RIGHT : Direction.LEFT; 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 347 xStep = ((double)(upX - downX)) / swipeSteps; in swipe() 368 ret &= touchUp(upX, upY); in swipe()
|