commit | dfd528e33526ef37dea14bcfdc353d31a32b3962 | [log] [tgz] |
---|---|---|
author | Arthur Hung <arthurhung@google.com> | Wed Dec 08 13:23:04 2021 +0000 |
committer | Arthur Hung <arthurhung@google.com> | Thu Dec 16 06:55:15 2021 +0000 |
tree | cf04351e95d2f7fe18f0d978b36b0dd37fcf4e7f | |
parent | 3d0bcf18becba3ffc6dd631d6efa35a5dc9d50a0 [diff] [blame] |
Prevent false touch when folding device (1/2) This CL will add new api to cancel current touch when fold transition started. Bug: 203549969 Test: atest inputflinger_tests Change-Id: Ic62bfc04fc126d9d766cc028c53c6d1f60ff5544
diff --git a/services/inputflinger/dispatcher/include/InputDispatcherInterface.h b/services/inputflinger/dispatcher/include/InputDispatcherInterface.h index 714e7a0..c469ec3 100644 --- a/services/inputflinger/dispatcher/include/InputDispatcherInterface.h +++ b/services/inputflinger/dispatcher/include/InputDispatcherInterface.h
@@ -211,6 +211,11 @@ * Called when a display has been removed from the system. */ virtual void displayRemoved(int32_t displayId) = 0; + + /* + * Abort the current touch stream. + */ + virtual void cancelCurrentTouch() = 0; }; } // namespace android