Add lcov comment 83/153483/1
authorHyunho Kang <hhstark.kang@samsung.com>
Thu, 28 Sep 2017 12:08:04 +0000 (21:08 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 28 Sep 2017 12:30:33 +0000 (21:30 +0900)
- Add comment for feature disabled logic
- Add comment for privilege check logic
- Add comment for pending process logic
- Add comment for touch, mouse related logic
- Add comment for restart widget related logic

Change-Id: I1e5fe236dc79fc6d396812e2f50b910100a6a4a5
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c

index b94dbd3dd882aef0eaf4a8c271b995a915ab20c4..0a1934bdfe438f0a3e5ed181fc355bb6108bd4eb 100644 (file)
@@ -207,15 +207,15 @@ static struct pending_item *__create_pending_item(const char *event,
 
        item = calloc(1, sizeof(struct pending_item));
        if (!item) {
-               LOGE("Out of memory");
-               return NULL;
+               LOGE("Out of memory");/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        item->event = strdup(event);
        if (!item->event) {
-               LOGE("Out of memory");
-               free(item);
-               return NULL;
+               LOGE("Out of memory");/* LCOV_EXCL_LINE */
+               free(item);/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        item->w = w;
@@ -229,19 +229,19 @@ static int __instance_pause(struct widget_info *info)
        Evas_Object *tbm_obj;
 
        if (!info) {
-               LOGE("instance id is invalid");
-               return -1;
+               LOGE("instance id is invalid");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        if (!info->layout) {
-               LOGE("invalid layout object");
-               return -1;
+               LOGE("invalid layout object");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        tbm_obj = elm_object_part_content_get(info->layout, "tbm,widget");
        if (!tbm_obj) {
-               LOGE("widget object is invalid");
-               return -1;
+               LOGE("widget object is invalid");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        return screen_connector_toolkit_evas_send_visibility(tbm_obj,
@@ -253,25 +253,26 @@ static int __instance_resume(struct widget_info *info)
        Evas_Object *tbm_obj;
 
        if (!info) {
-               LOGE("instance id is invalid");
-               return -1;
+               LOGE("instance id is invalid");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        if (!info->layout) {
-               LOGE("invalid layout object");
-               return -1;
+               LOGE("invalid layout object");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        tbm_obj = elm_object_part_content_get(info->layout, "tbm,widget");
        if (!tbm_obj) {
-               LOGE("widget object is invalid");
-               return -1;
+               LOGE("widget object is invalid");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        return screen_connector_toolkit_evas_send_visibility(tbm_obj,
                        VISIBILITY_TYPE_UNOBSCURED);
 }
 
+/* LCOV_EXCL_START */
 static void __process_pending_item(struct pending_item *item, struct widget_info *info)
 {
        int ret;
@@ -290,6 +291,7 @@ static void __process_pending_item(struct pending_item *item, struct widget_info
        LOGD("instance_id(%s), event(%s), result(%d)",
                        info->instance_id, item->event, ret);
 }
+/* LCOV_EXCL_STOP */
 
 static void __flush_pending_queue(struct widget_info *info)
 {
@@ -314,16 +316,16 @@ static void __push_pending_queue(struct widget_info *info,
                struct pending_item *item)
 {
        if (!item) {
-               LOGE("Invalid parameter");
-               return;
+               LOGE("Invalid parameter");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!info->pending_queue)
                info->pending_queue = g_queue_new();
 
        if (!info->pending_queue) {
-               LOGE("Out of memory");
-               return;
+               LOGE("Out of memory");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        g_queue_push_tail(info->pending_queue, item);
@@ -342,8 +344,8 @@ static inline bool __is_widget_feature_enabled(void)
        ret = system_info_get_platform_bool(
                        "http://tizen.org/feature/shell.appwidget", &feature);
        if (ret != SYSTEM_INFO_ERROR_NONE) {
-               ErrPrint("failed to get system info");
-               return false;
+               ErrPrint("failed to get system info");/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        retrieved = true;
@@ -375,8 +377,8 @@ static int __check_privilege(const char *privilege)
 
        ret = read(fd, subject_label, SMACK_LABEL_LEN);
        if (ret < 0) {
-               ErrPrint("read is failed");
-               close(fd);
+               ErrPrint("read is failed");/* LCOV_EXCL_LINE */
+               close(fd);/* LCOV_EXCL_LINE */
                goto ERROR;
        }
        close(fd);
@@ -400,8 +402,8 @@ ERROR:
 static void __smart_callback_call(Evas_Object *obj, const char *signal, void *cbdata)
 {
        if (!obj) {
-               DbgPrint("widget is deleted, ignore smart callback call");
-               return;
+               DbgPrint("widget is deleted, ignore smart callback call");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
        evas_object_smart_callback_call(obj, signal, cbdata);
 }
@@ -413,20 +415,20 @@ static void __screen_connector_toolkit_evas_added_cb(const char *appid, const ch
        int x, y, w, h;
 
        if (!image) {
-               ErrPrint("Invalid parameters");
-               return;
+               ErrPrint("Invalid parameters");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        info = (struct widget_info *)data;
        if (!info) {
-               ErrPrint("Unable to find a proper object");
-               evas_object_del(image);
+               ErrPrint("Unable to find a proper object");/* LCOV_EXCL_LINE */
+               evas_object_del(image);/* LCOV_EXCL_LINE */
                return;
        }
 
        if (info->restart || (info->instance_id == NULL) || (strcmp(info->instance_id, instance_id) != 0)) {
-               ErrPrint("Wrong added info, %s %s", appid, info->widget_id);
-               return;
+               ErrPrint("Wrong added info, %s %s", appid, info->widget_id);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        DbgPrint("widget added: %s, widget_id : %s, instance : %s, (%p)",
@@ -461,8 +463,8 @@ static void __screen_connector_toolkit_evas_removed_cb(const char *appid, const
 
        info = (struct widget_info *)data;
        if (!info) {
-               ErrPrint("Unable to find a proper object");
-               return;
+               ErrPrint("Unable to find a proper object");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (info->restart)
@@ -484,11 +486,14 @@ static void __screen_connector_toolkit_evas_removed_cb(const char *appid, const
        __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &event_info);
 }
 
+/* LCOV_EXCL_START */
 static void __screen_connector_toolkit_evas_updated_cb(const char *appid, const char *instance_id, int pid,
        Evas_Object *image, void *data)
 {
 }
+/* LCOV_EXCL_STOP */
 
+/* LCOV_EXCL_START */
 static void __display_overlay_text(struct widget_info *info)
 {
        if (!info) {
@@ -501,6 +506,7 @@ static void __display_overlay_text(struct widget_info *info)
                elm_object_signal_emit(info->layout, "disable", "preview");
        }
 }
+/* LCOV_EXCL_STOP */
 
 static void __push_event_queue(struct widget_info *info, int event)
 {
@@ -516,7 +522,7 @@ static void __push_event_queue(struct widget_info *info, int event)
        g_queue_push_tail(info->event_queue, GINT_TO_POINTER(event));
 }
 
-
+/* LCOV_EXCL_START */
 static int __restart_terminated_widget(const char *widget_id)
 {
 
@@ -571,7 +577,9 @@ static int __restart_terminated_widget(const char *widget_id)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
+/* LCOV_EXCL_START */
 static int __handle_restart_widget_request(const char *widget_id)
 {
        GHashTableIter iter;
@@ -604,6 +612,7 @@ static int __handle_restart_widget_request(const char *widget_id)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 static int __instance_event_cb(const char *widget_id, const char *instance_id, int event, void *data)
 {
@@ -622,8 +631,8 @@ static int __instance_event_cb(const char *widget_id, const char *instance_id, i
 
        info = g_hash_table_lookup(s_info.widget_table, instance_id);
        if (!info) {
-               ErrPrint("Unable to find a proper object");
-               return -1;
+               ErrPrint("Unable to find a proper object");/* LCOV_EXCL_LINE */
+               return -1;/* LCOV_EXCL_LINE */
        }
 
        if (event != WIDGET_INSTANCE_EVENT_FAULT &&
@@ -694,9 +703,9 @@ static int __instance_event_cb(const char *widget_id, const char *instance_id, i
                handle = widget_instance_get_instance(info->widget_id,
                                info->instance_id);
                if (!handle) {
-                       ErrPrint("instance handle of widget(%s) is invalid data",
-                                       info->instance_id);
-                       break;
+                       ErrPrint("instance handle of widget(%s) is invalid data",/* LCOV_EXCL_LINE */
+                                       info->instance_id);/* LCOV_EXCL_LINE */
+                       break;/* LCOV_EXCL_LINE */
                }
 
                widget_instance_get_error_code(handle, &err);
@@ -770,7 +779,7 @@ EAPI int widget_viewer_evas_init(Evas_Object *win)
        }
 
        if (s_info.initialized) {
-               ErrPrint("Already initialized");
+               ErrPrint("Already initialized");/* LCOV_EXCL_LINE */
                return WIDGET_ERROR_ALREADY_EXIST;
        }
 
@@ -785,7 +794,7 @@ EAPI int widget_viewer_evas_init(Evas_Object *win)
        screen_connector_toolkit_evas_start_visibility_notify();
 
        if (aul_app_get_appid_bypid(getpid(), app_id, sizeof(app_id)) != AUL_R_OK) {
-               ErrPrint("failed to get appid of pid:%d", getpid());
+               ErrPrint("failed to get appid of pid:%d", getpid());/* LCOV_EXCL_LINE */
                return WIDGET_ERROR_INVALID_PARAMETER;
        }
 
@@ -954,7 +963,7 @@ static void __del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
        int *cur_instance_cnt;
 
        if (info->restart)
-               return;
+               return;/* LCOV_EXCL_LINE */
 
        DbgPrint("delete: layout(%p)", layout);
 
@@ -1031,6 +1040,7 @@ static void __resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_in
                LOGW("launch a widget instance: %s", info->instance_id);
                info->pid = widget_instance_launch(info->instance_id, info->content_info, w, h);
                if (info->pid < 0) {
+                       /* LCOV_EXCL_START */
                        struct widget_evas_event_info event_info;
                        ErrPrint("Failed to launch an widget");
                        event_info.error = info->pid;
@@ -1041,6 +1051,7 @@ static void __resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_in
                        __display_overlay_text(info);
 
                        return;
+                       /* LCOV_EXCL_STOP */
                }
        } else {
                /**
@@ -1057,6 +1068,7 @@ static void __resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_in
        }
 }
 
+/* LCOV_EXCL_START */
 static bool __obj_is_visible(Evas_Object *layout)
 {
        int x, y, w, h;
@@ -1085,7 +1097,9 @@ static bool __obj_is_visible(Evas_Object *layout)
 
        return false;
 }
+/* LCOV_EXCL_STOP */
 
+/* LCOV_EXCL_START */
 static void __move_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
 {
        struct widget_info *info = data;
@@ -1106,7 +1120,9 @@ static void __move_cb(void *data, Evas *e, Evas_Object *layout, void *event_info
                }
        }
 }
+/* LCOV_EXCL_STOP */
 
+/* LCOV_EXCL_START */
 static void _clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
 {
        struct widget_info *info = data;
@@ -1117,6 +1133,7 @@ static void _clicked_cb(void *data, Evas_Object *obj, const char *emission, cons
        }
        widget_viewer_evas_activate_faulted_widget(info->layout);
 }
+/* LCOV_EXCL_STOP */
 
 static void __destroy_widget_info(gpointer data)
 {
@@ -1159,8 +1176,8 @@ static struct widget_info *create_info(Evas_Object *parent, const char *widget_i
 
        info = (struct widget_info *)calloc(1, sizeof(*info));
        if (!info) {
-               ErrPrint("malloc: %s", strerror_r(errno, err_buf, sizeof(err_buf)));
-               goto out;
+               ErrPrint("malloc: %s", strerror_r(errno, err_buf, sizeof(err_buf)));/* LCOV_EXCL_LINE */
+               goto out;/* LCOV_EXCL_LINE */
        }
 
        info->widget_id = strdup(widget_id);
@@ -1176,7 +1193,7 @@ static struct widget_info *create_info(Evas_Object *parent, const char *widget_i
                goto out;
 
        if (elm_layout_file_set(info->layout, WIDGET_VIEWER_EVAS_RESOURCE_EDJ, "layout") == EINA_FALSE) {
-               evas_object_del(info->layout);
+               evas_object_del(info->layout);/* LCOV_EXCL_LINE */
                goto out;
        }
 
@@ -1219,21 +1236,21 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
        int *cur_instance_cnt;
 
        if (!__is_widget_feature_enabled()) {
-               ErrPrint("widget is not supported");
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
+               ErrPrint("widget is not supported");/* LCOV_EXCL_LINE */
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
        max_instance_cnt = widget_service_get_widget_max_count(widget_id);
        if (max_instance_cnt < 0) {
-               set_last_result(WIDGET_ERROR_FAULT);
-               ErrPrint("get widget max instance count fail");
+               set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
+               ErrPrint("get widget max instance count fail");/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1256,8 +1273,8 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
        }
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               ErrPrint("Widget Feature is disabled");
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               ErrPrint("Widget Feature is disabled");/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1280,7 +1297,7 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
        }
 
        if (widget_instance_create(widget_id, &instance_id) < 0) {
-               set_last_result(WIDGET_ERROR_FAULT);
+               set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1292,9 +1309,9 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
 
        widget_instance_info = create_info(parent, widget_id, instance_id, content_info);
        if (!widget_instance_info) {
-               set_last_result(WIDGET_ERROR_FAULT);
-               ErrPrint("Unable to create an information object");
-               widget_instance_destroy(instance_id);
+               set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
+               ErrPrint("Unable to create an information object");/* LCOV_EXCL_LINE */
+               widget_instance_destroy(instance_id);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1372,8 +1389,8 @@ EAPI int widget_viewer_evas_pause_widget(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               ErrPrint("widget(%p) don't have the info", widget);
-               return WIDGET_ERROR_INVALID_PARAMETER;
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
        }
 
        if (info->visibility_freeze) {
@@ -1419,8 +1436,8 @@ EAPI int widget_viewer_evas_resume_widget(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               ErrPrint("widget(%p) don't have the info", widget);
-               return WIDGET_ERROR_INVALID_PARAMETER;
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
        }
 
        if (info->visibility_freeze) {
@@ -1458,9 +1475,9 @@ EAPI const char *widget_viewer_evas_get_content_info(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return NULL;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1471,8 +1488,8 @@ EAPI const char *widget_viewer_evas_get_content_info(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1496,9 +1513,9 @@ EAPI const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return NULL;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1509,8 +1526,8 @@ EAPI const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1536,9 +1553,9 @@ EAPI const char *widget_viewer_evas_get_widget_id(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return NULL;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1549,8 +1566,8 @@ EAPI const char *widget_viewer_evas_get_widget_id(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return NULL;
        }
 
@@ -1571,9 +1588,9 @@ EAPI double widget_viewer_evas_get_period(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return -1.0f;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return -1.0f;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1584,8 +1601,8 @@ EAPI double widget_viewer_evas_get_period(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return -1.0f;
        }
 
@@ -1598,8 +1615,8 @@ EAPI void widget_viewer_evas_cancel_click_event(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -1609,9 +1626,9 @@ EAPI void widget_viewer_evas_cancel_click_event(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1622,8 +1639,8 @@ EAPI void widget_viewer_evas_cancel_click_event(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return;
        }
 
@@ -1655,8 +1672,8 @@ EAPI int widget_viewer_evas_feed_mouse_up_event(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               return WIDGET_ERROR_PERMISSION_DENIED;
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_PERMISSION_DENIED;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1672,8 +1689,8 @@ EAPI int widget_viewer_evas_feed_mouse_up_event(Evas_Object *widget)
 
        remote_obj = elm_object_part_content_get(widget, "tbm,widget");
        if (!remote_obj) {
-               ErrPrint("widget object is invalid");
-               return WIDGET_ERROR_INVALID_PARAMETER;
+               ErrPrint("widget object is invalid");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
        }
 
        screen_connector_toolkit_evas_send_mouse_up(remote_obj);
@@ -1692,8 +1709,8 @@ EAPI void widget_viewer_evas_disable_preview(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -1703,8 +1720,8 @@ EAPI void widget_viewer_evas_disable_preview(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               return;
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1715,9 +1732,9 @@ EAPI void widget_viewer_evas_disable_preview(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
-               return;
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        info->disable_preview = 1;
@@ -1737,8 +1754,8 @@ EAPI void widget_viewer_evas_disable_overlay_text(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -1748,8 +1765,8 @@ EAPI void widget_viewer_evas_disable_overlay_text(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               return;
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1760,8 +1777,8 @@ EAPI void widget_viewer_evas_disable_overlay_text(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return;
        }
 
@@ -1781,8 +1798,8 @@ EAPI void widget_viewer_evas_disable_loading(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -1792,8 +1809,8 @@ EAPI void widget_viewer_evas_disable_loading(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               return;
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1804,8 +1821,8 @@ EAPI void widget_viewer_evas_disable_loading(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return;
        }
 
@@ -1820,8 +1837,8 @@ EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
        screen_connector_toolkit_evas_ops ops;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -1831,9 +1848,9 @@ EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1844,8 +1861,8 @@ EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
                return;
        }
 
@@ -1902,8 +1919,8 @@ EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return false;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -1913,9 +1930,9 @@ EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return false;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1926,9 +1943,9 @@ EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
-               return false;
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        return info->is_faulted;
@@ -1944,13 +1961,13 @@ EAPI int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibi
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
-               ErrPrint("widget viewer evas is not initialized");
-               return WIDGET_ERROR_FAULT;
+               ErrPrint("widget viewer evas is not initialized");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_FAULT;/* LCOV_EXCL_LINE */
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               return WIDGET_ERROR_PERMISSION_DENIED;
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_PERMISSION_DENIED;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -1966,8 +1983,8 @@ EAPI int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibi
 
        tbm_obj = elm_object_part_content_get(widget, "tbm,widget");
        if (!tbm_obj) {
-               ErrPrint("widget object is invalid\n");
-               return WIDGET_ERROR_INVALID_PARAMETER;
+               ErrPrint("widget object is invalid\n");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
        }
 
        if (status == WIDGET_VISIBILITY_STATUS_SHOW_FIXED) {
@@ -2007,8 +2024,8 @@ EAPI int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               ErrPrint("Permission deny");
-               return WIDGET_ERROR_PERMISSION_DENIED;
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_PERMISSION_DENIED;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -2018,14 +2035,14 @@ EAPI int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               ErrPrint("widget(%p) don't have the info", widget);
-               return WIDGET_ERROR_INVALID_PARAMETER;
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
        }
 
        tbm_obj = elm_object_part_content_get(widget, "tbm,widget");
        if (!tbm_obj) {
-               ErrPrint("widget object is invalid\n");
-               return WIDGET_ERROR_INVALID_PARAMETER;
+               ErrPrint("widget object is invalid\n");/* LCOV_EXCL_LINE */
+               return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
        }
 
        screen_connector_toolkit_evas_thaw_visibility(tbm_obj);
@@ -2039,8 +2056,8 @@ EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return false;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -2050,9 +2067,9 @@ EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return false;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -2063,9 +2080,9 @@ EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
-               return false;
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (info->visibility_freeze)
@@ -2079,8 +2096,8 @@ EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return false;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -2090,9 +2107,9 @@ EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return false;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -2103,9 +2120,9 @@ EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
-               return false;
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return false;/* LCOV_EXCL_LINE */
        }
 
        return true;
@@ -2116,8 +2133,8 @@ EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -2127,9 +2144,9 @@ EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)
        }
 
        if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        if (!widget) {
@@ -2140,9 +2157,9 @@ EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
-               return;
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return;/* LCOV_EXCL_LINE */
        }
 
        info->permanent_delete = flag;
@@ -2154,14 +2171,14 @@ EAPI const char *widget_viewer_evas_get_widget_instance_id(Evas_Object *widget)
        struct widget_info *info;
 
        if (!__is_widget_feature_enabled()) {
-               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
-               return NULL;
+               set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        if (__check_privilege("http://tizen.org/privilege/widget.viewer") < 0) {
-               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);
-               ErrPrint("Permission deny");
-               return NULL;
+               set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
+               ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        if (!s_info.initialized) {
@@ -2178,9 +2195,9 @@ EAPI const char *widget_viewer_evas_get_widget_instance_id(Evas_Object *widget)
 
        info = evas_object_data_get(widget, WIDGET_INFO_TAG);
        if (!info) {
-               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
-               ErrPrint("widget(%p) don't have the info", widget);
-               return NULL;
+               set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+               ErrPrint("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
+               return NULL;/* LCOV_EXCL_LINE */
        }
 
        return (const char *)info->instance_id;