platform/hal/backend/tm1/sensor-tm1.git
2 years agoFix cmake build option 97/266897/1 accepted/tizen/unified/20220113.022045 submit/tizen/20211122.083118 submit/tizen/20220113.012710 submit/tizen/20220113.022937
JinWang An [Mon, 22 Nov 2021 07:59:03 +0000 (16:59 +0900)]
Fix cmake build option

Change-Id: Iad0df36f17296661ba6e6f6c0c1b3830c73e7c5f
Signed-off-by: JinWang An <jinwang.an@samsung.com>
2 years agoModify .gitignore 52/261252/1
Hyotaek Shim [Wed, 14 Jul 2021 02:33:45 +0000 (11:33 +0900)]
Modify .gitignore

Change-Id: I1357a5f22e83858a9b8eb10fc662f8fff60f42e2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoChange hal-backend-sensor-tm1-haltests rpm to hal-backend-sensor-tm1-tests 48/261248/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20211028.115629 accepted/tizen/unified/20210714.134258 submit/tizen/20210714.022758 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Hyotaek Shim [Wed, 14 Jul 2021 02:11:08 +0000 (11:11 +0900)]
Change hal-backend-sensor-tm1-haltests rpm to hal-backend-sensor-tm1-tests

Change-Id: Ia545a9161d0ee1e7bad80512d681936f68ef850f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoRemove unused sensorhub code 43/260143/1 submit/tizen/20210621.095917
Yunmi Ha [Mon, 21 Jun 2021 06:51:14 +0000 (15:51 +0900)]
Remove unused sensorhub code

Change-Id: Ibf0091280e4f743c70dd5d9275c50c4b40d104f9
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2 years agoInitialization for platform/hal/backend/tm1/sensor-tm1 05/259405/1 accepted/tizen/unified/20210607.124233 submit/tizen/20210607.085043
Hyotaek Shim [Mon, 7 Jun 2021 08:47:07 +0000 (17:47 +0900)]
Initialization for platform/hal/backend/tm1/sensor-tm1

Change-Id: Id09d1e7fc1ad0098c139fad96d87db4ee2e087ee
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoChange dlog tag as HAL_BACKEND_SENSOR
Yunmi Ha [Tue, 27 Apr 2021 07:51:01 +0000 (16:51 +0900)]
Change dlog tag as HAL_BACKEND_SENSOR

Change-Id: I2df038fb9d527c2c16e3cbbc381fe5d8161bb69f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoChange install path of udev rules
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
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
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
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
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 )
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_*
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
seonil kim [Wed, 3 Feb 2016 02:24:58 +0000 (18:24 -0800)]
Initial empty repository