Add setter and getter sensor handle attribute 76/286976/6
authorTaeminYeom <taemin.yeom@samsung.com>
Tue, 17 Jan 2023 08:01:17 +0000 (17:01 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Thu, 26 Jan 2023 09:20:51 +0000 (18:20 +0900)
commitac2cdc50bac2c672bc991b485624494ebe5dc84b
treef9fbbae783291b9a08840569a2c11bd4d017cb9d
parentc40356bcb837cd6daef3cb9b0feb261219745c9b
Add setter and getter sensor handle attribute

Sensor handle attribute is diffrent with sensor listener attribute.
Listener attribute is depending on each listener, not sensor.
But handle attribute can affect all listeners connecting the sensor.

API function
-sensor_set_attribute_int : set sensor handle attribute
-sensor_get_attribute_int : get sensor handle attribute

Enumeration
-sensor_handle_attribute_e
  SENSOR_HANDLE_ATTR_PROXIMITY_SENSITIVITY_LEVEL :
    attribute of proximity sensor to control sensitivity level.
    the value should be sensor_proximity_sensitivity_level_e.

-sensor_proximity_sensitivity_level_e
  It can be used to set SENSOR_HANDLE_ATTR_PROXIMITY_SENSITIVITY_LEVEL.
  SENSOR_PROXIMITY_SENSITIVITY_LEVEL_WEAK : detects close distances.
  SENSOR_PROXIMITY_SENSITIVITY_LEVEL_MEDIUM : detects middle distances.
  SENSOR_PROXIMITY_SENSITIVITY_LEVEL_STRONG : detects long distances.

Change-Id: I6b736933b426c08fe93ee605587d25984a60b79b
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
include/sensor-internal.h
src/api/api-sensor-internal.cpp