Skip to content
Commit 600a4301 authored by Dean Wheatley's avatar Dean Wheatley
Browse files

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
parent ad9f1906
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