Implementing a power scale in SliderHapticFeedbackProvider.

A power function is applied to vibration scaling to compensate for human
non-linear perception. The exponent of the power function is added to
SliderHapticFeedbackConfig. The new scaling is applied to vibrations
while dragging and vibrations at the bookends.

Test: atest SystemUITests:SliderHapticFeedbackProviderTest
Bug: 295932558
Flag: ACONFIG com.android.systemui.haptic_brightness_slider TEAMFOOD
Change-Id: If12c3921a7c79ec9f27f3381d3fc3372c9a33b90
3 files changed