OSDN Git Service

Check if the window is partially obscured for slippery enters
authorSiarhei Vishniakou <svv@google.com>
Wed, 9 Dec 2020 18:07:46 +0000 (08:07 -1000)
committerSiarhei Vishniakou <svv@google.com>
Thu, 4 Nov 2021 17:39:35 +0000 (17:39 +0000)
commit6e689ffe3fad4b190629e11222936fb7cda041c2
tree32949a1799add5d5fd814491243ad0dc6b37b494
parent3ba4963f5baf1c9a3a461f1c6a0caa7fb65aa6db
Check if the window is partially obscured for slippery enters

Currently, we only check whether a window is partially obscured during
the initial tap down. However, there is another use case: slippery
enter.

During a slippery enter, the touch down is generated into the
slipped-into window, and touch cancel is generated for the slipped-from
window. The window receiving the slippery enter does not need to have
any flags.

Until we figure out whether we can restrict the usage of this flag to
system components, add this check as an intermediate fix.

Bug: 157929241
Test: atest FlagSlipperyTest
Test: atest inputflinger_tests
Change-Id: I93d9681479f41244ffed4b1f88cceb69be71adf2
Merged-In: I93d9681479f41244ffed4b1f88cceb69be71adf2
(cherry picked from commit 870ececa8d5dfb293e671c716f98ccddae24147f)
services/inputflinger/InputDispatcher.cpp