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;
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,
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;
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)
{
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);
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;
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);
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);
}
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)",
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)
__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) {
elm_object_signal_emit(info->layout, "disable", "preview");
}
}
+/* LCOV_EXCL_STOP */
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)
{
return 0;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static int __handle_restart_widget_request(const char *widget_id)
{
GHashTableIter iter;
return 0;
}
+/* LCOV_EXCL_STOP */
static int __instance_event_cb(const char *widget_id, const char *instance_id, int event, void *data)
{
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 &&
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);
}
if (s_info.initialized) {
- ErrPrint("Already initialized");
+ ErrPrint("Already initialized");/* LCOV_EXCL_LINE */
return WIDGET_ERROR_ALREADY_EXIST;
}
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;
}
int *cur_instance_cnt;
if (info->restart)
- return;
+ return;/* LCOV_EXCL_LINE */
DbgPrint("delete: layout(%p)", layout);
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;
__display_overlay_text(info);
return;
+ /* LCOV_EXCL_STOP */
}
} else {
/**
}
}
+/* LCOV_EXCL_START */
static bool __obj_is_visible(Evas_Object *layout)
{
int x, y, w, h;
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;
}
}
}
+/* 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;
}
widget_viewer_evas_activate_faulted_widget(info->layout);
}
+/* LCOV_EXCL_STOP */
static void __destroy_widget_info(gpointer data)
{
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);
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;
}
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;
}
}
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;
}
}
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;
}
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;
}
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) {
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) {
}
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) {
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;
}
}
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) {
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;
}
}
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) {
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;
}
}
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) {
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;
}
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) {
}
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) {
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;
}
}
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) {
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);
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) {
}
if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
- ErrPrint("Permission deny");
- return;
+ ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+ return;/* LCOV_EXCL_LINE */
}
if (!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;
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) {
}
if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
- ErrPrint("Permission deny");
- return;
+ ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+ return;/* LCOV_EXCL_LINE */
}
if (!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;
}
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) {
}
if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
- ErrPrint("Permission deny");
- return;
+ ErrPrint("Permission deny");/* LCOV_EXCL_LINE */
+ return;/* LCOV_EXCL_LINE */
}
if (!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;
}
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) {
}
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) {
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;
}
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) {
}
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) {
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;
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) {
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) {
}
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) {
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);
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) {
}
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) {
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)
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) {
}
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) {
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;
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) {
}
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) {
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;
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) {
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;