Skip to content
Commit bc5ff34b authored by Lais Andrade's avatar Lais Andrade
Browse files

Use vibrator HAL controller for vibrator on and waveform

The new controller always triggers the callback, even if the HAL does
not support it. This requires changes in the VibratorService.java code
to rely on the native callback and use the ASYNC_TIMEOUT_MULTIPLIER for
the fallback.

This also changes the Vibration class to ignore native callbacks on
waveform effects, which are controlled by a separate VibrateThread that
triggers multiple vibrator ON calls (possibly indefinitely).

Bug: b/153418251
Test: atest FrameworksServicesTests:VibratorServiceTest
Change-Id: I09c9a0fd3f839c8f9eda65d96584a3e0294c6c21
parent 39502ee9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment