commit | 4c28e00673ab42a83c23bc53994fb4ee6991ccb4 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Jan 12 01:00:41 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jan 12 01:00:41 2022 +0000 |
tree | 769c0b71d3f08aee784d8263102ca582ef198804 | |
parent | 68a0fff7a2fc21316c39b1b75b749546a73c24b7 [diff] | |
parent | f4a4ab1ca65ce6469b54e15bbf96265caa66bb05 [diff] |
Merge "bluetooth.audio pass both source and sink metadata" am: f4a4ab1ca6 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1944804 Change-Id: I3c4f95552419ff0b98f50b00428ac66a421e1c19
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); }