Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47fa3c0d authored by Lais Andrade's avatar Lais Andrade
Browse files

Apply device config vibration scales for external vibrations

Apply scale factor sent by the ExternalVibratorService directly to the
haptic channels when the device config feature flag is enabled.

If no scale factor is provided this will fallback to the scaling V2 for
calculating the scale factor based on the scale level, for consistency.

Bug: 427503922
Test: ExternalVibrationUtilsTest
Flag: android.os.vibrator.vibration_scale_device_config_enabled
Change-Id: Id4f719830adc6444e7a0387ebd8459f274f47b0a
parent d9e3619d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment