Source code setup:
Target command-line tools used to pass AVRCP tests in PTS, invoked from the shell when specified in the instructions:
bt-avdtp-tool
bt-avrcp-controller
bt-cli
Target components, invoked from the host when specified in the instructions:
bt-avrcp-target
example_player
TSPX_player_feature_bitmask
= 000000000000B701EF02000000000000 (note this value will change in releases that include https://fxrev.dev/688451)bt-cli
bt-avdtp-tool -d 500
ffx component start /core/bt-a2dp/bt-avrcp-target
ffx component run /core/mediasession-examples:player fuchsia-pkg://fuchsia.com/example_player#meta/example_player.cm
bt-avdtp-tool -d 0
bt-cli
bt-avrcp-controller <peer-id>
bt-cli
bt-avdtp-tool -d 500
ffx component start /core/bt-a2dp/bt-avrcp-target
1-5. Use default TG instructions 6. (bt-cli) connect <peer-id>
1-5. Use default TG instructions 6. PTS: “Take action to disconnect all A2DP and/or AVRCP connections” 7. (bt-cli) disconnect <peer-id>
1-5. Use default TG instructions 6. PTS: “Take action to disconnect all A2DP and/or AVRCP connections” 7. (bt-cli) disconnect <peer-id>
1-5. Use default TG instructions 6. PTS: “Take action to disconnect all A2DP and/or AVRCP connections” 7. (bt-cli) disconnect <peer-id>
1-5. Use default TG instructions 6. (PTS) Confirm volume-up and volume-down commands in avrcp-tg component logs
bt-cli
bt-avdtp-tool -d 500
ffx component start /core/bt-a2dp/bt-avrcp-target
1-5. Use default TG instructions 6. (PTS) Confirm volume-up and volume-down commands in avrcp-tg component logs
1-5. Use default TG instructions 6. (PTS) Confirm volume-up and volume-down commands in avrcp-tg component logs
bt-avdtp-tool -d 500
bt-cli
bt-avrcp-controller <peer-id>
ffx component run /core/mediasession-examples:player fuchsia-pkg://fuchsia.com/example_player#meta/example_player.cm
connect <peer-id>
bt-avdtp-tool -d 500
bt-cli
bt-avrcp-controller <peer-id>
ffx component run /core/mediasession-examples:player fuchsia-pkg://fuchsia.com/example_player#meta/example_player.cm
bt-avdtp-tool -d 500
bt-cli
bt-avrcp-controller <peer-id>
ffx component run /core/mediasession-examples:player fuchsia-pkg://fuchsia.com/example_player#meta/example_player.cm
disconnect <peer-id>
Set TSPX_establish_avdtp_stream
IXIT value to FALSE
for this test 1-4. Use default CT instructions 5. (bt-avrcp-controller) Send key commands as requested
1-4. Use default CT instructions 5. (bt-avrcp-controller) Send key commands as requested
1-4. Use default CT instructions 5. PTS: “Take action to send a [List Player Application Setting Attributes] command to the PTS from the IUT.” 6. (bt-avrcp-controller) get-player-application-settings
1-4. Use default CT instructions 5. PTS: “Take action to send a [List Player Application Setting Attribute Text] command to the PTS from the IUT.” 6. (bt-avrcp-controller) get-player-application-settings
1-4. Use default CT instructions 5. PTS: “Take action to send a [List Player Application Setting Value Text] command to the PTS from the IUT.” 6. (bt-avrcp-controller) get-player-application-settings
1-4. Use default CT instructions 5. PTS: “Take action to send a [List Player Application Setting Value Text] command to the PTS from the IUT.” 6. (bt-avrcp-controller) get-player-application-settings
1-4. Use default CT instructions 5. PTS: “Take action to send a [Get Current Player Application Setting Value] command to the PTS from the IUT.” 6. (bt-avrcp-controller) get-player-application-settings
1-4. Use default CT instructions 5. PTS: “Take action to send a [Set Player Application Setting Value] command to the PTS from the IUT.” 6. (bt-avrcp-controller) set-player-application-settings
1-4. Use default CT instructions 5. PTS: “Take action to send a [Get Play Status] command to the PTS from the IUT.” 6. (bt-avrcp-controller) get-play-status
1-5. Use default TG instructions 6. PTS: “Place the IUT into a state where no track is currently selected, then press ‘OK’ to continue.” 7. (PTS) OK
1-4. Use default CT instructions 5. PTS: “Take action to send a [Set Absolute Volume] command to the PTS from the IUT.” 6. (bt-avrcp-controller) set-volume 10
1-4. Use default CT instructions 5. PTS: “Take action to send a [Set Absolute Volume] command to the PTS from the IUT.” 6. (bt-avrcp-controller) set-volume 10
7. PTS: “PTS has indicated that the current absolute volume is 7%, did the IUT update the volume level correctly?” 8. (PTS) Yes
1-4. Use default CT instructions 5. PTS: “PTS has indicated that the current absolute volume is 50%, did the IUT update the volume level correctly?” 6. (bt-avrcp-controller) Verify that console shows Volume event: <peer-id> 64
1-4. Use default CT instructions 5. PTS: “PTS has indicated that the current absolute volume is 50%, did the IUT update the volume level correctly?” 6. (bt-avrcp-controller) Verify that console shows Volume event: <peer-id> 64
1-4. Use default CT instructions 5. PTS: “Take action to send a [Set Absolute Volume] command to the PTS from the IUT.” 6. (bt-avrcp-controller) set-volume 10
1-4. Use default CT instructions 5. PTS: “Take action to send a [Get Element Attributes] command requesting a Title Attribute to the PTS from the IUT.” 6. (bt-avrcp-controller) get-media
Set TSPX_establish_avdtp_stream
IXIT value to FALSE
for this test 1-4. Use default CT instructions 5. (bt-avrcp-controller) Send key commands as requested