platform/adaptation/tw1/sensor-hal-tw1.git
7 years ago[Coverity Fix] 43/174643/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181106.202128 accepted/tizen/unified/20180419.075942 submit/tizen/20180418.061626 submit/tizen_5.0/20181101.000001 submit/tizen_5.0/20181106.000001
Abhishek Vijay [Tue, 3 Apr 2018 09:32:26 +0000 (15:02 +0530)]
[Coverity Fix]

Change-Id: I69416c43e566fc4fd4269c03a833dce60a368e9e
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
7 years agosensor: hal: tw1: fix coding rule violations 32/149232/2 accepted/tizen/unified/20170913.071916 submit/tizen/20170912.122717
kibak.yoon [Tue, 12 Sep 2017 02:23:18 +0000 (11:23 +0900)]
sensor: hal: tw1: fix coding rule violations

Change-Id: I424f765ca19aa6f16ca24dd594ea93bd4c7b7904
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor: hal: tw1: clean package spec file 86/148686/1 accepted/tizen/unified/20170911.060208 submit/tizen/20170908.104014
kibak.yoon [Fri, 8 Sep 2017 09:50:25 +0000 (18:50 +0900)]
sensor: hal: tw1: clean package spec file

- version 1.0.4
- fix group name
- clean %build section
- clean %install section
- use macro for /usr/lib directory

Change-Id: I6e2bd8b5749571c6a20d34beb7bc2068125c493d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor: hal: tw1: change readdir_r to readdir 75/148675/1
kibak.yoon [Fri, 8 Sep 2017 08:02:52 +0000 (17:02 +0900)]
sensor: hal: tw1: change readdir_r to readdir

- it should be changed because readdir_r() is deprecated function
- there is no thread issue because it guarantees that it runs in one thread.

Change-Id: I48fd42a49d68d94b1baa4591df32958f28227363
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: tw1: remove key-related tags from sensor input devices 72/130172/2 accepted/tizen/4.0/unified/20170816.015330 accepted/tizen/4.0/unified/20170828.224254 accepted/tizen/unified/20170519.200810 submit/tizen/20170519.104714 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.110001 submit/tizen_4.0_unified/20170814.115522 tizen_4.0.m1_release
kibak.yoon [Fri, 19 May 2017 09:26:40 +0000 (18:26 +0900)]
sensor-hal: tw1: remove key-related tags from sensor input devices

Change-Id: Ib7b1340abf13b88ec385bf748a065eccf3320145
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'tizen_3.0' into tizen 55/126055/1 accepted/tizen/unified/20170420.155900 submit/tizen/20170420.102501
kibak.yoon [Thu, 20 Apr 2017 04:12:44 +0000 (13:12 +0900)]
Merge branch 'tizen_3.0' into tizen

* tizen_3.0:
  sensor-hal: tw1: update the license macro and date
  sensor-hal-tw1: initialize member in constructor

Change-Id: If27ddbbd0c4cf1e935be01d852934a6d3a36a70c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: tw1: update the license macro and date 79/121379/1 accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/wearable/20170328.051657 submit/tizen_3.0/20170328.013816
kibak.yoon [Wed, 22 Mar 2017 04:34:11 +0000 (13:34 +0900)]
sensor-hal: tw1: update the license macro and date

Change-Id: Ie3c67e39801fa7dbb3ac75e6f7e1eea5e9b12f80
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: tw1: update the license macro and date 76/120176/1 accepted/tizen_wearable accepted/tizen/unified/20170323.084849 accepted/tizen/wearable/20170323.084827 submit/tizen/20170323.031917
kibak.yoon [Wed, 22 Mar 2017 04:34:11 +0000 (13:34 +0900)]
sensor-hal: tw1: update the license macro and date

Change-Id: Ie3c67e39801fa7dbb3ac75e6f7e1eea5e9b12f80
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tw1: initialize member in constructor 08/119208/1 accepted/tizen/3.0/wearable/20170316.221222 submit/tizen_3.0/20170316.041811
kibak.yoon [Thu, 16 Mar 2017 04:10:46 +0000 (13:10 +0900)]
sensor-hal-tw1: initialize member in constructor

Change-Id: I604ae729e5d6616bb0692347ae1a1e7cf8206473
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoDo Not Use profile macro in 4.0 (trivial) 88/98088/2 accepted/tizen/unified/20170314.075456 accepted/tizen/wearable/20170314.075453 submit/tizen/20170314.045343 submit/tizen/20170314.082551
MyungJoo Ham [Wed, 16 Nov 2016 06:10:21 +0000 (15:10 +0900)]
Do Not Use profile macro in 4.0 (trivial)

- This package should not be included in OBS Tizen:non-weaerable projects
if you do not want to build this package in Tizen:non-wearable, not
saying "ExcludeArch" based on profile macro. The profile macro is going
to be obsolste soon in Tizen 4.0.

Change-Id: Ic8f07dd7d306121ec0cfa0685c8447f33bcbe916
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 79/77479/1 accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/wearable/20170104.101048 accepted/tizen/3.0/wearable/20161015.084112 accepted/tizen/unified/20170309.084550 accepted/tizen/wearable/20160704.091434 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0_wearable/20161015.000005 submit/tizen_unified/20170308.100404 submit/tizen_unified/20170309.100423 submit/tizen_wearable/20160704.080421
kibak.yoon [Thu, 30 Jun 2016 02:36:45 +0000 (11:36 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: tw1: version 1.0.3
  sensor-hal-tw1: remove useless config-related xml file

Change-Id: I188827818e76e6bece10d59f4dedd61d32ff0df7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: tw1: version 1.0.3 76/77476/1 devel/tizen
kibak.yoon [Thu, 30 Jun 2016 02:33:55 +0000 (11:33 +0900)]
sensor-hal: tw1: version 1.0.3

Change-Id: I61ae555388d8007b14029996abb08568e4b074e0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tw1: remove useless config-related xml file 66/77266/3
kibak.yoon [Wed, 29 Jun 2016 05:37:15 +0000 (14:37 +0900)]
sensor-hal-tw1: remove useless config-related xml file

- remove sensor.xml.in
- remove useless dependencies
- move sensor device configurations from xml to source code directly

Change-Id: I5d65b78819364ef5322f1bc51fbb53bb6663e204
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 00/77100/1
kibak.yoon [Tue, 28 Jun 2016 12:58:00 +0000 (21:58 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: include missing header files for monotonic timestamp

Change-Id: I9d55489ab5e74ab1476465c1937ae7861397cfac
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: include missing header files for monotonic timestamp 34/77034/1
kibak.yoon [Tue, 28 Jun 2016 10:00:25 +0000 (19:00 +0900)]
sensor-hal: include missing header files for monotonic timestamp

- for using monotonic timestamp, "linux/input.h" has to be included.

Change-Id: I21246e7c95a56c5b524c6d17320a9ab67b50e351
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 23/76423/1 accepted/tizen/wearable/20160624.065041 submit/tizen_wearable/20160624.015107
kibak.yoon [Fri, 24 Jun 2016 01:44:08 +0000 (10:44 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tw1: add udev rules for sensor/sensorhub

Change-Id: I28c88b3346b33c7b1c8ee00dd413a618f6a5d3f2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: add udev rules for sensor/sensorhub 41/72041/1
kibak.yoon [Mon, 30 May 2016 09:34:35 +0000 (18:34 +0900)]
sensor-hal-tw1: add udev rules for sensor/sensorhub

- update permission/smack rules

Change-Id: Iafa332b60df33e727396b5efccc855344a000047
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge branch 'devel/tizen_3.0' into tizen 83/70883/1 accepted/tizen/wearable/20160524.005305 submit/tizen_wearable/20160523.074500
kibak.yoon [Mon, 23 May 2016 06:59:52 +0000 (15:59 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tw1: sync with sensor-hal-tm1 HAL
  sensor-hal-tw1: multiply HR value and raw_data_unit for the validation check

Change-Id: I8998c3ffc467aab7e1001274a830500573af3c6d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: sync with sensor-hal-tm1 HAL 77/69077/1
kibak.yoon [Wed, 11 May 2016 09:40:58 +0000 (18:40 +0900)]
sensor-hal-tw1: sync with sensor-hal-tm1 HAL

- clean up the code for maintenance.

Change-Id: I0146cfbf84d0398673e12885b1078b221e68c693
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: multiply HR value and raw_data_unit for the validation check 51/69051/1
kibak.yoon [Wed, 11 May 2016 08:42:51 +0000 (17:42 +0900)]
sensor-hal-tw1: multiply HR value and raw_data_unit for the validation check

- although raw_data_unit is not multiplied, there is no problem on tw1.
  because raw_data_unit of TW1 HRM sensor is 1.
- this patch is created to reduce mistakes.

Change-Id: I73524477548be1fce7c0eeec2d52414efd1d4e02
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge branch 'devel/tizen_3.0' into tizen 38/67138/1 accepted/tizen/wearable/20160426.103657 submit/tizen_wearable/20160426.040706
kibak.yoon [Mon, 25 Apr 2016 09:05:45 +0000 (18:05 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tw1: version 1.0.2
  sensor-hal-tw1: open data nodes with the read-only permission
  sensor-hal-tw1: clean up sensor-hal-tw1 codes
  sensor-hal: change char array to structure on receiving iio event

Change-Id: I0b89326354ed5e2450bf3c8f2300c926f914e1b8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: version 1.0.2 36/67136/1
kibak.yoon [Mon, 25 Apr 2016 09:05:12 +0000 (18:05 +0900)]
sensor-hal-tw1: version 1.0.2

Change-Id: I1db82f037de0d2a282eda256012e19003f66ab04
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: open data nodes with the read-only permission 65/66465/1
kibak.yoon [Tue, 19 Apr 2016 05:13:58 +0000 (14:13 +0900)]
sensor-hal-tw1: open data nodes with the read-only permission

- because sensord doesn't write something to those nodes,
  WRITE permission is unnecessary.

Change-Id: I593e9b250399cd1490b34f98d5d0d95cd8b3eda5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: clean up sensor-hal-tw1 codes 08/65308/2
kibak.yoon [Fri, 8 Apr 2016 09:11:30 +0000 (18:11 +0900)]
sensor-hal-tw1: clean up sensor-hal-tw1 codes

* change event_ids to member variable
* move setting monotonic function to util.cpp
* update sensor.xml

Change-Id: I0878b0a164a6ff2b39943177df850f193a773f04
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal: change char array to structure on receiving iio event 92/65292/6
kibak.yoon [Wed, 6 Apr 2016 08:30:02 +0000 (17:30 +0900)]
sensor-hal: change char array to structure on receiving iio event

- using structure instead of char array can remove useless memcpy()s.
- furthermore, it can replace the comment.

- this iio function is not used yet, but for the future, it has to be fixed.

Change-Id: Iae2d70e17b3d1fa8853adb57ded92a81ba86b0e9
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge branch 'devel/tizen_3.0' into tizen 48/64748/1 submit/tizen_wearable/20160405.070524
kibak.yoon [Tue, 5 Apr 2016 07:46:36 +0000 (16:46 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tw1: remove unused functions in accel_device

Change-Id: I88adb373d70da1c361ab4b18f4cd08a905245064
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: remove unused functions in accel_device 43/64743/1
kibak.yoon [Tue, 5 Apr 2016 07:43:14 +0000 (16:43 +0900)]
sensor-hal-tw1: remove unused functions in accel_device

Change-Id: Id84536b2f5ba19037e4a946679ad9575986b3c88
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge branch 'devel/tizen_3.0' into tizen 31/64731/1
kibak.yoon [Tue, 5 Apr 2016 06:38:44 +0000 (15:38 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tw1: remove useless code in pressure_device
  sensor-hal-tw1: use _ERRNO macro instead of strerror

Change-Id: I1d4a2b6998dfda0643c5db6cb678e6f93a7515ec
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge "sensor-hal-tw1: remove useless code in pressure_device" into devel/tizen_3.0
Mu-Woong Lee [Tue, 5 Apr 2016 06:36:20 +0000 (23:36 -0700)]
Merge "sensor-hal-tw1: remove useless code in pressure_device" into devel/tizen_3.0

9 years agosensor-hal-tw1: remove useless code in pressure_device 28/64728/1
kibak.yoon [Tue, 5 Apr 2016 06:26:31 +0000 (15:26 +0900)]
sensor-hal-tw1: remove useless code in pressure_device

Change-Id: Ic53b59890e8aea459326f9a9cf3ea1c810da5c58
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: use _ERRNO macro instead of strerror 27/64727/1
kibak.yoon [Tue, 5 Apr 2016 06:24:51 +0000 (15:24 +0900)]
sensor-hal-tw1: use _ERRNO macro instead of strerror

* this macro uses strerror_r() instead of strerror().

Change-Id: I8439e2d86f1a0d4e0aaf95adca3a9641a47575b4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge branch 'devel/tizen_3.0' into tizen 00/64700/1 submit/tizen_wearable/20160405.021211
kibak.yoon [Tue, 5 Apr 2016 01:39:01 +0000 (10:39 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: tw1: change readdir to readdir_r
  sensor-hal: tw1: change strerror to strerror_r
  Revert "sensor-hal: tw1: change strerror to strerror_r"
  Revert "sensor-hal: tw1: change readdir to readdir_r"
  sensor-hal: tw1: change readdir to readdir_r
  sensor-hal: tw1: change strerror to strerror_r

Change-Id: I9d87bc1d01b1ec6d45e4eee4c3311d1d57bf8b07
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoMerge "sensor-hal: tw1: change strerror to strerror_r" into devel/tizen_3.0
Mu-Woong Lee [Sun, 3 Apr 2016 04:57:58 +0000 (21:57 -0700)]
Merge "sensor-hal: tw1: change strerror to strerror_r" into devel/tizen_3.0

9 years agosensor-hal: tw1: change readdir to readdir_r 26/64526/1
kibak.yoon [Fri, 1 Apr 2016 13:16:07 +0000 (22:16 +0900)]
sensor-hal: tw1: change readdir to readdir_r

- Although HAL is thread-safe now, but for later, this patch is applied.
- remove the assign statement in while loop

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Change-Id: Id5d0c3ece1231e216a063cb6978295b5d1960831

9 years agosensor-hal: tw1: change strerror to strerror_r 25/64525/1
kibak.yoon [Fri, 1 Apr 2016 12:59:40 +0000 (21:59 +0900)]
sensor-hal: tw1: change strerror to strerror_r

* use thread-safe function(strerror_r)

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Change-Id: Ia09a12f6b7732ad49cdf8d1d14d74904b00584ab

9 years agoRevert "sensor-hal: tw1: change strerror to strerror_r"
kibak.yoon [Fri, 1 Apr 2016 13:27:02 +0000 (22:27 +0900)]
Revert "sensor-hal: tw1: change strerror to strerror_r"

This reverts commit 89c6bd75e0b2ed42b8ec9f82ce426810d7a2e055.

9 years agoRevert "sensor-hal: tw1: change readdir to readdir_r"
kibak.yoon [Fri, 1 Apr 2016 13:26:56 +0000 (22:26 +0900)]
Revert "sensor-hal: tw1: change readdir to readdir_r"

This reverts commit 05497ff6c919ed714342b5e7bbf3f9f8451fc6db.

9 years agosensor-hal: tw1: change readdir to readdir_r
kibak.yoon [Fri, 1 Apr 2016 13:16:07 +0000 (22:16 +0900)]
sensor-hal: tw1: change readdir to readdir_r

- Although HAL is thread-safe now, but for later, this patch is applied.
- remove the assign statement in while loop

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal: tw1: change strerror to strerror_r
kibak.yoon [Fri, 1 Apr 2016 12:59:40 +0000 (21:59 +0900)]
sensor-hal: tw1: change strerror to strerror_r

* use thread-safe function(strerror_r)

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-tw1: fix profile about ExcludeArch in spec 81/62381/1 accepted/tizen/wearable/20160316.040248 submit/tizen_wearable/20160316.010859
kibak.yoon [Wed, 16 Mar 2016 01:05:10 +0000 (10:05 +0900)]
sensor-hal-tw1: fix profile about ExcludeArch in spec

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Change-Id: I48f23a01d3e9a63a6e3d3cefb7c075e5d1a5fc6f

9 years agosensor-plugin-tw1: plugins for tw1 accepted/tizen/wearable/20160315.125759 submit/tizen_wearable/20160315.083344
kibak.yoon [Tue, 15 Mar 2016 08:23:59 +0000 (17:23 +0900)]
sensor-plugin-tw1: plugins for tw1

supported sensors on TW1:
  accelerometer
  gyroscope
  light
  hrm sensors
  pressure

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoInitial empty repository master
Jinkun Jang [Tue, 15 Mar 2016 08:15:35 +0000 (01:15 -0700)]
Initial empty repository