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
Loading
Please register or sign in to comment