summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
SangYoun Kwak [Wed, 22 Jan 2025 08:40:40 +0000 (17:40 +0900)]
Fix to catch std::length_error in test code
A coverity issue was reported that RUN_ALL_TESTS() which runs all
defined tests can invoke std::length_error.
To fix this issue, a catch statement is added which catches
std::length_error.
Change-Id: I0e1ec4bfa323e637584f0cacff9422ed8c81d015
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
SangYoun Kwak [Mon, 20 Jan 2025 08:28:42 +0000 (17:28 +0900)]
Remove '<' from doxygens above struct element to produce doc properly
By the doxygen generation format, for the doxygen above the struct
elements, should be written by the format below:
/** ... */
or
/**
* ...
*/
Previously, there was '<' in the doxygen comment above the struct
elements. Thus, it is fixed by removing '<'.
Change-Id: I519f7a7f80c1fb1887a6658cf9d72eeb9a593370
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
SangYoun Kwak [Wed, 15 Jan 2025 02:47:48 +0000 (11:47 +0900)]
Fix doxygen to make html link and to explain enum meaning properly
To make html link in the doxygen, '#' is added to the enum name.
Also, explanation of the enum value 'SENSOR_ATTR_EXERCISE_PSERVICE' be
more informative, it is improved as "/**< exercise personal service */".
Change-Id: Ib6e2d00bb7ac3f3b3e8ac4e937e1ccc09d744ba0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
SangYoun Kwak [Tue, 26 Nov 2024 09:02:11 +0000 (18:02 +0900)]
doc: Add documentations for the generating references
To support the generating references for HAL API, 'hal_sensor_doc.h' is
added under the 'doc' directory, which is also newly created.
This documentation includes hal api functions for sensor module.
Also, appropriate documentations were added to the header files below:
* hal-sensor-interface-1.h
* hal-sensor-types.h
Change-Id: I99b7ce60123c2229aa198aaeb201e4516dc58075
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
SangYoun Kwak [Tue, 10 Dec 2024 03:08:22 +0000 (12:08 +0900)]
Convert C++ class to C style to guarantee ABI compatibility
Previously, hal backend creates sensor_device class object and sensord
uses it directly. The prototype(interface)of sensor_device is defined in
the hal-api-sensor, so sensord can use it directly.
But this approach is a bit dangerous in the abi compatibility manner.
The C++ class cannot guarantee the abi compatibility, so it should be
fixed to use only C functions and structures.
To resolve this issue, hal api functions are added as the replacement of
sensor_device class methods. According this change, hal backend should
provides functions which were provided as the form of methods of
sensor_device class.
Also, according to this change, haltest is modified too.
Change-Id: I1fb6d698e5346027d8dba654ca86218594655a7e
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
SangYoun Kwak [Tue, 13 Aug 2024 06:08:30 +0000 (15:08 +0900)]
Modify to use enum instead of int
The variable 'hal_initialized' stores an integer value:
* -1: init fail
* 0: not initialized
* 1: init success
But it is hard to know what this value means before reading comment
about it.
To increase readability and maintainability, integer value is replaced
as enum values.
Change-Id: I17bd7ee3b743b4ba8c73c1241ca0ad809aec4674
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
SangYoun Kwak [Wed, 3 Jul 2024 05:19:02 +0000 (14:19 +0900)]
Modify to allocate hal_backend_sensor_funcs before get backend
Previously, the memory for hal backend sensor function was allocated
from the hal backend.
With new hal ABI versioning, it should be allocated from the hal api.
Thus, it is modified to allocate every required memories for hal backend
functions in this hal api sensor.
Change-Id: Ic001081d03866630423db717d35f2558f8c8a0eb
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
Chanwoo Choi [Wed, 19 Jun 2024 10:27:54 +0000 (19:27 +0900)]
halapi: sensor: Add support for HAL_MODULE_SENSOR v1.0
HAL_MODULE_SENSOR will support the multiple version of HAL interface.
So that v1.0 is first supported version of HAL_MODULE_SENSOR.
hal-sensor-interface-1.h contains the v1.0 HAL interface.
Change-Id: I3f93cb8d9399bb0e78c97cc2b9b8cd1b14b76c6d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Chanwoo Choi [Wed, 19 Jun 2024 06:42:01 +0000 (15:42 +0900)]
Add new HAL manifest file of HAL_MODULE_SENSOR
HAL_MODULE_SENSOR will support the multiple version of HAL interface.
So that v1.0 is first supported version of HAL_MODULE_SENSOR.
Change-Id: I05ec2e6a29b378673a8cdd27195770fb9601a0ef
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
JinWang An [Mon, 5 Feb 2024 04:29:23 +0000 (13:29 +0900)]
Fix from -std=gnu++0x to -std=c++14 for gtest 1.14.0 version upgrade
Change-Id: I77a2446f43f3561efb6a3f22a054d06ca257dc88
Signed-off-by: JinWang An <jinwang.an@samsung.com>
TaeminYeom [Tue, 7 Feb 2023 06:58:36 +0000 (15:58 +0900)]
hal-sensor-types: Add new HAL_SENSOR_ATTR_LIDAR_POWER_STATE attr
Add new HAL_SENSOR_ATTR_LIDAR_POWER_STATE attribute
in order to control the power of lidar sensor
This attribute has the specific attribute value
of hal_sensor_lidar_power_state enumeration.
[Newly added attribute]
- HAL_SENSOR_ATTR_LIDAR_POWER_STATE
: Indicates the power state of the lidar sensor
[Newly added attribute value of HAL_SENSOR_ATTR_LIDAR_POWER_STATE]
- HAL_SENSOR_ATTR_LIDAR_POWER_STATE attribute value
enum hal_sensor_lidar_power_state {
HAL_SENSOR_LIDAR_POWER_STATE_OFF = 0,
HAL_SENSOR_LIDAR_POWER_STATE_ON = 1
};
Change-Id: I200ca454621f2d8dbb7476f95944675c56c79369
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
Chanwoo Choi [Thu, 2 Feb 2023 05:01:48 +0000 (14:01 +0900)]
hal-sensor-types: Add new HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL attr
Add new HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL attribute
in order to support the adjustment of sensitivity level of proximity
sensor. This attribute has the specific attribute value
of hal_sensor_proximity_sensitivity_level enumeration.
[Newly added attribute]
- HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL
: Indicate the sensitivity level of proximity sensor
[Newly added attribute value of HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL]
- HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL attribute value
enum hal_sensor_proximity_sensitivity_level {
HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_WEAK = 1,
HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_MEDIUM = 2,
HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_STRONG = 3
};
Change-Id: I263e619869fbc51b677f4e856b5b83ae613d0c80
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Hyotaek Shim [Fri, 13 May 2022 08:32:21 +0000 (17:32 +0900)]
Fix lib path in .pc file for 64bit build
Change-Id: Ifbacd3262eecff25fa4b38e42a8142aad1ad01c7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
TaeminYeom [Mon, 10 Jan 2022 10:14:19 +0000 (19:14 +0900)]
Add max_interval in sensor_info_t
Change-Id: Ie31d80e50c12292d872fbf5b1fa5865421d32782
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
TaeminYeom [Fri, 24 Dec 2021 06:52:17 +0000 (15:52 +0900)]
Unify SENSOR_DEVICE_LIDAR enum value with API
Change-Id: Ifeda706017a0e459783f9d3df9752607b1ec2439
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
taemin.yeom [Fri, 24 Dec 2021 02:11:56 +0000 (11:11 +0900)]
Change SENSOR_DEVICE_LIDAR enum value
To avoid overflow in HAL backend
Change-Id: I40c3736a1b73e13bdc96b58bf918c6f716c004af
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
taemin.yeom [Wed, 22 Dec 2021 01:28:59 +0000 (10:28 +0900)]
Add power state attribute enum
Change-Id: I9d2c09a432a86f50b7c3c6558129713a35b6f4c3
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
taemin.yeom [Fri, 17 Dec 2021 10:25:03 +0000 (19:25 +0900)]
Add Lidar HAL sensor type
Change-Id: I41fcb83fbb4a320d4025b3acf328d6278cd36821
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
taemin.yeom [Wed, 15 Dec 2021 08:59:40 +0000 (17:59 +0900)]
Remove ColoredPrintf in higher verison
It was changed to internal API in GTEST 1.11.0
Do not use ColoredPrintf in higher gtest verison
In GTEST 1.11.0, internal gtest APIs have been changed.
Change-Id: I652007752eeb338c3c1a602c4f43fba95f550cd7
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
taemin.yeom [Wed, 29 Sep 2021 04:50:27 +0000 (13:50 +0900)]
Fix redefinition and expression of macro
Change-Id: I7c4fe6eaf34371fd00f4520bd02f466cbe549c34
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
taemin.yeom [Wed, 29 Sep 2021 04:22:42 +0000 (13:22 +0900)]
Support lower gtest version
"GTEST_SKIP()" is supported from gtest 1.10
so in lower version, it has to been ignored.
Change-Id: Ic2a64eb5005ec177dfb6bc04d2dbf55133cfd453
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
taemin.yeom [Mon, 27 Sep 2021 09:45:08 +0000 (18:45 +0900)]
Add checking features in sensor haltest
Change-Id: I0d0086eb401d835a0520a94156d5f4512bbda625
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
Hyotaek Shim [Wed, 14 Jul 2021 01:58:39 +0000 (10:58 +0900)]
Change sensor-haltests rpm to hal-api-sensor-haltests
Change-Id: I76fae2d91e5e65e8ec7c06eb24bf93cb5cb7ab90
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Yunmi Ha [Tue, 13 Jul 2021 02:35:15 +0000 (11:35 +0900)]
Change hal_common_get_backend_library_names API parameter.
Change-Id: I1bca6851b6a8b2704622ebf44fbf4bfa6b413ce5
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Fri, 9 Jul 2021 06:23:21 +0000 (15:23 +0900)]
Divide HAL so file by each sensor
Change-Id: I13af2315223a2730876983b587153bd4d75de346
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
taemin.yeom [Tue, 22 Jun 2021 01:51:05 +0000 (10:51 +0900)]
Add const keyword to char* argument
Change-Id: I84d417a5c4e17c1eeeb03c6c66654a8ef78b35b2
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
Hyotaek Shim [Mon, 21 Jun 2021 11:58:12 +0000 (20:58 +0900)]
Add file cases to .gitignore
Change-Id: I2bb317443cd46fbff28c369c92081dafe3422f26
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 21 Jun 2021 11:51:21 +0000 (20:51 +0900)]
Fix get_attribute interface
Change-Id: I22e5145fbb8a11f32a0eba96d9dfbf335cf2e0ba
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
taemin.yeom [Tue, 11 May 2021 07:04:32 +0000 (16:04 +0900)]
Add conditional compile directive to avoid build error
Change-Id: I4e6d3bda7bcea0af59793344b0787b9aa89114b0
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
Yunmi Ha [Mon, 26 Apr 2021 08:19:16 +0000 (17:19 +0900)]
Add get_attribute interface
Change-Id: I588887f1fdc17dbd079d97d646b1b88b932a940a
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Chanwoo Choi [Thu, 22 Apr 2021 05:50:16 +0000 (14:50 +0900)]
Remove unneeded fPIE gcc option
The fPIE option is for the executable binary.
It is not proper for shared library files.
So that remove unneeded fPIE gcc option.
Change-Id: I800016e2bb30b8a02d2170b9c87df4cd334dfa02
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Yunmi Ha [Tue, 20 Apr 2021 05:12:58 +0000 (14:12 +0900)]
Use system error instaed of sensor_error_e
Change-Id: Ibea2e23204e1186533ee997bbf2509eae319b19b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Tue, 13 Apr 2021 06:34:55 +0000 (15:34 +0900)]
Add haltest
Change-Id: I71919c82656d07c14990795a2b6f099cb4104150
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Mon, 5 Apr 2021 11:10:04 +0000 (20:10 +0900)]
Load HAL module before running API
Change-Id: Ibe74a9b72c30ea96f61efb7110a8c897eeffd5c7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Boram Bae [Mon, 22 Mar 2021 03:05:37 +0000 (12:05 +0900)]
Add build flags
Change-Id: I20fee1c80f11d9b84edfa10b7a7fa4d610bdcf28
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Wed, 17 Feb 2021 06:55:54 +0000 (15:55 +0900)]
Add more sensor types
* Change type from sensor_device_type to int
Change-Id: I941b0d97ee96b80dede3dede362cf829fca957b6
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Thu, 4 Feb 2021 01:40:20 +0000 (10:40 +0900)]
Fix a wrong conditional compilation
Change-Id: I4bc14399318aa645398ea8fd7a55669e8f21a0db
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Tue, 2 Feb 2021 05:00:05 +0000 (14:00 +0900)]
Add hal-sensor-types.h
* Move sensor data types and a base class to hal-sensor-types.h
* This change required by plan of Next HAL
Change-Id: Icca31d1a62b9ba141763880829eb5427f983dcce
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Tue, 26 Jan 2021 09:27:04 +0000 (18:27 +0900)]
Fix minor things
* Remove redundant defines
* Remove meaningless slash
Change-Id: I51426f32d532e4cdb038c0ebeec9ba346831fdc1
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Thu, 14 Jan 2021 09:19:36 +0000 (18:19 +0900)]
Squash sensor device and type into interface
* Maintain only two headers at the request of the architect of the hal layer
Change-Id: I52db09260293c617df849f602a5afef0fdd71e99
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Thu, 14 Jan 2021 05:17:46 +0000 (14:17 +0900)]
Implement a create
* Add hal-sensor-devices-types.h and hal-sensor-devices.h from sensord
* Now the sensor implementation of the device should use the interface of this package.
Change-Id: I9e4ff12b1b455258345e6e481648bc307741cf79
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Boram Bae [Wed, 13 Jan 2021 02:24:26 +0000 (11:24 +0900)]
Add hal-sensor and hal-sensor-interface
* This patch allows you to build the package.
Change-Id: I315e176ea0b3951e7d57e673cd5c8a16bf7d959b
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Tizen Infrastructure [Tue, 22 Dec 2020 01:33:04 +0000 (01:33 +0000)]
Initial empty repository