Home | History | Annotate | Download | only in inputflinger

Lines Matching refs:rawEvent

421 void InputReader::processEventsLocked(const RawEvent* rawEvents, size_t count) {
422 for (const RawEvent* rawEvent = rawEvents; count;) {
423 int32_t type = rawEvent->type;
426 int32_t deviceId = rawEvent->deviceId;
428 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT
429 || rawEvent[batchSize].deviceId != deviceId) {
437 processEventsForDeviceLocked(deviceId, rawEvent, batchSize);
439 switch (rawEvent->type) {
441 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
444 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
447 handleConfigurationChangedLocked(rawEvent->when);
455 rawEvent += batchSize;
594 const RawEvent* rawEvents, size_t count) {
1173 void InputDevice::process(const RawEvent* rawEvents, size_t count) {
1180 for (const RawEvent* rawEvent = rawEvents; count != 0; rawEvent++) {
1183 rawEvent->deviceId, rawEvent->type, rawEvent->code, rawEvent->value,
1184 rawEvent->when);
1188 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) {
1198 } else if (rawEvent->type == EV_SYN && rawEvent->code == SYN_DROPPED) {
1201 reset(rawEvent->when);
1205 mapper->process(rawEvent);
1370 void CursorButtonAccumulator::process(const RawEvent* rawEvent) {
1371 if (rawEvent->type == EV_KEY) {
1372 switch (rawEvent->code) {
1374 mBtnLeft = rawEvent->value;
1377 mBtnRight = rawEvent->value;
1380 mBtnMiddle = rawEvent->value;
1383 mBtnBack = rawEvent->value;
1386 mBtnSide = rawEvent->value;
1389 mBtnForward = rawEvent->value;
1392 mBtnExtra = rawEvent->value;
1395 mBtnTask = rawEvent->value;
1437 void CursorMotionAccumulator::process(const RawEvent* rawEvent) {
1438 if (rawEvent->type == EV_REL) {
1439 switch (rawEvent->code) {
1441 mRelX = rawEvent->value;
1444 mRelY = rawEvent->value;
1476 void CursorScrollAccumulator::process(const RawEvent* rawEvent) {
1477 if (rawEvent->type == EV_REL) {
1478 switch (rawEvent->code) {
1480 mRelWheel = rawEvent->value;
1483 mRelHWheel = rawEvent->value;
1546 void TouchButtonAccumulator::process(const RawEvent* rawEvent) {
1547 if (rawEvent->type == EV_KEY) {
1548 switch (rawEvent->code) {
1550 mBtnTouch = rawEvent->value;
1553 mBtnStylus = rawEvent->value;
1557 mBtnStylus2 = rawEvent->value;
1560 mBtnToolFinger = rawEvent->value;
1563 mBtnToolPen = rawEvent->value;
1566 mBtnToolRubber = rawEvent->value;
1569 mBtnToolBrush = rawEvent->value;
1572 mBtnToolPencil = rawEvent->value;
1575 mBtnToolAirbrush = rawEvent->value;
1578 mBtnToolMouse = rawEvent->value;
1581 mBtnToolLens = rawEvent->value;
1584 mBtnToolDoubleTap = rawEvent->value;
1587 mBtnToolTripleTap = rawEvent->value;
1590 mBtnToolQuadTap = rawEvent->value;
1757 void SingleTouchMotionAccumulator::process(const RawEvent* rawEvent) {
1758 if (rawEvent->type == EV_ABS) {
1759 switch (rawEvent->code) {
1761 mAbsX = rawEvent->value;
1764 mAbsY = rawEvent->value;
1767 mAbsPressure = rawEvent->value;
1770 mAbsToolWidth = rawEvent->value;
1773 mAbsDistance = rawEvent->value;
1776 mAbsTiltX = rawEvent->value;
1779 mAbsTiltY = rawEvent->value;
1843 void MultiTouchMotionAccumulator::process(const RawEvent* rawEvent) {
1844 if (rawEvent->type == EV_ABS) {
1847 if (rawEvent->code == ABS_MT_SLOT) {
1848 mCurrentSlot = rawEvent->value;
1866 switch (rawEvent->code) {
1869 slot->mAbsMTPositionX = rawEvent->value;
1873 slot->mAbsMTPositionY = rawEvent->value;
1877 slot->mAbsMTTouchMajor = rawEvent->value;
1881 slot->mAbsMTTouchMinor = rawEvent->value;
1886 slot->mAbsMTWidthMajor = rawEvent->value;
1890 slot->mAbsMTWidthMinor = rawEvent->value;
1895 slot->mAbsMTOrientation = rawEvent->value;
1898 if (mUsingSlotsProtocol && rawEvent->value < 0) {
1904 slot->mAbsMTTrackingId = rawEvent->value;
1909 slot->mAbsMTPressure = rawEvent->value;
1913 slot->mAbsMTDistance = rawEvent->value;
1917 slot->mAbsMTToolType = rawEvent->value;
1922 } else if (rawEvent->type == EV_SYN && rawEvent->code == SYN_MT_REPORT) {
1925 } else if (rawEvent->type == EV_MSC && rawEvent->code == MSC_TIMESTAMP) {
1926 mDeviceTimestamp = rawEvent->value;
2083 void SwitchInputMapper::process(const RawEvent* rawEvent) {
2084 switch (rawEvent->type) {
2086 processSwitch(rawEvent->code, rawEvent->value);
2090 if (rawEvent->code == SYN_REPORT) {
2091 sync(rawEvent->when);
2145 void VibratorInputMapper::process(const RawEvent* rawEvent) {
2349 void KeyboardInputMapper::process(const RawEvent* rawEvent) {
2350 switch (rawEvent->type) {
2352 int32_t scanCode = rawEvent->code;
2357 processKey(rawEvent->when, rawEvent->value != 0, scanCode, usageCode);
2362 if (rawEvent->code == MSC_SCAN) {
2363 mCurrentHidUsage = rawEvent->value;
2368 if (rawEvent->code == SYN_REPORT) {
2775 void CursorInputMapper::process(const RawEvent* rawEvent) {
2776 mCursorButtonAccumulator.process(rawEvent);
2777 mCursorMotionAccumulator.process(rawEvent);
2778 mCursorScrollAccumulator.process(rawEvent);
2780 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) {
2781 sync(rawEvent->when);
3037 void RotaryEncoderInputMapper::process(const RawEvent* rawEvent) {
3038 mRotaryEncoderScrollAccumulator.process(rawEvent);
3040 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) {
3041 sync(rawEvent->when);
4294 void TouchInputMapper::process(const RawEvent* rawEvent) {
4295 mCursorButtonAccumulator.process(rawEvent);
4296 mCursorScrollAccumulator.process(rawEvent);
4297 mTouchButtonAccumulator.process(rawEvent);
4299 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) {
4300 sync(rawEvent->when);
6812 void SingleTouchInputMapper::process(const RawEvent* rawEvent) {
6813 TouchInputMapper::process(rawEvent);
6815 mSingleTouchMotionAccumulator.process(rawEvent);
6884 void MultiTouchInputMapper::process(const RawEvent* rawEvent) {
6885 TouchInputMapper::process(rawEvent);
6887 mMultiTouchMotionAccumulator.process(rawEvent);
7052 void ExternalStylusInputMapper::process(const RawEvent* rawEvent) {
7053 mSingleTouchMotionAccumulator.process(rawEvent);
7054 mTouchButtonAccumulator.process(rawEvent);
7056 if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) {
7057 sync(rawEvent->when);
7327 void JoystickInputMapper::process(const RawEvent* rawEvent) {
7328 switch (rawEvent->type) {
7330 ssize_t index = mAxes.indexOfKey(rawEvent->code);
7336 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value)
7341 if (rawEvent->value < axis.axisInfo.splitValue) {
7342 newValue = (axis.axisInfo.splitValue - rawEvent->value)
7345 } else if (rawEvent->value > axis.axisInfo.splitValue) {
7347 highNewValue = (rawEvent->value - axis.axisInfo.splitValue)
7355 newValue = rawEvent->value * axis.scale + axis.offset;
7366 switch (rawEvent->code) {
7368 sync(rawEvent->when, false /*force*/);