commit | 0f5c11d9653be2523c4a61d9e93b640f37a87e7b | [log] [tgz] |
---|---|---|
author | Jakub Pawlowski <jpawlowski@google.com> | Thu Dec 09 12:22:37 2021 +0100 |
committer | Josh Wu <joshwu@google.com> | Tue Jan 11 05:41:04 2022 +0000 |
tree | 3aa57fb75608dd8f746ed675a1d7937dce1b545f | |
parent | d8f9af28ee14efc75ecb26dadc159341f3df7733 [diff] |
bluetooth.audio pass both source and sink metadata Currently just source metadata is passed through the new aidl. Test: m android.hardware.bluetooth.audio-update-api Bug: 203490261 Bug: 150670922 Change-Id: I76a44bb8c5cb0b6c16845aca36ba93517ecd07b4 Merged-In: I76a44bb8c5cb0b6c16845aca36ba93517ecd07b4
diff --git a/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl b/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl index e389ef3..9a1557a 100644 --- a/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl +++ b/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl
@@ -38,5 +38,6 @@ void startStream(); void stopStream(); void suspendStream(); - void updateMetadata(in android.hardware.audio.common.SourceMetadata sourceMetadata); + void updateSourceMetadata(in android.hardware.audio.common.SourceMetadata sourceMetadata); + void updateSinkMetadata(in android.hardware.audio.common.SinkMetadata sinkMetadata); }
diff --git a/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl b/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl index 50e3197..827f57d 100644 --- a/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl +++ b/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl
@@ -16,6 +16,7 @@ package android.hardware.bluetooth.audio; +import android.hardware.audio.common.SinkMetadata; import android.hardware.audio.common.SourceMetadata; import android.hardware.bluetooth.audio.PresentationPosition; @@ -69,5 +70,12 @@ * @param sourceMetadata Description of the audio that is played by the * clients. */ - void updateMetadata(in SourceMetadata sourceMetadata); + void updateSourceMetadata(in SourceMetadata sourceMetadata); + + /** + * Called when the metadata of the stream's sink has been changed. + * + * @param sinkMetadata as passed from Audio Framework + */ + void updateSinkMetadata(in SinkMetadata sinkMetadata); }