#define DBUS_ERR_MSG_MAX 24
+//LCOV_EXCL_START
int _convert_dbus_error(const char *error_msg)
{
int ret = MM_ERROR_NONE;
return ret;
}
+//LCOV_EXCL_STOP
int _convert_sound_manager_error_code(const char *func, int code)
{
return ret;
}
+//LCOV_EXCL_START
int _convert_stream_type_for_internal(sound_stream_type_internal_e stream_type_enum, char **stream_type)
{
int ret = MM_ERROR_NONE;
void _set_focus_availability(sound_stream_info_s *stream_info)
{
if (stream_info == NULL || stream_info->stream_type == NULL) {
- //LCOV_EXCL_START
LOGE("invalid argument");
return;
- //LCOV_EXCL_STOP
}
if (!strncmp(stream_info->stream_type, "solo", SOUND_STREAM_TYPE_LEN) ||
!strncmp(stream_info->stream_type, "radio", SOUND_STREAM_TYPE_LEN) ||
return;
}
+//LCOV_EXCL_STOP
int _convert_stream_type_to_change_reason(const char *stream_type, sound_stream_focus_change_reason_e *change_reason)
{
return name;
}
+//LCOV_EXCL_START
int _convert_sample_format_enum_to_str(sound_sample_format_e format, char **format_str)
{
SM_NULL_ARG_CHECK_FOR_PRIV(format_str);
return MM_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int _return_val_if_not_usb_device(sound_device_h device, int ret_val)
{
return;
}
+//LCOV_EXCL_START
void _pa_stream_state_cb(pa_stream *s, void * userdata)
{
pa_stream_state_t state;
return;
}
+//LCOV_EXCL_STOP
int _get_stream_conf_info(const char *stream_type, stream_conf_info_s *info)
{
return ret;
}
+//LCOV_EXCL_START
int _set_route_option(unsigned int index, const char *name, int value)
{
int ret = MM_ERROR_NONE;
return ret;
}
+//LCOV_EXCL_STOP
int _get_volume_max_level(const char *direction, const char *volume_type, unsigned int *max_level)
{
return ret;
}
+//LCOV_EXCL_START
int _get_volume_level(const char *direction, const char *volume_type, unsigned int *level)
{
int ret = MM_ERROR_NONE;
return ret;
}
+//LCOV_EXCL_STOP
int _get_current_volume_type(const char *direction, char **volume_type)
{
return;
}
+//LCOV_EXCL_START
int _is_device_running_by_id(int device_id, bool *is_running)
{
int ret = MM_ERROR_NONE;
return ret;
}
-//LCOV_EXCL_START
+
#define SM_SAMPLE_FORMAT_NUM 4 /* check declaration of sound_sample_format_e */
int _get_supported_sample_formats(int device_id, sound_sample_format_e **formats, unsigned int *num)
{
return ret;
}
//LCOV_EXCL_STOP
+
int _make_pa_connection_and_register_focus(sound_stream_info_s *stream_h, sound_stream_focus_state_changed_cb callback, void *user_data)
{
int ret = MM_ERROR_NONE;
return MM_ERROR_SOUND_INVALID_STATE;
}
+//LCOV_EXCL_START
int _create_virtual_stream(sound_stream_info_s *stream_info, virtual_sound_stream_info_s **virtual_stream)
{
int ret = MM_ERROR_NONE;
pa_threaded_mainloop_unlock(virtual_stream->pa_mainloop);
return ret;
-//LCOV_EXCL_START
+
ERROR_WITH_UNLOCK:
/* UNLOCK the pa_threaded_mainloop */
pa_threaded_mainloop_unlock(virtual_stream->pa_mainloop);
}
}
LOGE("pa_ret(%d)", pa_ret);
-//LCOV_EXCL_STOP
+
ERROR:
return ret;
}
return ret;
}
+//LCOV_EXCL_STOP