diff options
| author | 2021-12-22 13:52:46 +1100 | |
|---|---|---|
| committer | 2021-12-23 19:52:40 +0000 | |
| commit | 600a4301e53333856fe0e54776ea1efef4e67fb4 (patch) | |
| tree | 9157d9c68313dca8d6b93ba659c377aa016774dc /api/api.go | |
| parent | ad9f190680aacf4090ab18ba96bfe8cfae7b5541 (diff) | |
Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo
The current overrideAudioSink interface expects AudioManager.DEVICE_*
values which are @hide and not available to vendor, oem or product
partition apps. To support such applications, add new interface using
the public SDK API AudioDeviceInfo.
Test: New API has been tested using our internal mock TV input HAL for
the HDMI TV input.
Run CTS test "CtsTvTestCases:BundledTvInputServiceTest#testTune"
to tune for HDMI input and invoke a createAudioPatch request in
TvInputHardwareManager.
Verify the API behavior from the following log:
=> adb logcat | grep APM
=> "APM_AudioPolicyManager: createAudioPatchInternal sink 0: id 9
role 2 type 1"
with the id 9 referring to the BUS output device.
Test: See b/183527693
Bug: 183538871
Change-Id: I54f7f26d522a8f3bb3500f3817f87a98ddf47f17
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions