summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-01 17:46:21 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-01 18:05:13 -0700
commit2806e381cf08ef3073634b1fdd1f656c1750a7eb (patch)
tree210b3353cf887452fbf224b2d0fcb62a1804f51e /include
parent956c0fb2386cb0cf92e08b199c706ed3a044ad1b (diff)
downloadframeworks_native-2806e381cf08ef3073634b1fdd1f656c1750a7eb.zip
frameworks_native-2806e381cf08ef3073634b1fdd1f656c1750a7eb.tar.gz
frameworks_native-2806e381cf08ef3073634b1fdd1f656c1750a7eb.tar.bz2
Minor logging changes to input dispatcher to help with debugging.
Added dumpsys reporting to EventHub. Made the formatting a bit clearer. Added 'Locked' suffix to some internal methods of EventHub. Change-Id: Ic449560bcce378f6361895d27c66854e9724abb0
Diffstat (limited to 'include')
-rw-r--r--include/ui/EventHub.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h
index d6b09dc..d077d0e 100644
--- a/include/ui/EventHub.h
+++ b/include/ui/EventHub.h
@@ -181,6 +181,8 @@ public:
*/
virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
uint8_t* outFlags) const = 0;
+
+ virtual void dump(String8& dump) = 0;
};
class EventHub : public EventHubInterface
@@ -211,6 +213,8 @@ public:
virtual bool getEvent(RawEvent* outEvent);
+ virtual void dump(String8& dump);
+
protected:
virtual ~EventHub();
@@ -239,8 +243,8 @@ private:
~device_t();
};
- device_t* getDevice(int32_t deviceId) const;
- bool hasKeycode(device_t* device, int keycode) const;
+ device_t* getDeviceLocked(int32_t deviceId) const;
+ bool hasKeycodeLocked(device_t* device, int keycode) const;
int32_t getScanCodeStateLocked(device_t* device, int32_t scanCode) const;
int32_t getKeyCodeStateLocked(device_t* device, int32_t keyCode) const;