diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-09-03 10:58:38 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-09-06 16:26:40 +0900 |
commit | 7cddbe5f5c9e6ea0658379f86e4e29b5bb78d3ad (patch) | |
tree | 3ecbc5a59efbdf8333d7d4aacef7da44f3c9091d | |
parent | d2adf5c5be8538e2baf848b923ddedc20a3dd2d3 (diff) | |
download | libsyscommon-7cddbe5f5c9e6ea0658379f86e4e29b5bb78d3ad.tar.gz libsyscommon-7cddbe5f5c9e6ea0658379f86e4e29b5bb78d3ad.tar.bz2 libsyscommon-7cddbe5f5c9e6ea0658379f86e4e29b5bb78d3ad.zip |
Add new attributes and enum definition to support lcd on procedure logic
lcd on procedure needs below logics.
- power doze mode setting
- broadcast lcd on process
- setting brightness
- setting pmstate vconf
- start display devices
To support lcd on procedure, below resource attributes are added
New attribute:
- id: DEVICED_DISPLAY_ATTR_TUPLE2_BROADCAST_LCD_ON
- type: SYSCOMMON_RESMAN_DATA_TYPE_2_UINT64
- setter: O
- getter: X
New attribute:
- id: DEVICED_DISPLAY_ATTR_BOOL_BROADCASTED_FLAG
- type: SYSCOMMON_RESMAN_DATA_TYPE_BOOLEAN
- setter: O
- getter: O
New attribute:
- id: DEVICED_DISPLAY_ATTR_INT_UPDATE_BRIGHTNESS
- type: SYSCOMMON_RESMAN_DATA_TYPE_INT
- setter: O
- getter: X
New attribute:
- id: DEVICED_DISPLAY_ATTR_INT_PM_STATE
- type: SYSCOMMON_RESMAN_DATA_TYPE_INT
- setter: O
- getter: X
New attribute:
- id: DEVICED_DISPLAY_ATTR_TUPLE2_START_DEPENDENT_DEVICE
- type: SYSCOMMON_RESMAN_DATA_TYPE_2_UINT64
- setter: O
- getter: X
New attribute:
- id: DEVICED_POWER_ATTR_INT_DOZE_MODE
- type: SYSCOMMON_RESMAN_ATTR_INT_DOZE_MODE
- setter: O
- getter: X
Below enumerations are added, also.
- enum syscommon_deviced_display_signal_type;
- enum syscommon_deviced_display_brightness_type;
- enum syscommon_deviced_display_dependent_device_type;
- enum syscommon_deviced_power_doze_mode;
To distinguish value for new attributes uages,
above enumerations are added.
Change-Id: Ia319735fa73b1ff3e4095884e23012a95a391b4f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r-- | src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h | 24 | ||||
-rw-r--r-- | src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h | 6 |
2 files changed, 30 insertions, 0 deletions
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 977486c..df95e0a 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 @@ -57,6 +57,12 @@ extern "C" { /* 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) +#define DEVICED_DISPLAY_ATTR_TUPLE2_BROADCAST_LCD_ON (1ULL << 23) +#define DEVICED_DISPLAY_ATTR_BOOL_BROADCASTED_FLAG (1ULL << 24) +#define DEVICED_DISPLAY_ATTR_INT_UPDATE_BRIGHTNESS (1ULL << 25) +/* FIXME: PM_STATE attribute can be deleted after refactoring */ +#define DEVICED_DISPLAY_ATTR_INT_PM_STATE (1ULL << 26) +#define DEVICED_DISPLAY_ATTR_TUPLE2_START_DEPENDENT_DEVICE (1ULL << 27) enum syscommon_deviced_display_state { SYSCOMMON_DEVICED_DISPLAY_STATE_START, @@ -140,6 +146,24 @@ enum syscommon_deviced_display_capability { SYSCOMMON_DEVICED_DISPLAY_CAPA_POWEROFF = 1 << 3, }; +enum syscommon_deviced_display_signal_type { + SYSCOMMON_DEVICED_DISPLAY_SIGNAL_INVALID = 0, + SYSCOMMON_DEVICED_DISPLAY_SIGNAL_PRE, + SYSCOMMON_DEVICED_DISPLAY_SIGNAL_POST, + SYSCOMMON_DEVICED_DISPLAY_SIGNAL_MAX, +}; + +enum syscommon_deviced_display_brightness_type { + SYSCOMMON_DEVICED_DISPLAY_BRIGHTNESS_DEFAULT = 0, + SYSCOMMON_DEVICED_DISPLAY_BRIGHTNESS_DIM, +}; + +enum syscommon_deviced_display_dependent_device_type { + SYSCOMMON_DEVICED_DISPLAY_DEVICE_TYPE_DISPLAY = 0, + SYSCOMMON_DEVICED_DISPLAY_DEVICE_TYPE_TOUCHSCREEN, + SYSCOMMON_DEVICED_DISPLAY_DEVICE_TYPE_TOUCHKEY, +}; + #define DEVICED_DISPLAY_SCREEN_TIMEOUT_INFINITE ((~0) >> 1) #define DEVICED_DISPLAY_LOCK_SLEEP_MARGIN 0x0 /**< Keep guard time for unlock */ #define DEVICED_DISPLAY_LOCK_RESET_TIMER 0x1 /**< Reset timer for unlock */ diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h index 0f8356e..cb236e0 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h @@ -39,6 +39,7 @@ extern "C" { #define DEVICED_POWER_ATTR_TUPLE2_HISTORY_LOG (1ULL << 5) #define DEVICED_POWER_ATTR_INT_ADD_DOZE_SOURCE (1ULL << 6) #define DEVICED_POWER_ATTR_INT_REMOVE_DOZE_SOURCE (1ULL << 7) +#define DEVICED_POWER_ATTR_INT_DOZE_MODE (1ULL << 8) enum { DEVICED_POWER_STATE_MIN_INDEX, @@ -134,6 +135,11 @@ enum syscommon_deviced_power_log_type { SYSCOMMON_DEVICED_POWER_LOG_TYPE_MAX }; +enum syscommon_deviced_power_doze_mode { + SYSCOMMON_DEVICED_POWER_DISABLE_DOZE_MODE = 0, + SYSCOMMON_DEVICED_POWER_ENABLE_DOZE_MODE, +}; + #ifdef __cplusplus } #endif |