display: display-state-transition: Relocate fuctions related to transition timer... 72/293472/4
authorYunhee Seo <yuni.seo@samsung.com>
Sat, 27 May 2023 08:11:10 +0000 (17:11 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 30 May 2023 11:48:23 +0000 (20:48 +0900)
commit2ac4596f06a83ef6f3ca200c5ed8c820ef9b2274
treeeabbaf57ca0f3f8e580e49562806f203f9b0165e
parentfd2e1a837a5fe78acd8de147b664d60b99b17937
display: display-state-transition: Relocate fuctions related to transition timer to reduce plugin duplication

Remove and redefine get_transition_timer()/timeout_handler()/reset_timeout() in plugins/display/core.c

These function are added to below display-state-transition.c
bool display_state_transition_is_there_state_transition_timer(void);
int display_state_transition_reset_state_transition_timeout(int timeout);
-> These are used to add and manage timeout callback for a specific state transition.

In fact, these functions do not actually change the time of the state transition.
They only generate state transitions by adding timeout callbacks.(with timeout parameter)
Thus, "reset" word or function name should be changed during refactoring process.

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