Skip to content
Snippets Groups Projects
Forked from Dhina17 / platform_frameworks_base
19692 commits behind the upstream repository.
user avatar
Lais Andrade authored
Add debug logs for the VibratorControlService and the cached adaptive
haptics scales received from the registered VibratorController.

Improvements in dumpsys includes:

- Add scale level and adaptive scale values to Vibration.DebugInfo
- Add VibrationAttributes category to vibration logs
- Add missing fields from VibrationConfig to dumpsys
- Add VibrationScaler to dumpsys, including cached adaptive scales
- Add keyboard settings and ringer mode to VibrationSettings dumpsys
- Simplify processStateCache entry from dumpsys
- Rename individual vibrator logs from VibratorController to Vibrator,
  to avoid confusion with new service name.
- Add VibratorControlService logs with pull/push/clear request history

Other code changes includes extracting the logic to dump aggregated
log entries from VibratorManagerService for reuse in the control service
and simplifying the vibration history logs to help debugging.

Fix: 305965431
Test: atest GroupedAggregatedLogRecordsTest
Change-Id: I745f5b02182b4e730c0eb359cc6a134c8c9299ed
d9291c0a
History