Home
last modified time | relevance | path

Searched refs:rawEvent (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DTouchButtonAccumulator.cpp70 void TouchButtonAccumulator::process(const RawEvent* rawEvent) { in process() argument
71 if (rawEvent->type == EV_KEY) { in process()
72 switch (rawEvent->code) { in process()
74 mBtnTouch = rawEvent->value; in process()
77 mBtnStylus = rawEvent->value; in process()
82 mBtnStylus2 = rawEvent->value; in process()
85 mBtnToolFinger = rawEvent->value; in process()
88 mBtnToolPen = rawEvent->value; in process()
91 mBtnToolRubber = rawEvent->value; in process()
94 mBtnToolBrush = rawEvent->value; in process()
[all …]
DSingleTouchMotionAccumulator.cpp48 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()
DCursorButtonAccumulator.cpp50 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 …]
DCursorScrollAccumulator.cpp42 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()
DCursorButtonAccumulator.h33 void process(const RawEvent* rawEvent);
DTouchButtonAccumulator.h34 void process(const RawEvent* rawEvent);
/frameworks/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.cpp87 void MultiTouchMotionAccumulator::process(const RawEvent* rawEvent) { in process() argument
88 if (rawEvent->type == EV_ABS) { in process()
91 if (rawEvent->code == ABS_MT_SLOT) { in process()
92 mCurrentSlot = rawEvent->value; in process()
110 switch (rawEvent->code) { in process()
113 slot->mAbsMTPositionX = rawEvent->value; in process()
117 slot->mAbsMTPositionY = rawEvent->value; in process()
121 slot->mAbsMTTouchMajor = rawEvent->value; in process()
125 slot->mAbsMTTouchMinor = rawEvent->value; in process()
130 slot->mAbsMTWidthMajor = rawEvent->value; in process()
[all …]
DSwitchInputMapper.cpp32 void SwitchInputMapper::process(const RawEvent* rawEvent) { in process() argument
33 switch (rawEvent->type) { in process()
35 processSwitch(rawEvent->code, rawEvent->value); in process()
39 if (rawEvent->code == SYN_REPORT) { in process()
40 sync(rawEvent->when); in process()
DExternalStylusInputMapper.cpp59 void ExternalStylusInputMapper::process(const RawEvent* rawEvent) { in process() argument
60 mSingleTouchMotionAccumulator.process(rawEvent); in process()
61 mTouchButtonAccumulator.process(rawEvent); in process()
63 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
64 sync(rawEvent->when); in process()
DRotaryEncoderInputMapper.cpp84 void RotaryEncoderInputMapper::process(const RawEvent* rawEvent) { in process() argument
85 mRotaryEncoderScrollAccumulator.process(rawEvent); in process()
87 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
88 sync(rawEvent->when); in process()
DCursorInputMapper.cpp43 void CursorMotionAccumulator::process(const RawEvent* rawEvent) { in process() argument
44 if (rawEvent->type == EV_REL) { in process()
45 switch (rawEvent->code) { in process()
47 mRelX = rawEvent->value; in process()
50 mRelY = rawEvent->value; in process()
277 void CursorInputMapper::process(const RawEvent* rawEvent) { in process() argument
278 mCursorButtonAccumulator.process(rawEvent); in process()
279 mCursorMotionAccumulator.process(rawEvent); in process()
280 mCursorScrollAccumulator.process(rawEvent); in process()
282 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
[all …]
DJoystickInputMapper.cpp253 void JoystickInputMapper::process(const RawEvent* rawEvent) { in process() argument
254 switch (rawEvent->type) { in process()
256 ssize_t index = mAxes.indexOfKey(rawEvent->code); in process()
262 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) * axis.scale + in process()
267 if (rawEvent->value < axis.axisInfo.splitValue) { in process()
268 newValue = (axis.axisInfo.splitValue - rawEvent->value) * axis.scale + in process()
271 } else if (rawEvent->value > axis.axisInfo.splitValue) { in process()
274 (rawEvent->value - axis.axisInfo.splitValue) * axis.highScale + in process()
282 newValue = rawEvent->value * axis.scale + axis.offset; in process()
293 switch (rawEvent->code) { in process()
[all …]
DKeyboardInputMapper.cpp191 void KeyboardInputMapper::process(const RawEvent* rawEvent) { in process() argument
192 switch (rawEvent->type) { in process()
194 int32_t scanCode = rawEvent->code; in process()
199 processKey(rawEvent->when, rawEvent->value != 0, scanCode, usageCode); in process()
204 if (rawEvent->code == MSC_SCAN) { in process()
205 mCurrentHidUsage = rawEvent->value; in process()
210 if (rawEvent->code == SYN_REPORT) { in process()
DSingleTouchInputMapper.cpp31 void SingleTouchInputMapper::process(const RawEvent* rawEvent) { in process() argument
32 TouchInputMapper::process(rawEvent); in process()
34 mSingleTouchMotionAccumulator.process(rawEvent); in process()
DCursorInputMapper.h41 void process(const RawEvent* rawEvent);
64 virtual void process(const RawEvent* rawEvent);
DMultiTouchInputMapper.h75 void process(const RawEvent* rawEvent);
100 virtual void process(const RawEvent* rawEvent);
DSingleTouchInputMapper.h31 virtual void process(const RawEvent* rawEvent);
DSwitchInputMapper.h30 virtual void process(const RawEvent* rawEvent);
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonEvent.java42 String rawEvent, String logMessage, FileDescriptor[] fdList) { in NativeDaemonEvent() argument
46 mRawEvent = rawEvent; in NativeDaemonEvent()
137 public static NativeDaemonEvent parseRawEvent(String rawEvent, FileDescriptor[] fdList) { in parseRawEvent() argument
138 final String[] parsed = rawEvent.split(" "); in parseRawEvent()
166 String logMessage = rawEvent; in parseRawEvent()
172 final String message = rawEvent.substring(skiplength); in parseRawEvent()
174 return new NativeDaemonEvent(cmdNumber, code, message, rawEvent, logMessage, fdList); in parseRawEvent()
206 public static String[] unescapeArgs(String rawEvent) { in unescapeArgs() argument
210 final int length = rawEvent.length(); in unescapeArgs()
215 if (DEBUG_ROUTINE) Slog.e(LOGTAG, "parsing '" + rawEvent + "'"); in unescapeArgs()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationGestureHandler.java204 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
208 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent()
214 onMotionEventInternal(event, rawEvent, policyFlags); in onMotionEvent()
218 private void onMotionEventInternal(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEventInternal() argument
223 dispatchTransformedEvent(event, rawEvent, policyFlags); in onMotionEventInternal()
227 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal()
231 MotionEvent event, MotionEvent rawEvent, int policyFlags) { in handleEventWith() argument
236 stateHandler.onMotionEvent(event, rawEvent, policyFlags); in handleEventWith()
283 private void dispatchTransformedEvent(MotionEvent event, MotionEvent rawEvent, in dispatchTransformedEvent() argument
288 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent()
[all …]
DAccessibilityGestureDetector.java270 public boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
273 final float x = rawEvent.getX(); in onMotionEvent()
274 final float y = rawEvent.getY(); in onMotionEvent()
275 final long time = rawEvent.getEventTime(); in onMotionEvent()
278 switch (rawEvent.getActionMasked()) { in onMotionEvent()
329 return mListener.onGestureCancelled(rawEvent, policyFlags); in onMotionEvent()
345 return finishDoubleTap(rawEvent, policyFlags); in onMotionEvent()
353 return recognizeGesture(rawEvent, policyFlags); in onMotionEvent()
362 if (rawEvent.getPointerCount() == 2) { in onMotionEvent()
378 return finishDoubleTap(rawEvent, policyFlags); in onMotionEvent()
[all …]
DEventStreamTransformation.java68 default void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() argument
71 next.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp189 for (const RawEvent* rawEvent = rawEvents; count != 0; rawEvent++) { in process() local
192 rawEvent->deviceId, rawEvent->type, rawEvent->code, rawEvent->value, rawEvent->when); in process()
196 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
206 } else if (rawEvent->type == EV_SYN && rawEvent->code == SYN_DROPPED) { in process()
209 reset(rawEvent->when); in process()
212 mapper->process(rawEvent); in process()
DInputReader.cpp144 for (const RawEvent* rawEvent = rawEvents; count;) { in processEventsLocked() local
145 int32_t type = rawEvent->type; in processEventsLocked()
148 int32_t deviceId = rawEvent->deviceId; in processEventsLocked()
150 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT || in processEventsLocked()
151 rawEvent[batchSize].deviceId != deviceId) { in processEventsLocked()
159 processEventsForDeviceLocked(deviceId, rawEvent, batchSize); in processEventsLocked()
161 switch (rawEvent->type) { in processEventsLocked()
163 addDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
166 removeDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
169 handleConfigurationChangedLocked(rawEvent->when); in processEventsLocked()
[all …]
/frameworks/base/media/jni/
DJetPlayer.cpp315 EAS_U32 rawEvent; in fireEventsFromJetQueue() local
316 while (JET_GetEvent(mEasData, &rawEvent, NULL)) { in fireEventsFromJetQueue()
319 rawEvent, in fireEventsFromJetQueue()

12