Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37703ea2 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

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
parent 6c687127
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -38,5 +38,6 @@ interface IBluetoothAudioPort {
  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);
}
+9 −1
Original line number Diff line number Diff line
@@ -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 @@ interface IBluetoothAudioPort {
     * @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);
}