Home
last modified time | relevance | path

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

/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DUiObject.java238 Rect rect = getVisibleBounds(); in swipeUp() local
239 if (rect.height() <= SWIPE_MARGIN_LIMIT * 2) { in swipeUp()
241 rect.height(), SWIPE_MARGIN_LIMIT * 2)); in swipeUp()
245 rect.centerX(), rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeUp()
246 rect.top + SWIPE_MARGIN_LIMIT, steps)); in swipeUp()
247 return getInteractionController().swipe(rect.centerX(), in swipeUp()
248 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp()
270 Rect rect = getVisibleBounds(); in swipeDown() local
271 if (rect.height() <= SWIPE_MARGIN_LIMIT * 2) { in swipeDown()
273 rect.height(), SWIPE_MARGIN_LIMIT * 2)); in swipeDown()
[all …]
DUiScrollable.java347 Rect rect = getVisibleBounds(node); in scrollForward() local
357 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollForward()
359 downX = rect.centerX(); in scrollForward()
360 downY = rect.bottom - swipeAreaAdjust; in scrollForward()
361 upX = rect.centerX(); in scrollForward()
362 upY = rect.top + swipeAreaAdjust; in scrollForward()
364 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); in scrollForward()
367 downX = rect.right - swipeAreaAdjust; in scrollForward()
368 downY = rect.centerY(); in scrollForward()
369 upX = rect.left + swipeAreaAdjust; in scrollForward()
[all …]