Merge "Add a little input event consistency verifier."
This commit is contained in:
commit
02988ec716
@ -37,10 +37,16 @@ class SkMatrix;
|
|||||||
* Additional private constants not defined in ndk/ui/input.h.
|
* Additional private constants not defined in ndk/ui/input.h.
|
||||||
*/
|
*/
|
||||||
enum {
|
enum {
|
||||||
/*
|
/* Private control to determine when an app is tracking a key sequence. */
|
||||||
* Private control to determine when an app is tracking a key sequence.
|
AKEY_EVENT_FLAG_START_TRACKING = 0x40000000,
|
||||||
*/
|
|
||||||
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 {
|
enum {
|
||||||
@ -328,6 +334,8 @@ public:
|
|||||||
|
|
||||||
inline int32_t getFlags() const { return mFlags; }
|
inline int32_t getFlags() const { return mFlags; }
|
||||||
|
|
||||||
|
inline void setFlags(int32_t flags) { mFlags = flags; }
|
||||||
|
|
||||||
inline int32_t getEdgeFlags() const { return mEdgeFlags; }
|
inline int32_t getEdgeFlags() const { return mEdgeFlags; }
|
||||||
|
|
||||||
inline void setEdgeFlags(int32_t edgeFlags) { mEdgeFlags = edgeFlags; }
|
inline void setEdgeFlags(int32_t edgeFlags) { mEdgeFlags = edgeFlags; }
|
||||||
|
Loading…
Reference in New Issue
Block a user