Lines Matching refs:rawEvent
351 for (const RawEvent* rawEvent = rawEvents; count;) { in processEventsLocked() local
352 int32_t type = rawEvent->type; in processEventsLocked()
355 int32_t deviceId = rawEvent->deviceId; in processEventsLocked()
357 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT in processEventsLocked()
358 || rawEvent[batchSize].deviceId != deviceId) { in processEventsLocked()
366 processEventsForDeviceLocked(deviceId, rawEvent, batchSize); in processEventsLocked()
368 switch (rawEvent->type) { in processEventsLocked()
370 addDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
373 removeDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
376 handleConfigurationChangedLocked(rawEvent->when); in processEventsLocked()
384 rawEvent += batchSize; in processEventsLocked()
1138 for (const RawEvent* rawEvent = rawEvents; count != 0; rawEvent++) { in process() local
1141 rawEvent->deviceId, rawEvent->type, rawEvent->code, rawEvent->value, in process()
1142 rawEvent->when); in process()
1146 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
1156 } else if (rawEvent->type == EV_SYN && rawEvent->code == SYN_DROPPED) { in process()
1159 reset(rawEvent->when); in process()
1162 mapper->process(rawEvent); in process()
1316 void CursorButtonAccumulator::process(const RawEvent* rawEvent) { in process() argument
1317 if (rawEvent->type == EV_KEY) { in process()
1318 switch (rawEvent->code) { in process()
1320 mBtnLeft = rawEvent->value; in process()
1323 mBtnRight = rawEvent->value; in process()
1326 mBtnMiddle = rawEvent->value; in process()
1329 mBtnBack = rawEvent->value; in process()
1332 mBtnSide = rawEvent->value; in process()
1335 mBtnForward = rawEvent->value; in process()
1338 mBtnExtra = rawEvent->value; in process()
1341 mBtnTask = rawEvent->value; in process()
1383 void CursorMotionAccumulator::process(const RawEvent* rawEvent) { in process() argument
1384 if (rawEvent->type == EV_REL) { in process()
1385 switch (rawEvent->code) { in process()
1387 mRelX = rawEvent->value; in process()
1390 mRelY = rawEvent->value; in process()
1422 void CursorScrollAccumulator::process(const RawEvent* rawEvent) { in process() argument
1423 if (rawEvent->type == EV_REL) { in process()
1424 switch (rawEvent->code) { in process()
1426 mRelWheel = rawEvent->value; in process()
1429 mRelHWheel = rawEvent->value; in process()
1492 void TouchButtonAccumulator::process(const RawEvent* rawEvent) { in process() argument
1493 if (rawEvent->type == EV_KEY) { in process()
1494 switch (rawEvent->code) { in process()
1496 mBtnTouch = rawEvent->value; in process()
1499 mBtnStylus = rawEvent->value; in process()
1503 mBtnStylus2 = rawEvent->value; in process()
1506 mBtnToolFinger = rawEvent->value; in process()
1509 mBtnToolPen = rawEvent->value; in process()
1512 mBtnToolRubber = rawEvent->value; in process()
1515 mBtnToolBrush = rawEvent->value; in process()
1518 mBtnToolPencil = rawEvent->value; in process()
1521 mBtnToolAirbrush = rawEvent->value; in process()
1524 mBtnToolMouse = rawEvent->value; in process()
1527 mBtnToolLens = rawEvent->value; in process()
1530 mBtnToolDoubleTap = rawEvent->value; in process()
1533 mBtnToolTripleTap = rawEvent->value; in process()
1536 mBtnToolQuadTap = rawEvent->value; in process()
1703 void SingleTouchMotionAccumulator::process(const RawEvent* rawEvent) { in process() argument
1704 if (rawEvent->type == EV_ABS) { in process()
1705 switch (rawEvent->code) { in process()
1707 mAbsX = rawEvent->value; in process()
1710 mAbsY = rawEvent->value; in process()
1713 mAbsPressure = rawEvent->value; in process()
1716 mAbsToolWidth = rawEvent->value; in process()
1719 mAbsDistance = rawEvent->value; in process()
1722 mAbsTiltX = rawEvent->value; in process()
1725 mAbsTiltY = rawEvent->value; in process()
1789 void MultiTouchMotionAccumulator::process(const RawEvent* rawEvent) { in process() argument
1790 if (rawEvent->type == EV_ABS) { in process()
1793 if (rawEvent->code == ABS_MT_SLOT) { in process()
1794 mCurrentSlot = rawEvent->value; in process()
1812 switch (rawEvent->code) { in process()
1815 slot->mAbsMTPositionX = rawEvent->value; in process()
1819 slot->mAbsMTPositionY = rawEvent->value; in process()
1823 slot->mAbsMTTouchMajor = rawEvent->value; in process()
1827 slot->mAbsMTTouchMinor = rawEvent->value; in process()
1832 slot->mAbsMTWidthMajor = rawEvent->value; in process()
1836 slot->mAbsMTWidthMinor = rawEvent->value; in process()
1841 slot->mAbsMTOrientation = rawEvent->value; in process()
1844 if (mUsingSlotsProtocol && rawEvent->value < 0) { in process()
1850 slot->mAbsMTTrackingId = rawEvent->value; in process()
1855 slot->mAbsMTPressure = rawEvent->value; in process()
1859 slot->mAbsMTDistance = rawEvent->value; in process()
1863 slot->mAbsMTToolType = rawEvent->value; in process()
1868 } else if (rawEvent->type == EV_SYN && rawEvent->code == SYN_MT_REPORT) { in process()
1871 } else if (rawEvent->type == EV_MSC && rawEvent->code == MSC_TIMESTAMP) { in process()
1872 mDeviceTimestamp = rawEvent->value; in process()
2029 void SwitchInputMapper::process(const RawEvent* rawEvent) { in process() argument
2030 switch (rawEvent->type) { in process()
2032 processSwitch(rawEvent->code, rawEvent->value); in process()
2036 if (rawEvent->code == SYN_REPORT) { in process()
2037 sync(rawEvent->when); in process()
2092 void VibratorInputMapper::process(const RawEvent* rawEvent) { in process() argument
2296 void KeyboardInputMapper::process(const RawEvent* rawEvent) { in process() argument
2297 switch (rawEvent->type) { in process()
2299 int32_t scanCode = rawEvent->code; in process()
2304 processKey(rawEvent->when, rawEvent->value != 0, scanCode, usageCode); in process()
2309 if (rawEvent->code == MSC_SCAN) { in process()
2310 mCurrentHidUsage = rawEvent->value; in process()
2315 if (rawEvent->code == SYN_REPORT) { in process()
2725 void CursorInputMapper::process(const RawEvent* rawEvent) { in process() argument
2726 mCursorButtonAccumulator.process(rawEvent); in process()
2727 mCursorMotionAccumulator.process(rawEvent); in process()
2728 mCursorScrollAccumulator.process(rawEvent); in process()
2730 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
2731 sync(rawEvent->when); in process()
3006 void RotaryEncoderInputMapper::process(const RawEvent* rawEvent) { in process() argument
3007 mRotaryEncoderScrollAccumulator.process(rawEvent); in process()
3009 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
3010 sync(rawEvent->when); in process()
4323 void TouchInputMapper::process(const RawEvent* rawEvent) { in process() argument
4324 mCursorButtonAccumulator.process(rawEvent); in process()
4325 mCursorScrollAccumulator.process(rawEvent); in process()
4326 mTouchButtonAccumulator.process(rawEvent); in process()
4328 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
4329 reportEventForStatistics(rawEvent->when); in process()
4330 sync(rawEvent->when); in process()
6869 void SingleTouchInputMapper::process(const RawEvent* rawEvent) { in process() argument
6870 TouchInputMapper::process(rawEvent); in process()
6872 mSingleTouchMotionAccumulator.process(rawEvent); in process()
6941 void MultiTouchInputMapper::process(const RawEvent* rawEvent) { in process() argument
6942 TouchInputMapper::process(rawEvent); in process()
6944 mMultiTouchMotionAccumulator.process(rawEvent); in process()
7109 void ExternalStylusInputMapper::process(const RawEvent* rawEvent) { in process() argument
7110 mSingleTouchMotionAccumulator.process(rawEvent); in process()
7111 mTouchButtonAccumulator.process(rawEvent); in process()
7113 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { in process()
7114 sync(rawEvent->when); in process()
7384 void JoystickInputMapper::process(const RawEvent* rawEvent) { in process() argument
7385 switch (rawEvent->type) { in process()
7387 ssize_t index = mAxes.indexOfKey(rawEvent->code); in process()
7393 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) in process()
7398 if (rawEvent->value < axis.axisInfo.splitValue) { in process()
7399 newValue = (axis.axisInfo.splitValue - rawEvent->value) in process()
7402 } else if (rawEvent->value > axis.axisInfo.splitValue) { in process()
7404 highNewValue = (rawEvent->value - axis.axisInfo.splitValue) in process()
7412 newValue = rawEvent->value * axis.scale + axis.offset; in process()
7423 switch (rawEvent->code) { in process()
7425 sync(rawEvent->when, false /*force*/); in process()