Skip to content
Commit 952f2341 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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
parent 272fe5c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment