Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationGesturesObserverTest.java77 final MotionEvent moveEvent = TouchEventGenerator.moveEvent(Display.DEFAULT_DISPLAY, in onActionMove_onGestureCanceled() local
80 mObserver.onMotionEvent(moveEvent, moveEvent, 0); in onActionMove_onGestureCanceled()
83 mEventInfoArgumentCaptor.capture(), argThat(new MotionEventMatcher(moveEvent))); in onActionMove_onGestureCanceled()
84 verifyCacheMotionEvents(mEventInfoArgumentCaptor.getValue(), moveEvent); in onActionMove_onGestureCanceled() local
119 final MotionEvent moveEvent = TouchEventGenerator.moveEvent(Display.DEFAULT_DISPLAY, in sendEventsOfSwiping_onGestureCompleted() local
123 mObserver.onMotionEvent(moveEvent, moveEvent, 0); in sendEventsOfSwiping_onGestureCompleted()
127 argThat(new MotionEventMatcher(moveEvent))); in sendEventsOfSwiping_onGestureCompleted()
128 verifyCacheMotionEvents(mEventInfoArgumentCaptor.getValue(), downEvent, moveEvent); in sendEventsOfSwiping_onGestureCompleted() local
DTwoFingersDownOrSwipeTest.java149 final MotionEvent moveEvent = movePointer(downEvents.get(1), 0, sSwipeMinDistance, 0); in firstPointerMove_twoPointersDown_onGestureCompleted() local
151 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in firstPointerMove_twoPointersDown_onGestureCompleted()
154 MagnificationGestureMatcher.GESTURE_TWO_FINGERS_DOWN_OR_SWIPE, moveEvent, in firstPointerMove_twoPointersDown_onGestureCompleted()
155 moveEvent, 0); in firstPointerMove_twoPointersDown_onGestureCompleted()
165 final MotionEvent moveEvent = movePointer(downEvents.get(1), 1, sSwipeMinDistance, 0); in secondPointerMove_twoPointersDown_onGestureCompleted() local
167 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in secondPointerMove_twoPointersDown_onGestureCompleted()
170 MagnificationGestureMatcher.GESTURE_TWO_FINGERS_DOWN_OR_SWIPE, moveEvent, in secondPointerMove_twoPointersDown_onGestureCompleted()
171 moveEvent, 0); in secondPointerMove_twoPointersDown_onGestureCompleted()
DSimpleSwipeTest.java84 final MotionEvent moveEvent = TouchEventGenerator.moveEvent(Display.DEFAULT_DISPLAY, in sendSwipeEvent_onGestureCompleted() local
89 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in sendSwipeEvent_onGestureCompleted()
93 MagnificationGestureMatcher.GESTURE_SWIPE, moveEvent, moveEvent, 0); in sendSwipeEvent_onGestureCompleted()
DFullScreenMagnificationGestureHandlerTest.java1686 send(moveEvent(end.x - start.x / 10f, end.y - start.y / 10f)); in swipe()
1692 send(moveEvent(DEFAULT_X * 2, DEFAULT_Y * 2)); in swipeAndHold()
1697 send(moveEvent(end.x, end.y)); in swipeAndHold()
1749 private MotionEvent moveEvent(float x, float y) { in moveEvent() method
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DGesturesObserverTest.java72 final MotionEvent moveEvent = TouchEventGenerator.moveEvent(Display.DEFAULT_DISPLAY, in onActionMove_onGestureCancelled() local
76 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in onActionMove_onGestureCancelled()
100 final MotionEvent moveEvent = TouchEventGenerator.moveEvent(Display.DEFAULT_DISPLAY, in onMotionEvent_recognizedEvents_onGestureCompleted() local
105 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in onMotionEvent_recognizedEvents_onGestureCompleted()
/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/services/accessibility/java/com/android/server/accessibility/magnification/
DTwoFingersDownOrSwipe.java113 private static double distance(@NonNull MotionEvent downEvent, @NonNull MotionEvent moveEvent) { in distance() argument
116 final int moveActionIndex = moveEvent.findPointerIndex(downPointerId); in distance()
121 moveEvent.getX(moveActionIndex), moveEvent.getY(moveActionIndex)); in distance()
/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()
485 MotionEvent event2 = moveEvent(event1Time, event2Time, moveX, moveY); in doTestDragDirection()
500 private static MotionEvent moveEvent(long downTime, long eventTime, float x, float y) { in moveEvent() method in EditorTouchStateTest
DEditorCursorDragTest.java302 MotionEvent event2 = moveEvent(tv, event1Time, event2Time, 50f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
308 MotionEvent event3 = moveEvent(tv, event1Time, event3Time, 100f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
386 MotionEvent event2 = moveEvent(tv, event1Time, event2Time, 21f, 30f); in testEditor_onTouchEvent_cursorDrag()
392 MotionEvent event3 = moveEvent(tv, event1Time, event3Time, 120f, 30f); in testEditor_onTouchEvent_cursorDrag()
433 MotionEvent event4 = moveEvent(tv, event3Time, event4Time, 120f, 30f); in testEditor_onTouchEvent_selectionDrag()
669 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX + 50, startY)); in dragDownUntilLineChange()
670 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange()
673 MotionEvent ev = moveEvent(view, downTime, eventTime++, startX, startY + i * 5); in dragDownUntilLineChange()
732 private MotionEvent moveEvent(View view, long downTime, long eventTime, float x, float y) { in moveEvent() method in EditorCursorDragTest
796 MotionEvent event = moveEvent(tv, downEventTime, eventTime, moveCoords[0], in simulateDrag()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DHandwritingInitiatorPerfTest.java114 final MotionEvent moveEvent = in onTouchEvent_actionMove_toolTypeStylus() local
124 mHandwritingInitiator.onTouchEvent(moveEvent); in onTouchEvent_actionMove_toolTypeStylus()
172 final MotionEvent moveEvent = in onTouchEvent_actionMove_toolTypeFinger() local
182 mHandwritingInitiator.onTouchEvent(moveEvent); in onTouchEvent_actionMove_toolTypeFinger()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsShell.kt161 val moveEvent: MotionEvent? = in simFingerDown() constant
169 udfpsOverlayController?.debugOnTouch(moveEvent) in simFingerDown()
172 moveEvent?.recycle() in simFingerDown()
/frameworks/base/apct-tests/perftests/core/src/android/input/
DMotionPredictorBenchmark.kt113 val moveEvent = getStylusMotionEvent( in timeRecordAndPredict() constant
115 predictor.record(moveEvent) in timeRecordAndPredict()
/frameworks/base/tests/Input/src/com/android/test/input/
DMotionPredictorTest.kt122 val moveEvent = getStylusMotionEvent(eventTime, ACTION_MOVE, /*x=*/10f, /*y=*/20f) in testPredictedCoordinatesAndTime() constant
124 predictor.record(moveEvent) in testPredictedCoordinatesAndTime()
/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/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerTest.java438 MotionEvent moveEvent = MotionEvent.obtain(0, 0, MotionEvent.ACTION_MOVE, 0, 0, 0); in onActionMoveTouch_whenCanDismissLockScreen_entersDevice() local
443 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, moveEvent); in onActionMoveTouch_whenCanDismissLockScreen_entersDevice()
445 moveEvent.recycle(); in onActionMoveTouch_whenCanDismissLockScreen_entersDevice()
469 MotionEvent moveEvent = MotionEvent.obtain(0, 0, MotionEvent.ACTION_MOVE, 0, 0, 0); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce() local
472 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, moveEvent); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce()
474 moveEvent.recycle(); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce()
1355 MotionEvent moveEvent = MotionEvent.obtain(0, 0, ACTION_MOVE, 0, 0, 0); in onTouch_doNotProcessTouchWhenPullingUpBouncer() local
1356 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, moveEvent); in onTouch_doNotProcessTouchWhenPullingUpBouncer()
1358 moveEvent.recycle(); in onTouch_doNotProcessTouchWhenPullingUpBouncer()
1381 MotionEvent moveEvent = MotionEvent.obtain(0, 0, ACTION_MOVE, 0, 0, 0); in onTouch_qsDrag_processesTouchWhenAlternateBouncerVisible() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMagnificationGestureDetectorTest.java161 final MotionEvent moveEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performDrag_invokeCallbacksInOrder() local
167 mGestureDetector.onTouch(mSpyView, moveEvent); in performDrag_invokeCallbacksInOrder()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DTouchEventGenerator.java55 public static MotionEvent moveEvent(int displayId, float x, float y) { in moveEvent() method in TouchEventGenerator
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp12098 const MotionEvent moveEvent = in TEST_F() local
12104 injectMotionEvent(*mDispatcher, moveEvent, INJECT_EVENT_TIMEOUT, in TEST_F()