summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-11-16 10:25:12 -0800
committer Siarhei Vishniakou <svv@google.com> 2023-11-20 10:34:26 -0800
commitd908f5a087abda688474320f44927e858bf3d956 (patch)
treeead2e2b68d5b6058de9d4a929ee75ccef73647e7 /libs/ultrahdr/jpegencoderhelper.cpp
parent320689502524bddf5740bcdbb57a35adfffad572 (diff)
Wait for dispatcher to be idle in WindowDropsInput test
This test is flaky, and the failure is not reproducible locally. This CL attempts a speculative fix by analyzing the failure. Diagnosis: We are sending the events to the dispatcher via notifyMotion, but we aren't waiting for the dispatcher long enough to process them. In the case when the device running this test is slow, these events are still pending inside dispatcher. Then later in the test, we are setting the window flag to no longer drop input. This causes the delivery of the motion event DOWN instead of the expected key event. In this CL, we are waiting for the dispatcher to completely process the pending events before continuing with the test. Bug: 311284088 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST --gtest_filter="*WindowDropsInput" --gtest_repeat=10000 --gtest_break_on_failure Change-Id: I24fc1bf08513f7dfc99a3a1ebfdaa66869a1b015
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions