Add the comment for excluding line coverage 00/128900/1
authorHyuk Lee <hyuk0512.lee@samsung.com>
Fri, 12 May 2017 04:18:11 +0000 (13:18 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Fri, 12 May 2017 04:18:11 +0000 (13:18 +0900)
Change-Id: I9a04a35b7a7ae771cc7b37c39f272081c63fe9a4
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
src/bluetooth-adapter.c
src/bluetooth-audio.c
src/bluetooth-common.c
src/bluetooth-map-client.c
src/bluetooth-pbap.c
src/bluetooth-proximity.c
src/bluetooth-tds.c

index c3e538d..a4ddad5 100644 (file)
@@ -1187,6 +1187,7 @@ int bt_adapter_set_remote_oob_ext_data(const char *remote_address,
        BT_CHECK_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(remote_address);
 
+       /* LCOV_EXCL_START */
        if ((!hash192 || !randomizer192) && (!hash256 || !randomizer256))
                return BT_ERROR_INVALID_PARAMETER;
 
@@ -1266,6 +1267,7 @@ int bt_adapter_le_set_remote_oob_ext_data(const char *remote_address,
 
        return ret;
 }
+/* LCOV_EXCL_START */
 
 int bt_adapter_remove_remote_oob_data(const char *remote_address)
 {
@@ -4008,8 +4010,8 @@ int bt_adapter_le_scan_filter_set_type(bt_scan_filter_h scan_filter,
 {
        if (mode == BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON)
                return bt_adapter_le_scan_filter_set_ibeacon(scan_filter);
-       else if (mode == BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID)
-               return bt_adapter_le_scan_filter_set_proximity_uuid(scan_filter);
+       else if (mode == BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID) /* LCOV_EXCL_LINE */
+               return bt_adapter_le_scan_filter_set_proximity_uuid(scan_filter); /* LCOV_EXCL_LINE */
        else
                return BT_ERROR_INVALID_PARAMETER;
 }
@@ -4017,11 +4019,11 @@ int bt_adapter_le_scan_filter_set_type(bt_scan_filter_h scan_filter,
 int bt_adapter_passkey_reply(char *passkey, bool authentication_reply)
 {
        BT_CHECK_INIT_STATUS();
-       BT_CHECK_INPUT_PARAMETER(passkey);
-       int error_code = BT_ERROR_NONE;
-       error_code = _bt_get_error_code(bluetooth_passkey_reply(passkey, authentication_reply));
-       if (error_code != BT_ERROR_NONE)
-               BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
+       BT_CHECK_INPUT_PARAMETER(passkey); /* LCOV_EXCL_LINE */
+       int error_code = BT_ERROR_NONE; /* LCOV_EXCL_LINE */
+       error_code = _bt_get_error_code(bluetooth_passkey_reply(passkey, authentication_reply)); /* LCOV_EXCL_LINE */
+       if (error_code != BT_ERROR_NONE) /* LCOV_EXCL_LINE */
+               BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); /* LCOV_EXCL_LINE */
 
        return error_code;
 }
@@ -4030,11 +4032,10 @@ int bt_adapter_passkey_confirmation_reply(bool confirmation_reply)
 {
        BT_CHECK_INIT_STATUS();
 
-       int error_code = BT_ERROR_NONE;
-       error_code = _bt_get_error_code(bluetooth_passkey_confirmation_reply(confirmation_reply));
-       if (error_code != BT_ERROR_NONE)
-               BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
+       int error_code = BT_ERROR_NONE; /* LCOV_EXCL_LINE */
+       error_code = _bt_get_error_code(bluetooth_passkey_confirmation_reply(confirmation_reply)); /* LCOV_EXCL_LINE */
+       if (error_code != BT_ERROR_NONE) /* LCOV_EXCL_LINE */
+               BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); /* LCOV_EXCL_LINE */
 
        return error_code;
 }
-/* LCOV_EXCL_STOP */
index 6fb5276..218da20 100644 (file)
@@ -133,12 +133,12 @@ int bt_audio_initialize(void)
                is_audio_a2dp_initialized = true;
 
        if (TIZEN_PROFILE_WEARABLE_IVI) {
-               error = bluetooth_hf_init(_bt_hf_event_proxy, NULL);
-               error = _bt_get_error_code(error);
-               if (BT_ERROR_NONE != error)
-                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), error);
-               else
-                       is_audio_hf_initialized = true;
+               error = bluetooth_hf_init(_bt_hf_event_proxy, NULL); /* LCOV_EXCL_LINE */
+               error = _bt_get_error_code(error); /* LCOV_EXCL_LINE */
+               if (BT_ERROR_NONE != error) /* LCOV_EXCL_LINE */
+                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), error); /* LCOV_EXCL_LINE */
+               else /* LCOV_EXCL_LINE */
+                       is_audio_hf_initialized = true; /* LCOV_EXCL_LINE */
        }
 
 #ifndef TIZEN_FEATURE_HFP_DISABLE /* B2_3G */
@@ -152,8 +152,8 @@ int bt_audio_initialize(void)
 
        /* There is no success case for 3 profiles */
        if (!is_audio_a2dp_initialized &&
-               (!TIZEN_PROFILE_WEARABLE_IVI || !is_audio_hf_initialized) &&
-                !is_audio_ag_initialized) {
+               (!TIZEN_PROFILE_WEARABLE_IVI || !is_audio_hf_initialized) && /* LCOV_EXCL_LINE */
+                !is_audio_ag_initialized) { /* LCOV_EXCL_LINE */
                return BT_ERROR_OPERATION_FAILED;
        }
 
@@ -174,13 +174,13 @@ int bt_audio_deinitialize(void)
 
        is_audio_a2dp_initialized = false;
 
-       if (TIZEN_PROFILE_WEARABLE_IVI) {
+       if (TIZEN_PROFILE_WEARABLE_IVI) { /* LCOV_EXCL_START */
                error = bluetooth_hf_deinit();
                error = _bt_get_error_code(error);
                if (BT_ERROR_NONE != error)
                        BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), error);
 
-               is_audio_hf_initialized = false;
+               is_audio_hf_initialized = false; /* LCOV_EXCL_STOP */
        }
 
 #ifndef TIZEN_FEATURE_HFP_DISABLE /* B2_3G */
@@ -315,7 +315,6 @@ int bt_audio_disconnect(const char *remote_address, bt_audio_profile_type_e type
 
        return error;
 }
-/* LCOV_EXCL_STOP */
 
 int bt_audio_select_role(bt_audio_role_e role)
 {
@@ -332,6 +331,7 @@ int bt_audio_select_role(bt_audio_role_e role)
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 int bt_audio_set_connection_state_changed_cb(bt_audio_connection_state_changed_cb callback, void *user_data)
 {
@@ -882,7 +882,6 @@ int bt_a2dp_set_content_protection(bool status)
        }
        return error;
 }
-/* LCOV_EXCL_STOP */
 
 int bt_hf_initialize(void)
 {
@@ -1335,3 +1334,4 @@ int bt_hf_unset_remote_device_state_changed_cb(void)
                _bt_unset_cb(BT_EVENT_HF_CIEV_DEVICE_STATUS_CHANGED);
        return BT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
index 3a76f72..914292b 100644 (file)
@@ -487,7 +487,6 @@ void _bt_free_bt_device_info_s(bt_device_info_s *device_info)
        free(device_info);
        device_info = NULL;
 }
-/* LCOV_EXCL_STOP */
 
 int _bt_get_ad_data_by_type(char *in_data, int in_len,
                char in_type, char **data, int *data_len)
@@ -537,6 +536,7 @@ int _bt_get_ad_data_by_type(char *in_data, int in_len,
 
        return BLUETOOTH_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_convert_address_to_string(char **addr_str, bluetooth_device_address_t *addr_hex)
 {
@@ -612,13 +612,13 @@ char *_bt_convert_error_to_string(int error)
        case BT_ERROR_NOT_SUPPORTED:
                return "NOT_SUPPORTD"; /* LCOV_EXCL_LINE */
        case BT_ERROR_NO_DATA:
-               return "NO_DATA";
+               return "NO_DATA"; /* LCOV_EXCL_LINE */
        case BT_ERROR_QUOTA_EXCEEDED:
-               return "QUOTA EXCEEDED";
+               return "QUOTA EXCEEDED"; /* LCOV_EXCL_LINE */
        case BT_ERROR_AGAIN:
-               return "AGAIN";
+               return "AGAIN"; /* LCOV_EXCL_LINE */
        case BT_ERROR_DEVICE_POLICY_RESTRICTION:
-               return "DEVICE_POLICY_RESTRICTION";
+               return "DEVICE_POLICY_RESTRICTION"; /* LCOV_EXCL_LINE */
        default:
                return "UNKNOWN"; /* LCOV_EXCL_LINE */
        }
@@ -637,12 +637,12 @@ char *_bt_convert_uuid_to_uuid128(const char *uuid)
                break;
 
        case 8:         /* UUID 32bits */
-               uuid128 = g_strdup_printf("%s-0000-1000-8000-00805f9b34fb", uuid);
-               break;
+               uuid128 = g_strdup_printf("%s-0000-1000-8000-00805f9b34fb", uuid); /* LCOV_EXCL_LINE */
+               break; /* LCOV_EXCL_LINE */
 
        case 36:        /* UUID 128bits */
-               uuid128 = strdup(uuid);
-               break;
+               uuid128 = strdup(uuid); /* LCOV_EXCL_LINE */
+               break; /* LCOV_EXCL_LINE */
 
        default:
                return NULL;
@@ -2385,7 +2385,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
 
                break;
        case BLUETOOTH_EVENT_ADVERTISING_STOPPED:
-               BT_INFO("BLUETOOTH_EVENT_ADVERTISING_STOPPED");
+               BT_INFO("BLUETOOTH_EVENT_ADVERTISING_STOPPED"); /* LCOV_EXCL_START */
                adv_handle = (int *)(param->param_data);
 
                if (bt_event_slot_container[event_index].callback != NULL) {
@@ -2395,7 +2395,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                }
 
                _bt_adapter_le_invoke_advertising_state_cb(*adv_handle,
-                               _bt_get_error_code(param->result), BT_ADAPTER_LE_ADVERTISING_STOPPED);
+                               _bt_get_error_code(param->result), BT_ADAPTER_LE_ADVERTISING_STOPPED); /* LCOV_EXCL_STOP */
 
                break;
        case BLUETOOTH_EVENT_MANUFACTURER_DATA_CHANGED: /* LCOV_EXCL_START */
@@ -2469,7 +2469,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                bt_event_slot_container[event_index].user_data);
 
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        case BLUETOOTH_PBAP_CONNECTED:
        if (TIZEN_PROFILE_WEARABLE_IVI) {
@@ -2845,7 +2845,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                        bt_pxp_property_info->alert_lvl, bt_event_slot_container[event_index].user_data);
 
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        }
        case BLUETOOTH_EVENT_TDS_ACTIVATION_REQUESTED: {
@@ -2858,7 +2858,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                         tds_act_req_info->tds_data.length, bt_event_slot_container[event_index].user_data);
 
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        }
        case BLUETOOTH_EVENT_TDS_TRANSPORT_DATA_RECEIVED: {
@@ -2880,7 +2880,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                }
                BT_DBG("TDS Complete data blocks received: Remote provider address [%s]", device_addr);
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        }
        case BLUETOOTH_EVENT_TDS_ACTIVATION_RESULT: {
@@ -2891,7 +2891,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                _bt_tds_control_point_activation_result_update(_bt_get_error_code(param->result), device_addr);
 
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        }
        case BLUETOOTH_EVENT_TDS_CONTROL_POINT_ENABLED: {
@@ -2902,7 +2902,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                _bt_tds_control_point_enabled_update(_bt_get_error_code(param->result), device_addr);
 
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        } case BLUETOOTH_EVENT_TDS_ACTIVATION_INDICATION: {
                BT_DBG("BLUETOOTH_EVENT_TDS_ACTIVATION_INDICATION"); /* LCOV_EXCL_LINE */
@@ -2915,7 +2915,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                _bt_tds_control_point_indication_response_update(device_addr, tds_act_ind_res);
 
                if (device_addr != NULL)
-                       free(device_addr); /* LCOV_EXCL_STOP */
+                       free(device_addr);
                break;
        } case BLUETOOTH_EVENT_OTP_SERVER_STATE_CHANGED: {
                bt_otp_server_state_changed_cb cb = bt_event_slot_container[event_index].callback;
@@ -2931,6 +2931,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                break;
        }
 }
+/* LCOV_EXCL_STOP */
 
 static void __bt_le_event_proxy(int event, bluetooth_event_param_t *param, void *user_data)
 {
@@ -2974,7 +2975,7 @@ static void __bt_le_event_proxy(int event, bluetooth_event_param_t *param, void
                } else {
                        break; /* goto default */
                }
-       case BLUETOOTH_EVENT_REMOTE_LE_DEVICE_FOUND:
+       case BLUETOOTH_EVENT_REMOTE_LE_DEVICE_FOUND: /* LCOV_EXCL_START */
                BT_INFO("BLUETOOTH_EVENT_REMOTE_LE_DEVICE_FOUND");
                event_index = BT_EVENT_LE_SCAN_RESULT_UPDATED;
                if (bt_event_slot_container[event_index].callback != NULL) {
@@ -3040,6 +3041,7 @@ static void __bt_le_event_proxy(int event, bluetooth_event_param_t *param, void
                break;
        }
 }
+/* LCOV_EXCL_STOP */
 
 /* LCOV_EXCL_START */
 static int __bt_get_bt_adapter_device_discovery_info_s(bt_adapter_device_discovery_info_s **discovery_info, bluetooth_device_info_t *source_info)
@@ -3175,7 +3177,7 @@ static void __bt_free_bt_adapter_le_device_scan_info_s(bt_adapter_le_device_scan
 
        free(scan_info);
        scan_info = NULL;
-} /* LCOV_EXCL_STOP */
+}
 
 static void __bt_free_tds_scan_result_info_s(bt_tds_transport_block_list_s *discovery_info)
 {
@@ -3194,7 +3196,6 @@ static void __bt_free_tds_scan_result_info_s(bt_tds_transport_block_list_s *disc
 
 }
 
-/* LCOV_EXCL_START */
 static int __bt_get_bt_adapter_le_device_discovery_info_s(
                        bt_adapter_le_device_discovery_info_s **le_discovery_info,
                        bluetooth_le_device_info_t *source_info)
@@ -3483,27 +3484,27 @@ static int __bt_get_cb_index(int event)
                return BT_EVENT_LE_DATA_LENGTH_CHANGED; /* LCOV_EXCL_LINE */
        case BLUETOOTH_PBAP_CONNECTED:
        case BLUETOOTH_PBAP_DISCONNECTED:
-               if (!TIZEN_PROFILE_WEARABLE_IVI)
+               if (!TIZEN_PROFILE_WEARABLE_IVI) /* LCOV_EXCL_LINE */
                        return -1;
-               return BT_EVENT_PBAP_CONNECTION_STATUS;
+               return BT_EVENT_PBAP_CONNECTION_STATUS; /* LCOV_EXCL_LINE */
        case BLUETOOTH_PBAP_PHONEBOOK_SIZE:
-               if (!TIZEN_PROFILE_WEARABLE_IVI)
+               if (!TIZEN_PROFILE_WEARABLE_IVI) /* LCOV_EXCL_LINE */
                        return -1;
-               return BT_EVENT_PBAP_PHONEBOOK_SIZE;
+               return BT_EVENT_PBAP_PHONEBOOK_SIZE; /* LCOV_EXCL_LINE */
        case BLUETOOTH_PBAP_PHONEBOOK_PULL:
-               if (!TIZEN_PROFILE_WEARABLE_IVI)
+               if (!TIZEN_PROFILE_WEARABLE_IVI) /* LCOV_EXCL_LINE */
                        return -1;
-               return BT_EVENT_PBAP_PHONEBOOK_PULL;
+               return BT_EVENT_PBAP_PHONEBOOK_PULL; /* LCOV_EXCL_LINE */
        case BLUETOOTH_PBAP_VCARD_LIST:
-               if (!TIZEN_PROFILE_WEARABLE_IVI)
+               if (!TIZEN_PROFILE_WEARABLE_IVI) /* LCOV_EXCL_LINE */
                        return -1;
-               return BT_EVENT_PBAP_VCARD_LIST;
+               return BT_EVENT_PBAP_VCARD_LIST; /* LCOV_EXCL_LINE */
        case BLUETOOTH_PBAP_VCARD_PULL:
-               if (!TIZEN_PROFILE_WEARABLE_IVI)
+               if (!TIZEN_PROFILE_WEARABLE_IVI) /* LCOV_EXCL_LINE */
                        return -1;
-               return BT_EVENT_PBAP_VCARD_PULL;
+               return BT_EVENT_PBAP_VCARD_PULL; /* LCOV_EXCL_LINE */
        case BLUETOOTH_PBAP_PHONEBOOK_SEARCH:
-               if (!TIZEN_PROFILE_WEARABLE_IVI)
+               if (!TIZEN_PROFILE_WEARABLE_IVI) /* LCOV_EXCL_START */
                        return -1;
                return BT_EVENT_PBAP_PHONEBOOK_SEARCH;
        case BLUETOOTH_EVENT_HF_CONNECTED:
@@ -3565,7 +3566,7 @@ static int __bt_get_cb_index(int event)
        case BLUETOOTH_EVENT_OTP_SERVER_STATE_CHANGED:
                return BT_EVENT_OTP_SERVER_STATE_CHANGED;
        default:
-               return -1;
+               return -1; /* LCOV_EXCL_STOP */
        }
 }
 /* LCOV_EXCL_START */
index 536f91e..450aadd 100644 (file)
@@ -37,7 +37,7 @@ static bool is_map_client_initialized = false;
                BT_ERR("[%s] NOT_INITIALIZED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_INITIALIZED); \
                return BT_ERROR_NOT_INITIALIZED; \
        }
-
+/* LCOV_EXCL_START */
 int __bt_check_map_client_init_status(void)
 {
        if (is_map_client_initialized != true) {
@@ -397,3 +397,4 @@ void bt_map_client_push_message_args_destroy(bt_map_client_push_message_args_h *
        free(*args);
        *args = NULL;
 }
+/* LCOV_EXCL_STOP */
index 716f459..d6b5af1 100644 (file)
@@ -30,7 +30,7 @@
        BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); \
        BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_PBAP_CLIENT); \
 }
-
+/* LCOV_EXCL_START */
 int bt_pbap_client_initialize(void)
 {
        BT_CHECK_PBAP_CLIENT_SUPPORT();
@@ -308,3 +308,4 @@ int bt_pbap_client_search_phone_book(const char *address,
 
        return error_code;
 }
+/* LCOV_EXCL_STOP */
index 98e99af..ae8f4f1 100644 (file)
@@ -123,7 +123,7 @@ int bt_proximity_reporter_destroy(bt_proximity_reporter_h reporter)
                return BT_ERROR_NOT_INITIALIZED;
 
        /* Unregister Reporter Role Here */
-       error_code = _bt_get_error_code(bluetooth_proximity_reporter_unregister());
+       error_code = _bt_get_error_code(bluetooth_proximity_reporter_unregister()); /* LCOV_EXCL_START */
        if (error_code != BT_ERROR_NONE)
                BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
        else
@@ -138,7 +138,7 @@ int bt_proximity_reporter_destroy(bt_proximity_reporter_h reporter)
 
        return error_code;
 }
-/* LCOV_EXCL_START */
+
 int _bt_check_proximity_is_initialized(bool *is_initialized)
 {
        BT_CHECK_GATT_PXP_SUPPORT();
@@ -490,19 +490,19 @@ int bt_proximity_monitor_get_linkloss_alert(bt_proximity_monitor_h monitor, int
        BT_CHECK_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
 
-       if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
+       if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL) /* LCOV_EXCL_LINE */
                return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
 
-       if (!(pxp_monitor_supported_services & BT_PROXIMITY_LINKLOSS_ALERT))
+       if (!(pxp_monitor_supported_services & BT_PROXIMITY_LINKLOSS_ALERT)) /* LCOV_EXCL_LINE */
                return BT_ERROR_NOT_SUPPORTED;
 
        _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address); /* LCOV_EXCL_LINE */
 
-       error_code = _bt_get_error_code(bluetooth_proximity_monitor_get_property(&addr_hex,
+       error_code = _bt_get_error_code(bluetooth_proximity_monitor_get_property(&addr_hex, /* LCOV_EXCL_LINE */
                                                BT_PROXIMITY_LINKLOSS_ALERT, value));
 
-       if (error_code != BT_ERROR_NONE)
-                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
+       if (error_code != BT_ERROR_NONE) /* LCOV_EXCL_LINE */
+                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); /* LCOV_EXCL_LINE */
 
        return error_code;
 }
@@ -517,19 +517,19 @@ int bt_proximity_monitor_get_immediate_alert(bt_proximity_monitor_h monitor, int
        BT_CHECK_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
 
-       if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
+       if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL) /* LCOV_EXCL_LINE */
                return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
 
-       if (!(pxp_monitor_supported_services & BT_PROXIMITY_IMMEDIATE_ALERT))
+       if (!(pxp_monitor_supported_services & BT_PROXIMITY_IMMEDIATE_ALERT)) /* LCOV_EXCL_LINE */
                return BT_ERROR_NOT_SUPPORTED;
 
        _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address); /* LCOV_EXCL_LINE */
 
-       error_code = _bt_get_error_code(bluetooth_proximity_monitor_get_property(&addr_hex,
+       error_code = _bt_get_error_code(bluetooth_proximity_monitor_get_property(&addr_hex, /* LCOV_EXCL_LINE */
                                                BT_PROXIMITY_IMMEDIATE_ALERT, value));
 
-       if (error_code != BT_ERROR_NONE)
-                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
+       if (error_code != BT_ERROR_NONE) /* LCOV_EXCL_LINE */
+                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); /* LCOV_EXCL_LINE */
 
        return error_code;
 }
@@ -544,10 +544,10 @@ int bt_proximity_monitor_get_signal_level(bt_proximity_monitor_h monitor, int *v
        BT_CHECK_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
 
-       if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
+       if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL) /* LCOV_EXCL_LINE */
                return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
 
-       if (!(pxp_monitor_supported_services & BT_PROXIMITY_TX_POWER))
+       if (!(pxp_monitor_supported_services & BT_PROXIMITY_TX_POWER)) /* LCOV_EXCL_LINE */
                return BT_ERROR_NOT_SUPPORTED;
 
        _bt_convert_address_to_hex(&addr_hex, monitor_s->remote_address); /* LCOV_EXCL_LINE */
@@ -555,8 +555,8 @@ int bt_proximity_monitor_get_signal_level(bt_proximity_monitor_h monitor, int *v
        error_code = _bt_get_error_code(bluetooth_proximity_monitor_get_property(&addr_hex,
                                                        BT_PROXIMITY_TX_POWER, value));
 
-       if (error_code != BT_ERROR_NONE)
-                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
+       if (error_code != BT_ERROR_NONE) /* LCOV_EXCL_LINE */
+                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); /* LCOV_EXCL_LINE */
 
        return error_code;
 }
@@ -581,8 +581,8 @@ int bt_proximity_reporter_get_linkloss_alert(const char *remote_address, int *va
        error_code = _bt_get_error_code(bluetooth_proximity_reporter_get_property(&addr_hex,
                                                BT_PROXIMITY_LINKLOSS_ALERT, value));
 
-       if (error_code != BT_ERROR_NONE)
-                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
+       if (error_code != BT_ERROR_NONE) /* LCOV_EXCL_LINE */
+                       BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); /* LCOV_EXCL_LINE */
 
 
        return error_code;
@@ -613,4 +613,3 @@ int bt_proximity_reporter_get_immediate_alert(const char *remote_address, int *v
 
        return error_code;
 }
-/* LCOV_EXCL_STOP */
index 6252d91..2db6e60 100644 (file)
@@ -74,7 +74,7 @@ typedef struct {
 gboolean tds_provider_registered = FALSE;
 GSList *providers_list;
 GSList *tds_seeker_list;
-
+/* LCOV_EXCL_START */
 static int __bt_update_tds_transport_data(bluetooth_device_address_t *address, bt_tds_seeker_s *seeker_s);
 static void __bt_tds_reset_seeker_data(bt_tds_seeker_s *seeker);
 
@@ -1181,3 +1181,4 @@ int bt_tds_seeker_disconnect(bt_tds_seeker_h seeker)
 
        return error_code;
 }
+/* LCOV_EXCL_STOP */