Exclude coverage for ag-agent
[platform/core/connectivity/bluetooth-agent.git] / ag-agent / bluetooth-ag-handler.c
index 2a761d3..eb3a39f 100644 (file)
@@ -45,6 +45,7 @@ wbs_options wbs_opts = {
        .pcm_interface_rate = 0x00,
 };
 
+/* LCOV_EXCL_START */
 /* AT+BRSF response */
 int _bt_hfp_supported_features(bt_ag_info_t *hs, const char *buf)
 {
@@ -130,6 +131,7 @@ static int __bt_check_hdset(bt_ag_info_t *hdset)
        else
                return -1;
 }
+/* LCOV_EXCL_STOP */
 
 static int __bt_hfp_cmp(bt_ag_info_t *hs)
 {
@@ -139,6 +141,7 @@ static int __bt_hfp_cmp(bt_ag_info_t *hs)
                return -1;
 }
 
+/* LCOV_EXCL_START */
 static int __bt_cwa_cmp(bt_ag_info_t *hs)
 {
        if (!hs->hfp_active)
@@ -224,6 +227,7 @@ int _bt_calling_stopped_indicator(void)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 void _bt_hfp_set_ag_indicator(uint32_t ag_features,
                        const bt_ag_indicators_t *ag_indicators, int rh,
@@ -245,6 +249,7 @@ void _bt_hfp_deinitialize(void)
        ag.er_mode = 3;
 }
 
+/* LCOV_EXCL_START */
 /* Send event indication call from Statemanager module */
 bt_hfp_agent_error_t _bt_hfp_event_indicator(int index)
 {
@@ -587,6 +592,7 @@ int _bt_hfp_signal_gain_setting(bt_ag_info_t *hs, const char *buf)
 
        return _bt_ag_send_at(hs, "\r\nOK\r\n");
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_transmit_dtmf_response(void *t_device,
                        bt_hfp_agent_error_t err)
@@ -594,6 +600,7 @@ int _bt_transmit_dtmf_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_dtmf_tone(bt_ag_info_t *hs, const char *buf)
 {
        char tone;
@@ -677,6 +684,7 @@ int _bt_hfp_send_vendor_cmd(bt_ag_info_t *hs,
 
        return BT_HFP_AGENT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_vendor_cmd_response(void *t_device,
                        bt_hfp_agent_error_t err)
@@ -684,6 +692,7 @@ int _bt_vendor_cmd_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_vendor_cmd(bt_ag_info_t *hs, const char *buf)
 {
        DBG("XSAT vendor command");
@@ -719,6 +728,7 @@ int _bt_subscriber_number_indicator(const char *call_num, int type, int service)
                                call_num, type, service);
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_subscriber_number_response(void *t_device,
                                        bt_hfp_agent_error_t err)
@@ -726,6 +736,7 @@ int _bt_subscriber_number_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_subscriber_number(bt_ag_info_t *hs, const char *buf)
 {
        _bt_hfp_subscriber_number_request(hs);
@@ -744,6 +755,7 @@ int _bt_call_waiting_indicator(const char *number, int type)
                                number, type);
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_list_current_calls_response(void *t_device,
                                        bt_hfp_agent_error_t err)
@@ -751,6 +763,7 @@ int _bt_list_current_calls_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_list_current_calls(bt_ag_info_t *hs, const char *buf)
 {
        _bt_list_current_calls(hs);
@@ -793,6 +806,7 @@ int _bt_hfp_call_waiting_notify(bt_ag_info_t *hs, const char *buf)
 
        return _bt_ag_send_at(hs, "\r\nOK\r\n");
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_operator_selection_response(void *t_device,
                                        bt_hfp_agent_error_t err)
@@ -842,6 +856,7 @@ int _bt_operator_selection_indicator(int mode, const char *oper)
        return 0;
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_operator_selection(bt_ag_info_t *hs, const char *buf)
 {
        if (strlen(buf) < 8)
@@ -912,6 +927,7 @@ int _bt_hfp_indicators_activation(bt_ag_info_t *hs, const char *buf)
        _bt_hfp_set_indicators(&buf[6], hs);
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_indicators_activation_response(void *t_device,
                                        bt_hfp_agent_error_t err)
@@ -978,6 +994,7 @@ int _bt_select_phonebook_memory_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_select_pb_memory(bt_ag_info_t *hs, const char *buf)
 {
        if (strlen(buf) < 8)
@@ -999,6 +1016,7 @@ int _bt_hfp_select_pb_memory(bt_ag_info_t *hs, const char *buf)
 
        return -EINVAL;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_read_phonebook_entries_list_response(void *t_device,
                                                uint32_t used,
@@ -1037,6 +1055,7 @@ int _bt_read_phonebook_entries_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_read_phonebook_entries_indicator(const char *name, const char *number,
                                        uint32_t handle)
 {
@@ -1072,6 +1091,7 @@ int _bt_hfp_read_pb_entries(bt_ag_info_t *hs, const char *buf)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_find_phonebook_entries_status_response(void *t_device,
                                                bt_hfp_agent_error_t err)
@@ -1095,6 +1115,7 @@ int _bt_find_phonebook_entries_status_indicator(uint32_t number_length,
        return 0;
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_find_pb_entires(bt_ag_info_t *hs, const char *buf)
 {
        if (strlen(buf) < 8)
@@ -1110,6 +1131,7 @@ int _bt_hfp_find_pb_entires(bt_ag_info_t *hs, const char *buf)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_supported_character_generic_response(void *t_device,
                                                char *character_set_list,
@@ -1142,6 +1164,7 @@ int _bt_set_characterset_generic_response(void *t_device,
        return _bt_ag_send_response(t_device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_select_character_set(bt_ag_info_t *hs, const char *buf)
 {
        if (NULL != buf) {
@@ -1163,6 +1186,7 @@ int _bt_hfp_select_character_set(bt_ag_info_t *hs, const char *buf)
        return 0;
 
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_battery_charge_status_response(void *t_device,
                                                int32_t bcs,
@@ -1179,6 +1203,7 @@ int _bt_battery_charge_status_response(void *t_device,
        return _bt_ag_send_response(hs, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_get_battery_charge_status(bt_ag_info_t *hs, const char *buf)
 {
        if (strlen(buf) < 6)
@@ -1197,6 +1222,7 @@ int _bt_hfp_apl_command(bt_ag_info_t *hs, const char *buf)
 
        return _bt_ag_send_response(hs, HFP_STATE_MNGR_ERR_NONE);
 }
+/* LCOV_EXCL_STOP */
 
 /* convert signal strength to a RSSI level */
 static int __bt_telephony_convert_signal_to_rssi(int signal)
@@ -1233,6 +1259,7 @@ int _bt_signal_quality_response(void *t_device,
        return _bt_ag_send_response(hs, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_telephony_signal_quality_list_supported_response(void *t_device,
                                                bt_hfp_agent_error_t err)
 {
@@ -1258,6 +1285,7 @@ int _bt_hfp_get_signal_quality(bt_ag_info_t *hs, const char *buf)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_hfp_get_activity_status_rsp(void *t_device,
                                                int status,
@@ -1273,6 +1301,7 @@ int _bt_hfp_get_activity_status_rsp(void *t_device,
        return _bt_ag_send_response(device, err);
 }
 
+/* LCOV_EXCL_START */
 int _bt_hfp_get_activity_status(bt_ag_info_t *device, const char *buf)
 {
        if (strlen(buf) < 7)
@@ -1290,6 +1319,7 @@ int _bt_hfp_get_activity_status(bt_ag_info_t *device, const char *buf)
        _bt_get_activity_status(device);
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_hfp_get_equipment_identity_rsp(void *t_device,
                                char *identity, bt_hfp_agent_error_t err)