free(preview_path);
}
+/* LCOV_EXCL_START */
static void __screen_connector_toolkit_evas_removed_cb(const char *appid, const char *instance_id, int pid,
Evas_Object *image, void *data)
{
__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)
{
info->event_queue = NULL;
}
+/* LCOV_EXCL_START */
static void __aul_widget_event_cb(const char *event_name,
bundle *event_data,
void *user_data)
free(id);
pthread_mutex_unlock(&__mutex);
}
+/* LCOV_EXCL_STOP */
API int widget_viewer_evas_init(Evas_Object *win)
{
LOGE("widget viewer evas is not initialized");
return WIDGET_ERROR_FAULT;
}
-
+/* LCOV_EXCL_START */
if (__check_privilege(WIDGET_PRIVILEGE) < 0)
return WIDGET_ERROR_PERMISSION_DENIED;
pthread_mutex_unlock(&__mutex);
return WIDGET_ERROR_NONE;
+/* LCOV_EXCL_STOP */
}
API int widget_viewer_evas_notify_orientation_of_viewer(int orientation)
if (!__is_widget_feature_enabled()) {
LOGE("widget is not supported");/* LCOV_EXCL_LINE */
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);/* LCOV_EXCL_LINE */
- return NULL;
+ return NULL;/* LCOV_EXCL_LINE */
}
if (__check_privilege(WIDGET_PRIVILEGE) < 0) {
LOGE("Permission deny");/* LCOV_EXCL_LINE */
set_last_result(WIDGET_ERROR_PERMISSION_DENIED);/* LCOV_EXCL_LINE */
- return NULL;
+ return NULL;/* LCOV_EXCL_LINE */
}
if (!widget_id) {
}
if (!parent) {
- set_last_result(WIDGET_ERROR_INVALID_PARAMETER);
- LOGE("parent(window) object is invalid");
- return NULL;
+ set_last_result(WIDGET_ERROR_INVALID_PARAMETER);/* LCOV_EXCL_LINE */
+ LOGE("parent(window) object is invalid");/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
pthread_mutex_lock(&__mutex);
if (s_info.widget_table == NULL || s_info.instance_cnt_table == NULL) {
- LOGE("table is NULL");
- pthread_mutex_unlock(&__mutex);
- return NULL;
+ LOGE("table is NULL");/* LCOV_EXCL_LINE */
+ pthread_mutex_unlock(&__mutex);/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
max_instance_cnt = widget_service_get_widget_max_count(widget_id);
if (max_instance_cnt < 0) {
- set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
- LOGE("get widget max instance count fail");/* LCOV_EXCL_LINE */
+ set_last_result(WIDGET_ERROR_FAULT);
+ LOGE("get widget max instance count fail");
pthread_mutex_unlock(&__mutex);
return NULL;
}
if (cur_instance_cnt == NULL) {
cur_instance_cnt = (int *)calloc(1, sizeof(int));
if (cur_instance_cnt == NULL) {
- LOGE("Fail to calloc instance cnt");
- set_last_result(WIDGET_ERROR_FAULT);
- pthread_mutex_unlock(&__mutex);
- return NULL;
+ LOGE("Fail to calloc instance cnt");/* LCOV_EXCL_LINE */
+ set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
+ pthread_mutex_unlock(&__mutex);/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
*cur_instance_cnt = 0;
g_hash_table_insert(s_info.instance_cnt_table, strdup(widget_id), cur_instance_cnt);
}
if (!s_info.initialized) {
- set_last_result(WIDGET_ERROR_FAULT);
- LOGE("Widget viewer evas is not initialized");
- pthread_mutex_unlock(&__mutex);
- return NULL;
+ set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
+ LOGE("Widget viewer evas is not initialized");/* LCOV_EXCL_LINE */
+ pthread_mutex_unlock(&__mutex);/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
if (widget_instance_create(widget_id, &instance_id) < 0) {
set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
- pthread_mutex_unlock(&__mutex);
- return NULL;
+ pthread_mutex_unlock(&__mutex);/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
if (!instance_id) {
- set_last_result(WIDGET_ERROR_FAULT);
- LOGE("Failed to get instance_id: %s", widget_id);
- pthread_mutex_unlock(&__mutex);
- return NULL;
+ set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
+ LOGE("Failed to get instance_id: %s", widget_id);/* LCOV_EXCL_LINE */
+ pthread_mutex_unlock(&__mutex);/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
widget_instance_info = create_info(parent, widget_id, instance_id, content_info);
set_last_result(WIDGET_ERROR_FAULT);/* LCOV_EXCL_LINE */
LOGE("Unable to create an information object");/* LCOV_EXCL_LINE */
widget_instance_destroy(instance_id);/* LCOV_EXCL_LINE */
- pthread_mutex_unlock(&__mutex);
- return NULL;
+ pthread_mutex_unlock(&__mutex);/* LCOV_EXCL_LINE */
+ return NULL;/* LCOV_EXCL_LINE */
}
if (content_info)
}
if (info->visibility_freeze) {
- LOGE("widget(%p) is freezing visibility(%d)", widget, info->visibility_freeze);
- return WIDGET_ERROR_DISABLED;
+ LOGE("widget(%p) is freezing visibility(%d)", widget, info->visibility_freeze);/* LCOV_EXCL_LINE */
+ return WIDGET_ERROR_DISABLED;/* LCOV_EXCL_LINE */
}
if (info->is_created) {
- ret = __instance_pause(info);
- if (ret < 0) {
- LOGE("Fail to pause the widget(%p):(%d)", widget, ret);
- return ret;
+ ret = __instance_pause(info);/* LCOV_EXCL_LINE */
+ if (ret < 0) {/* LCOV_EXCL_LINE */
+ LOGE("Fail to pause the widget(%p):(%d)", widget, ret);/* LCOV_EXCL_LINE */
+ return ret;/* LCOV_EXCL_LINE */
}
} else {
item = __create_pending_item("pause", 0, 0);
LOGE("widget object is invalid");
return WIDGET_ERROR_INVALID_PARAMETER;
}
-
+/* LCOV_EXCL_START */
info = evas_object_data_get(widget, WIDGET_INFO_TAG);
if (!info) {
- LOGE("widget(%p) don't have the info", widget);/* LCOV_EXCL_LINE */
- return WIDGET_ERROR_INVALID_PARAMETER;/* LCOV_EXCL_LINE */
+ LOGE("widget(%p) don't have the info", widget);
+ return WIDGET_ERROR_INVALID_PARAMETER;
}
if (info->visibility_freeze) {
}
return WIDGET_ERROR_NONE;
+/* LCOV_EXCL_STOP */
}
API const char *widget_viewer_evas_get_content_info(Evas_Object *widget)
LOGE("widget(%p) don't have the info", widget);
return WIDGET_ERROR_INVALID_PARAMETER;
}
-
+/* LCOV_EXCL_START */
tbm_obj = elm_object_part_content_get(widget, "tbm,widget");
if (!tbm_obj) {
LOGE("widget object is invalid\n");/* LCOV_EXCL_LINE */
}
return WIDGET_ERROR_NONE;
+/* LCOV_EXCL_STOP */
}
API int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
return (const char *)info->instance_id;
}
+/* LCOV_EXCL_START */
API int widget_viewer_evas_set_delayed_resuming_time(int time)
{
if (time < 0 || time > 10000)
return WIDGET_ERROR_NONE;
}
-
+/* LCOV_EXCL_STOP */
/* End of a file */