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

Skip to content
Commit 24e96615 authored by Lais Andrade's avatar Lais Andrade
Browse files

Update VibrationEffect haptic feedback heuristic

Update VibrationAttributes removing the logic to classify
VibrationEffect instances as haptic feedback.

Introduce isHapticFeedbackCandidate method to VibrationEffect,
CombinedVibration and the effect segments, to be used by the
VibratorManagerService to classify unknown vibration effects as having
TOUCH_USAGE.

Update haptic feedback limit to 1s, and also add limits to composition
size for identifying candidate effects.

Bug: 185351540
Test: VibrationAttributesTest
      VibratorManagerServiceTest
Change-Id: I6f840f7ac7ab27da99949eb5dc2122451886cb30
parent 0447a404
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment