9228af6bc20c27b9949df36684f9c06ca9cdb27d |
|
06-Jan-2018 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioFocusRequest: add ability to force ducking for a11y New API to specify an accessbility service wants to force ducking in its focus request, regardless of the framework's evaluation of whether or not it should duck the other players. Use of this API is restricted to requests coming from services bound to the A11y service, or root Bug: 62194333 Test: play a podcast in GPM and "adb shell claf --gain 3 --usage 11 --forceDuck" Change-Id: I85f26afa14fe233a3b870f86c9084613203494b8
/frameworks/base/services/core/java/com/android/server/audio/PlayerFocusEnforcer.java
|
62b8634f06b32f17eced8020ecd9240f70838124 |
|
05-Feb-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioService: mute media/game players during phone calls When the device is ringing or in a call, mute all media/game audio players. Test: run a MediaPlayer, receive call Bug 30258418 Change-Id: Idb3bd8d33f89aea6ac3293d21801b4b3387d969a
/frameworks/base/services/core/java/com/android/server/audio/PlayerFocusEnforcer.java
|
99489ccf740d369193a8ffc7eeb4bbde6919bd65 |
|
26-Jan-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
Notification playback synchronized with audio focus PlayerProxy: more control options (pan, delayed start), remove exceptions in method signatures. Use delayed start on notification playback for better sync between media apps and notifications Disabled for now: support for AudioService (through MediaFocusControl and PlaybackActivityMonitor) to enforce audio ducking of focus owners losing audio focus with AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK, and who don't play audio that has a content labelled as CONTENT_TYPE_SPEECH. This feature will be enabled when setting a VolumeShaper on a player works. Test: play music and play notification Bug 30258418 Change-Id: I4e4d911645306bbde17f74288f3b61781fe0e3fe
/frameworks/base/services/core/java/com/android/server/audio/PlayerFocusEnforcer.java
|