diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-04-01 12:56:35 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-01 12:56:35 -0700 |
commit | 02988ec716897ac6d501e732fc7cbef612d5fab6 (patch) | |
tree | 162b323707f309f92e4541b3f3bbbfb4e014f446 /include/ui | |
parent | 38a0a853a3723833ed22f7e5d80f0e1ef78d3a54 (diff) | |
parent | 3847f62209bef63735e8f72d04af1d845f67301c (diff) | |
download | frameworks_native-02988ec716897ac6d501e732fc7cbef612d5fab6.zip frameworks_native-02988ec716897ac6d501e732fc7cbef612d5fab6.tar.gz frameworks_native-02988ec716897ac6d501e732fc7cbef612d5fab6.tar.bz2 |
Merge "Add a little input event consistency verifier."
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/Input.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index b22986d..0dc29c8 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -37,10 +37,16 @@ class SkMatrix; * Additional private constants not defined in ndk/ui/input.h. */ enum { - /* - * Private control to determine when an app is tracking a key sequence. - */ - AKEY_EVENT_FLAG_START_TRACKING = 0x40000000 + /* Private control to determine when an app is tracking a key sequence. */ + AKEY_EVENT_FLAG_START_TRACKING = 0x40000000, + + /* Key event is inconsistent with previously sent key events. */ + AKEY_EVENT_FLAG_TAINTED = 0x80000000, +}; + +enum { + /* Motion event is inconsistent with previously sent motion events. */ + AMOTION_EVENT_FLAG_TAINTED = 0x80000000, }; enum { @@ -328,6 +334,8 @@ public: inline int32_t getFlags() const { return mFlags; } + inline void setFlags(int32_t flags) { mFlags = flags; } + inline int32_t getEdgeFlags() const { return mEdgeFlags; } inline void setEdgeFlags(int32_t edgeFlags) { mEdgeFlags = edgeFlags; } |