From 40ebf3e5132bd6dbc3d70b874e4d56dd8c0fda16 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Wed, 28 Aug 2024 16:15:28 +0900 Subject: [PATCH] Add new attributes and notifier for display setup when the dpms is initialized When the dpms initialization is done, display state is set to DISPLAY_STATE_ON. And then, normal state timeout counting starts. After normal state timeout, display state can be changed to other state. To support above description, below attributes and event is added. New attribute: - id: DEVICED_DISPLAY_ATTR_INT_RESET_STATE_TIMEOUT - type: SYSCOMMON_RESMAN_DATA_TYPE_INT - setter: O - getter: X New attribute: - id: DEVICED_DISPLAY_ATTR_INT_PM_CURRENT_STATE - type: SYSCOMMON_RESMAN_DATA_TYPE_INT - setter: O - getter: X New attribute: - id: DEVICED_TOUCHLED_ATTR_INT_STATE_TIMEOUT - type: SYSCOMMON_RESMAN_DATA_TYPE_UINT64_WITH_1_USER_DATA - setter: X - getter: O New notifier: - DEVICED_NOTIFIER_DISPLAY_DPMS_INIT - When the dpms init done, that can be notified with this. Change-Id: I3db81cf3138e94021d8b0cfedb2703fffb256ec5 Signed-off-by: Yunhee Seo --- .../system/syscommon-plugin-deviced-common-interface.h | 1 + .../system/syscommon-plugin-deviced-display-interface.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h index cf4636b..165ed4d 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h @@ -237,6 +237,7 @@ enum deviced_notifier { DEVICED_NOTIFIER_DISPLAY_AMBIENT_CONDITION, DEVICED_NOTIFIER_DISPLAY_AMBIENT_STATE, DEVICED_NOTIFIER_DISPLAY_LOCK, + DEVICED_NOTIFIER_DISPLAY_DPMS_INIT, DEVICED_NOTIFIER_POWER_RESUME_FROM_ECHO_MEM, DEVICED_NOTIFIER_POWEROFF_TRIGGERED, DEVICED_NOTIFIER_POWEROFF, diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h index fbea058..977486c 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h @@ -53,6 +53,10 @@ extern "C" { #define DEVICED_DISPLAY_ATTR_INT_LOCKSCREEN_BG_STATE (1ULL << 17) #define DEVICED_DISPLAY_ATTR_INT_LCDOFF_REASON (1ULL << 18) #define DEVICED_DISPLAY_ATTR_INT_STATE_TRANSITION (1ULL << 19) +#define DEVICED_DISPLAY_ATTR_INT_RESET_STATE_TIMEOUT (1ULL << 20) +/* FIXME: PM_CURRENT_STATE attribute can be deleted after refactoring */ +#define DEVICED_DISPLAY_ATTR_INT_PM_CURRENT_STATE (1ULL << 21) +#define DEVICED_DISPLAY_ATTR_INT_STATE_TIMEOUT (1ULL << 22) enum syscommon_deviced_display_state { SYSCOMMON_DEVICED_DISPLAY_STATE_START, -- 2.34.1