From fbbaf2efbb7781e86e509709169edf4b5c8fe036 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 22 Jun 2015 16:18:21 +0100 Subject: Cancel touches as well as pointer gestures. Bug: 19264992 Change-Id: Idbe964a1a35c190a32f845e2a19542d54652d011 --- services/inputflinger/InputReader.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/inputflinger/InputReader.h') diff --git a/services/inputflinger/InputReader.h b/services/inputflinger/InputReader.h index 4062ec7..7cb4680 100644 --- a/services/inputflinger/InputReader.h +++ b/services/inputflinger/InputReader.h @@ -1469,6 +1469,9 @@ protected: // Have we assigned pointer IDs for this stream bool mHavePointerIds; + // Is the current stream of direct touch events aborted + bool mCurrentMotionAborted; + // The time the primary pointer last went down. nsecs_t mDownTime; @@ -1802,6 +1805,7 @@ private: void dispatchButtonPress(nsecs_t when, uint32_t policyFlags); const BitSet32& findActiveIdBits(const CookedPointerData& cookedPointerData); void cookPointerData(); + void abortTouches(nsecs_t when, uint32_t policyFlags); void dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage); void abortPointerUsage(nsecs_t when, uint32_t policyFlags); -- cgit v1.1