Code that is not covered by test code is excluded.
If the code is only for internal API, it is also omitted.
Also, sound-parser.c will be removed and merged into feedback-config.c later.
feedback-config function is excluded because currently it is not used anywhere.
As such, functions that will undergo major structural changes have also been excluded.
Change-Id: I39581b5ce29b5af015e73487fcd2b1854e7d16c2
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
int devices_stop_by_type(feedback_type_e feedback_type)
{
GList *elem;
return -ENOTSUP;
}
+//LCOV_EXCL_STOP
static int load_config_index = 0;
+//LCOV_EXCL_START
static int load_config(struct parse_result *result, void *user_data)
{
struct feedback_config_info *info = (struct feedback_config_info *)user_data;
info->data = NULL;
load_config_index = 0;
}
+//LCOV_EXCL_STOP
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
API int feedback_get_theme_id_internal(feedback_type_e feedback_type, unsigned int *id_of_theme)
{
const struct device_ops *dev = NULL;
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
API int feedback_set_theme_id_internal(feedback_type_e feedback_type, unsigned int id_of_theme)
{
const struct device_ops *dev = NULL;
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
API int feedback_stop_type_internal(feedback_type_e feedback_type)
{
int err;
return FEEDBACK_ERROR_NONE;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
API int feedback_get_theme_ids_internal(feedback_type_e feedback_type, unsigned int *count_of_theme, unsigned int **theme_ids)
{
const struct device_ops *dev = NULL;
return FEEDBACK_ERROR_NONE;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
API int feedback_put_theme_ids_internal(unsigned int **theme_ids)
{
if (!theme_ids || !*theme_ids)
return FEEDBACK_ERROR_NONE;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
API int feedback_play_type_with_flags_internal(feedback_type_e type, feedback_pattern_internal_e internal_pattern, feedback_flag_e flag)
{
const struct device_ops *dev;
return FEEDBACK_ERROR_NONE;
}
+//LCOV_EXCL_STOP
char *conf_file_path;
};
+//LCOV_EXCL_START
static void destroy_hash_table(void *hash_table)
{
if (hash_table)
return -EPERM;
return 0;
-}
\ No newline at end of file
+}
+//LCOV_EXCL_STOP
static unsigned int default_sound_theme_id;
static GList *g_sound_theme_list;
+//LCOV_EXCL_START
static void cleanup_sound_pattern_data(gpointer data)
{
struct sound_pattern_data *sound_data = data;
if (g_sound_theme_list)
g_list_free_full(g_steal_pointer(&g_sound_theme_list), cleanup_sound_theme_element);
}
+//LCOV_EXCL_STOP
return sound_data->path;
}
+//LCOV_EXCL_START
static int get_sound_pattern_data(feedback_pattern_e pattern, const char **path, int *priority)
{
struct sound_pattern_data *sound_data = NULL;
return 0;
}
+//LCOV_EXCL_STOP
inline int is_sound_mode(void)
{
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int sound_get_theme_id(unsigned int *id_of_theme)
{
if (!id_of_theme)
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int sound_set_theme_id(unsigned int id_of_theme)
{
int ret = 0;
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int sound_get_theme_ids(unsigned int *count_of_theme, unsigned int **theme_ids)
{
int ret = 0;
return 0;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int sound_play_with_priority(feedback_pattern_e pattern, bool always)
{
struct stat buf;
}
return -EPERM;
}
+//LCOV_EXCL_STOP
static const struct device_ops sound_device_ops = {
.type = FEEDBACK_TYPE_SOUND,