error_code = _bt_get_error_code(bluetooth_get_local_address(&loc_address));
if (error_code != BT_ERROR_NONE) { /* LCOV_EXCL_LINE */
- BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code),
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), /* LCOV_EXCL_LINE */
error_code); /* LCOV_EXCL_LINE */
return error_code; /* LCOV_EXCL_LINE */
}
error_code = _bt_convert_address_to_string(address, &loc_address);
if (error_code != BT_ERROR_NONE) { /* LCOV_EXCL_LINE */
- BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code),
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), /* LCOV_EXCL_LINE */
error_code); /* LCOV_EXCL_LINE */
return error_code; /* LCOV_EXCL_LINE */
}
ret = _bt_get_error_code(bluetooth_get_local_name(&loc_name));
if (ret != BT_ERROR_NONE) { /* LCOV_EXCL_LINE */
- BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret),
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), /* LCOV_EXCL_LINE */
ret); /* LCOV_EXCL_LINE */
return ret; /* LCOV_EXCL_LINE */
}
*name = strdup(loc_name.name);
if (*name == NULL) {
- BT_ERR("OUT_OF_MEMORY(0x%08x)",
+ BT_ERR("OUT_OF_MEMORY(0x%08x)", /* LCOV_EXCL_LINE */
BT_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
return BT_ERROR_OUT_OF_MEMORY;
}
ret = _bt_get_error_code(bluetooth_set_local_name(&loc_name));
if (ret != BT_ERROR_NONE) { /* LCOV_EXCL_LINE */
- BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret),
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), /* LCOV_EXCL_LINE */
ret); /* LCOV_EXCL_LINE */
} /* LCOV_EXCL_LINE */
dev_list = g_ptr_array_new();
if (dev_list == NULL) {
- BT_ERR("OUT_OF_MEMORY(0x%08x)",
+ BT_ERR("OUT_OF_MEMORY(0x%08x)", /* LCOV_EXCL_LINE */
BT_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
return BT_ERROR_OUT_OF_MEMORY;
}
ret = _bt_get_error_code(bluetooth_get_bonded_device_list(&dev_list));
if (ret != BT_ERROR_NONE) {
- BT_ERR("%s(0x%08x) : Failed to get bonded device list",
+ BT_ERR("%s(0x%08x) : Failed to get bonded device list", /* LCOV_EXCL_LINE */
_bt_convert_error_to_string(ret), ret); /* LCOV_EXCL_LINE */
return ret;
}
ret = _bt_get_bt_device_info_s(&dev_info,
(bluetooth_device_info_t *)ptr);
if (ret != BT_ERROR_NONE) {
- BT_ERR("%s(0x%08x) : Failed to get device info",
+ BT_ERR("%s(0x%08x) : Failed to get device info", /* LCOV_EXCL_LINE */
_bt_convert_error_to_string(ret),
ret); /* LCOV_EXCL_LINE */
break;
}
_bt_free_bt_device_info_s(dev_info); /* LCOV_EXCL_LINE */
} else {
- BT_ERR("OPERATION_FAILED(0x%08x)",
+ BT_ERR("OPERATION_FAILED(0x%08x)", /* LCOV_EXCL_LINE */
BT_ERROR_OPERATION_FAILED); /* LCOV_EXCL_LINE */
ret = BT_ERROR_OPERATION_FAILED;
break;
return ret;
}
+/* LCOV_EXCL_START */
int bt_adapter_foreach_profile_connected_devices(const char *profile_uuid,
bt_adapter_profile_connected_devices_cb callback, void *user_data)
{
g_ptr_array_free(addr_list, TRUE);
return ret;
-}
+} /* LCOV_EXCL_STOP */
int bt_adapter_set_state_changed_cb(bt_adapter_state_changed_cb callback,
void *user_data)
} /* LCOV_EXCL_LINE */
return ret;
}
-/* LCOV_EXCL_STOP */
int bt_adapter_le_set_customized_scan_mode(float scan_interval, float scan_window)
{
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), ret);
return ret;
-}
+} /* LCOV_EXCL_STOP */
int bt_adapter_le_create_advertiser(bt_advertiser_h *advertiser)
{
return error;
}
-/* LCOV_EXCL_STOP */
int bt_ag_notify_vendor_cmd(const char *command)
{
if (error != BT_ERROR_NONE)
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), error);
return error;
-}
+} /* LCOV_EXCL_STOP */
int bt_ag_notify_voice_recognition_state(bool state)
{
return BT_ERROR_NOT_INITIALIZED; \
}
+/* LCOV_EXCL_START */
int __bt_check_avrcp_control_init_status(void)
{
- if (is_avrcp_control_initialized != true) {
+ if (is_avrcp_control_initialized != true) { /* LCOV_EXCL_LINE */
BT_ERR("NOT_INITIALIZED(0x%08x)", BT_ERROR_NOT_INITIALIZED); /* LCOV_EXCL_LINE */
return BT_ERROR_NOT_INITIALIZED; /* LCOV_EXCL_LINE */
}
return BT_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
/*The below API is just to conver the error from Audio API's to CAPI error codes,
* this is temporary change and changes to proper error code will be done in
return BT_ERROR_NONE;
}
+/* LCOV_EXCL_START */
int bt_avrcp_target_connect(const char *remote_address)
{
int error;
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), error);
return error;
-}
+} /* LCOV_EXCL_STOP */
int bt_avrcp_target_deinitialize(void)
{
}
break;
}
-/* LCOV_EXCL_STOP */
case BLUETOOTH_EVENT_GATT_CLIENT_SERVICE_CHANGED: {
bt_gatt_service_change_t *service_change =
(bt_gatt_service_change_t *)(param->param_data);
}
break;
}
+/* LCOV_EXCL_STOP */
case BLUETOOTH_EVENT_ADVERTISING_STARTED:
BT_INFO("BLUETOOTH_EVENT_ADVERTISING_STARTED");
adv_handle = (int *)(param->param_data);
free(discovery_info);
discovery_info = NULL;
}
-/* LCOV_EXCL_STOP */
+
static int __bt_get_bt_adapter_le_device_scan_info_s(
bt_adapter_le_device_scan_result_info_s **scan_info,
bluetooth_le_device_info_t *source_info)
free(scan_info);
scan_info = NULL;
-}
+} /* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
#if !defined(TIZEN_PROFILE_WEARABLE) && !defined(TIZEN_PROFILE_IVI)
return BT_ERROR_NONE;
}
+/* LCOV_EXCL_START */
int bt_device_unset_rssi_alert_cb(void)
{
BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON);
BT_CHECK_INIT_STATUS();
_bt_unset_cb(BT_EVENT_RSSI_ALERT_EVENT);
return BT_ERROR_NONE;
-}
+} /* LCOV_EXCL_STOP */
int bt_device_unset_att_mtu_changed_cb(void)
{
return BT_ERROR_NONE;
}
+/* LCOV_EXCL_START */
int bt_device_enable_rssi_monitor(const char *remote_address,
bt_device_connection_link_type_e link_type,
int low_threshold, int in_range_threshold,
}
-/* LCOV_EXCL_START */
int bt_device_le_conn_update(const char *device_address,
const bt_le_conn_update_s *parameters)
{
__bt_gatt_free_service(gatt_handle);
}
+/* LCOV_EXCL_START */
static int __convert_int_to_signed_bits(int i, int size)
{
if (i < 0)
return 0;
}
}
+/* LCOV_EXCL_STOP */
int bt_gatt_destroy(bt_gatt_h gatt_handle)
{
return error_code;
}
-
+/* LCOV_EXCL_START */
int _bt_check_proximity_is_initialized(bool *is_initialized)
{
BT_CHECK_GATT_PXP_SUPPORT();
return BT_ERROR_NONE;
}
-
+/* LCOV_EXCL_STOP */
static bt_proximity_monitor_s *_bt_proximity_minotr_find(const char *remote_address)
{
GSList *l;
}
return NULL;
}
-
+/* LCOV_EXCL_START */
int _bt_proximity_connection_set_state_changed(int result, const char *remote_address, bool connected)
{
int service_type = 0;
}
return error_code;
}
-
+/* LCOV_EXCL_STOP */
int bt_proximity_monitor_create(const char *remote_address, bt_proximity_monitor_h *monitor)
{
int error_code = BT_ERROR_NONE;
BT_CHECK_GATT_PXP_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor_s);
-
+/* LCOV_EXCL_START */
if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
return error_code;
}
-
+/* LCOV_EXCL_STOP */
int bt_proximity_monitor_disconnect(bt_proximity_monitor_h monitor)
{
int error_code;
BT_CHECK_GATT_PXP_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor_s);
-
+/* LCOV_EXCL_START */
if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
return error_code;
}
-
+/* LCOV_EXCL_STOP */
int bt_proximity_monitor_set_connection_state_changed_cb(bt_proximity_monitor_h monitor,
bt_proximity_monitor_connection_state_changed_cb callback, void *user_data)
{
BT_CHECK_GATT_PXP_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
-
+/* LCOV_EXCL_START */
if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_LINKLOSS_ALERT))
return BT_ERROR_NOT_SUPPORTED;
- _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address); /* LCOV_EXCL_LINE */
+ _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address);
error_code = _bt_get_error_code(bluetooth_proximity_monitor_set_property(&addr_hex,
BT_PROXIMITY_LINKLOSS_ALERT, value));
return error_code;
}
-
+/* LCOV_EXCL_STOP */
int bt_proximity_monitor_set_immediate_alert(bt_proximity_monitor_h monitor, int value)
{
int error_code = BT_ERROR_NONE;
BT_CHECK_GATT_PXP_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
-
+/* LCOV_EXCL_START */
if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_IMMEDIATE_ALERT))
return BT_ERROR_NOT_SUPPORTED;
- _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address); /* LCOV_EXCL_LINE */
+ _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address);
error_code = _bt_get_error_code(bluetooth_proximity_monitor_set_property(&addr_hex,
BT_PROXIMITY_IMMEDIATE_ALERT, value));
return error_code;
}
-
+/* LCOV_EXCL_STOP */
int bt_proximity_monitor_get_linkloss_alert(bt_proximity_monitor_h monitor, int *value)
{
int error_code = BT_ERROR_NONE;