display: state-transition: Remove default_check() 12/293812/6
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 5 Jun 2023 10:24:02 +0000 (19:24 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Wed, 7 Jun 2023 09:07:05 +0000 (18:07 +0900)
commitef7c8c2fa4c75c90a9d7eaa94800178c5373f826
treefa98a607e7cdbdd217932f2e20b281eac5415bdd
parentdcfb7099cffc4e84c46d445960f36aa9d25dff78
display: state-transition: Remove default_check()

default_check() was used for checking state transition condition.
If there is any pmlock of the state checked which is not background status,
it is impossible to move next state.
default_check() follows same policy from all plugins.
To move from current display state to next display state, this function is necessary.

Thus, this function is added below display-state-transition.
int display_state_transition_check_state_transition_condition(enum state_t cur_state, enum state_t next_state);

Change-Id: I06adb467ac81a04596f22a7b0fe9b06c3b72d248
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