Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I77a2446f43f3561efb6a3f22a054d06ca257dc88
Signed-off-by: JinWang An <jinwang.an@samsung.com>
|
|
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>
|
|
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>
|
|
Change-Id: Ifbacd3262eecff25fa4b38e42a8142aad1ad01c7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: Ie31d80e50c12292d872fbf5b1fa5865421d32782
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
|
|
Change-Id: Ifeda706017a0e459783f9d3df9752607b1ec2439
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
|
|
To avoid overflow in HAL backend
Change-Id: I40c3736a1b73e13bdc96b58bf918c6f716c004af
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: I9d2c09a432a86f50b7c3c6558129713a35b6f4c3
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: I41fcb83fbb4a320d4025b3acf328d6278cd36821
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
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>
|
|
Change-Id: I7c4fe6eaf34371fd00f4520bd02f466cbe549c34
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
"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>
|
|
Change-Id: I0d0086eb401d835a0520a94156d5f4512bbda625
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: I76fae2d91e5e65e8ec7c06eb24bf93cb5cb7ab90
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I1bca6851b6a8b2704622ebf44fbf4bfa6b413ce5
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I13af2315223a2730876983b587153bd4d75de346
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I84d417a5c4e17c1eeeb03c6c66654a8ef78b35b2
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: I2bb317443cd46fbff28c369c92081dafe3422f26
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I22e5145fbb8a11f32a0eba96d9dfbf335cf2e0ba
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I4e6d3bda7bcea0af59793344b0787b9aa89114b0
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: I588887f1fdc17dbd079d97d646b1b88b932a940a
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
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>
|
|
Change-Id: Ibea2e23204e1186533ee997bbf2509eae319b19b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I71919c82656d07c14990795a2b6f099cb4104150
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Ibe74a9b72c30ea96f61efb7110a8c897eeffd5c7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I20fee1c80f11d9b84edfa10b7a7fa4d610bdcf28
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
|
* Change type from sensor_device_type to int
Change-Id: I941b0d97ee96b80dede3dede362cf829fca957b6
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
|
Change-Id: I4bc14399318aa645398ea8fd7a55669e8f21a0db
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
|
* 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>
|
|
* Remove redundant defines
* Remove meaningless slash
Change-Id: I51426f32d532e4cdb038c0ebeec9ba346831fdc1
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
|
* 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>
|
|
* 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>
|
|
* This patch allows you to build the package.
Change-Id: I315e176ea0b3951e7d57e673cd5c8a16bf7d959b
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
|
|