Google is committed to advancing racial equity for Black communities. See how.

fuchsia.bluetooth.avdtp

PROTOCOLS

PeerController

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

PeerController is an indirect control protocol used for driving the AVDTP library. This protocol provides the client with an interface for initiating AVDTP commands out of band. To drive end-to-end functionality of AVDTP see bt-profiles.

  • error PeerError indicates a procedure failure. The current Get(), Set() methods can be interpreted as only initiating an AVDTP procedure. The implementation of Get() and Set() methods use generic capabilities and stream information. TODO(fxbug.dev/36563): Add arguments and responses for Get() and Set() methods to allow the client to specify and receive the results of the procedures.

AbortStream

Initiate an abort procedure on the current stream. If the streaming channel doesn't exist, no action will be taken.

Request

<EMPTY>

Response

NameType
result PeerController_AbortStream_Result

EstablishStream

Initiate stream establishment with the peer.

Request

<EMPTY>

Response

NameType
result PeerController_EstablishStream_Result

GetAllCapabilities

Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.

Request

<EMPTY>

Response

NameType
result PeerController_GetAllCapabilities_Result

GetCapabilities

Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.

Request

<EMPTY>

Response

NameType
result PeerController_GetCapabilities_Result

GetConfiguration

Initiate a procedure to get the configuration information of the peer stream. The result is discarded because PeerController only initiates the procedure.

Request

<EMPTY>

Response

NameType
result PeerController_GetConfiguration_Result

ReconfigureStream

Initiate a reconfiguration procedure for the current stream. No configuration information is specified because a generic set of config information will be used to initiate the procedure.

Request

<EMPTY>

Response

NameType
result PeerController_ReconfigureStream_Result

ReleaseStream

Release the current stream that is owned by the peer. If the streaming channel doesn't exist, no action will be taken.

Request

<EMPTY>

Response

NameType
result PeerController_ReleaseStream_Result

SetConfiguration

Initiate a stream configuration procedure. No configuration information is specified because generic config information will be used to initiate the procedure.

Request

<EMPTY>

Response

NameType
result PeerController_SetConfiguration_Result

StartStream

Start streaming media on the current stream that is owned by the peer. If the streaming channel doesn't exist, no action will be taken.

Request

<EMPTY>

Response

NameType
result PeerController_StartStream_Result

SuspendAndReconfigure

A "chained" set of procedures on the current stream. SuspendStream() followed by ReconfigureStream(). Reconfigure() configures the stream that is currently open.

Request

<EMPTY>

Response

NameType
result PeerController_SuspendAndReconfigure_Result

SuspendStream

Initiate a suspend request to the stream. This command will not resume nor reconfigure the stream.

Request

<EMPTY>

Response

NameType
result PeerController_SuspendStream_Result

PeerManager

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Control service for an AVDTP Peer.

ConnectedPeers

Returns the bt.PeerId of each currently connected peer.

Request

<EMPTY>

Response

NameType
peer_ids vector<fuchsia.bluetooth/PeerId>[8]

GetPeer

Connects to the server specified by a peer_id. On success, handle will be used for initiating PeerController procedures. On peer disconnect, the handle will be dropped and closed on the server side.

Request

NameType
peer_id fuchsia.bluetooth/PeerId
handle request<PeerController>

OnPeerConnected

Incoming connection events from the AVDTP peer. Returns the fuchsia.bluetooth..PeerId of the newly connected peer.

Response

NameType
peer_id fuchsia.bluetooth/PeerId

STRUCTS

PeerController_AbortStream_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_EstablishStream_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_GetAllCapabilities_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_GetCapabilities_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_GetConfiguration_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_ReconfigureStream_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_ReleaseStream_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_SetConfiguration_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_StartStream_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_SuspendAndReconfigure_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

PeerController_SuspendStream_Response

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

<EMPTY>

ENUMS

PeerError strict

Type: uint32

Defined in fuchsia.bluetooth.avdtp/types.fidl

Represents the return status of a fuchsia.bluetooth.avdtp.Peer method

NameValueDescription
UNKNOWN_FAILURE 1

Failure reason is not known

PROTOCOL_ERROR 2

The peer is unable to perform the request

UNIONS

PeerController_AbortStream_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_AbortStream_Response
2 err PeerError

PeerController_EstablishStream_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_EstablishStream_Response
2 err PeerError

PeerController_GetAllCapabilities_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_GetAllCapabilities_Response
2 err PeerError

PeerController_GetCapabilities_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_GetCapabilities_Response
2 err PeerError

PeerController_GetConfiguration_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_GetConfiguration_Response
2 err PeerError

PeerController_ReconfigureStream_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_ReconfigureStream_Response
2 err PeerError

PeerController_ReleaseStream_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_ReleaseStream_Response
2 err PeerError

PeerController_SetConfiguration_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_SetConfiguration_Response
2 err PeerError

PeerController_StartStream_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_StartStream_Response
2 err PeerError

PeerController_SuspendAndReconfigure_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_SuspendAndReconfigure_Response
2 err PeerError

PeerController_SuspendStream_Result strict

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Ordinal
VariantTypeDescription
1 response PeerController_SuspendStream_Response
2 err PeerError

CONSTANTS

NameValueTypeDescription
MAX_PICONET_SIZE 8 uint64

Maximum number of peers that can be connected to a node. (Core Spec 5.0, Vol 2, Part B, Section 1)