OSDN Git Service

Audio event logging
authorJean-Michel Trivi <jmtrivi@google.com>
Sun, 20 Aug 2017 01:08:06 +0000 (18:08 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Thu, 24 Aug 2017 16:05:20 +0000 (09:05 -0700)
commit011f39e7c7a16424260310fb9f580c727b72e8d8
tree48a23cdf0dcc1e554e75c2fe35f8140d2b6d54d8
parent1b08a4a8a3271f04b98c34747fe077610b7ee534
Audio event logging

New class AudioEventLogger to store a configurable number of the
  last audio events. It hosts a circular buffer of lightweight
  event objects, an abstract class whose implementations are
  event-specific, and does the heavier string manipulations
  at the time of the dump, not during normal operation.
Add logging for:
  - phone state (a.k.a. audio mode) changes
  - wired device connections
  - playback activity monitor
  - force use

Test: adb shell dumpsys audio
Bug: 64470715
Change-Id: I8dbd936e2ffec39134f1a8837191c74f5cb9fc56
media/java/android/media/AudioSystem.java
services/core/java/com/android/server/audio/AudioEventLogger.java [new file with mode: 0644]
services/core/java/com/android/server/audio/AudioService.java
services/core/java/com/android/server/audio/PlaybackActivityMonitor.java