fuchsia.bluetooth.avrcp.test

PROTOCOLS

PeerManagerExt

Defined in fuchsia.bluetooth.avrcp.test/test.fidl

GetControllerForTarget

Returns a test controller client to a remote target service at the peer specified by peer_id. This client is to be used alongside the primary controller client. The test protocol provides additional methods not exposed by primary controller protocol that are designed to be used for PTS qualification testing and debugging purposes only. WARNING: This test controller can cause breaking side-effects for other controller clients connected to this the same peer. Use with caution and avoid having additional primary controller clients interacting with the same remote peer while using the test controller. TODO (BT-305): change peer_id to fuchsia.bluetooth.PeerId type after BrEdr profile service switches.

Request

NameType
peer_id string
client request<ControllerExt>

Response

NameType
result PeerManagerExt_GetControllerForTarget_Result

RegisterIncomingTargetHandler

Sets an implementation of target handler that will vend delegates for each incoming remote TG -> local CT connections to handle the commands being sent by the remote TG. If no target handler is set, a default handler will be used internally that will dispatch to the MediaSession service. This should only be used for PTS qualification testing and debugging purposes only.

Request

NameType
handler TargetHandler

TargetHandler

Defined in fuchsia.bluetooth.avrcp.test/test.fidl

An implementation of this interface is registered with the TestPeerManager service to handle incoming connections.

OnControllerConnected

Called when an incoming target is connected. delegate should be fulfilled with an interface that will be used to handle commands from the connected Controller. TODO (BT-305): change peer_id to fuchsia.bluetooth.PeerId type after BrEdr profile service switches.

Request

NameType
peer_id string
delegate request<TargetDelegate>

TargetDelegate

Defined in fuchsia.bluetooth.avrcp.test/test.fidl

Returned by an implementer of the TargetHandler interface. Handles incoming connection commands by a remote CT device.

OnCommand

Called after Panel key down and up events.

Request

NameType
command fuchsia.bluetooth.avrcp/AvcPanelCommand

Response

NameType
code ResponseCode

ControllerExt

Defined in fuchsia.bluetooth.avrcp.test/test.fidl

Provides additional methods not in Controller that are strictly for testing and debug.

IsConnected

Returns whether there is an underlying connection open with the remote device currently.

Request

NameType

Response

NameType
connected bool

GetEventsSupported

Queries the target and returns what events are supported for notification. Sends GetCapabilties(0x03 (EVENTS_SUPPORTED)) command for all events supported by the negoitated version of AVRCP.

Request

NameType

Response

NameType
result ControllerExt_GetEventsSupported_Result

Connect

Explicitly attempt to connect to the remote peer.

Request

NameType

Disconnect

Explicitly disconnect any L2CAP channels, if any, to the remote peer.

Request

NameType

SendRawVendorDependentCommand

Send raw vendor depedent "Control" command packet to a specific PDU on the remote peer. Returns the entire response packet including the headers or error if the remote endpoint disconnects or does not return a response in set amount of time.

Request

NameType
pdu_id uint8
command vector<uint8>

Response

NameType
result ControllerExt_SendRawVendorDependentCommand_Result

STRUCTS

PeerManagerExt_GetControllerForTarget_Response

generated

NameTypeDescriptionDefault

ControllerExt_GetEventsSupported_Response

generated

NameTypeDescriptionDefault
events_supported vector<fuchsia.bluetooth.avrcp/TargetEvent> No default

ControllerExt_SendRawVendorDependentCommand_Response

generated

NameTypeDescriptionDefault
response vector<uint8> No default

ENUMS

ResponseCode

Type: uint32

Defined in fuchsia.bluetooth.avrcp.test/test.fidl

Defined by the AV/C Digital Interface Command Set General Specification and AV/C Panel Subunit Specification (http://1394ta.org/specifications/)

NameValueDescription
NOT_IMPLEMENTED 8
ACCEPTED 9
REJECTED 10
IN_TRANSITION 11
IMPLEMENTED_STABLE 12
CHANGED 13
INTERIM 15

UNIONS

PeerManagerExt_GetControllerForTarget_Result

generated

NameTypeDescription
response PeerManagerExt_GetControllerForTarget_Response
err int32

ControllerExt_GetEventsSupported_Result

generated

NameTypeDescription
response ControllerExt_GetEventsSupported_Response
err fuchsia.bluetooth.avrcp/ControllerError

ControllerExt_SendRawVendorDependentCommand_Result

generated

NameTypeDescription
response ControllerExt_SendRawVendorDependentCommand_Response
err fuchsia.bluetooth.avrcp/ControllerError