summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-08-13Modify to use enum instead of inttizenSangYoun Kwak1-10/+10
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>
2024-07-03Modify to allocate hal_backend_sensor_funcs before get backendtizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20240813.225515accepted/tizen/unified/x/20240705.012348accepted/tizen/unified/toolchain/20240812.131232accepted/tizen/unified/dev/20240708.001556accepted/tizen/unified/20240704.075643accepted/tizen/9.0/unified/20241030.233910tizen_9.0accepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedSangYoun Kwak1-2/+19
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>
2024-06-19halapi: sensor: Add support for HAL_MODULE_SENSOR v1.0accepted/tizen/unified/x/asan/20240625.091428accepted/tizen/unified/x/20240624.031844accepted/tizen/unified/toolchain/20240624.121202accepted/tizen/unified/dev/20240701.073014accepted/tizen/unified/20240621.010415Chanwoo Choi2-13/+37
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>
2024-06-19Add new HAL manifest file of HAL_MODULE_SENSORChanwoo Choi2-0/+12
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>
2024-02-05Fix from -std=gnu++0x to -std=c++14 for gtest 1.14.0 version upgradeaccepted/tizen/unified/x/20240319.055351accepted/tizen/unified/dev/20240620.010453accepted/tizen/unified/20240318.071636JinWang An1-1/+1
Change-Id: I77a2446f43f3561efb6a3f22a054d06ca257dc88 Signed-off-by: JinWang An <jinwang.an@samsung.com>
2023-02-07hal-sensor-types: Add new HAL_SENSOR_ATTR_LIDAR_POWER_STATE attrtizen_8.0_m2_releaseaccepted/tizen/unified/20230209.111253accepted/tizen/8.0/unified/20231005.094423tizen_8.0accepted/tizen_8.0_unifiedTaeminYeom1-0/+9
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>
2023-02-02hal-sensor-types: Add new HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL attraccepted/tizen/unified/20230207.165805Chanwoo Choi1-0/+10
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>
2022-05-13Fix lib path in .pc file for 64bit buildtizen_7.0_m2_releasesubmit/tizen/20220531.024845accepted/tizen/unified/20220601.141559accepted/tizen/7.0/unified/hotfix/20221116.110338accepted/tizen/7.0/unified/20221110.061842tizen_7.0_hotfixaccepted/tizen_7.0_unified_hotfixHyotaek Shim2-3/+3
Change-Id: Ifbacd3262eecff25fa4b38e42a8142aad1ad01c7 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2022-01-10Add max_interval in sensor_info_tsubmit/tizen/20220127.011830accepted/tizen/unified/20220128.144439TaeminYeom1-0/+1
Change-Id: Ie31d80e50c12292d872fbf5b1fa5865421d32782 Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2021-12-24Unify SENSOR_DEVICE_LIDAR enum value with APITaeminYeom1-2/+2
Change-Id: Ifeda706017a0e459783f9d3df9752607b1ec2439 Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2021-12-24Change SENSOR_DEVICE_LIDAR enum valuetaemin.yeom1-2/+2
To avoid overflow in HAL backend Change-Id: I40c3736a1b73e13bdc96b58bf918c6f716c004af Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-12-22Add power state attribute enumsubmit/tizen/20211222.081021accepted/tizen/unified/20211224.144836taemin.yeom1-0/+5
Change-Id: I9d2c09a432a86f50b7c3c6558129713a35b6f4c3 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-12-22Add Lidar HAL sensor typetaemin.yeom1-0/+2
Change-Id: I41fcb83fbb4a320d4025b3acf328d6278cd36821 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-12-16Remove ColoredPrintf in higher verisonsubmit/tizen/20211210.025024accepted/tizen/unified/20211221.050653taemin.yeom1-7/+22
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>
2021-09-29Fix redefinition and expression of macrotizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163201submit/tizen/20210929.051143accepted/tizen/unified/20211001.001342accepted/tizen/6.5/unified/20211028.115055taemin.yeom3-30/+19
Change-Id: I7c4fe6eaf34371fd00f4520bd02f466cbe549c34 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-09-29Support lower gtest versionsubmit/tizen/20210929.044826taemin.yeom3-0/+20
"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>
2021-09-28Add checking features in sensor haltestsubmit/tizen/20210928.040319accepted/tizen/unified/20210929.022404taemin.yeom5-6/+71
Change-Id: I0d0086eb401d835a0520a94156d5f4512bbda625 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-07-14Change sensor-haltests rpm to hal-api-sensor-haltestssubmit/tizen/20210719.034923Hyotaek Shim1-3/+3
Change-Id: I76fae2d91e5e65e8ec7c06eb24bf93cb5cb7ab90 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-07-13Change hal_common_get_backend_library_names API parameter.submit/tizen/20210713.080137accepted/tizen/unified/20210714.014127Yunmi Ha1-2/+4
Change-Id: I1bca6851b6a8b2704622ebf44fbf4bfa6b413ce5 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-07-12Divide HAL so file by each sensorYunmi Ha1-12/+99
Change-Id: I13af2315223a2730876983b587153bd4d75de346 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-06-22Add const keyword to char* argumentsubmit/tizen/20210630.062146submit/tizen/20210622.045417accepted/tizen/unified/20210630.143902accepted/tizen/unified/20210622.125811taemin.yeom1-1/+1
Change-Id: I84d417a5c4e17c1eeeb03c6c66654a8ef78b35b2 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-06-21Add file cases to .gitignoreHyotaek Shim1-1/+4
Change-Id: I2bb317443cd46fbff28c369c92081dafe3422f26 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-06-21Fix get_attribute interfacesubmit/tizen/20210621.115244accepted/tizen/unified/20210622.125817Hyotaek Shim1-1/+1
Change-Id: I22e5145fbb8a11f32a0eba96d9dfbf335cf2e0ba Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-05-11Add conditional compile directive to avoid build errorsubmit/tizen/20210523.234938submit/tizen/20210510.064912accepted/tizen/unified/20210526.010308taemin.yeom1-0/+2
Change-Id: I4e6d3bda7bcea0af59793344b0787b9aa89114b0 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-04-26Add get_attribute interfaceYunmi Ha1-0/+9
Change-Id: I588887f1fdc17dbd079d97d646b1b88b932a940a Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-04-22Remove unneeded fPIE gcc optionChanwoo Choi1-1/+1
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>
2021-04-20Use system error instaed of sensor_error_esubmit/tizen/20210421.024350accepted/tizen/unified/20210421.101145Yunmi Ha2-25/+5
Change-Id: Ibea2e23204e1186533ee997bbf2509eae319b19b Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-04-16Add haltestsubmit/tizen/20210419.065426Yunmi Ha7-2/+400
Change-Id: I71919c82656d07c14990795a2b6f099cb4104150 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-04-09Load HAL module before running APIYunmi Ha1-26/+41
Change-Id: Ibe74a9b72c30ea96f61efb7110a8c897eeffd5c7 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-03-22Add build flagssubmit/tizen/20210329.083250submit/tizen/20210322.042458accepted/tizen/unified/20210329.145101Boram Bae1-1/+1
Change-Id: I20fee1c80f11d9b84edfa10b7a7fa4d610bdcf28 Signed-off-by: Boram Bae <boram21.bae@samsung.com>
2021-02-17Add more sensor typessubmit/tizen/20210217.062004accepted/tizen/unified/20210218.042212Boram Bae1-1/+6
* Change type from sensor_device_type to int Change-Id: I941b0d97ee96b80dede3dede362cf829fca957b6 Signed-off-by: Boram Bae <boram21.bae@samsung.com>
2021-02-04Fix a wrong conditional compilationsubmit/tizen/20210204.020237accepted/tizen/unified/20210204.134533Boram Bae1-1/+1
Change-Id: I4bc14399318aa645398ea8fd7a55669e8f21a0db Signed-off-by: Boram Bae <boram21.bae@samsung.com>
2021-02-02Add hal-sensor-types.hsubmit/tizen/20210203.011633Boram Bae4-547/+578
* 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>
2021-01-26Fix minor thingssubmit/tizen/20210127.075110submit/tizen/20210127.061527accepted/tizen/unified/20210128.132317Boram Bae2-5/+1
* Remove redundant defines * Remove meaningless slash Change-Id: I51426f32d532e4cdb038c0ebeec9ba346831fdc1 Signed-off-by: Boram Bae <boram21.bae@samsung.com>
2021-01-20Squash sensor device and type into interfacesubmit/tizen/20210120.044228accepted/tizen/unified/20210121.015630Boram Bae3-597/+544
* 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>
2021-01-20Implement a createBoram Bae6-6/+606
* 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>
2021-01-20Add hal-sensor and hal-sensor-interfaceBoram Bae11-0/+537
* This patch allows you to build the package. Change-Id: I315e176ea0b3951e7d57e673cd5c8a16bf7d959b Signed-off-by: Boram Bae <boram21.bae@samsung.com>
2020-12-22Initial empty repositoryHEADmasterTizen Infrastructure0-0/+0