summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2024-10-12 00:42:44 +0000
committer Siarhei Vishniakou <svv@google.com> 2024-10-11 18:36:17 -0700
commit67b101b5a69fc322e47806c7b1280ad3af556b7f (patch)
tree32abb98b5cbc91d5597800ab11b0fe65f2ed5564 /libs/gui/SurfaceComposerClient.cpp
parent7db45d5e298ee4cefdf11cdf546d71b31fb91f70 (diff)
Reland "Reject inconsistent globally injected events" --try 2
This reverts commit f7f93f5fd5afa40858ac492402ec6cc85fe89275. Reason for revert: fixed tests Changes: the test for inconsistent sequence needed to be updated because the injection will now always fail. Original description: The dispatcher currently crashes when certain inconsistent input events are injected. This is affecting test stability negatively. In this CL, we reject globally-injected inconsistent events. That may cause some test flakiness, but should eliminate the crashes due to dispatcher reaching bad state later. Unfortunately, we can't currently reject all inconsistent injected events. In the case of targeted injection, it is common for the caller to leave pointers dangling. Since the injection happens into the caller-owned windows only, at the end of those tests the windows get cleaned up, so the dispatcher is still in a good state. The eventual goal is to completely get rid of injection. Meanwhile, however, this should help avoid at least some of the crashes. Bug: 369935405 Flag: EXEMPT bugfix Test: atest inputflinger_tests Change-Id: Ic778677a63e544feadf01f3cc47b08ec3b207297
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions