Home
last modified time | relevance | path

Searched refs:moveEvent (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureUtils.java51 public static double distanceClosestPointerToPoint(PointF pointerDown, MotionEvent moveEvent) { in distanceClosestPointerToPoint() argument
53 for (int i = 0; i < moveEvent.getPointerCount(); i++) { in distanceClosestPointerToPoint()
54 final float moveDelta = MathUtils.dist(pointerDown.x, pointerDown.y, moveEvent.getX(i), in distanceClosestPointerToPoint()
55 moveEvent.getY(i)); in distanceClosestPointerToPoint()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java166 MotionEvent event2 = moveEvent(event1Time, event2Time, 200f, 31f); in testUpdate_quickTapAfterDrag()
272 MotionEvent event2 = moveEvent(event1Time, event2Time, 21f, 30f); in testUpdate_drag()
281 MotionEvent event3 = moveEvent(event3Time, event3Time, newX, newY); in testUpdate_drag()
302 MotionEvent event2 = moveEvent(event1Time, event2Time, 100f, 174f); in testUpdate_drag_startsCloseToVerticalThenHorizontal()
310 MotionEvent event3 = moveEvent(event1Time, event3Time, 200f, 0f); in testUpdate_drag_startsCloseToVerticalThenHorizontal()
331 MotionEvent event2 = moveEvent(event1Time, event2Time, 100f, 90f); in testUpdate_drag_startsHorizontalThenVertical()
339 MotionEvent event3 = moveEvent(event1Time, event3Time, 0f, 200f); in testUpdate_drag_startsHorizontalThenVertical()
375 MotionEvent event2 = moveEvent(event2Time, event2Time, 200f, 30f); in testUpdate_cancelAfterDrag()
422 private static MotionEvent moveEvent(long downTime, long eventTime, float x, float y) { in moveEvent() method in EditorTouchStateTest
DEditorCursorDragTest.java270 MotionEvent event2 = moveEvent(tv, event1Time, event2Time, 50f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
276 MotionEvent event3 = moveEvent(tv, event1Time, event3Time, 100f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
354 MotionEvent event2 = moveEvent(tv, event1Time, event2Time, 21f, 30f); in testEditor_onTouchEvent_cursorDrag()
360 MotionEvent event3 = moveEvent(tv, event1Time, event3Time, 120f, 30f); in testEditor_onTouchEvent_cursorDrag()
401 MotionEvent event4 = moveEvent(tv, event3Time, event4Time, 120f, 30f); in testEditor_onTouchEvent_selectionDrag()
637 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX + 50, startY)); in dragDownUntilLineChange()
638 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange()
641 MotionEvent ev = moveEvent(view, downTime, eventTime++, startX, startY + i * 5); in dragDownUntilLineChange()
700 private MotionEvent moveEvent(View view, long downTime, long eventTime, float x, float y) { in moveEvent() method in EditorCursorDragTest
764 MotionEvent event = moveEvent(tv, downEventTime, eventTime, moveCoords[0], in simulateDrag()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java130 MotionEvent moveEvent = MotionEvent.obtain(startTime, startTime + deltaT, in createInterpolatedEventList() local
132 result.add(moveEvent); in createInterpolatedEventList()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFullScreenMagnificationGestureHandlerTest.java675 send(moveEvent(DEFAULT_X * 2, DEFAULT_Y * 2));
703 private MotionEvent moveEvent(float x, float y) {