summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2024-06-07 16:55:40 +0100
committer Lais Andrade <lsandrade@google.com> 2024-06-07 17:11:19 +0100
commit2760a7804c467f767d691fab3c8d440f9be7c2cd (patch)
treee23957411e72de8d361ed2b83fde067dfedb5689 /libs/input/PointerController.cpp
parent2cd1f3b297ec26dbecd861df4abb04b64d0eca93 (diff)
Fix flaky VibrationThread test with multiple vibrations.
Replace last vibration in test with a predefined click, which is only completed after the native callback. This should ensure the verify assertion on the mock callback will always be successful. This should avoid a flakiness that can happen for one-shot vibrations that are turned off at the fixed end time and might cause the vibration to finish before the native callback is triggered and ignored. Fix: 328784973 Test: atest --rerun-until-failure 1000 com.android.server.vibrator.VibrationThreadTest#vibrate_multipleVibrations_withCancel Change-Id: I93eb568236a4429b37f11823fc49283b61118164
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions