From: Junseok, Kim Date: Tue, 8 Sep 2020 02:31:40 +0000 (+0900) Subject: DSSeat: add LCOV_EXCL for event functions X-Git-Tag: accepted/tizen/6.0/unified/20201030.113408~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc530b455818e33dc67689feb53902d88e3d8184;p=platform%2Fcore%2Fuifw%2Flibds.git DSSeat: add LCOV_EXCL for event functions Change-Id: If93d9a62ca14f7f0d0645b7ecbf82afa8beb191f Signed-off-by: Junseok, Kim --- diff --git a/src/DSSeat/DSSeat.cpp b/src/DSSeat/DSSeat.cpp index 87e69fb..bc1470d 100644 --- a/src/DSSeat/DSSeat.cpp +++ b/src/DSSeat/DSSeat.cpp @@ -203,6 +203,7 @@ void DSSeat::slotDeviceAdd(std::shared_ptr device) } } +/*LCOV_EXCL_START*/ void DSSeat::slotDeviceRemove(std::shared_ptr device) { DSLOG_INF("DSSeat", ""); @@ -248,6 +249,7 @@ void DSSeat::slotDeviceRemove(std::shared_ptr device) if (capNeedUpdate) __dswlSeat->setCapability((DSWaylandSeat::seatCapability)cap); } +/*LCOV_EXCL_STOP*/ void DSSeat::addPointer() { @@ -269,6 +271,7 @@ void DSSeat::addPointer() __numPointer++; } +/*LCOV_EXCL_START*/ void DSSeat::addKeyboard() { if (0 < __numKeyboard) @@ -288,7 +291,9 @@ void DSSeat::addKeyboard() __numKeyboard++; } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::addTouch() { if (0 < __numTouch) @@ -308,7 +313,9 @@ void DSSeat::addTouch() __numTouch++; } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::removePointer() { if (0 >= __numPointer) @@ -330,7 +337,9 @@ void DSSeat::removePointer() __pointer = nullptr; } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::removeKeyboard() { if (0 >= __numKeyboard) @@ -352,7 +361,9 @@ void DSSeat::removeKeyboard() __keyboard = nullptr; } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::removeTouch() { if (0 >= __numTouch) @@ -374,6 +385,7 @@ void DSSeat::removeTouch() __touch = nullptr; } } +/*LCOV_EXCL_STOP*/ bool DSSeat::hasPointer() { @@ -400,6 +412,7 @@ std::string DSSeat::getName() return __dswlSeat->getName(); } +/*LCOV_EXCL_START*/ void DSSeat::__onKeyEvent(DSInputKeyboardEvent *ev) { if (__keyboard == nullptr) @@ -411,7 +424,9 @@ void DSSeat::__onKeyEvent(DSInputKeyboardEvent *ev) __dswlSeat->setCurrentEventTime(ev->getTimestamp()); __keyboard->processEvent(ev, nullptr); } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::__onPointerEvent(DSInputMouseEvent *ev) { if (__pointer == nullptr) @@ -463,7 +478,9 @@ void DSSeat::__onPointerEvent(DSInputMouseEvent *ev) __pointer->processEvent(ev, nullptr); } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::__onTouchEvent(DSInputTouchEvent *ev) { int winX; @@ -514,12 +531,16 @@ void DSSeat::__onTouchEvent(DSInputTouchEvent *ev) __dswlSeat->setCurrentEventTime(ev->getTimestamp()); __touch->processEvent(ev, nullptr); } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::__onWindowStackChanged(std::shared_ptr topWindow) { __stackChanged = true; } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::__onWindowCreated(std::shared_ptr window) { DSLOG_INF("DSSeat", "window created : %p (%p)", window, window.get()); @@ -547,7 +568,9 @@ void DSSeat::__onWindowCreated(std::shared_ptr window) } } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSSeat::__onWindowDestroy(std::shared_ptr window) { DSLOG_INF("DSSeat", "window destroy : %p (%p)", window, window.get()); @@ -588,7 +611,9 @@ void DSSeat::__onWindowDestroy(std::shared_ptr window) } } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event) { DSInputKeyboardEvent *ev = static_cast< DSInputKeyboardEvent* >(event); @@ -596,7 +621,9 @@ Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event) return EINA_TRUE; } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ Eina_Bool DSSeat::inputEventHandlerMouse(void *data, int type, void *event) { DSInputMouseEvent *ev = static_cast< DSInputMouseEvent* >(event); @@ -604,7 +631,9 @@ Eina_Bool DSSeat::inputEventHandlerMouse(void *data, int type, void *event) return EINA_TRUE; } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ Eina_Bool DSSeat::inputEventHandlerTouch(void *data, int type, void *event) { DSInputTouchEvent *ev = static_cast< DSInputTouchEvent* >(event); @@ -612,6 +641,7 @@ Eina_Bool DSSeat::inputEventHandlerTouch(void *data, int type, void *event) return EINA_TRUE; } +/*LCOV_EXCL_STOP*/ std::shared_ptr DSSeat::getTopWindow(std::shared_ptr winExcl) {