.pcm_interface_rate = 0x00,
};
+/* LCOV_EXCL_START */
/* AT+BRSF response */
int _bt_hfp_supported_features(bt_ag_info_t *hs, const char *buf)
{
else
return -1;
}
+/* LCOV_EXCL_STOP */
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)
return 0;
}
+/* LCOV_EXCL_STOP */
void _bt_hfp_set_ag_indicator(uint32_t ag_features,
const bt_ag_indicators_t *ag_indicators, int rh,
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)
{
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)
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;
int _bt_hfp_send_vendor_cmd(bt_ag_info_t *hs,
const char *cmd)
{
- DBG("_bt_hfp_send_vendor_cmd = %d", cmd);
+ DBG("_bt_hfp_send_vendor_cmd = %s", cmd);
if (_bt_ag_send_at(hs, "\r\n%s\r\n", cmd) < 0)
return BT_HFP_AGENT_ERROR_INTERNAL;
return BT_HFP_AGENT_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
int _bt_vendor_cmd_response(void *t_device,
bt_hfp_agent_error_t err)
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");
call_num, type, service);
return 0;
}
+/* LCOV_EXCL_STOP */
int _bt_subscriber_number_response(void *t_device,
bt_hfp_agent_error_t err)
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);
number, type);
return 0;
}
+/* LCOV_EXCL_STOP */
int _bt_list_current_calls_response(void *t_device,
bt_hfp_agent_error_t err)
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);
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)
return 0;
}
+/* LCOV_EXCL_START */
int _bt_hfp_operator_selection(bt_ag_info_t *hs, const char *buf)
{
if (strlen(buf) < 8)
_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)
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)
return -EINVAL;
}
+/* LCOV_EXCL_STOP */
int _bt_read_phonebook_entries_list_response(void *t_device,
uint32_t used,
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)
{
return 0;
}
+/* LCOV_EXCL_STOP */
int _bt_find_phonebook_entries_status_response(void *t_device,
bt_hfp_agent_error_t err)
return 0;
}
+/* LCOV_EXCL_START */
int _bt_hfp_find_pb_entires(bt_ag_info_t *hs, const char *buf)
{
if (strlen(buf) < 8)
return 0;
}
+/* LCOV_EXCL_STOP */
int _bt_supported_character_generic_response(void *t_device,
char *character_set_list,
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) {
return 0;
}
+/* LCOV_EXCL_STOP */
int _bt_battery_charge_status_response(void *t_device,
int32_t bcs,
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)
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)
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)
{
return 0;
}
+/* LCOV_EXCL_STOP */
int _bt_hfp_get_activity_status_rsp(void *t_device,
int status,
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)
_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)
{
if (err == (bt_hfp_agent_error_t)HFP_STATE_MNGR_ERR_NONE)
_bt_ag_send_foreach_headset(active_devices, __bt_hfp_cmp,
- "\r\n%s%s%s\r\n", mcc,mnc,msin);
+ "\r\n%s%s%s\r\n", mcc, mnc, msin);
return _bt_ag_send_response(t_device, err);
}
int len = strlen(buf);
DBG_SECURE("Buf %s", buf);
- if (len == 7) {
+ if (len == 7)
_bt_hfp_get_imsi_req(device);
- } else {
+ else
_bt_ag_send_response(device, HFP_STATE_MNGR_ERR_INVALID_INDEX);
- }
return 0;
}
DBG_SECURE("buf %s", buf);
if (len < 7 || len > 9)
return -EINVAL;
- else if (len == 7) {
+ else if (len == 7)
_bt_ag_send_response(device, HFP_STATE_MNGR_ERR_INVALID_INDEX);
- } else if (buf[7] == '=') {
+ else if (buf[7] == '=')
_bt_ag_send_response(device, HFP_STATE_MNGR_ERR_INVALID_INDEX);
- } else if (buf[7] == '?') {
+ else if (buf[7] == '?')
_bt_hfp_get_creg_status_req(device);
- }
+
return 0;
}
int _bt_hfp_get_revision_info_rsp(void *t_device, char *revision,