diff options
| author | 2024-07-24 15:48:41 +0100 | |
|---|---|---|
| committer | 2024-08-07 13:00:40 +0100 | |
| commit | 680034b3f0fb30aa50c7aeaf9eba660d4c29f2c9 (patch) | |
| tree | 1179b7af42cb809520d8f2bc64417e347d5cd1a6 /libs/androidfw/StringPool.cpp | |
| parent | 006496c246dee3a881e72141f34be6a423c30aab (diff) | |
Update haptics scaling
The new scaling is defined as:
(scale_factor * amplitude)
when scale_factor <= 1
(scale_factor * amplitude) / (1 + (scale_factor - 1) * amplitude^2)
when scale_factor > 1
Where the scale factor is now defined by a configurable gain between
scale levels. The default value for each scale level is:
very_low: ~0.5
low: ~0.7
none: 1.0
high: 1.4
very_high: ~2.0
The value is also forwarded to the audio-coupled haptics scaling
function via the ExternalVibrationScale parcelable.
Fix: 356407385
Flag: android.os.vibrator.haptics_scale_v2_enabled
Test: FrameworksVibratorServicesTests
Change-Id: I455d530eb8bf7733d373f6a338411b45b56e9799
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions