Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2eb20ebb authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioAttributes: set content type to UNKNOWN for init from stream

When creating AudioAttributes from a legacy stream type, do
not read the content type from the audio strategies, or set
it to a specific value for STREAM_MUSIC.
Instead use CONTENT_TYPE_UNKNOWN which more correctly
represents the fact that stream types are not enough information
to express the content type for STREAM_MUSIC.

Bug: 301100160
Test: atest android.media.audio.cts.AudioAttributesTest
Test: atest android.media.audio.cts.AudioManagerTest
Test: atest android.media.audio.cts.VolumeInfoTest
Test: atest android.media.audio.cts.NonDefaultDeviceForStrategyTest
Change-Id: I7299465a690aeeac953edf61aab0fa9d350c8f65
parent 1ce46e80
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