display: state-transition: Relocate check_lcdoff_direct() 15/293915/4
authorYunhee Seo <yuni.seo@samsung.com>
Thu, 8 Jun 2023 01:49:19 +0000 (10:49 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 12 Jun 2023 05:20:03 +0000 (14:20 +0900)
commiteb461067bfcbafae868b141cf2163a612bf4a386
treebe7d20ef9fcb40c404e222ede159df8e746a3f8e
parent78d970139203c91f225e2afcc52151777fab6136
display: state-transition: Relocate check_lcdoff_direct()

check_lcdoff_direct() is used to check if display state can go to S_LCDOFF.
All plugins follows same policy of this function.

Thus, this function is added below display-state-transition.
- bool display_state_transition_is_possible_to_go_lcdoff(void);
    -> This replaces check_lcdoff_direct().

Also, new function is added below display-plugin.
- int display_plugin_config_get_dimming(int *dimming);
    -> It gets dimming config value from the conf file.
To confirm going to S_LCDOFF state, dimming value must also be checked.
So, display_plugin_config_get_dimming() is added too.

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