diff options
| author | 2024-08-09 11:52:48 +0100 | |
|---|---|---|
| committer | 2024-08-09 15:23:55 +0100 | |
| commit | ab1a350565759d4a95867760a085045d39d5a1f3 (patch) | |
| tree | a6c3055ad0dffa760fb78e2cd424e1d7a845ee5e /libs/androidfw/ObbFile.cpp | |
| parent | ca6734ab396916d245664b6b76162112e9bd72a1 (diff) | |
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
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions