display: Relocate default_proc_change_state()/default_proc_change_state_action() 00/294800/5
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 26 Jun 2023 07:29:40 +0000 (16:29 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 29 Jun 2023 04:56:35 +0000 (13:56 +0900)
commitb8adf024aee60518f5e0dd1455f85abd2961965e
tree831a5604a8c8b5864ea1057183e49881262d0d28
parented8dbb88ee6647592a7a0d3951f242db30840543
display: Relocate default_proc_change_state()/default_proc_change_state_action()

Above two functions are used for display-lock related functions.
default_proc_change_state_action() sets pm_cur_state and occurs state_action.
default_proc_change_state() occurs next state action when the specific condition is met.

These functions are added to display-plugin.
- bool display_plugin_state_is_there_proc_change_state(void);
- int display_plugin_state_proc_change_state(unsigned int cond, pid_t pid);

These functions are added to display-state-transition.
- void display_state_transition_do_proc_change_state_action(enum state_t next, int timeout);
- int display_state_transition_do_proc_change_state(unsigned int cond, pid_t pid);

Newly added functions should also be refactored.

Change-Id: I85476642bb4b4c4fc5c607ce6ce0591736d1a014
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/ambient-mode.c
src/display/core.h
src/display/display-plugin.c
src/display/display-plugin.h
src/display/display-state-transition.c
src/display/display-state-transition.h