diff options
Diffstat (limited to 'include/ui')
| -rw-r--r-- | include/ui/Input.h | 4 | ||||
| -rw-r--r-- | include/ui/InputReader.h | 21 | ||||
| -rwxr-xr-x | include/ui/KeycodeLabels.h | 2 |
3 files changed, 15 insertions, 12 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index 21baf32..ee40b85 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -73,7 +73,8 @@ namespace android { * policy decisions such as waking from device sleep. */ enum { - /* These flags originate in RawEvents and are generally set in the key map. */ + /* These flags originate in RawEvents and are generally set in the key map. + * See also labels for policy flags in KeycodeLabels.h. */ POLICY_FLAG_WAKE = 0x00000001, POLICY_FLAG_WAKE_DROPPED = 0x00000002, @@ -83,6 +84,7 @@ enum { POLICY_FLAG_ALT_GR = 0x00000020, POLICY_FLAG_MENU = 0x00000040, POLICY_FLAG_LAUNCHER = 0x00000080, + POLICY_FLAG_VIRTUAL = 0x00000100, POLICY_FLAG_RAW_MASK = 0x0000ffff, diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h index e85735a..2209cb8 100644 --- a/include/ui/InputReader.h +++ b/include/ui/InputReader.h @@ -103,10 +103,6 @@ public: virtual bool getDisplayInfo(int32_t displayId, int32_t* width, int32_t* height, int32_t* orientation) = 0; - /* Provides feedback for a virtual key down. - */ - virtual void virtualKeyDownFeedback() = 0; - /* Intercepts a key event. * The policy can use this method as an opportunity to perform power management functions * and early event preprocessing such as updating policy flags. @@ -308,9 +304,6 @@ private: GetStateFunc getStateFunc); bool markSupportedKeyCodes(int32_t deviceId, uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags); - - // dump state - void dumpDeviceInfo(String8& dump); }; @@ -340,6 +333,7 @@ public: inline bool isIgnored() { return mMappers.isEmpty(); } + void dump(String8& dump); void addMapper(InputMapper* mapper); void configure(); void reset(); @@ -393,6 +387,7 @@ public: virtual uint32_t getSources() = 0; virtual void populateDeviceInfo(InputDeviceInfo* deviceInfo); + virtual void dump(String8& dump); virtual void configure(); virtual void reset(); virtual void process(const RawEvent* rawEvent) = 0; @@ -436,6 +431,7 @@ public: virtual uint32_t getSources(); virtual void populateDeviceInfo(InputDeviceInfo* deviceInfo); + virtual void dump(String8& dump); virtual void reset(); virtual void process(const RawEvent* rawEvent); @@ -484,6 +480,7 @@ public: virtual uint32_t getSources(); virtual void populateDeviceInfo(InputDeviceInfo* deviceInfo); + virtual void dump(String8& dump); virtual void reset(); virtual void process(const RawEvent* rawEvent); @@ -540,6 +537,7 @@ public: virtual uint32_t getSources(); virtual void populateDeviceInfo(InputDeviceInfo* deviceInfo); + virtual void dump(String8& dump); virtual void configure(); virtual void reset(); @@ -761,15 +759,16 @@ protected: } mLocked; virtual void configureParameters(); - virtual void logParameters(); + virtual void dumpParameters(String8& dump); virtual void configureRawAxes(); - virtual void logRawAxes(); + virtual void dumpRawAxes(String8& dump); virtual bool configureSurfaceLocked(); - virtual void logMotionRangesLocked(); + virtual void dumpSurfaceLocked(String8& dump); virtual void configureVirtualKeysLocked(); + virtual void dumpVirtualKeysLocked(String8& dump); virtual void parseCalibration(); virtual void resolveCalibration(); - virtual void logCalibration(); + virtual void dumpCalibration(String8& dump); enum TouchResult { // Dispatch the touch normally. diff --git a/include/ui/KeycodeLabels.h b/include/ui/KeycodeLabels.h index c8d6ffc..f71d9cd 100755 --- a/include/ui/KeycodeLabels.h +++ b/include/ui/KeycodeLabels.h @@ -142,6 +142,7 @@ static const KeycodeLabel KEYCODES[] = { { NULL, 0 } }; +// See also policy flags in Input.h. static const KeycodeLabel FLAGS[] = { { "WAKE", 0x00000001 }, { "WAKE_DROPPED", 0x00000002 }, @@ -151,6 +152,7 @@ static const KeycodeLabel FLAGS[] = { { "ALT_GR", 0x00000020 }, { "MENU", 0x00000040 }, { "LAUNCHER", 0x00000080 }, + { "VIRTUAL", 0x00000100 }, { NULL, 0 } }; |
