platform/adaptation/tm1/sensor-hal-tm1.git
3 years agoChange install path of udev rules 64/257164/1 accepted/tizen_unified accepted/tizen/unified/20210421.101204 submit/tizen/20210421.024350
Yunmi Ha [Tue, 20 Apr 2021 07:52:06 +0000 (16:52 +0900)]
Change install path of udev rules

- For separation of HAL.img, change udev rule files path to under /hal
https://code.sec.samsung.net/jira/browse/TSYSTEM-1039

Change-Id: I9e876603e3b638b687089231efd8e4565f9dac3e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoUse system error instaed of sensor_error_e 49/257149/1
Yunmi Ha [Tue, 20 Apr 2021 05:15:03 +0000 (14:15 +0900)]
Use system error instaed of sensor_error_e

Change-Id: Ib1d298e14fa5efb9eb72819ce6980beb0ad7c295
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoUse sensor_error_e of hal API 95/256795/3 submit/tizen/20210419.065426
Yunmi Ha [Tue, 13 Apr 2021 06:47:29 +0000 (15:47 +0900)]
Use sensor_error_e of hal API

Change-Id: I8ca55a9f83d9979808a85fb20c2f10a2235e0bb9
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoUse hal-sensor-types 40/252740/2 accepted/tizen/unified/20210204.134548 submit/tizen/20210203.011633 submit/tizen/20210204.020237
Boram Bae [Tue, 2 Feb 2021 05:12:02 +0000 (14:12 +0900)]
Use hal-sensor-types

* Use hal-sensor-types instead of hal-sensor-interface
* This change required by plan of Next HAL

Change-Id: I47eb522c5ffe0d2b841904193041b2e5060e4dad
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
3 years agoUse hal-api-sensor instead of legacy interface 88/252288/3 accepted/tizen/unified/20210128.132311 submit/tizen/20210127.061527 submit/tizen/20210127.075110
Boram Bae [Tue, 26 Jan 2021 06:42:27 +0000 (15:42 +0900)]
Use hal-api-sensor instead of legacy interface

* This change is for Tizen Next-HAL
* Now, all implementations of sensor device inherit sensor device interface of the hal-api-sensor
* sensor_{device}_create replaces create, see hal-backend-sensor.cpp
* The hal-backend implementation must define hal_backend_sensor_data

Change-Id: I0a2a787560e15194c0728c63b9392ad6bf631540
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAsan issue alloc-dealloc-mismatch (malloc vs operator delete ) 57/203157/1
Avichal [Wed, 10 Apr 2019 08:17:16 +0000 (13:47 +0530)]
Asan issue alloc-dealloc-mismatch (malloc vs operator delete )

TFDF-288

Change-Id: I6cc97dfa58440efe07cbdb9758afbf4bdce3e6a6
Signed-off-by: Avichal <avichal.a@samsung.com>
5 years agoFixing build error with new dlog format 88/195088/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/5.5/unified/20191031.034554 accepted/tizen/5.5/unified/mobile/hotfix/20201027.082824 accepted/tizen/5.5/unified/wearable/hotfix/20201027.123851 accepted/tizen/6.0/unified/20201030.123938 accepted/tizen/6.0/unified/hotfix/20201103.052908 accepted/tizen/unified/20181217.142203 submit/tizen/20181212.095503 submit/tizen/20181214.061228 submit/tizen_5.5/20191031.000010 submit/tizen_5.5/20191031.000011 submit/tizen_5.5/20191031.000013 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_5.5.m2_release tizen_6.0.m2_release
srinivasa.m [Mon, 10 Dec 2018 12:08:16 +0000 (17:38 +0530)]
Fixing build error with new dlog format

Change-Id: I61b69a7d30761b80c7bc4757cba839a2a3269410
Signed-off-by: srinivasa.m <srinivasa.m@samsung.com>
5 years agoUnifying all Sensor Device test modules 17/187817/3 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181106.202807 accepted/tizen/unified/20180830.061127 submit/tizen/20180829.113731 submit/tizen_5.0/20181101.000001 submit/tizen_5.0/20181106.000001
srinivasa.m [Tue, 28 Aug 2018 14:26:36 +0000 (19:56 +0530)]
Unifying all Sensor Device test modules

Change-Id: Iec833e59adb178f2705a854f22314a1157c85477

5 years agoRemoving redundant packages in spec 61/187261/1 accepted/tizen/unified/20180827.071647 submit/tizen/20180824.150720
srinivasa.m [Tue, 21 Aug 2018 08:58:22 +0000 (14:28 +0530)]
Removing redundant packages in spec

Change-Id: I2048f9b757ae19f6f878c6d968d934d7192998b9

5 years ago[Non-ACR]Adding HAL test for Sensor TM1 FW 77/186577/2 accepted/tizen/unified/20180823.071927 submit/tizen/20180821.085432
srinivasa.m [Fri, 10 Aug 2018 12:48:48 +0000 (18:18 +0530)]
[Non-ACR]Adding HAL test for Sensor TM1 FW

Change-Id: I62c022859485a8d70c80f75b1654bd59ff77840e
Signed-off-by: srinivasa.m <srinivasa.m@samsung.com>
6 years agosensor: hal: tm1: fix coding rule violations 24/149224/1 accepted/tizen/unified/20170913.071910 submit/tizen/20170912.122717
kibak.yoon [Tue, 12 Sep 2017 02:12:33 +0000 (11:12 +0900)]
sensor: hal: tm1: fix coding rule violations

Change-Id: I5dfd6174d5398d95b88acef9877c3c06589d83b5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: hal: tm1: clean package spec file 85/148685/1 accepted/tizen/unified/20170911.060211 submit/tizen/20170908.104014
kibak.yoon [Fri, 8 Sep 2017 09:48:49 +0000 (18:48 +0900)]
sensor: hal: tm1: clean package spec file

- version 1.0.4
- fix group name
- clean %build section
- clean %install section

Change-Id: Ida511476404a0275881495891846bb2a84d49a81
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: hal: tm1: change readdir_r to readdir 46/148646/2
kibak.yoon [Fri, 8 Sep 2017 08:02:52 +0000 (17:02 +0900)]
sensor: hal: tm1: 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>
6 years agosensor-hal: tm1: change minimum interval to 10ms 55/142355/2 accepted/tizen/4.0/unified/20170828.224440 accepted/tizen/unified/20170804.132932 submit/tizen/20170804.015049 submit/tizen_4.0/20170828.110001
kibak.yoon [Thu, 3 Aug 2017 12:53:52 +0000 (21:53 +0900)]
sensor-hal: tm1: change minimum interval to 10ms

Change-Id: I67ae151730130addf7830725617ad8b07cfca7f5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor-hal: tm1: check "enable" attribute instead of "poll_delay" in TM1 91/130291/1 accepted/tizen/4.0/unified/20170816.020254 accepted/tizen/unified/20170522.182634 submit/tizen/20170521.142317 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522 tizen_4.0.m1_release
kibak.yoon [Sun, 21 May 2017 09:11:13 +0000 (18:11 +0900)]
sensor-hal: tm1: check "enable" attribute instead of "poll_delay" in TM1

Specially, input device driver of proximity sensor in tm1 doesn't have poll_delay
attribute(device node). other devices(tw1, emulator) don't have this
problem.

* only the sensor input devices have "enable" node as you can see the following.
sh-3.2# ls -al /sys/class/input/input*/enable
-rw-rw-r-- 1 sensor input 4096 Jul 26 04:49 /sys/class/input/input4/enable
-rw-rw-r-- 1 sensor input 4096 Jul 26 04:49 /sys/class/input/input5/enable

Change-Id: Ie11f89caf24203b8899987cfc9e42e2706d17f34
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor-hal: tm1: remove key-related tags from sensor input devices 74/130174/2 accepted/tizen/unified/20170519.200812 submit/tizen/20170519.104714
kibak.yoon [Fri, 19 May 2017 09:29:47 +0000 (18:29 +0900)]
sensor-hal: tm1: remove key-related tags from sensor input devices

Change-Id: I881ddc8465e1e1f68788d8a83ef1aac99b91ab23
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 56/126056/1 accepted/tizen/unified/20170420.155845 submit/tizen/20170420.102501
kibak.yoon [Thu, 20 Apr 2017 04:13:21 +0000 (13:13 +0900)]
Merge branch 'tizen_3.0' into tizen

* tizen_3.0:
  sensor-hal: tm1: update the license macro and date

Change-Id: I6c3d4b4b96f468db99cf3caebb126d53ab16322f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal: tm1: update the license macro and date 78/121378/1 accepted/tizen_3.0_mobile tizen_3.0 accepted/tizen/3.0/mobile/20170328.051544 submit/tizen_3.0/20170328.013800
kibak.yoon [Wed, 22 Mar 2017 04:30:39 +0000 (13:30 +0900)]
sensor-hal: tm1: update the license macro and date

Change-Id: I9e17ccda2bf6053680453715d5dee184bc60fabb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal: tm1: update the license macro and date 73/120173/1 accepted/tizen_mobile accepted/tizen/mobile/20170323.084630 accepted/tizen/unified/20170323.084644 submit/tizen/20170323.031838
kibak.yoon [Wed, 22 Mar 2017 04:30:39 +0000 (13:30 +0900)]
sensor-hal: tm1: update the license macro and date

Change-Id: I9e17ccda2bf6053680453715d5dee184bc60fabb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoDo Not Use profile macro in 4.0 (trivial) 86/98086/1 accepted/tizen/mobile/20170314.075444 accepted/tizen/unified/20170314.075450 submit/tizen/20170314.045225
MyungJoo Ham [Wed, 16 Nov 2016 06:05:36 +0000 (15:05 +0900)]
Do Not Use profile macro in 4.0 (trivial)

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

Change-Id: I77fb9441249635aa5835e0a736c12a697b50fdc9
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 80/77480/1 accepted/tizen_3.0.m2_mobile tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.100247 accepted/tizen/3.0/mobile/20161015.034133 accepted/tizen/mobile/20160704.091513 accepted/tizen/unified/20170309.084544 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0_mobile/20161015.000006 submit/tizen_mobile/20160704.080359 submit/tizen_unified/20170308.100404 submit/tizen_unified/20170309.100423
kibak.yoon [Thu, 30 Jun 2016 02:36:25 +0000 (11:36 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: tm1: version 1.0.3
  sensor-hal-tm1: remove useless package dependency

Change-Id: Iae3e313696b7efc473291097d2314d0cf8229289
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal: tm1: version 1.0.3 78/77478/1 devel/tizen
kibak.yoon [Thu, 30 Jun 2016 02:32:56 +0000 (11:32 +0900)]
sensor-hal: tm1: version 1.0.3

Change-Id: If7f627324d9138681410150471c00dbc999c00ff
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal-tm1: remove useless package dependency 65/77265/2
kibak.yoon [Wed, 29 Jun 2016 08:07:36 +0000 (17:07 +0900)]
sensor-hal-tm1: remove useless package dependency

- HAL does not use vconf/glib package
- reorder macro constants
- fix error logs

Change-Id: If132ef8b344652b4c06c87e42512c2b18e5e7b25
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 99/77099/1
kibak.yoon [Tue, 28 Jun 2016 12:57:22 +0000 (21:57 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

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

Change-Id: I9b39ccd858eaccbfa01c6dcbcf2dba0a32f0749a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal: include missing header files for monotonic timestamp 33/77033/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>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 22/76422/1 accepted/tizen/mobile/20160624.065028 submit/tizen_mobile/20160624.015043
kibak.yoon [Fri, 24 Jun 2016 01:42:10 +0000 (10:42 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tm1: add udev rules for sensor device node

Change-Id: Ibbd7e7a3f082b87abbe38071bc5d682146e56689
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal-tm1: add udev rules for sensor device node 38/72038/2
kibak.yoon [Mon, 30 May 2016 09:28:13 +0000 (18:28 +0900)]
sensor-hal-tm1: add udev rules for sensor device node

- update permission/smack rules

Change-Id: I40510f8f0eacd895d7ddfda0684206742f95cd99
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 84/70884/1 accepted/tizen/mobile/20160523.103238 submit/tizen_mobile/20160523.074427
kibak.yoon [Mon, 23 May 2016 07:00:26 +0000 (16:00 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tm1: sync with sensor-hal-tw1 HAL

Change-Id: I5589514e03d28f5cde7c397eb0978ec7c602ba53
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor-hal-tm1: sync with sensor-hal-tw1 HAL 78/69078/1
kibak.yoon [Wed, 11 May 2016 09:45:00 +0000 (18:45 +0900)]
sensor-hal-tm1: sync with sensor-hal-tw1 HAL

- clean up the code for maintenance.

Change-Id: Id0012c3341c31b4778a22bfa25cf6b44c07b2cf4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 30/67130/1 accepted/tizen/mobile/20160426.103717 submit/tizen_mobile/20160426.040614
kibak.yoon [Mon, 25 Apr 2016 08:55:07 +0000 (17:55 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tm1: version 1.0.2
  sensor-hal-tm1: open data nodes with the read-only permission

Change-Id: Idacd5f958fb4f9305b849692cbb07c0114d85e90
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: version 1.0.2 29/67129/1
kibak.yoon [Mon, 25 Apr 2016 08:54:33 +0000 (17:54 +0900)]
sensor-hal-tm1: version 1.0.2

Change-Id: If6e115c5f48386776b099f1930a5d19a1fa38265
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: open data nodes with the read-only permission 62/66462/1
kibak.yoon [Tue, 19 Apr 2016 05:04:40 +0000 (14:04 +0900)]
sensor-hal-tm1: open data nodes with the read-only permission

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

Change-Id: I0de7f777e970fe451169f52ca61ad903cb141cdf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 46/64746/1 accepted/tizen/mobile/20160405.084129 submit/tizen_mobile/20160405.021143
kibak.yoon [Tue, 5 Apr 2016 07:45:49 +0000 (16:45 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tm1: remove unused functions in accel/proxi

Change-Id: Ic95c4cd3656176f6e030bcd12a60da5b5c216440
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: remove unused functions in accel/proxi 41/64741/1
kibak.yoon [Tue, 5 Apr 2016 07:40:46 +0000 (16:40 +0900)]
sensor-hal-tm1: remove unused functions in accel/proxi

Change-Id: I9d764d493beef1ecd0fba81d2c175c0511e3d8e4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 31/64631/1
kibak.yoon [Mon, 4 Apr 2016 08:48:29 +0000 (17:48 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-tm1: rename sensor_logs.h to sensor_log.h
  sensor-hal: change strerror to strerror_r
  Revert "sensor-hal: change strerror to strerror_r"
  Revert "sensor-hal-tm1: rename sensor_logs.h to sensor_log.h"
  sensor-hal: change readdir to readdir_r
  sensor-hal-tm1: rename sensor_logs.h to sensor_log.h
  sensor-hal: change strerror to strerror_r

Change-Id: I2fb40b060880a3e3f244912160f3a89ca5fbb695
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge "sensor-hal-tm1: rename sensor_logs.h to sensor_log.h" into devel/tizen_3.0
Mu-Woong Lee [Sun, 3 Apr 2016 04:57:20 +0000 (21:57 -0700)]
Merge "sensor-hal-tm1: rename sensor_logs.h to sensor_log.h" into devel/tizen_3.0

8 years agoMerge "sensor-hal: change strerror to strerror_r" into devel/tizen_3.0
Mu-Woong Lee [Sun, 3 Apr 2016 04:56:18 +0000 (21:56 -0700)]
Merge "sensor-hal: change strerror to strerror_r" into devel/tizen_3.0

8 years agoMerge "sensor-hal: change readdir to readdir_r" into devel/tizen_3.0
Mu-Woong Lee [Sun, 3 Apr 2016 04:54:47 +0000 (21:54 -0700)]
Merge "sensor-hal: change readdir to readdir_r" into devel/tizen_3.0

8 years agosensor-hal-tm1: rename sensor_logs.h to sensor_log.h 24/64524/1
kibak.yoon [Fri, 1 Apr 2016 12:48:54 +0000 (21:48 +0900)]
sensor-hal-tm1: rename sensor_logs.h to sensor_log.h

Change-Id: I058aead086b36f9af74203658920a598e4870a9a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: change strerror to strerror_r 23/64523/1
kibak.yoon [Fri, 1 Apr 2016 07:46:36 +0000 (16:46 +0900)]
sensor-hal: change strerror to strerror_r

* use thread-safe function(strerror_r)

Change-Id: Ife323d8c775d7c860c7a37c5b888cbc155a6477e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRevert "sensor-hal: change strerror to strerror_r"
kibak.yoon [Fri, 1 Apr 2016 13:24:16 +0000 (22:24 +0900)]
Revert "sensor-hal: change strerror to strerror_r"

This reverts commit 61747df734a8ecbc294f6fbf4df00efb71fc8551.

8 years agoRevert "sensor-hal-tm1: rename sensor_logs.h to sensor_log.h"
kibak.yoon [Fri, 1 Apr 2016 13:24:06 +0000 (22:24 +0900)]
Revert "sensor-hal-tm1: rename sensor_logs.h to sensor_log.h"

This reverts commit 786950f13d277f06da7af4455ad8327955885f11.

8 years agosensor-hal: change readdir to readdir_r 75/64475/4
kibak.yoon [Fri, 1 Apr 2016 07:54:20 +0000 (16:54 +0900)]
sensor-hal: change readdir to readdir_r

* use thread-safe API(readdir_r)
* remove the assign statement in while condition

Change-Id: I6e052744eb06da2c50bf59541505f26ac043a3c4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: rename sensor_logs.h to sensor_log.h
kibak.yoon [Fri, 1 Apr 2016 12:48:54 +0000 (21:48 +0900)]
sensor-hal-tm1: rename sensor_logs.h to sensor_log.h

Change-Id: Ibfab695dec5c07dd7d4b01062ac8ea572dea21ad
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: change strerror to strerror_r 43/64443/3
kibak.yoon [Fri, 1 Apr 2016 07:46:36 +0000 (16:46 +0900)]
sensor-hal: change strerror to strerror_r

* use thread-safe function(strerror_r)

Change-Id: I89366cc60f758be78ef7c6e8a9d6ac4b38e62942
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 48/63948/1 accepted/tizen/mobile/20160329.043559 submit/tizen_mobile/20160329.031840
kibak.yoon [Tue, 29 Mar 2016 03:15:52 +0000 (12:15 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: proxi: fix the value of proximity

Change-Id: Ia7be8947ead7e271712a1d5b79c75d009c24a785
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: proxi: fix the value of proximity 47/63947/1
kibak.yoon [Tue, 29 Mar 2016 03:15:11 +0000 (12:15 +0900)]
sensor-hal: proxi: fix the value of proximity

Change-Id: I38070dedcf0c37c55eaf80adffb8d36a00a8f862
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 23/59423/1 accepted/tizen/mobile/20160217.080647 submit/tizen_common/20160222.141210 submit/tizen_mobile/20160217.011241
kibak.yoon [Mon, 15 Feb 2016 10:44:48 +0000 (19:44 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0: (30 commits)
  sensor-hal-tm1: version 1.0.1
  sensor-hal: rename sensor_handle_t to sensor_info_t
  sensor-hal: move sensor_hal.h to sensor-hal-devel package
  sensor-hal: change the interface of set_attribute_*
  sensorhub-hal: set the id as the library number
  sensor-hal: change the type of id to uint32_t
  sensor-hal-sensorhub: fix the bug caused by static member variable
  sensor-hal: add interface of sensorhub
  sensor-hal-tm1: enable proximity sensor
  sensor-hal-tm1: modify Sensor HAL interface
  sensor-hal-tm1: rename package name to sensor-hal-tm1
  sensor-hal-tm1: remove unused sensors on TM1
  sensor-hal: unify code style for class brackets
  sensor-hal: add including stdbool.h
  sensor-hal: modify HAL interface for batching
  sensor-hal: remove vector in sensro HAL interface
  sensor-hal: refactoring sensor HAL interface
  sensor-hal: clean up the code and dependency
  sensor-hal: change sensor_device_base to util class
  sensor-hal: re-organize build procedure
  ...

Change-Id: I3cde5acacd5cd7f032b2210d57c159d2f2555f6b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: version 1.0.1 16/59416/1
kibak.yoon [Mon, 15 Feb 2016 10:30:41 +0000 (19:30 +0900)]
sensor-hal-tm1: version 1.0.1

Change-Id: Idaba7fcef331df058219a3807707139456451090
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: rename sensor_handle_t to sensor_info_t 03/59403/2
kibak.yoon [Mon, 15 Feb 2016 09:49:45 +0000 (18:49 +0900)]
sensor-hal: rename sensor_handle_t to sensor_info_t

Change-Id: I6df3bd8701794d5964d8330ac219d4abe7c47bc7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: move sensor_hal.h to sensor-hal-devel package 43/59343/1
kibak.yoon [Sat, 13 Feb 2016 04:13:05 +0000 (13:13 +0900)]
sensor-hal: move sensor_hal.h to sensor-hal-devel package

Change-Id: I8695389a17dfbfe2a9d7a9461a137a935ddcfc34
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: change the interface of set_attribute_* 85/59285/2
kibak.yoon [Fri, 12 Feb 2016 06:36:21 +0000 (15:36 +0900)]
sensor-hal: change the interface of set_attribute_*

Change-Id: I0cda7289e9251f4ce794b8df0ef18c07f67e0f2a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensorhub-hal: set the id as the library number 84/59284/7
kibak.yoon [Fri, 12 Feb 2016 06:25:28 +0000 (15:25 +0900)]
sensorhub-hal: set the id as the library number

Change-Id: Ic4f39f627e24e5da5d2f75eaaff6e6082062c71e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: change the type of id to uint32_t 81/59281/1
kibak.yoon [Fri, 12 Feb 2016 06:03:36 +0000 (15:03 +0900)]
sensor-hal: change the type of id to uint32_t

Change-Id: I27de063be69b3b253f244b61704fcaccc18aaf9e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-sensorhub: fix the bug caused by static member variable 34/59234/5
kibak.yoon [Thu, 11 Feb 2016 14:19:25 +0000 (23:19 +0900)]
sensor-hal-sensorhub: fix the bug caused by static member variable

- static member variable has to be declared for using it.
  strangely std::vector variable is always okay regardless of a compile
  order if it is declared once anywhere. but std::map is not okay.
  dlopen() invokes the segmentation error when std::map variable is used.
  but if compile file order is changed, it doesn't have problem....
- because the problem about initializing static member variable, it is
  issued. so this patch just changes manager/controller to singleton class
  for removing the code that use static variables.
- now it is fixed.

Change-Id: I84777861e5afc374a2ceecbd4d420a90c8f2c1ef
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: add interface of sensorhub 82/58982/1
kibak.yoon [Fri, 5 Feb 2016 12:43:08 +0000 (21:43 +0900)]
sensor-hal: add interface of sensorhub

* it doesn't have specific implementation of sensorhub

Change-Id: I232ecff56f1a3c18eea8622c7655199da72b8408
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: enable proximity sensor 79/58979/1
kibak.yoon [Fri, 5 Feb 2016 12:41:01 +0000 (21:41 +0900)]
sensor-hal-tm1: enable proximity sensor

Change-Id: I569f88db90a82f5837b1f5b3eb11bc811eefdaa3
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: modify Sensor HAL interface 77/58977/1
kibak.yoon [Fri, 5 Feb 2016 12:35:52 +0000 (21:35 +0900)]
sensor-hal-tm1: modify Sensor HAL interface

+ clean up boilerplate

Change-Id: I1c79151d4ee26d39ac6ea31ab8c37e506f250bd6
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: rename package name to sensor-hal-tm1 76/58976/1
kibak.yoon [Fri, 5 Feb 2016 12:31:39 +0000 (21:31 +0900)]
sensor-hal-tm1: rename package name to sensor-hal-tm1

Change-Id: I282e3f6512d23b1ab32949c0bdd23b2f927959f7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-tm1: remove unused sensors on TM1 74/58974/6
kibak.yoon [Fri, 5 Feb 2016 12:19:36 +0000 (21:19 +0900)]
sensor-hal-tm1: remove unused sensors on TM1

Change-Id: I59637f65afd66231ac14bc6f0cb63ebdb2b12a8c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: unify code style for class brackets 59/58759/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:47 +0000 (16:49 +0900)]
sensor-hal: unify code style for class brackets

Change-Id: I1f5deb4405d2a38ed2a4a5a6c3ea77a94f0f487b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: add including stdbool.h 58/58758/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:35 +0000 (16:49 +0900)]
sensor-hal: add including stdbool.h

Change-Id: I981c78e96639b2f2066a6b6e8f6f8c307f2f6ec0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: modify HAL interface for batching 57/58757/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:21 +0000 (16:49 +0900)]
sensor-hal: modify HAL interface for batching

* int get_data(id, data, length)
  - return value: the remaining count of data

Change-Id: Ifa952443a115531b8ecd2c08b469a2ffe7dfb8cf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: remove vector in sensro HAL interface 56/58756/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:49:10 +0000 (16:49 +0900)]
sensor-hal: remove vector in sensro HAL interface

* instead of using std::vector, use point array for interface

Change-Id: Ib9e156fef47315f8faeb741389f7c1b9d8ac9419
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: refactoring sensor HAL interface 55/58755/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:58 +0000 (16:48 +0900)]
sensor-hal: refactoring sensor HAL interface

* remove useless functions and consolidate functions to 1 function
* hal-id: int32_t -> int16_t
* common structures are defined in sensor_hal.h

Change-Id: Ie1d8f32a15ebf3a851e43b07972200647ce74dfa
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: clean up the code and dependency 54/58754/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:45 +0000 (16:48 +0900)]
sensor-hal: clean up the code and dependency

* disable proximity sensor HAL for refactoring
* add macro.h for common macro

Change-Id: I6fa699ca78492f2107484920d519935744d0c4db
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: change sensor_device_base to util class 53/58753/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:33 +0000 (16:48 +0900)]
sensor-hal: change sensor_device_base to util class

Change-Id: Ia4ac5e8dbae1764c1dd260ea748f24442f851f6c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: re-organize build procedure 52/58752/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:48:13 +0000 (16:48 +0900)]
sensor-hal: re-organize build procedure

Change-Id: I7e34d8f61cc69c2c8a021fcb9969f48882aa048e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: rename interface of HAL for managing it easily 51/58751/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:57 +0000 (16:47 +0900)]
sensor-hal: rename interface of HAL for managing it easily

Change-Id: Icc2327a0c7a34e45560abb9b5ddf94eec9a2758c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: remove xml dependency and xml-related code 50/58750/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:36 +0000 (16:47 +0900)]
sensor-hal: remove xml dependency and xml-related code

- remove xml dependency and clean up code
- sensor-hal: add sensor_properties_s to sensor_handle_t

Change-Id: I7452c08bd3cf793dd08a6ee801722ff0ebc3c5b6
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugins-tm1: enable proximity sensor HAL 49/58749/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:24 +0000 (16:47 +0900)]
sensor-plugins-tm1: enable proximity sensor HAL

Change-Id: Ie0c62492dfe819e9f34e1c7e6328d4bd2f1cfeb4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: add HAL interface for sensor_event_t 48/58748/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:47:09 +0000 (16:47 +0900)]
sensor-hal: add HAL interface for sensor_event_t

* added sensor_get_sensor_event()
* implemented sensor_get_sensor_event() in accelerometer HAL

Change-Id: Id0555ced2da84b1916dea9fbea7074179e430dc8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-hal: reorderring sensor hal types for managing them easily 47/58747/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:56 +0000 (16:46 +0900)]
sensor-hal: reorderring sensor hal types for managing them easily

Change-Id: I66f9475e57a45086365562d98a5e2eb6442e1f3f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: modify HAL interface for support sensorhub HAL 46/58746/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:38 +0000 (16:46 +0900)]
sensor-plugin-tm1: modify HAL interface for support sensorhub HAL

* HAL has to be based on 1 device(it means that it is looking at 1 node)
* If the device manufacturer make a HAL only, he can operate the device.

* Interface of HAL has to be more considered.

* Implementation of accelerometer HAL has to be cleaned
  - sensorhub-related code is unnecessary on the reference target(TM1)
  - managing of sensor config should be refactored

Change-Id: I05bb4fbc837e2e6836026b95da6fdd9c4b9e6363
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: clean up the code 45/58745/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:24 +0000 (16:46 +0900)]
sensor-plugin-tm1: clean up the code

clean up & remove the useless code

Change-Id: I148041ba2d798aeb9022ac9b8f36dd58f3c00810
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: remove useless code 44/58744/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:46:11 +0000 (16:46 +0900)]
sensor-plugin-tm1: remove useless code

Change-Id: I3ea44e720be1cbd77de8e71f915f110dc7d98fb7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: modify wrong raw_data_unit of accelerometer 43/58743/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:45:57 +0000 (16:45 +0900)]
sensor-plugin-tm1: modify wrong raw_data_unit of accelerometer

because accelerometer is set to 4G from kernel driver,
raw_data_unit has to be changed.

* IMHO, sensor fw should received this setting information from kernel.
  I will check whether it is available or not. (from IIO interface)

Change-Id: I7fa98b51e892be8839a5246816ab29ad9e1ec66e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: remove useless lock 42/58742/1
Mu-Woong Lee [Wed, 3 Feb 2016 07:45:42 +0000 (16:45 +0900)]
sensor-plugin-tm1: remove useless lock

HAL developer doesn't need to consider lock mechanism

* It is started to refactoring sensor HAL for supporting sensorhub
from this patch.

Change-Id: Ib594af73a741d1805f2a35e995ccebd110e89ddc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoExclude from all builds except 32bit arm mobile build
Mu-Woong Lee [Wed, 3 Feb 2016 07:39:07 +0000 (16:39 +0900)]
Exclude from all builds except 32bit arm mobile build

Change-Id: Iad9cfe461b1b616483ac86245766711e2331edd6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: change sprintf to snprintf
Mu-Woong Lee [Wed, 3 Feb 2016 07:38:52 +0000 (16:38 +0900)]
sensor-plugin-tm1: change sprintf to snprintf

Change-Id: Ifcaa1c010fbd7bef51246e1bec30450f7e19390a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRe-package sensor-hal to sensor-plugins-tm1
Mu-Woong Lee [Wed, 3 Feb 2016 07:38:38 +0000 (16:38 +0900)]
Re-package sensor-hal to sensor-plugins-tm1

Change-Id: I0f0e95eaf7c908b98cbe77b0863f8c86f22004ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor-plugin-tm1: plugins for tm1
Mu-Woong Lee [Wed, 3 Feb 2016 07:38:15 +0000 (16:38 +0900)]
sensor-plugin-tm1: plugins for tm1

supported sensors on TM1:
  accelerometer
  proximity

code is copied from /platform/adaptation/samsung_exynos/sensor-plugins

Change-Id: I13f945bdd5eef5dc559268e5f543ba24323fb751
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoInitial empty repository master
seonil kim [Wed, 3 Feb 2016 02:24:58 +0000 (18:24 -0800)]
Initial empty repository