diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2017-03-06 16:16:56 -0800 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2017-03-06 16:54:58 -0800 |
commit | 952f2341abc398d245f3c0a577ebe1b28f93f368 (patch) | |
tree | 926aed19cd48e5bca8e60cc9702f95ee1a0918ce /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 272fe5c33866ccc9f590e8fa383f7d96577f8068 (diff) |
Audio focus: framework enforces ducking
When an application requests audio focus with AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK
automatically duck any active players of the current focus owner, unless:
- the player is a SoundPool
- the player plays content of type AudioAttributes.CONTENT_TYPE_SPEECH
- the focus owner requested focus with an AudioFocusRequest which
returns true for willPauseWhenDucked().
- the focus owner and requester share the same UID
Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioFocusTest#testAudioFocusRequestGainLossTransient
Bug: 30258418
Change-Id: I997905089252be410d58e03b350b6aa8a0d98e61
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions