diff options
author | saerome.kim <saerome.kim@samsung.com> | 2019-10-17 18:26:52 +0900 |
---|---|---|
committer | saerome.kim <saerome.kim@samsung.com> | 2019-10-17 19:18:35 +0900 |
commit | 1a1d16753a8e4c8cfbb2336c99375ca500c3a71d (patch) | |
tree | e1a8f5b7cdd4f348a85f54a630143d9eda775e0c /include | |
parent | 3ed49c0bd89543f69144e464db8d51cfbd6b3226 (diff) | |
download | user-awareness-1a1d16753a8e4c8cfbb2336c99375ca500c3a71d.tar.gz user-awareness-1a1d16753a8e4c8cfbb2336c99375ca500c3a71d.tar.bz2 user-awareness-1a1d16753a8e4c8cfbb2336c99375ca500c3a71d.zip |
Add new API to set low power modetizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201026.185102submit/tizen_5.5/20191031.000002submit/tizen/20191018.005538accepted/tizen/unified/20191018.052938accepted/tizen/5.5/unified/mobile/hotfix/20201027.065752accepted/tizen/5.5/unified/20191031.031318tizen_5.5_mobile_hotfixaccepted/tizen_5.5_unified_mobile_hotfix
- Problem: it is needed that new API that can set low power mode
- Cause: without adding new API, build break occurs.
- Solution: add new API to set low power mode.
Change-Id: I2e9269003238973f29424a017c0b9f56c18b4b6d
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/user-awareness-internal.h | 18 | ||||
-rw-r--r-- | include/user-awareness.h | 15 |
2 files changed, 24 insertions, 9 deletions
diff --git a/include/user-awareness-internal.h b/include/user-awareness-internal.h index 3af7f57..9510379 100644 --- a/include/user-awareness-internal.h +++ b/include/user-awareness-internal.h @@ -58,7 +58,7 @@ int ua_monitor_set_brightness_threshold(ua_monitor_h handle, * @return 0 on success, otherwise a negative error value * @retval #UA_ERROR_NONE Successful */ -int ua_enable_low_power_mode(unsigned int sensors); +int ua_enable_low_power_mode(void); /** * @internal @@ -69,7 +69,21 @@ int ua_enable_low_power_mode(unsigned int sensors); * @return 0 on success, otherwise a negative error value * @retval #UA_ERROR_NONE Successful */ -int ua_disable_low_power_mode(unsigned int sensors); +int ua_disable_low_power_mode(void); + +/** + * @internal + * @ingroup CAPI_NETWORK_UA_MODULE + * @brief Sets low power mode for each sensor. + * @since_tizen 5.5 + * + * @param[in] bitmask The sensor bitmask + * @param[in] on_off Low power mode enable or not + * + * @return 0 on success, otherwise a negative error value + * @retval #UA_ERROR_NONE Successful + */ +int ua_set_low_power_mode(unsigned int bitmask, bool on_off); /** * @internal diff --git a/include/user-awareness.h b/include/user-awareness.h index a71dd6e..8ee579a 100644 --- a/include/user-awareness.h +++ b/include/user-awareness.h @@ -166,13 +166,14 @@ typedef enum { * @since_tizen 5.5 */ typedef enum { - UA_SENSOR_BT = 0x0001, /**< BT Sensor */ - UA_SENSOR_BLE = 0x0002, /**< BLE Sensor */ - UA_SENSOR_WIFI = 0x0004, /**< Wi-Fi Sensor */ - UA_SENSOR_MOTION = 0x0008, /**< Motion Sensor */ - UA_SENSOR_LIGHT = 0x0010, /**< Light Sensor */ - UA_SENSOR_AUDIO = 0x0020, /**< Audio Sensor */ - UA_SENSOR_MAX /**< Sensor Max. */ + UA_SENSOR_BT = 0x00000001, /**< BT Sensor */ + UA_SENSOR_BLE = 0x00000002, /**< BLE Sensor */ + UA_SENSOR_WIFI = 0x00000004, /**< Wi-Fi Sensor */ + UA_SENSOR_MOTION = 0x00000008, /**< Motion Sensor */ + UA_SENSOR_LIGHT = 0x00000010, /**< Light Sensor */ + UA_SENSOR_AUDIO = 0x00000020, /**< Audio Sensor */ + UA_SENSOR_MAX, /**< Sensor Max. */ + UA_SENSOR_ALL = 0xFFFFFFFF /**< All sensors */ } ua_sensor_e; /** |