.charset_id = 0
};
+/* LCOV_EXCL_START */
static gboolean __bt_hfp_check_for_callpath(const char *call_path,
const char *call_sender)
{
g_free(t_call->call_sender);
g_free(t_call);
}
+/* LCOV_EXCL_STOP */
static void __bt_hfp_reset_indicators(void)
{
_bt_hfp_deinitialize();
}
+/* LCOV_EXCL_START */
bt_hfp_agent_error_t _bt_hfp_register_telephony_agent(gboolean register_flag,
const char *path_to_register,
const char *sender)
}
return t_call;
}
+/* LCOV_EXCL_STOP */
gboolean _bt_hfp_is_call_exist(void)
{
- DBG("_bt_hfp_is_call_exist [%x]", existing_call_list);
+ DBG("_bt_hfp_is_call_exist [%p]", existing_call_list);
if (existing_call_list)
return TRUE;
else
GSList *temp_list = existing_call_list;
if (existing_call_list != NULL) {
+ /* LCOV_EXCL_START */
while (temp_list != NULL) {
struct telephony_call *t_call = temp_list->data;
if (t_call->call_status == call_status)
return t_call;
temp_list = temp_list->next;
}
+ /* LCOV_EXCL_STOP */
}
DBG("Existing call list is NULL. So return NULL");
return NULL;
}
+/* LCOV_EXCL_START */
static bt_hfp_agent_error_t __bt_hfp_modify_indicator(
const char *indicator_name,
int update_value)
return ret;
}
+/* LCOV_EXCL_STOP */
int _bt_hfp_set_property_name(const char *property, const char *operator_name)
{
return ret;
}
+/* LCOV_EXCL_START */
static int __bt_hfp_answer_call(struct telephony_call *t_call)
{
if (t_call->call_id != 0 && t_call->call_path != NULL &&
}
return -1;
}
+/* LCOV_EXCL_STOP */
void _bt_hfp_answer_call_request(void *t_device)
{
return;
}
+ /* LCOV_EXCL_START */
if (__bt_hfp_answer_call(t_call) < 0)
_bt_answer_call_response(t_device,
HFP_STATE_MNGR_ERR_AG_FAILURE);
else
_bt_answer_call_response(t_device, HFP_STATE_MNGR_ERR_NONE);
+ /* LCOV_EXCL_STOP */
}
if (error_code == BT_HFP_AGENT_ERROR_NONE)
_bt_dial_number_response(t_device,
- HFP_STATE_MNGR_ERR_NONE);
+ HFP_STATE_MNGR_ERR_NONE); /* LCOV_EXCL_LINE */
else
_bt_dial_number_response(t_device,
HFP_STATE_MNGR_ERR_AG_FAILURE);
return;
}
- _bt_dial_number_response(t_device, HFP_STATE_MNGR_ERR_AG_FAILURE);
+ _bt_dial_number_response(t_device, HFP_STATE_MNGR_ERR_AG_FAILURE); /* LCOV_EXCL_LINE */
}
HFP_STATE_MNGR_ERR_NONE);
}
+/* LCOV_EXCL_START */
static int __bt_bt_hfp_reject_call(struct telephony_call *t_call)
{
gboolean ret;
}
return 0;
}
+/* LCOV_EXCL_STOP */
void _bt_hfp_terminate_call_request(void *t_device)
{
DBG("Find non-idle call");
GSList *temp_call_list = existing_call_list;
while (temp_call_list != NULL) {
+ /* LCOV_EXCL_START */
t_call = temp_call_list->data;
if (t_call->call_status == HFP_AGENT_CALL_IDLE)
temp_call_list = temp_call_list->next;
else
break;
+ /* LCOV_EXCL_STOP */
}
}
return;
}
+ /* LCOV_EXCL_START */
if (__bt_hfp_get_call_with_status(HFP_CALL_STATUS_WAITING) != NULL) {
int value = 1;
t_error = _bt_ag_agent_threeway_call(value, t_call->call_path,
HFP_STATE_MNGR_ERR_AG_FAILURE);
else
_bt_terminate_call_response(t_device, HFP_STATE_MNGR_ERR_NONE);
+ /* LCOV_EXCL_STOP */
}
void _bt_hfp_call_hold_request(const char *t_cmd, void *t_device)
}
}
+ /* LCOV_EXCL_START */
while (t_sender_list != NULL) {
sender_info = t_sender_list->data;
if (sender_info == NULL) {
_bt_call_hold_response(t_device, HFP_STATE_MNGR_ERR_NONE);
else
_bt_call_hold_response(t_device, HFP_STATE_MNGR_ERR_AG_FAILURE);
+ /* LCOV_EXCL_STOP */
}
void _bt_hfp_key_press_request(const char *t_key_press, void *t_device)
}
}
+ /* LCOV_EXCL_START */
if (_bt_ag_agent_send_dtmf(tone_buffer, t_call->call_path,
t_call->call_sender) != BT_HFP_AGENT_ERROR_NONE) {
_bt_transmit_dtmf_response(t_device,
}
_bt_transmit_dtmf_response(t_device, HFP_STATE_MNGR_ERR_NONE);
+ /* LCOV_EXCL_STOP */
}
void _bt_hfp_vendor_cmd_request(const char *cmd,
bt_hfp_agent_error_t error = BT_HFP_AGENT_ERROR_NONE;
if (NULL != t_sender_list) {
+ /* LCOV_EXCL_START */
for (l = t_sender_list; l != NULL; l = l->next) {
sender_info = l->data;
error = _bt_ag_agent_vendor_cmd(cmd,
if (error != BT_HFP_AGENT_ERROR_NONE)
break;
}
+ /* LCOV_EXCL_STOP */
}
if (error != BT_HFP_AGENT_ERROR_NONE)
void _bt_hfp_subscriber_number_request(void *t_device)
{
if (ag_subscriber_num != NULL) {
-
+ /* LCOV_EXCL_START */
int t_number = AGENT_NUMBER_TYPE_TELEPHONY;
if (ag_subscriber_num[0] == '+' || strncmp(
_bt_subscriber_number_indicator(ag_subscriber_num,
t_number, AGENT_SUBSCRIBER_SERVICE_VOICE);
+ /* LCOV_EXCL_STOP */
}
_bt_subscriber_number_response(t_device, HFP_STATE_MNGR_ERR_NONE);
}
+/* LCOV_EXCL_START */
static int __bt_hfp_get_call_status(struct telephony_call *t_call)
{
switch (t_call->call_status) {
return -1;
}
}
+/* LCOV_EXCL_STOP */
void _bt_list_current_calls(void *t_device)
{
int index;
while (t_call_list != NULL) {
+ /* LCOV_EXCL_START */
struct telephony_call *t_call = t_call_list->data;
t_status = __bt_hfp_get_call_status(t_call);
if (t_status >= 0) {
t_number);
}
t_call_list = t_call_list->next;
+ /* LCOV_EXCL_STOP */
}
_bt_list_current_calls_response(t_device, HFP_STATE_MNGR_ERR_NONE);
}
DBG("sender [%s]", sender);
while (temp_list != NULL) {
+ /* LCOV_EXCL_START */
struct telephony_call *t_call = temp_list->data;
if (g_strcmp0(t_call->call_sender, sender) == 0) {
temp_list = next_list;
} else
temp_list = temp_list->next;
+ /* LCOV_EXCL_STOP */
}
}
while (hfp_ag_ind[i].indicator_desc != NULL && str != NULL) {
str++;
+ /* LCOV_EXCL_START */
if ((g_strcmp0(hfp_ag_ind[i].indicator_desc, "call") != 0) &&
(g_strcmp0(hfp_ag_ind[i].indicator_desc, "callheld") != 0) &&
(g_strcmp0(hfp_ag_ind[i].indicator_desc, "callsetup") != 0)) {
}
str = strchr(str, delims);
i++;
+ /* LCOV_EXCL_STOP */
}
_bt_indicators_activation_response(t_device, HFP_STATE_MNGR_ERR_NONE);
return -1;
}
+ /* LCOV_EXCL_START */
ret = g_dbus_proxy_call_sync(g_proxy, "GetPhonebookSizeAt",
g_variant_new("(s)",
path),
g_object_unref(g_conn);
if (g_proxy)
g_object_unref(g_proxy);
+ /* LCOV_EXCL_STOP */
#endif
return 0;
}
return -1;
}
+ /* LCOV_EXCL_START */
ret = g_dbus_proxy_call_sync(g_proxy, "GetPhonebookEntriesAt",
g_variant_new("(sii)",
agent_pb_store_list[ag_pb_info.path_id],
g_object_unref(g_conn);
if (g_proxy)
g_object_unref(g_proxy);
+ /* LCOV_EXCL_STOP */
#endif
return count;
}