libaurum: prevent from infinite sleep
authorWonki Kim <wonki_.kim@samsung.com>
Tue, 22 Dec 2020 12:56:33 +0000 (21:56 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 23 Dec 2020 01:49:38 +0000 (10:49 +0900)
in some case, argument for sleep function becomes a negative value.
and it causes infinite sleep.
the problem is caused by an unsigned keyword.
and this patch fix them to prevent the problem.

Change-Id: I2a450c77a6c61c311f932d8b0067216e2f9b484f

libaurum/inc/Impl/MockDeviceImpl.h
libaurum/inc/Impl/TizenDeviceImpl.h

index 43ad4640ce933404cbf4c7e355d5ca4dbb3c30eb..241af8ccac5943d22cc122545c8f7381ad76dac4 100644 (file)
@@ -190,32 +190,32 @@ public:
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_CLICK = 5;
+    static const int INTV_CLICK = 5;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_SHORTSTROKE = 100;
+    static const int INTV_SHORTSTROKE = 100;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_LONGSTROKE = 2000;
+    static const int INTV_LONGSTROKE = 2000;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_MINIMUM_DRAG_MS = 25;
+    static const int INTV_MINIMUM_DRAG_MS = 25;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_MINIMUM_USLEEP = 1000;
+    static const int INTV_MINIMUM_USLEEP = 1000;
 
     /**
      * @brief TBD
      */
-    static const unsigned int MINIMUM_DURATION_DRAG = 100;
+    static const int MINIMUM_DURATION_DRAG = 100;
 
     /**
      * @brief TBD
index cf5b5cb88232a34ea718e93f15b76edbc4fb5b5b..f72eb0c86f7e069d485069db66304c0b8791d7bc 100644 (file)
@@ -191,32 +191,32 @@ private:
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_CLICK = 5;
+    static const int INTV_CLICK = 5;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_SHORTSTROKE = 100;
+    static const int INTV_SHORTSTROKE = 100;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_LONGSTROKE = 2000;
+    static const int INTV_LONGSTROKE = 2000;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_MINIMUM_DRAG_MS = 25;
+    static const int INTV_MINIMUM_DRAG_MS = 25;
 
     /**
      * @brief TBD
      */
-    static const unsigned int INTV_MINIMUM_USLEEP = 1000;
+    static const int INTV_MINIMUM_USLEEP = 1000;
 
     /**
      * @brief TBD
      */
-    static const unsigned int MINIMUM_DURATION_DRAG = 100;
+    static const int MINIMUM_DURATION_DRAG = 100;
 
     /**
      * @brief TBD