summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Jean-Michel Trivi <jmtrivi@google.com> 2023-09-19 15:39:58 -0700
committer Jean-Michel Trivi <jmtrivi@google.com> 2023-09-27 22:00:45 +0000
commit2eb20ebb6aef488945ec2aba4c32f3730777ad27 (patch)
tree606436c86d430676bf69cd5da5b98754351a360e /api/api_test.go
parent1ce46e803b9ef0321a727c98d3ae795310d50daf (diff)
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
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions