display: Relocate update_setting() from plugins to core 13/294313/3
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 16 Jun 2023 03:41:49 +0000 (12:41 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 26 Jun 2023 05:15:16 +0000 (14:15 +0900)
commit7d3f027182f795dbc873da074252de81099e45ab
tree6c67c046a13b87912abb4b472d841ae4cddaeb74
parentce59c93fa1c66b5469990aa519830693d97406ca
display: Relocate update_setting() from plugins to core

update_setting() is called from display init() and it updates pm related setting.
Actually, this function does a lot of work according to the incoming key value.
Also, it is necessary to change the initialization way, so it will be refactored after relocation.

To relocate, wrapper functions are added below display-plugin.
- bool display_plugin_is_there_update_pm_setting(void);
- int display_plugin_is_lcd_on_blocked(void);
- int display_plugin_set_power_save_mode_flag(int onoff);
    -> This wrapper is added for wearable plugin.

New function is added below display/setting
- int display_setting_update_pm_setting(int key_idx, int val);
    -> This is temporary function, it will be refactored.

Change-Id: I90564168f72df733e887e231fa8262a7a83f86ac
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 files changed:
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/battery/lowbat-handler.c
src/battery/power-supply.c
src/display/display-plugin.c
src/display/display-plugin.h
src/display/display.c
src/display/plugin-common/display-dbus.c
src/display/setting.c
src/display/setting.h