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
Loading
Please register or sign in to comment