Lines Matching refs:rawEvent
305 void InputReader::processEventsLocked(const RawEvent* rawEvents, size_t count) {
306 for (const RawEvent* rawEvent = rawEvents; count;) {
307 int32_t type = rawEvent->type;
310 int32_t deviceId = rawEvent->deviceId;
312 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT
313 || rawEvent[batchSize].deviceId != deviceId) {
321 processEventsForDeviceLocked(deviceId, rawEvent, batchSize);
323 switch (rawEvent->type) {
325 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
328 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
331 handleConfigurationChangedLocked(rawEvent->when);
339 rawEvent += batchSize;
446 const RawEvent* rawEvents, size_t count) {
928 void InputDevice::process(const RawEvent* rawEvents, size_t count) {
935 for (const RawEvent* rawEvent = rawEvents; count--; rawEvent++) {
939 rawEvent->deviceId, rawEvent->type, rawEvent->scanCode, rawEvent->keyCode,
940 rawEvent->value, rawEvent->flags);
944 if (rawEvent->type == EV_SYN && rawEvent->scanCode == SYN_REPORT) {
954 } else if (rawEvent->type == EV_SYN && rawEvent->scanCode == SYN_DROPPED) {
957 reset(rawEvent->when);
961 mapper->process(rawEvent);
1077 void CursorButtonAccumulator::process(const RawEvent* rawEvent) {
1078 if (rawEvent->type == EV_KEY) {
1079 switch (rawEvent->scanCode) {
1081 mBtnLeft = rawEvent->value;
1084 mBtnRight = rawEvent->value;
1087 mBtnMiddle = rawEvent->value;
1090 mBtnBack = rawEvent->value;
1093 mBtnSide = rawEvent->value;
1096 mBtnForward = rawEvent->value;
1099 mBtnExtra = rawEvent->value;
1102 mBtnTask = rawEvent->value;
1144 void CursorMotionAccumulator::process(const RawEvent* rawEvent) {
1145 if (rawEvent->type == EV_REL) {
1146 switch (rawEvent->scanCode) {
1148 mRelX = rawEvent->value;
1151 mRelY = rawEvent->value;
1183 void CursorScrollAccumulator::process(const RawEvent* rawEvent) {
1184 if (rawEvent->type == EV_REL) {
1185 switch (rawEvent->scanCode) {
1187 mRelWheel = rawEvent->value;
1190 mRelHWheel = rawEvent->value;
1246 void TouchButtonAccumulator::process(const RawEvent* rawEvent) {
1247 if (rawEvent->type == EV_KEY) {
1248 switch (rawEvent->scanCode) {
1250 mBtnTouch = rawEvent->value;
1253 mBtnStylus = rawEvent->value;
1256 mBtnStylus2 = rawEvent->value;
1259 mBtnToolFinger = rawEvent->value;
1262 mBtnToolPen = rawEvent->value;
1265 mBtnToolRubber = rawEvent->value;
1268 mBtnToolBrush = rawEvent->value;
1271 mBtnToolPencil = rawEvent->value;
1274 mBtnToolAirbrush = rawEvent->value;
1277 mBtnToolMouse = rawEvent->value;
1280 mBtnToolLens = rawEvent->value;
1283 mBtnToolDoubleTap = rawEvent->value;
1286 mBtnToolTripleTap = rawEvent->value;
1289 mBtnToolQuadTap = rawEvent->value;
1452 void SingleTouchMotionAccumulator::process(const RawEvent* rawEvent) {
1453 if (rawEvent->type == EV_ABS) {
1454 switch (rawEvent->scanCode) {
1456 mAbsX = rawEvent->value;
1459 mAbsY = rawEvent->value;
1462 mAbsPressure = rawEvent->value;
1465 mAbsToolWidth = rawEvent->value;
1468 mAbsDistance = rawEvent->value;
1471 mAbsTiltX = rawEvent->value;
1474 mAbsTiltY = rawEvent->value;
1534 void MultiTouchMotionAccumulator::process(const RawEvent* rawEvent) {
1535 if (rawEvent->type == EV_ABS) {
1538 if (rawEvent
1539 mCurrentSlot = rawEvent->value;
1557 switch (rawEvent->scanCode) {
1560 slot->mAbsMTPositionX = rawEvent->value;
1564 slot->mAbsMTPositionY = rawEvent->value;
1568 slot->mAbsMTTouchMajor = rawEvent->value;
1572 slot->mAbsMTTouchMinor = rawEvent->value;
1577 slot->mAbsMTWidthMajor = rawEvent->value;
1581 slot->mAbsMTWidthMinor = rawEvent->value;
1586 slot->mAbsMTOrientation = rawEvent->value;
1589 if (mUsingSlotsProtocol && rawEvent->value < 0) {
1595 slot->mAbsMTTrackingId = rawEvent->value;
1600 slot->mAbsMTPressure = rawEvent->value;
1604 slot->mAbsMTDistance = rawEvent->value;
1608 slot->mAbsMTToolType = rawEvent->value;
1613 } else if (rawEvent->type == EV_SYN && rawEvent->scanCode == SYN_MT_REPORT) {
1741 void SwitchInputMapper::process(const RawEvent* rawEvent) {
1742 switch (rawEvent->type) {
1744 processSwitch(rawEvent->when, rawEvent->scanCode, rawEvent->value);
1841 void KeyboardInputMapper::process(const RawEvent* rawEvent) {
1842 switch (rawEvent->type) {
1844 int32_t scanCode = rawEvent->scanCode;
1846 processKey(rawEvent->when, rawEvent->value != 0, rawEvent->keyCode, scanCode,
1847 rawEvent->flags);
2164 void CursorInputMapper::process(const RawEvent* rawEvent) {
2165 mCursorButtonAccumulator.process(rawEvent);
2166 mCursorMotionAccumulator.process(rawEvent);
2167 mCursorScrollAccumulator.process(rawEvent);
2169 if (rawEvent->type == EV_SYN && rawEvent->scanCode == SYN_REPORT) {
2170 sync(rawEvent->when);
3292 void TouchInputMapper::process(const RawEvent* rawEvent) {
3293 mCursorButtonAccumulator.process(rawEvent);
3294 mCursorScrollAccumulator.process(rawEvent);
3295 mTouchButtonAccumulator.process(rawEvent);
3297 if (rawEvent->type == EV_SYN && rawEvent->scanCode == SYN_REPORT) {
3298 sync(rawEvent->when);
5501 void SingleTouchInputMapper::process(const RawEvent* rawEvent) {
5502 TouchInputMapper::process(rawEvent);
5504 mSingleTouchMotionAccumulator.process(rawEvent);
5569 void MultiTouchInputMapper::process(const RawEvent* rawEvent) {
5570 TouchInputMapper::process(rawEvent);
5572 mMultiTouchMotionAccumulator.process(rawEvent);
5903 void JoystickInputMapper::process(const RawEvent* rawEvent) {
5904 switch (rawEvent->type) {
5906 ssize_t index = mAxes.indexOfKey(rawEvent->scanCode);
5912 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value)
5917 if (rawEvent->value < axis.axisInfo.splitValue) {
5918 newValue = (axis.axisInfo.splitValue - rawEvent->value)
5921 } else if (rawEvent->value > axis.axisInfo.splitValue) {
5923 highNewValue = (rawEvent->value - axis.axisInfo.splitValue)
5931 newValue = rawEvent->value * axis.scale + axis.offset;
5942 switch (rawEvent->scanCode) {
5944 sync(rawEvent->when, false /*force*/);