Package: android.hardware.bluetooth.a2dp@1.0

IBluetoothAudioHost

interface IBluetoothAudioHost

HAL interface for Bluetooth A2DP Offload functionality where the encoding of the A2DP data packets is offloaded to platform specific encoders.The A2DP control path is maintained in the Bluetooth stack.

This interface is from HAL server to HAL client.

The HAL server must call into the IBluetoothAudioHost to initiate the start, suspend and stop of the streaming operation.These calls return immediately and the results, if any, are send over the IBluetoothAudioOffload interface.

Methods

startStream

oneway startStream ()

Invoked when the start stream is requested from HAL server to HAL client.This indicates that the HAL server has initialized the platform for streaming use case, and the HAL client can proceed with the streaming procedure.The result of the operation must be provided by the HAL client using the IBluetoothAudioOffload interface.

Details
RPC mode
oneway

suspendStream

oneway suspendStream ()

Invoked when the suspend stream is requested from HAL server to HAL client.This indicates that the HAL server wants to suspend the streaming procedure.The result of the operation must be provided by the HAL client using the IBluetoothAudioOffload interface.

Details
RPC mode
oneway

stopStream

oneway stopStream ()

Invoked when the stop stream is requested from HAL server to HAL client.This indicates that the HAL server wants to stop and reset the streaming procedure.There is no result provided by the HAL client for this call.

Details
RPC mode
oneway