diff options
Diffstat (limited to 'services/input/EventHub.h')
-rw-r--r-- | services/input/EventHub.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/services/input/EventHub.h b/services/input/EventHub.h index 293a1a0..fae5d4f 100644 --- a/services/input/EventHub.h +++ b/services/input/EventHub.h @@ -208,7 +208,11 @@ public: /* Wakes up getEvents() if it is blocked on a read. */ virtual void wake() = 0; + /* Dump EventHub state to a string. */ virtual void dump(String8& dump) = 0; + + /* Called by the heatbeat to ensures that the reader has not deadlocked. */ + virtual void monitor() = 0; }; class EventHub : public EventHubInterface @@ -259,6 +263,7 @@ public: virtual void wake(); virtual void dump(String8& dump); + virtual void monitor(); protected: virtual ~EventHub(); @@ -307,13 +312,6 @@ private: bool hasKeycodeLocked(Device* device, int keycode) const; - int32_t getScanCodeStateLocked(Device* device, int32_t scanCode) const; - int32_t getKeyCodeStateLocked(Device* device, int32_t keyCode) const; - int32_t getSwitchStateLocked(Device* device, int32_t sw) const; - int32_t getAbsoluteAxisValueLocked(Device* device, int32_t axis, int32_t* outValue) const; - bool markSupportedKeyCodesLocked(Device* device, size_t numCodes, - const int32_t* keyCodes, uint8_t* outFlags) const; - void loadConfigurationLocked(Device* device); status_t loadVirtualKeyMapLocked(Device* device); status_t loadKeyMapLocked(Device* device); |