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
Loading
Please register or sign in to comment