Fix svace issue 50/178850/1
authorshyun.min <shyun.min@samsung.com>
Mon, 14 May 2018 08:53:29 +0000 (17:53 +0900)
committershyun.min <shyun.min@samsung.com>
Mon, 14 May 2018 08:55:49 +0000 (17:55 +0900)
Change-Id: I856dcb848a4f343b724b1491bdafb56152f83360

UIAutomator/dbus.cpp
UIAutomator/touch.cpp

index d5550d5cc4be932419fc632c5fb15b2ac25bae02..9672527cfd18ec3f025dae529fc830404b88317d 100644 (file)
@@ -128,11 +128,12 @@ void DBusSignal::DBusAppSignalHandler(void *data, DBusMessage *msg) {
     dbus_message_iter_next(&args);
     dbus_message_iter_get_basic(&args, &app_name);
     _D("pid=%u app_name=%s", pid, app_name);
-  }
 
-  if (strstr(app_name, "syspopup") != NULL) {
-    kill(pid, 9);
-    _D("PopupController kills %s during UI testing", app_name);
+    if (strstr(app_name, "syspopup") != NULL) {
+      kill(pid, 9);
+      _D("PopupController kills %s during UI testing", app_name);
+    }
   }
+
   return;
 }
index ce45f3c7e67629eb504a2b68cf4f479f91e2962a..a5ba77ba4c4a26d02f029702fc2a166e9dc901d0 100644 (file)
@@ -156,7 +156,7 @@ Touch::Point Touch::GetEndPoint(int xStart, int yStart, int xSpeed, int ySpeed)
     yDiff = ABS_Y_MAX / 4;
   } else {
     xDiff = ABS_X_MAX / 4;
-    yDiff = ABS_Y_MAX / 4 / ratio;
+    yDiff = (int)(ABS_Y_MAX / 4) / ratio;
   }
 
   xDiff = SigNumber(xSpeed) * xDiff;