Home
last modified time | relevance | path

Searched refs:cancelEvent (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationGestureHandlerTest.java113 final MotionEvent cancelEvent = MotionEvent.obtain(0, 0, ACTION_CANCEL, 0, 0, 0); in onMotionEvent_cancelEvent_handleInteractionEnd() local
114 cancelEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_cancelEvent_handleInteractionEnd()
116 mMgh.onMotionEvent(cancelEvent, cancelEvent, /* policyFlags= */ 0); in onMotionEvent_cancelEvent_handleInteractionEnd()
121 cancelEvent.recycle(); in onMotionEvent_cancelEvent_handleInteractionEnd()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMagnificationGestureDetectorTest.java113 final MotionEvent cancelEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() local
117 mGestureDetector.onTouch(mSpyView, cancelEvent); in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java360 MotionEvent event2 = cancelEvent(event1Time, event2Time, 20f, 30f); in testUpdate_cancelAfterDown()
381 MotionEvent event3 = cancelEvent(event1Time, event3Time, 200f, 30f); in testUpdate_cancelAfterDrag()
409 MotionEvent event4 = cancelEvent(event3Time, event4Time, 20f, 30f); in testUpdate_cancelAfterMultitap()
504 private static MotionEvent cancelEvent(long downTime, long eventTime, float x, float y) { in cancelEvent() method in EditorTouchStateTest
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java323 MotionEvent cancelEvent = in cancelAnyGestureInProgress() local
325 sendMotionEventToNext(cancelEvent, cancelEvent, in cancelAnyGestureInProgress()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java218 send(cancelEvent()); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect()
602 private MotionEvent cancelEvent() { in cancelEvent() method in TouchExplorerTest
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp3574 std::unique_ptr<EventEntry> cancelEvent = in enqueueDispatchEntryLocked() local
3576 if (cancelEvent != nullptr) { in enqueueDispatchEntryLocked()
3579 << cancelEvent->getDescription(); in enqueueDispatchEntryLocked()
3581 static_cast<MotionEntry&>(*cancelEvent).traceTracker = in enqueueDispatchEntryLocked()
3582 mTracer->traceDerivedEvent(*cancelEvent, *resolvedMotion->traceTracker); in enqueueDispatchEntryLocked()
3585 createDispatchEntry(mIdGenerator, inputTarget, std::move(cancelEvent), in enqueueDispatchEntryLocked()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java1922 MotionEvent cancelEvent = MotionEvent.obtain(now, now, in setLayoutFrozen() local
1924 onTouchEvent(cancelEvent); in setLayoutFrozen()