return NULL;
}
+/* LCOV_EXCL_START */
API int
efl_util_screenshot_set_auto_rotation(efl_util_screenshot_h screenshot, int set)
{
return EFL_UTIL_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
struct _efl_util_gesture_h
{
API int EFL_UTIL_EVENT_GESTURE_TAP = 0;
API int EFL_UTIL_EVENT_GESTURE_PALM_COVER = 0;
+/* LCOV_EXCL_START */
static void
_cb_gesture_edge_swipe_notify(void *data EINA_UNUSED, struct tizen_gesture *tizen_gesture EINA_UNUSED, uint32_t fingers EINA_UNUSED, uint32_t edge EINA_UNUSED, uint32_t edge_size EINA_UNUSED, uint32_t start_point EINA_UNUSED, uint32_t end_point EINA_UNUSED, uint32_t error)
{
ecore_event_add(EFL_UTIL_EVENT_GESTURE_TAP, ev, NULL, NULL);
}
+/* LCOV_EXCL_STOP */
static void
_cb_gesture_palm_cover_notify(void *data EINA_UNUSED, struct tizen_gesture *tizen_gesture EINA_UNUSED, struct wl_surface *surface EINA_UNUSED, uint32_t error)
_eflutil.wl.gesture.request_notified = error;
}
+/* LCOV_EXCL_START */
static void
_cb_gesture_palm_cover(void *data EINA_UNUSED, struct tizen_gesture *tizen_gesture EINA_UNUSED, struct wl_surface *surface, uint32_t mode, uint32_t duration, int cx, int cy, uint32_t size, wl_fixed_t pressure)
{
ecore_event_add(EFL_UTIL_EVENT_GESTURE_PALM_COVER, ev, NULL, NULL);
}
+/* LCOV_EXCL_STOP */
static void
_cb_gesture_activate_notify(void *data EINA_UNUSED, struct tizen_gesture *tizen_gesture EINA_UNUSED, struct wl_surface *surface EINA_UNUSED, uint32_t type EINA_UNUSED, uint32_t active EINA_UNUSED, uint32_t error)
}
}
+/* LCOV_EXCL_START */
static int
_efl_util_gesture_grab_edge_swipe(efl_util_gesture_data data)
{
return ECORE_CALLBACK_CANCEL;
}
}
+/* LCOV_EXCL_STOP */
API efl_util_gesture_h
efl_util_gesture_initialize(void)
gesture_h = (efl_util_gesture_h)calloc(1, sizeof(struct _efl_util_gesture_h));
if (!gesture_h)
{
- set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
- goto out;
+ set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
+ goto out; /* LCOV_EXCL_LINE */
}
if (_wl_init() == (int)EINA_FALSE)
{
- set_last_result(EFL_UTIL_ERROR_NOT_SUPPORTED);
- goto out;
+ set_last_result(EFL_UTIL_ERROR_NOT_SUPPORTED); /* LCOV_EXCL_LINE */
+ goto out; /* LCOV_EXCL_LINE */
}
while (!_eflutil.wl.gesture.proto)
- wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue);
+ wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); /* LCOV_EXCL_LINE */
if (_eflutil.wl.gesture.event_init <= 0)
{
if (ecore_event_init() <= 0)
{
- set_last_result(EFL_UTIL_ERROR_NOT_SUPPORTED);
- goto out;
+ set_last_result(EFL_UTIL_ERROR_NOT_SUPPORTED); /* LCOV_EXCL_LINE */
+ goto out; /* LCOV_EXCL_LINE */
}
EFL_UTIL_EVENT_GESTURE_EDGE_SWIPE = ecore_event_type_new();
EFL_UTIL_EVENT_GESTURE_EDGE_DRAG = ecore_event_type_new();
return gesture_h;
out:
+/* LCOV_EXCL_START */
if (gesture_h)
{
free(gesture_h);
gesture_h = NULL;
}
return gesture_h;
+/* LCOV_EXCL_STOP */
}
API int
data = (Efl_Util_Gesture_Edge_Swipe_Grab_Data *)calloc(1, sizeof(Efl_Util_Gesture_Edge_Swipe_Grab_Data));
if (!data)
{
- set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
- return NULL;
+ set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
+ return NULL; /* LCOV_EXCL_LINE */
}
data->base.type = TIZEN_GESTURE_TYPE_EDGE_SWIPE;
data = (Efl_Util_Gesture_Edge_Drag_Grab_Data *)calloc(1, sizeof(Efl_Util_Gesture_Edge_Drag_Grab_Data));
if (!data)
{
- set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
- return NULL;
+ set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
+ return NULL; /* LCOV_EXCL_LINE */
}
data->base.type = TIZEN_GESTURE_TYPE_EDGE_DRAG;
data = (Efl_Util_Gesture_Tap_Grab_Data *)calloc(1, sizeof(Efl_Util_Gesture_Tap_Grab_Data));
if (!data)
{
- set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
- return NULL;
+ set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
+ return NULL; /* LCOV_EXCL_LINE */
}
data->base.type = TIZEN_GESTURE_TYPE_TAP;
data = (Efl_Util_Gesture_Palm_Cover_Grab_Data *)calloc(1, sizeof(Efl_Util_Gesture_Palm_Cover_Grab_Data));
if (!data)
{
- set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
- return NULL;
+ set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY); /* LCOV_EXCL_LINE */
+ return NULL; /* LCOV_EXCL_LINE */
}
data->base.type = TIZEN_GESTURE_TYPE_PALM_COVER;
return EFL_UTIL_ERROR_NONE;
}
+/* LCOV_EXCL_START */
API int
efl_util_gesture_grab(efl_util_gesture_h gesture_h, efl_util_gesture_data data)
{
return ret;
}
+/* LCOV_EXCL_STOP */
API int
efl_util_gesture_select(efl_util_gesture_h gesture_h, Evas_Object *window, efl_util_gesture_data data)
return ret;
}
+/* LCOV_EXCL_START */
API int
efl_util_gesture_activate_set(efl_util_gesture_h gesture_h, unsigned int type, Eina_Bool active)
{
return ret;
}
+/* LCOV_EXCL_STOP */
API int
efl_util_gesture_activate_set_on_window(efl_util_gesture_h gesture_h, Evas_Object *window, unsigned int type, Eina_Bool active)