display: state-transition: Remove update_display_time() 95/293795/7
authorYunhee Seo <yuni.seo@samsung.com>
Wed, 31 May 2023 06:32:49 +0000 (15:32 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Wed, 7 Jun 2023 09:05:42 +0000 (18:05 +0900)
commitdcfb7099cffc4e84c46d445960f36aa9d25dff78
treea3c1e8fcea923da02cfeaeaa70c1a15b4ec4a342
parent9410317de657726919dfba401f728b38f5a3b527
display: state-transition: Remove update_display_time()

display states can have various timeout values depending on the policy.
update_display_time() was used for updating timeout values
accoring to the priority.

In this context, display state transition occurs after a "timeout".

This function is added below display-state-transition.
void display_state_transition_update_display_state_timeout_by_priority(void);
-> This updates timeout values depending on the policy.
1. If there are custom timeout values, then updates to that values.
2. If lockscreen is being displayed,
   then the screen timeout value will be set to lock_screen_timeout.
3. Lastly, timeout value will be set to default setting value.

To support this, getter/setter is added for specific timeout values.

Change-Id: I6cf483f17402948546d364a172334a95890238c5
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/display/display-plugin.c
src/display/display-plugin.h
src/display/display-state-transition.c
src/display/display-state-transition.h