extern int utc_bluetooth_bt_avrcp_unset_position_changed_cb_n(void);
extern int utc_bluetooth_bt_avrcp_unset_play_status_changed_cb_n(void);
extern int utc_bluetooth_bt_avrcp_unset_track_info_changed_cb_n(void);
-extern int utc_bluetooth_bt_ag_open_sco_n(void);
-extern int utc_bluetooth_bt_ag_close_sco_n(void);
-extern int utc_bluetooth_bt_ag_is_sco_opened_n(void);
-extern int utc_bluetooth_bt_ag_notify_voice_recognition_state_n(void);
-extern int utc_bluetooth_bt_ag_set_sco_state_changed_cb_n(void);
-extern int utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n(void);
extern int utc_bluetooth_bt_opp_server_accept_n(void);
extern int utc_bluetooth_bt_opp_server_accept_n1(void);
extern int utc_bluetooth_bt_opp_server_accept_n2(void);
{"utc_bluetooth_bt_avrcp_unset_position_changed_cb_n", utc_bluetooth_bt_avrcp_unset_position_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
{"utc_bluetooth_bt_avrcp_unset_play_status_changed_cb_n", utc_bluetooth_bt_avrcp_unset_play_status_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
{"utc_bluetooth_bt_avrcp_unset_track_info_changed_cb_n", utc_bluetooth_bt_avrcp_unset_track_info_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_open_sco_n", utc_bluetooth_bt_ag_open_sco_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_close_sco_n", utc_bluetooth_bt_ag_close_sco_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_is_sco_opened_n", utc_bluetooth_bt_ag_is_sco_opened_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_notify_voice_recognition_state_n", utc_bluetooth_bt_ag_notify_voice_recognition_state_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_set_sco_state_changed_cb_n", utc_bluetooth_bt_ag_set_sco_state_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n", utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
{"utc_bluetooth_bt_opp_server_accept_n", utc_bluetooth_bt_opp_server_accept_n, utc_bluetooth_bt_opp_server_negative_startup, utc_bluetooth_bt_opp_server_negative_cleanup},
{"utc_bluetooth_bt_opp_server_accept_n1", utc_bluetooth_bt_opp_server_accept_n1, utc_bluetooth_bt_opp_server_negative_startup, utc_bluetooth_bt_opp_server_negative_cleanup},
{"utc_bluetooth_bt_opp_server_accept_n2", utc_bluetooth_bt_opp_server_accept_n2, utc_bluetooth_bt_opp_server_negative_startup, utc_bluetooth_bt_opp_server_negative_cleanup},
extern int utc_bluetooth_bt_avrcp_unset_position_changed_cb_n(void);
extern int utc_bluetooth_bt_avrcp_unset_play_status_changed_cb_n(void);
extern int utc_bluetooth_bt_avrcp_unset_track_info_changed_cb_n(void);
-extern int utc_bluetooth_bt_ag_open_sco_n(void);
-extern int utc_bluetooth_bt_ag_close_sco_n(void);
-extern int utc_bluetooth_bt_ag_is_sco_opened_n(void);
-extern int utc_bluetooth_bt_ag_notify_voice_recognition_state_n(void);
-extern int utc_bluetooth_bt_ag_set_sco_state_changed_cb_n(void);
-extern int utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n(void);
extern int utc_bluetooth_bt_opp_server_accept_n(void);
extern int utc_bluetooth_bt_opp_server_accept_n1(void);
extern int utc_bluetooth_bt_opp_server_accept_n2(void);
{"utc_bluetooth_bt_avrcp_unset_position_changed_cb_n", utc_bluetooth_bt_avrcp_unset_position_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
{"utc_bluetooth_bt_avrcp_unset_play_status_changed_cb_n", utc_bluetooth_bt_avrcp_unset_play_status_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
{"utc_bluetooth_bt_avrcp_unset_track_info_changed_cb_n", utc_bluetooth_bt_avrcp_unset_track_info_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_open_sco_n", utc_bluetooth_bt_ag_open_sco_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_close_sco_n", utc_bluetooth_bt_ag_close_sco_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_is_sco_opened_n", utc_bluetooth_bt_ag_is_sco_opened_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_notify_voice_recognition_state_n", utc_bluetooth_bt_ag_notify_voice_recognition_state_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_set_sco_state_changed_cb_n", utc_bluetooth_bt_ag_set_sco_state_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
- {"utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n", utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n, utc_bluetooth_bt_audio_negative_startup, utc_bluetooth_bt_audio_negative_cleanup},
{"utc_bluetooth_bt_opp_server_accept_n", utc_bluetooth_bt_opp_server_accept_n, utc_bluetooth_bt_opp_server_negative_startup, utc_bluetooth_bt_opp_server_negative_cleanup},
{"utc_bluetooth_bt_opp_server_accept_n1", utc_bluetooth_bt_opp_server_accept_n1, utc_bluetooth_bt_opp_server_negative_startup, utc_bluetooth_bt_opp_server_negative_cleanup},
{"utc_bluetooth_bt_opp_server_accept_n2", utc_bluetooth_bt_opp_server_accept_n2, utc_bluetooth_bt_opp_server_negative_startup, utc_bluetooth_bt_opp_server_negative_cleanup},
#include <string.h>
#include <system_info.h>
-#ifdef WEARABLE
-#include <bluetooth_extension.h>
-#endif
-
//& set: BluetoothAudioNegative
static int startup_flag = BT_ERROR_NONE;
return 0;
}
#endif
-
-
-#if defined(MOBILE) || defined(COMMON_IOT) || defined(WEARABLE)
-/**
- * @testcase utc_bluetooth_bt_ag_open_sco_n
- * @since_tizen 2.3
- * @description
- */
-int utc_bluetooth_bt_ag_open_sco_n(void)
-{
- if (call_supported) {
- assert_eq(startup_flag, BT_ERROR_NONE);
-
- ret = bt_deinitialize();
-
- ret = bt_ag_open_sco();
- assert_eq(ret, BT_ERROR_NOT_INITIALIZED);
- } else {
- ret = bt_ag_open_sco();
- assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
- }
-
- return 0;
-}
-
-/**
- * @testcase utc_bluetooth_bt_ag_close_sco_n
- * @since_tizen 2.3
- * @description
- */
-int utc_bluetooth_bt_ag_close_sco_n(void)
-{
- if (call_supported) {
- assert_eq(startup_flag, BT_ERROR_NONE);
-
- ret = bt_deinitialize();
-
- ret = bt_ag_close_sco();
- assert_eq(ret, BT_ERROR_NOT_INITIALIZED);
- } else {
- ret = bt_ag_close_sco();
- assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
- }
-
- return 0;
-}
-
-/**
- * @testcase utc_bluetooth_bt_ag_is_sco_opened_n
- * @since_tizen 2.3
- * @description
- */
-int utc_bluetooth_bt_ag_is_sco_opened_n(void)
-{
- bool is_sco = false;
-
- if (call_supported) {
- assert_eq(startup_flag, BT_ERROR_NONE);
-
- ret = bt_deinitialize();
-
- ret = bt_ag_is_sco_opened(&is_sco);
- assert_eq(ret, BT_ERROR_NOT_INITIALIZED);
- } else {
- ret = bt_ag_is_sco_opened(&is_sco);
- assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
- }
-
- return 0;
-}
-
-/**
- * @testcase utc_bluetooth_bt_ag_notify_voice_recognition_state_n
- * @since_tizen 2.3
- * @description
- */
-int utc_bluetooth_bt_ag_notify_voice_recognition_state_n(void)
-{
- bool state = false;
-
- if (call_supported) {
- assert_eq(startup_flag, BT_ERROR_NONE);
-
- ret = bt_deinitialize();
-
- ret = bt_ag_notify_voice_recognition_state(state);
- assert_eq(ret, BT_ERROR_NOT_INITIALIZED);
- } else {
- ret = bt_ag_notify_voice_recognition_state(state);
- assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
- }
-
- return 0;
-}
-
-static void __bt_ag_sco_state_changed_cb(int result, bool opened, void *user_data)
-{
-
-}
-
-/**
- * @testcase utc_bluetooth_bt_ag_set_sco_state_changed_cb_n
- * @since_tizen 2.3
- * @description
- */
-int utc_bluetooth_bt_ag_set_sco_state_changed_cb_n(void)
-{
- if (call_supported) {
- assert_eq(startup_flag, BT_ERROR_NONE);
-
- ret = bt_deinitialize();
-
- ret = bt_ag_set_sco_state_changed_cb(
- __bt_ag_sco_state_changed_cb, NULL);
- assert_eq(ret, BT_ERROR_NOT_INITIALIZED);
- } else {
- ret = bt_ag_set_sco_state_changed_cb(
- __bt_ag_sco_state_changed_cb, NULL);
- assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
- }
-
- return 0;
-}
-
-/**
- * @testcase utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n
- * @since_tizen 2.3
- * @description
- */
-int utc_bluetooth_bt_ag_unset_sco_state_changed_cb_n(void)
-{
- if (call_supported) {
- assert_eq(startup_flag, BT_ERROR_NONE);
-
- ret = bt_deinitialize();
-
- ret = bt_ag_unset_sco_state_changed_cb();
- assert_eq(ret, BT_ERROR_NOT_INITIALIZED);
- } else {
- ret = bt_ag_unset_sco_state_changed_cb();
- assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
- }
-
- return 0;
-}
-#endif
-