Delivering haptic feedback on stable values of slider progress change.
The volume slider progress is changed via an ObjectAnimator when
changing volume programmatically. To avoid haptics on single
key-presses, calls to the haptic plugin are made when the volume rows
reach their target or stable progress after animations. To better
synchronize with animation timing, the haptic plugin timeout that
estimates a key-up event was reduced.
Test: press a volume key once to change the volume in a single step, then
run adb shell dumpsys vibrator_manager and check that no vibrations
are delivered.
Flag: ACONFIG com.android.systemui.haptic_volume_slider TEAMFOOD
Bug: 328117911
Change-Id: Ib286d4c42688afaa88ddc6e65fa6a25982ab06d3
2 files changed