Home
last modified time | relevance | path

Searched refs:downX (Results 1 – 2 of 2) sorted by relevance

/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DUiScrollable.java349 int downX = 0; in scrollForward() local
359 downX = rect.centerX(); in scrollForward()
367 downX = rect.right - swipeAreaAdjust; in scrollForward()
372 Log.d(TAG, String.format("Scrolling forward from (%d, %d) to (%d, %d) in %d steps.", downX, in scrollForward()
374 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollForward()
423 int downX = 0; in scrollBackward() local
433 downX = rect.centerX(); in scrollBackward()
441 downX = rect.left + swipeAreaAdjust; in scrollBackward()
446 Log.d(TAG, String.format("Scrolling backward from (%d, %d) to (%d, %d) in %d steps.", downX, in scrollBackward()
448 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollBackward()
DInteractionController.java294 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()
351 ret = touchDown(downX, downY); in swipe()
356 ret &= touchMove(downX + (int)(xStep * i), downY + (int)(yStep * i)); in swipe()