461922fcfc8572415aa39c43c06afce685bd998d |
|
26-Apr-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
Audio focus enforcement: duck automatically apps for SDK O+ Enforce automatic ducking only for apps written for an SDK target level above 25 (N-MR1) Test: play notification while Podcast Addict is playing, verify it pauses instead of being ducked Bug: 37506138 Change-Id: Id7e01a92a51308bd7a3f24abc417d2434b532c12
/frameworks/base/media/java/android/media/AudioFocusInfo.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/media/java/android/media/AudioFocusInfo.java
|
6156017c2217d0fbbbb03434986250ec6bbd69d8 |
|
07-Feb-2015 |
John Spurlock <jspurlock@google.com> |
Move AudioService to services. ...and a few dependencies. Move remaining shared items to AudioSystem. Change-Id: Ib9623ff867678d34977337856bb0156e8cdaeeb5
/frameworks/base/media/java/android/media/AudioFocusInfo.java
|
0212be5150fb9fb3c340f3c7e51f6126372cc6f9 |
|
24-Nov-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Support collaborative audio focus handling Add new flag for an app to define it doesn't duck, but rather pauses when losing focus with AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK. This flag is to be used when requesting focus. Add support for AudioPolicy to specify whether it will implement ducking itself, rather than it being handled by an app. When ducking is handled by a policy, do not notify focus owners when they lose audio focus with LOSS_TRANSIENT_CAN_DUCK, unless they would have paused, as expressed with the AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS flag. Add a focus listener for a policy to be notified of focus changes so it can properly implement its own ducking. Bug 16010554 Change-Id: I11d7cdb85c52fd086128a44f4d938aaa44db5c25
/frameworks/base/media/java/android/media/AudioFocusInfo.java
|