summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-27 18:43:51 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-27 18:43:51 -0700
commitfef5b04203b0efcbd6dc5d279083d57b77f3391b (patch)
treebaeddaa46f1e9525a7d3a75d89fbd04ffe7e52a6 /include
parentd2a5a8f3d1374e5af399ff83b8faf86fbc33bacd (diff)
downloadframeworks_native-fef5b04203b0efcbd6dc5d279083d57b77f3391b.zip
frameworks_native-fef5b04203b0efcbd6dc5d279083d57b77f3391b.tar.gz
frameworks_native-fef5b04203b0efcbd6dc5d279083d57b77f3391b.tar.bz2
Drop all dispatcher state when dispatcher is disabled.
This patch makes the dispatcher drop all of its state when it is disabled (when the screen turns off). This ensures that the dispatcher does not get stuck thinking a pointer is still down if the screen turned off while the user was touching the display (such as a fat touch while hitting the power button). Bug: 3098344 Change-Id: If50ef5804870aa1acd3179fd4b40e3cda58dd39d
Diffstat (limited to 'include')
-rw-r--r--include/ui/InputDispatcher.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h
index b0b855e..5f77cba 100644
--- a/include/ui/InputDispatcher.h
+++ b/include/ui/InputDispatcher.h
@@ -1032,6 +1032,9 @@ private:
// Splitting motion events across windows.
MotionEntry* splitMotionEvent(const MotionEntry* originalMotionEntry, BitSet32 pointerIds);
+ // Reset and drop everything the dispatcher is doing.
+ void resetAndDropEverythingLocked(const char* reason);
+
// Dump state.
void dumpDispatchStateLocked(String8& dump);
void logDispatchStateLocked();