Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit dd141e0d authored by Chen Bai's avatar Chen Bai
Browse files

haptic: add VibratorManager API to make haptic feedback based on input

- In VibratorManager, add a hidden API that perform haptic feedback
  based on the input information specifically, input device id and input
  source. Note that for the scope of current feature, only input source
  is taken into consideration. Input device id is reserved for future
  extension.
- Apply the new API in to View's scroll feedback.

Flag: android.os.vibrator.haptic_feedback_input_source_customization_enabled
Test: atest HapticFeedbackVibrationProviderTest
Test: atest VibratorManagerServiceTest
Bug: 353625893
Change-Id: I2f319cc955a0a3070c8a6c69961a656320580e8f
parent ecbdc5f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment