diff options
| author | 2024-10-29 11:25:58 -0700 | |
|---|---|---|
| committer | 2024-11-07 22:34:23 +0000 | |
| commit | 1d038d478f8f9ddee71e2fe90ac97ed96303f554 (patch) | |
| tree | 3b38ba6fee693d99bf5ce591c7367844b4b48b0c /libs/battery/LongArrayMultiStateCounterTest.cpp | |
| parent | 2c6de794c9c4c1a526f4c9372e640d3e0572fcdb (diff) | |
Consume full tap in EndToEndNativeInputTest
Currently, the injection inside the test is happening asynchronously.
Occasionally, it seems that an inconsistent event stream is being sent.
Without further debugging about how this is possible, a speculative fix
is being made here by consuming a complete motion sequence after a tap
is injected.
This way, we know that the test must wait for the UP event to be
received, thus hopefully preventing the next test from running and
starting the asynchronous injection.
To prevent misuse of 'consumeEvent' in the future, it is also being made
private in this CL. Unfortunately, a bunch of other fields should also
be private (but were not made so in the beginning, possibly a typo). As
a result, some of the fields are now relied upon. These are kept as is
to keep focus of this CL.
Bug: 361264974
Test: atest libgui_test
Flag: TEST_ONLY
Change-Id: I99bac4022bab2b3aa106e0838b227f24eb512ea1
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions