610aa9b416f8db782a54b1c1c4115ed350a08e69 |
|
28-Jan-2018 |
Jean-Michel Trivi <jmtrivi@google.com> |
Add support for external volume handler of volume adjustements For devices that use the config_handleVolumeKeysInWindowManager configuration, add API to receive volume key-related events directly, without them being processed by the framework (already not received by apps). Bug: b/63906162 Test: set config_handleVolumeKeysInWindowManager, use "adb shell dumpsys audio" to verify adjustVolume methods aren't logged Change-Id: I432b14fa9980764d69077b9f1b23b8c95f30814d
/frameworks/base/media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl
|
126cf03f7c8e825a23e47dd133e77eb1b3b7633d |
|
03-Apr-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
Audio focus: API for external audio focus policy System API for an external audio focus policy. Extends the system focus listener with interception of focus requests and abandons. Adds method for the focus policy to dispatch focus grants and losses. Test: gts-tradefed run gts -m GtsGmscoreHostTestCases -t 'com.google.android.gts.audio.AudioHostTest#testFocusPolicy' Bug: 30258418 Change-Id: If408569a2dce07a774e0e2f1be9f1af8e426d2d3
/frameworks/base/media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl
|
5a56109d1f5c00404c8f0e4281b9ac1392d72886 |
|
24-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioService receives callback for dynamic policy mix state changes AudioService registers a callback for dynamic policies from AudioSystem. AudioSystem keeps track of a single callback for dynamic policies. Bug 20226914 Change-Id: I48899d20d1dbb47bb680e733a3bc9fd064b60f07
/frameworks/base/media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl
|
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/audiopolicy/IAudioPolicyCallback.aidl
|