/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | GestureMatcher.java | 94 @State int state, MotionEvent event, MotionEvent rawEvent, int policyFlags) { in setState() argument 98 mListener.onStateChanged(mGestureId, mState, event, rawEvent, policyFlags); in setState() 103 protected final void startGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in startGesture() argument 104 setState(STATE_GESTURE_STARTED, event, rawEvent, policyFlags); in startGesture() 108 protected final void cancelGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in cancelGesture() argument 109 setState(STATE_GESTURE_CANCELED, event, rawEvent, policyFlags); in cancelGesture() 113 protected final void completeGesture(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in completeGesture() argument 114 setState(STATE_GESTURE_COMPLETED, event, rawEvent, policyFlags); in completeGesture() 134 public final int onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 140 onDown(event, rawEvent, policyFlags); in onMotionEvent() [all …]
|
D | MultiTap.java | 64 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 65 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onDown() 70 if (!isInsideSlop(rawEvent, mDoubleTapSlop)) { in onDown() 71 cancelGesture(event, rawEvent, policyFlags); in onDown() 80 startGesture(event, rawEvent, policyFlags); in onDown() 85 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 86 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp() 87 if (!isInsideSlop(rawEvent, mTouchSlop)) { in onUp() 88 cancelGesture(event, rawEvent, policyFlags); in onUp() 94 completeGesture(event, rawEvent, policyFlags); in onUp() [all …]
|
D | SecondFingerMultiTap.java | 65 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 67 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 73 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onPointerDown() 78 if (!isSecondFingerInsideSlop(rawEvent, mDoubleTapSlop)) { in onPointerDown() 79 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 86 protected void onPointerUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerUp() argument 88 cancelGesture(event, rawEvent, policyFlags); in onPointerUp() 91 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onPointerUp() 92 if (!isSecondFingerInsideSlop(rawEvent, mTouchSlop)) { in onPointerUp() 93 cancelGesture(event, rawEvent, policyFlags); in onPointerUp() [all …]
|
D | MultiFingerSwipe.java | 122 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 124 cancelGesture(event, rawEvent, policyFlags); in onDown() 128 final int actionIndex = getActionIndex(rawEvent); in onDown() 129 final int pointerId = rawEvent.getPointerId(actionIndex); in onDown() 130 int pointerIndex = rawEvent.getPointerCount() - 1; in onDown() 133 cancelGesture(event, rawEvent, policyFlags); in onDown() 138 cancelGesture(event, rawEvent, policyFlags); in onDown() 143 final float x = rawEvent.getX(actionIndex); in onDown() 144 final float y = rawEvent.getY(actionIndex); in onDown() 146 cancelGesture(event, rawEvent, policyFlags); in onDown() [all …]
|
D | MultiFingerMultiTap.java | 93 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 97 cancelGesture(event, rawEvent, policyFlags); in onDown() 100 cancelAfterTapTimeout(event, rawEvent, policyFlags); in onDown() 103 initBaseLocation(rawEvent); in onDown() 109 final PointF nearest = findNearestPoint(rawEvent, mDoubleTapSlop, true); in onDown() 115 cancelGesture(event, rawEvent, policyFlags); in onDown() 120 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 121 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp() 123 final PointF nearest = findNearestPoint(rawEvent, mTouchSlop, false); in onUp() 136 startGesture(event, rawEvent, policyFlags); in onUp() [all …]
|
D | TouchExplorer.java | 266 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 269 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 272 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 277 checkForMalformedEvent(rawEvent); in onMotionEvent() 288 mState.onReceivedMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 290 if (mGestureDetector.onMotionEvent(event, rawEvent, policyFlags)) { in onMotionEvent() 304 handleMotionEventStateClear(event, rawEvent, policyFlags); in onMotionEvent() 306 handleMotionEventStateTouchInteracting(event, rawEvent, policyFlags); in onMotionEvent() 308 handleMotionEventStateTouchExploring(event, rawEvent, policyFlags); in onMotionEvent() 310 handleMotionEventStateDragging(event, rawEvent, policyFlags); in onMotionEvent() [all …]
|
D | Swipe.java | 141 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 143 mBaseX = rawEvent.getX(); in onDown() 144 mBaseY = rawEvent.getY(); in onDown() 145 mBaseTime = rawEvent.getEventTime(); in onDown() 153 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument 154 final float x = rawEvent.getX(); in onMove() 155 final float y = rawEvent.getY(); in onMove() 156 final long time = rawEvent.getEventTime(); in onMove() 177 cancelGesture(event, rawEvent, policyFlags); in onMove() 189 startGesture(event, rawEvent, policyFlags); in onMove() [all …]
|
D | MultiFingerMultiTapAndHold.java | 38 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 39 super.onPointerDown(event, rawEvent, policyFlags); in onPointerDown() 41 completeAfterLongPressTimeout(event, rawEvent, policyFlags); in onPointerDown() 46 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 49 cancelGesture(event, rawEvent, policyFlags); in onUp() 51 super.onUp(event, rawEvent, policyFlags); in onUp() 52 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
|
D | MultiTapAndHold.java | 34 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 35 super.onDown(event, rawEvent, policyFlags); in onDown() 37 completeAfterLongPressTimeout(event, rawEvent, policyFlags); in onDown() 42 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 43 super.onUp(event, rawEvent, policyFlags); in onUp() 44 cancelAfterDoubleTapTimeout(event, rawEvent, policyFlags); in onUp()
|
/frameworks/native/services/inputflinger/reader/mapper/accumulator/ |
D | TouchButtonAccumulator.cpp | 55 void TouchButtonAccumulator::process(const RawEvent& rawEvent) { in process() argument 56 mHidUsageAccumulator.process(rawEvent); in process() 58 if (rawEvent.type == EV_KEY) { in process() 59 switch (rawEvent.code) { in process() 61 mBtnTouch = rawEvent.value; in process() 64 mBtnStylus = rawEvent.value; in process() 69 mBtnStylus2 = rawEvent.value; in process() 72 mBtnToolFinger = rawEvent.value; in process() 75 mBtnToolPen = rawEvent.value; in process() 78 mBtnToolRubber = rawEvent.value; in process() [all …]
|
D | SingleTouchMotionAccumulator.cpp | 48 void SingleTouchMotionAccumulator::process(const RawEvent& rawEvent) { in process() argument 49 if (rawEvent.type == EV_ABS) { in process() 50 switch (rawEvent.code) { in process() 52 mAbsX = rawEvent.value; in process() 55 mAbsY = rawEvent.value; in process() 58 mAbsPressure = rawEvent.value; in process() 61 mAbsToolWidth = rawEvent.value; in process() 64 mAbsDistance = rawEvent.value; in process() 67 mAbsTiltX = rawEvent.value; in process() 70 mAbsTiltY = rawEvent.value; in process()
|
D | CursorButtonAccumulator.cpp | 50 void CursorButtonAccumulator::process(const RawEvent& rawEvent) { in process() argument 51 if (rawEvent.type == EV_KEY) { in process() 52 switch (rawEvent.code) { in process() 54 mBtnLeft = rawEvent.value; in process() 57 mBtnRight = rawEvent.value; in process() 60 mBtnMiddle = rawEvent.value; in process() 63 mBtnBack = rawEvent.value; in process() 66 mBtnSide = rawEvent.value; in process() 69 mBtnForward = rawEvent.value; in process() 72 mBtnExtra = rawEvent.value; in process() [all …]
|
D | HidUsageAccumulator.cpp | 21 void HidUsageAccumulator::process(const RawEvent& rawEvent) { in process() argument 22 if (rawEvent.type == EV_MSC && rawEvent.code == MSC_SCAN) { in process() 23 mCurrentHidUsage = rawEvent.value; in process() 27 if (rawEvent.type == EV_SYN && rawEvent.code == SYN_REPORT) { in process()
|
D | MultiTouchMotionAccumulator.cpp | 48 void MultiTouchMotionAccumulator::process(const RawEvent& rawEvent) { in process() argument 49 if (rawEvent.type == EV_ABS) { in process() 52 if (rawEvent.code == ABS_MT_SLOT) { in process() 53 mCurrentSlot = rawEvent.value; in process() 75 if (rawEvent.code == ABS_MT_POSITION_X || rawEvent.code == ABS_MT_POSITION_Y) { in process() 76 warnIfNotInUse(rawEvent, slot); in process() 78 slot.populateAxisValue(rawEvent.code, rawEvent.value); in process() 80 } else if (rawEvent.type == EV_SYN && rawEvent.code == SYN_MT_REPORT) { in process()
|
D | CursorScrollAccumulator.cpp | 42 void CursorScrollAccumulator::process(const RawEvent& rawEvent) { in process() argument 43 if (rawEvent.type == EV_REL) { in process() 44 switch (rawEvent.code) { in process() 46 mRelWheel = rawEvent.value; in process() 49 mRelHWheel = rawEvent.value; in process()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | SimpleSwipe.java | 46 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 48 cancelAfter(mDetectionDurationMillis, event, rawEvent, policyFlags); in onDown() 52 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 53 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 57 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument 58 if (gestureMatched(event, rawEvent, policyFlags)) { in onMove() 59 completeGesture(event, rawEvent, policyFlags); in onMove() 64 protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onUp() argument 65 if (gestureMatched(event, rawEvent, policyFlags)) { in onUp() 66 completeGesture(event, rawEvent, policyFlags); in onUp() [all …]
|
D | TwoFingersDownOrSwipe.java | 52 protected void onDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onDown() argument 54 cancelAfter(mDetectionDurationMillis, event, rawEvent, policyFlags); in onDown() 58 protected void onPointerDown(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerDown() argument 60 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 64 completeAfter(mDoubleTapTimeout, event, rawEvent, policyFlags); in onPointerDown() 66 cancelGesture(event, rawEvent, policyFlags); in onPointerDown() 71 protected void onMove(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMove() argument 76 completeGesture(event, rawEvent, policyFlags); in onMove() 81 completeGesture(event, rawEvent, policyFlags); in onMove() 86 protected void onPointerUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onPointerUp() argument [all …]
|
D | GesturesObserver.java | 51 void onGestureCompleted(int gestureId, MotionEvent event, MotionEvent rawEvent, in onGestureCompleted() argument 62 void onGestureCancelled(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onGestureCancelled() argument 89 public boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 92 mListener.onGestureCancelled(event, rawEvent, policyFlags); in onMotionEvent() 102 matcher.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 127 MotionEvent rawEvent, int policyFlags) { in onStateChanged() argument 129 mListener.onGestureCompleted(gestureId, event, rawEvent, policyFlags); in onStateChanged() 140 mListener.onGestureCancelled(event, rawEvent, policyFlags); in onStateChanged()
|
D | MagnificationGestureHandler.java | 115 public final void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 123 "event=" + event + ";rawEvent=" + rawEvent + ";policyFlags=" + policyFlags); in onMotionEvent() 129 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEvent() 131 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent() 150 final void dispatchTransformedEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in dispatchTransformedEvent() argument 154 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() 163 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent() 177 abstract void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onMotionEventInternal() argument
|
D | MagnificationGesturesObserver.java | 110 boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument 114 cacheDelayedMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 122 return mGesturesObserver.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 126 public void onGestureCompleted(int gestureId, MotionEvent event, MotionEvent rawEvent, in onGestureCompleted() argument 140 public void onGestureCancelled(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onGestureCancelled() argument 181 private void cacheDelayedMotionEvent(MotionEvent event, MotionEvent rawEvent, in cacheDelayedMotionEvent() argument 185 MotionEventInfo.obtain(event, rawEvent, in cacheDelayedMotionEvent()
|
D | MotionEventInfo.java | 34 static MotionEventInfo obtain(MotionEvent event, MotionEvent rawEvent, in obtain() argument 36 return new MotionEventInfo(MotionEvent.obtain(event), MotionEvent.obtain(rawEvent), in obtain() 40 MotionEventInfo(MotionEvent event, MotionEvent rawEvent, in MotionEventInfo() argument 43 mRawEvent = rawEvent; in MotionEventInfo()
|
/frameworks/native/services/inputflinger/reader/mapper/gestures/ |
D | HardwareStateConverter.cpp | 43 const RawEvent& rawEvent) { in processRawEvent() argument 45 if (rawEvent.type == EV_SYN && rawEvent.code == SYN_REPORT) { in processRawEvent() 46 out = produceHardwareState(rawEvent.when); in processRawEvent() 50 if (rawEvent.type == EV_MSC && rawEvent.code == MSC_TIMESTAMP) { in processRawEvent() 51 mMscTimestamp = rawEvent.value; in processRawEvent() 53 mCursorButtonAccumulator.process(rawEvent); in processRawEvent() 54 mMotionAccumulator.process(rawEvent); in processRawEvent() 55 mTouchButtonAccumulator.process(rawEvent); in processRawEvent()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | SwitchInputMapper.cpp | 33 std::list<NotifyArgs> SwitchInputMapper::process(const RawEvent& rawEvent) { in process() argument 35 switch (rawEvent.type) { in process() 37 processSwitch(rawEvent.code, rawEvent.value); in process() 41 if (rawEvent.code == SYN_REPORT) { in process() 42 out += sync(rawEvent.when); in process()
|
D | ExternalStylusInputMapper.cpp | 64 std::list<NotifyArgs> ExternalStylusInputMapper::process(const RawEvent& rawEvent) { in process() argument 66 mSingleTouchMotionAccumulator.process(rawEvent); in process() 67 mTouchButtonAccumulator.process(rawEvent); in process() 69 if (rawEvent.type == EV_SYN && rawEvent.code == SYN_REPORT) { in process() 70 out += sync(rawEvent.when); in process()
|
D | RotaryEncoderInputMapper.cpp | 104 std::list<NotifyArgs> RotaryEncoderInputMapper::process(const RawEvent& rawEvent) { in process() argument 106 mRotaryEncoderScrollAccumulator.process(rawEvent); in process() 108 if (rawEvent.type == EV_SYN && rawEvent.code == SYN_REPORT) { in process() 109 out += sync(rawEvent.when, rawEvent.readTime); in process()
|