Home
last modified time | relevance | path

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

/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DGestures.java55 public PointerGesture click(Point point) { in click() argument
57 return click(point, 0); in click()
68 public PointerGesture click(Point point, long duration) { in click() argument
70 return new PointerGesture(point, mDisplayId, mWindowId).pause(duration); in click()
79 public PointerGesture longClick(Point point) { in longClick() argument
81 return click(point, LONG_PRESS_DURATION_MS); in longClick()
DUiObject2.java357 private boolean clipToGestureBounds(Point point, AccessibilityNodeInfo node) { in clipToGestureBounds() argument
359 if (bounds.contains(point.x, point.y)) { in clipToGestureBounds()
362 Log.d(TAG, String.format("Clipping out-of-bound (%d, %d) into %s.", point.x, point.y, in clipToGestureBounds()
364 point.x = Math.max(bounds.left, Math.min(point.x, bounds.right)); in clipToGestureBounds()
365 point.y = Math.max(bounds.top, Math.min(point.y, bounds.bottom)); in clipToGestureBounds()
537 public void click(@NonNull Point point) { in click() argument
539 clipToGestureBounds(point, node); in click()
540 Log.d(TAG, String.format("Clicking on (%d, %d).", point.x, point.y)); in click()
544 mGestureController.performGesture(mGestureFactory.click(point)); in click()
564 public void click(@NonNull Point point, long duration) { in click() argument
[all …]
DGestureController.java307 public Pointer(int id, Point point) { in Pointer() argument
314 coords.x = point.x; in Pointer()
315 coords.y = point.y; in Pointer()
318 public void updatePosition(Point point) { in updatePosition() argument
319 coords.x = point.x; in updatePosition()
320 coords.y = point.y; in updatePosition()
DUiObject.java1032 PointerCoords point = touches[i][j]; in touchesToString() local
1033 result.append(String.format("(%f, %f)", point.x, point.y)); in touchesToString()