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

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

Update vendor VibrationEffect to support scale factor

Update VibrationEffect.VendorEffect to support both a continuous scale
factor and an adaptive scale parameter, to map to the actual 2-tier
scaling logic of the platform.

This renames VibrationEffect.scaleLinearly to applyAdaptiveScale, to
make the method meaning explicit and allow the vendor implementation
that will forward the parameter provided by the vendor controller
service to the vibrator HAL.

The vendor effect HAL parcelable now takes both effect strength and a
continuous scale factor parameter, so vendors can support user
settings-based scale more openly.

Bug: 345409060
Test: VibrationEffectTest & VibrationScalerTest
Flag: android.os.vibrator.vendor_vibration_effects
Change-Id: I0b3e00e7673fb069ae1f293979d1942b9ad1bafb
parent ca6734ab
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