Improve the conversion from SDK to internal device types by
using the conventional address "back" as a disciminator between
bottom and back built in mics.
Test: atest AudioDeviceInfoTest
Change-Id: Ib379583c6cca573c1197c1b55ca4063eb15fb1c6
Replaced use of forced usage for communication by set preferred device
for strategy to control communication route in audio policy manager.
Also do not use forced usage for record which was redundant with forced
usage for communication.
Bug: 161358428
Test: audio smoke tests
Change-Id: I665257fc5903b663096104b0424781d9799635a5
Support set/clear/get preferrd device for capture preset. The preferred
device will be used for audio routing when it is availabled. The
preferred device doesn't need to be present when setting.
Bug: 160352965
Test: atest AudioServiceTest
Test: atest AudioServiceHostTest
Test: atest CarAudioZonesHelperTest
Change-Id: Ib7aa142ad4c56a8138c7b440e8efbbf7a7ee38a6
Revert submission 12409575-devicesRoleForCapturePreset
Reason for revert: break CarAudioZonesHelperTest
Reverted Changes:
I92fdb2cbd:Support set/clear/get preferred device for capture...
I44e67d5b0:Add a helper function of checking if an audio sour...
Ib16ab2ec8:Support device role for capture preset.
I46bd8dfb5:Add tests for set/get/clearPreferredDeviceForCaptu...
Change-Id: I1e01307ac5fb427f47a0990c2c3d7ecd7acc3e0f
Support set/clear/get preferrd device for capture preset. The preferred
device will be used for audio routing when it is availabled. The
preferred device doesn't need to be present when setting.
Bug: 160352965
Test: atest AudioServiceTest
Test: atest AudioServiceHostTest
Change-Id: I92fdb2cbd4cd745d50a1bda79244cecb43f454c8
Add support for setting and querying the volume behavior of
an audio device.
When setting the behavior, udpate the current volume on that
device.
Bug: 152755063
Test: atest AudioServiceTest
Change-Id: I024317e50baf159e031b57c805d7b389ed470e62
Once AudioDeviceAddress, then AudioDevice, now AudioDeviceAttributes.
Bug: 148565943
Test: atest AudioServiceHostTest#testAudioDeviceAttributes AudioServiceHostTest#testPreferredDeviceRouting
Change-Id: I17b2b8fc6a5eda6ee1176d6aa27ada3cdd820acc