Lines Matching +full:read +full:- +full:command
2 * Copyright (c) 2019 - 2021 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
97 FAIL("Player Name read failed (%d)\n", err); in mcc_read_player_name_cb()
107 FAIL("Icon Object ID read failed (%d)", err); in mcc_read_icon_obj_id_cb()
118 FAIL("Icon URL read failed (%d)", err); in mcc_read_icon_url_cb()
138 FAIL("Track title read failed (%d)", err); in mcc_read_track_title_cb()
148 FAIL("Track duration read failed (%d)", err); in mcc_read_track_duration_cb()
158 FAIL("Track position read failed (%d)", err); in mcc_read_track_position_cb()
181 FAIL("Playback speed read failed (%d)", err); in mcc_read_playback_speed_cb()
204 FAIL("Seeking speed read failed (%d)", err); in mcc_read_seeking_speed_cb()
215 FAIL("Track Segments ID read failed (%d)\n", err); in mcc_read_segments_obj_id_cb()
227 FAIL("Current Track Object ID read failed (%d)\n", err); in mcc_read_current_track_obj_id_cb()
251 FAIL("Next Track Object ID read failed (%d)\n", err); in mcc_read_next_track_obj_id_cb()
275 FAIL("Current Group Object ID read failed (%d)\n", err); in mcc_read_current_group_obj_id_cb()
299 FAIL("Parent Group Object ID read failed (%d)\n", err); in mcc_read_parent_group_obj_id_cb()
310 FAIL("Playing order read failed (%d)", err); in mcc_read_playing_order_cb()
333 FAIL("Playing orders supported read failed (%d)", err); in mcc_read_playing_orders_supported_cb()
343 FAIL("Media State read failed (%d)", err); in mcc_read_media_state_cb()
354 FAIL("Command send failed (%d) - opcode: %u, param: %d", in mcc_send_command_cb()
355 err, cmd->opcode, cmd->param); in mcc_send_command_cb()
365 FAIL("Command notification error (%d) - opcode: %u, result: %u", in mcc_cmd_ntf_cb()
366 err, ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
370 g_command_result = ntf->result_code; in mcc_cmd_ntf_cb()
378 FAIL("Media State read failed (%d)", err); in mcc_read_opcodes_supported_cb()
413 FAIL("Search Results Object ID read failed (%d)", err); in mcc_read_search_results_obj_id_cb()
424 FAIL("Content control ID read failed (%d)", err); in mcc_read_content_control_id_cb()
477 FAIL("Current Track Object read failed (%d)", err); in mcc_otc_read_current_track_object_cb()
488 FAIL("Next Track Object read failed (%d)", err); in mcc_otc_read_next_track_object_cb()
499 FAIL("Parent Group Object read failed (%d)", err); in mcc_otc_read_parent_group_object_cb()
510 FAIL("Current Group Object read failed (%d)", err); in mcc_otc_read_current_group_object_cb()
564 /* Helper function - select object and read the object metadata
566 * Will FAIL the test on errors calling select and read metadata.
570 * @param object_id ID of the object to select and read metadata for
590 invalid_id = BT_OTS_OBJ_ID_MIN - 1; in test_select_obj_id()
637 FAIL("Failed to read object metadata\n"); in test_read_object_meta()
645 /* Helper function to read the media state and verify that it is as expected
659 FAIL("Failed to read media state: %d", err); in test_verify_media_state_wait_flags()
688 FAIL("Failed to read supported opcodes: %d", err); in test_read_supported_opcodes()
693 printk("Supported opcodes read succeeded\n"); in test_read_supported_opcodes()
735 * Will FAIL on error to send the command.
751 FAIL("Failed to send command: %d, opcode: %u", in test_send_cmd_wait_flags()
752 err, cmd->opcode); in test_send_cmd_wait_flags()
770 FAIL("PLAY command failed\n"); in test_cp_play()
775 printk("PLAY command succeeded\n"); in test_cp_play()
789 FAIL("PAUSE command failed\n"); in test_cp_pause()
794 printk("PAUSE command succeeded\n"); in test_cp_pause()
811 FAIL("FAST REWIND command failed\n"); in test_cp_fast_rewind()
816 printk("FAST REWIND command succeeded\n"); in test_cp_fast_rewind()
840 FAIL("FAST FORWARD command failed\n"); in test_cp_fast_forward()
845 printk("FAST FORWARD command succeeded\n"); in test_cp_fast_forward()
866 FAIL("STOP command failed\n"); in test_cp_stop()
870 /* There is no "STOPPED" state in the spec - STOP goes to PAUSED */ in test_cp_stop()
872 printk("STOP command succeeded\n"); in test_cp_stop()
889 FAIL("Failed to read track position: %d\n", err); in test_cp_move_relative()
903 FAIL("MOVE RELATIVE command failed\n"); in test_cp_move_relative()
910 FAIL("Failed to read track position: %d\n", err); in test_cp_move_relative()
921 printk("MOVE RELATIVE command succeeded\n"); in test_cp_move_relative()
947 FAIL("PREV SEGMENT command failed\n"); in test_cp_prev_segment()
951 printk("PREV SEGMENT command succeeded\n"); in test_cp_prev_segment()
964 FAIL("NEXT SEGMENT command failed\n"); in test_cp_next_segment()
968 printk("NEXT SEGMENT command succeeded\n"); in test_cp_next_segment()
981 FAIL("FIRST SEGMENT command failed\n"); in test_cp_first_segment()
985 printk("FIRST SEGMENT command succeeded\n"); in test_cp_first_segment()
998 FAIL("LAST SEGMENT command failed\n"); in test_cp_last_segment()
1002 printk("LAST SEGMENT command succeeded\n"); in test_cp_last_segment()
1011 cmd.param = 2; /* Second segment - not the first, maybe not last */ in test_cp_goto_segment()
1016 FAIL("GOTO SEGMENT command failed\n"); in test_cp_goto_segment()
1020 printk("GOTO SEGMENT command succeeded\n"); in test_cp_goto_segment()
1023 /* Helper function to read the current track object ID, including flag handling
1025 * Will WAIT until the read is completed (object ID flag read flag is set)
1034 FAIL("Failed to read current track object ID: %d", err); in test_read_current_track_object_id_wait_flags()
1063 FAIL("PREV TRACK command failed\n"); in test_cp_prev_track()
1075 printk("PREV TRACK command succeeded\n"); in test_cp_prev_track()
1095 FAIL("NEXT TRACK command failed\n"); in test_cp_next_track_and_track_changed()
1109 printk("NEXT TRACK command succeeded\n"); in test_cp_next_track_and_track_changed()
1126 FAIL("FIRST TRACK command failed\n"); in test_cp_first_track()
1137 printk("FIRST TRACK command succeeded\n"); in test_cp_first_track()
1154 FAIL("LAST TRACK command failed\n"); in test_cp_last_track()
1165 printk("LAST TRACK command succeeded\n"); in test_cp_last_track()
1183 FAIL("GOTO TRACK command failed\n"); in test_cp_goto_track()
1194 printk("GOTO TRACK command succeeded\n"); in test_cp_goto_track()
1197 /* Helper function to read the current group object ID, including flag handling
1199 * Will WAIT until the read is completed (object ID flag read flag is set)
1208 FAIL("Failed to read current group object ID: %d", err); in test_read_current_group_object_id_wait_flags()
1237 FAIL("PREV GROUP command failed\n"); in test_cp_prev_group()
1249 printk("PREV GROUP command succeeded\n"); in test_cp_prev_group()
1266 FAIL("NEXT GROUP command failed\n"); in test_cp_next_group()
1277 printk("NEXT GROUP command succeeded\n"); in test_cp_next_group()
1294 FAIL("FIRST GROUP command failed\n"); in test_cp_first_group()
1305 printk("FIRST GROUP command succeeded\n"); in test_cp_first_group()
1322 FAIL("LAST GROUP command failed\n"); in test_cp_last_group()
1333 printk("LAST GROUP command succeeded\n"); in test_cp_last_group()
1351 FAIL("GOTO GROUP command failed\n"); in test_cp_goto_group()
1362 printk("GOTO GROUP command succeeded\n"); in test_cp_goto_group()
1398 search.len = SEARCH_LEN_MIN - 1; in test_search()
1408 * - verify that the search results object ID is zero before search in test_search()
1409 * - write a search (one search control item) to the search control point, in test_search()
1411 * - verify that the search results object ID is non-zero in test_search()
1418 FAIL("Failed to read search results object ID: %d", err); in test_search()
1513 FAIL("Failed to read media player name ID: %d", err); in test_read_player_name()
1518 printk("Player Name read succeeded\n"); in test_read_player_name()
1537 FAIL("Failed to read icon object ID: %d", err); in test_read_icon_obj_id()
1542 printk("Icon Object ID read succeeded\n"); in test_read_icon_obj_id()
1562 FAIL("Failed to read icon object\n"); in test_read_icon_obj()
1586 FAIL("Failed to read icon url: %d", err); in test_read_icon_url()
1591 printk("Icon URL read succeeded\n"); in test_read_icon_url()
1610 FAIL("Failed to read track_title: %d", err); in test_read_track_title()
1615 printk("Track title read succeeded\n"); in test_read_track_title()
1634 FAIL("Failed to read track_duration: %d", err); in test_read_track_duration()
1639 printk("Track duration read succeeded\n"); in test_read_track_duration()
1658 FAIL("Failed to read track position: %d", err); in test_read_track_position()
1663 printk("Track position read succeeded\n"); in test_read_track_position()
1670 /* Invalid behavior - There are no invalid positions to test so only test conn */ in test_write_track_position()
1689 /* position is the position given in the set command */ in test_write_track_position()
1712 FAIL("Failed to read playback speed: %d", err); in test_read_playback_speed()
1717 printk("Playback speed read succeeded\n"); in test_read_playback_speed()
1724 /* Invalid behavior - There are no invalid speeds to test so only test conn */ in test_set_playback_speed()
1764 FAIL("Failed to read seeking speed: %d", err); in test_read_seeking_speed()
1769 printk("Seeking speed read succeeded\n"); in test_read_seeking_speed()
1788 FAIL("Failed to read track segments object ID: %d", err); in test_read_track_segments_obj_id()
1793 printk("Track Segments Object ID read succeeded\n"); in test_read_track_segments_obj_id()
1812 FAIL("Failed to read track segments object\n"); in test_read_track_segments_object()
1832 invalid_id = BT_OTS_OBJ_ID_MIN - 1; in test_set_current_track_obj_id()
1891 FAIL("Failed to read current track object ID: %d", err); in test_read_current_track_obj_id()
1897 printk("Current Track Object ID read succeeded\n"); in test_read_current_track_obj_id()
1909 printk("Current Track Object ID read succeeded\n"); in test_read_current_track_obj_id_with_expect()
1934 printk("Current Track Object read succeeded\n"); in test_read_current_track_object()
1949 invalid_id = BT_OTS_OBJ_ID_MIN - 1; in test_set_next_track_obj_id()
2007 FAIL("Failed to read next track object ID: %d", err); in test_read_next_track_obj_id()
2013 printk("Next Track Object ID read succeeded\n"); in test_read_next_track_obj_id()
2025 printk("Next Track Object ID read succeeded\n"); in test_read_next_track_obj_id_with_expect()
2044 FAIL("Failed to read next track object\n"); in test_read_next_track_object()
2049 printk("Next Track Object read succeeded\n"); in test_read_next_track_object()
2068 FAIL("Failed to read parent group object ID: %d", err); in test_read_parent_group_obj_id()
2073 printk("Parent Group Object ID read succeeded\n"); in test_read_parent_group_obj_id()
2092 FAIL("Failed to read parent group object\n"); in test_read_parent_group_object()
2097 printk("Parent Group Object read succeeded\n"); in test_read_parent_group_object()
2112 invalid_id = BT_OTS_OBJ_ID_MIN - 1; in test_set_current_group_obj_id()
2169 FAIL("Failed to read current group object ID: %d", err); in test_read_current_group_obj_id()
2175 printk("Current Group Object ID read succeeded\n"); in test_read_current_group_obj_id()
2187 printk("Current Group Object ID read succeeded\n"); in test_read_current_group_obj_id_with_expect()
2206 FAIL("Failed to read current group object\n"); in test_read_current_group_object()
2211 printk("Current Group Object read succeeded\n"); in test_read_current_group_object()
2230 FAIL("Failed to read playing order: %d", err); in test_read_playing_order()
2235 printk("Playing order read succeeded\n"); in test_read_playing_order()
2306 FAIL("Failed to read playing orders supported: %d", err); in test_read_playing_orders_supported()
2311 printk("Playing orders supported read succeeded\n"); in test_read_playing_orders_supported()
2330 FAIL("Failed to read media state: %d", err); in test_read_media_state()
2335 printk("Media state read succeeded\n"); in test_read_media_state()
2354 FAIL("Failed to read content control ID: %d", err); in test_read_content_control_id()
2359 printk("Content control ID read succeeded\n"); in test_read_content_control_id()
2390 FAIL("First group command failed\n"); in reset_test_iteration()
2398 FAIL("First track command failed\n"); in reset_test_iteration()
2406 FAIL("First segment command failed\n"); in reset_test_iteration()
2562 /* The tests are ordered to ensure that each command changes state */ in test_main()
2569 /* Control point - move relative opcode */ in test_main()
2572 /* Control point - segment change opcodes */ in test_main()
2579 /* Control point - track change opcodes */ in test_main()
2580 /* The tests are ordered to ensure that each command changes track */ in test_main()
2588 /* Control point - group change opcodes *******************************/ in test_main()
2589 /* The tests are ordered to ensure that each command changes group */ in test_main()