diff options
| author | 2023-02-21 19:13:16 -0800 | |
|---|---|---|
| committer | 2023-02-22 21:22:37 +0000 | |
| commit | 56e7909f65b32c46edd8537dcfad9574cfc5b0d2 (patch) | |
| tree | b13920ef2a2cd3234489dc3bb0a3e416f5253445 /libs/gui/DisplayLuts.cpp | |
| parent | 76a3e59e2bc05e84dc99ba51628ce04686e21cc1 (diff) | |
Ensure real touch cancels injected events
Sometimes, tests inject events globally. If a test is not hermetic (or,
it crashes), it may leave the system in an inconsistent state. To the
dispatcher, it would look like the virtual device is still down.
Currently, we don't subscribe to any injector death notifications (and
don't plan on doing so).
After this happens, the user may want to interact with the device, so
the notifyMotion call would come in. In this test, make sure that the
injected event is canceled when the new gesture is started.
Bug: 266382436
Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests
Change-Id: I9eeacd1e48cb1cd36a55acc8a129a83edd2784fc
Merged-In: I9eeacd1e48cb1cd36a55acc8a129a83edd2784fc
(cherry picked from commit d8f2f9034cf69eb05b98a0af55321ddb4e6874a8)
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions