diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ui/EventHub.h | 6 | ||||
| -rw-r--r-- | include/ui/InputDispatcher.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h index dab35b3..3132941 100644 --- a/include/ui/EventHub.h +++ b/include/ui/EventHub.h @@ -266,6 +266,12 @@ private: #ifdef EV_SW int32_t mSwitches[SW_MAX + 1]; #endif + + static const int INPUT_BUFFER_SIZE = 64; + struct input_event mInputBufferData[INPUT_BUFFER_SIZE]; + int32_t mInputBufferIndex; + int32_t mInputBufferCount; + int32_t mInputDeviceIndex; }; }; // namespace android diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h index d3495fe..2505cb0 100644 --- a/include/ui/InputDispatcher.h +++ b/include/ui/InputDispatcher.h @@ -554,6 +554,8 @@ private: // All registered connections mapped by receive pipe file descriptor. KeyedVector<int, sp<Connection> > mConnectionsByReceiveFd; + ssize_t getConnectionIndex(const sp<InputChannel>& inputChannel); + // Active connections are connections that have a non-empty outbound queue. // We don't use a ref-counted pointer here because we explicitly abort connections // during unregistration which causes the connection's outbound queue to be cleared |
