From: Youngjae Cho Date: Tue, 22 Aug 2023 07:42:02 +0000 (+0900) Subject: plugin-api: deviced: Add attribute for power history log X-Git-Tag: accepted/tizen/unified/20230823.021351^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29fa9ba9511b85edb48b5be5b3ab20a8c70ce27a;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git plugin-api: deviced: Add attribute for power history log New attribute: - id: DEVICED_POWER_ATTR_TUPLE2_SET_HISTORY_LOG - type: DEVICED_POWER_ATTR_TUPLE2_SET_HISTORY_LOG - setter: O - getter: X - 1st param: enum syscommon_deviced_power_log_type - 2nd param: secondary information of type integer In addition, added enum syscommon_deviced_power_log_type for the power history log. Change-Id: Ibdebeac6fa97bfd6705c251b694314dad11a98e6 Signed-off-by: Youngjae Cho --- diff --git a/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h b/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h index 40b7065..b7eb153 100644 --- a/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h +++ b/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h @@ -36,6 +36,7 @@ extern "C" { #define DEVICED_POWER_ATTR_INT_WAKEUP_REASON (1ULL << 2) #define DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK (1ULL << 3) #define DEVICED_POWER_ATTR_INT_GET_VITAL_MODE (1ULL << 4) +#define DEVICED_POWER_ATTR_TUPLE2_SET_HISTORY_LOG (1ULL << 5) enum { DEVICED_POWER_STATE_MIN_INDEX, @@ -113,6 +114,24 @@ enum syscommon_deviced_vital_state { SYSCOMMON_DEVICED_VITAL_EXIT, }; +enum syscommon_deviced_power_log_type { + SYSCOMMON_DEVICED_POWER_LOG_TYPE_MIN = 0, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_KEY_PRESS = SYSCOMMON_DEVICED_POWER_LOG_TYPE_MIN, /* key log */ + SYSCOMMON_DEVICED_POWER_LOG_TYPE_KEY_LONG_PRESS, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_KEY_RELEASE, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_ON, /* lcd log */ + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_ON_COMPLETE, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_ON_FAIL, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_DIM, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_DIM_FAIL, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_OFF, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_OFF_COMPLETE, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_OFF_FAIL, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_LCD_CONTROL_FAIL, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_SLEEP, + SYSCOMMON_DEVICED_POWER_LOG_TYPE_MAX +}; + #ifdef __cplusplus } #endif