diff options
| author | 2024-06-07 16:55:40 +0100 | |
|---|---|---|
| committer | 2024-06-07 17:11:19 +0100 | |
| commit | 2760a7804c467f767d691fab3c8d440f9be7c2cd (patch) | |
| tree | e23957411e72de8d361ed2b83fde067dfedb5689 /libs/input/PointerController.cpp | |
| parent | 2cd1f3b297ec26dbecd861df4abb04b64d0eca93 (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