display: plugin: Add display_plugin_get_device_flags() 73/293473/6
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 26 May 2023 07:20:07 +0000 (16:20 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Fri, 2 Jun 2023 02:43:57 +0000 (11:43 +0900)
commit6648d64ad3a9eee04bfea33dc691e688a7831746
treef1348c6b43d0f82be01582b74a0cd61d630896ef
parentfd984d7ca8963e4658272c4771ddd1ffb1e02f46
display: plugin: Add display_plugin_get_device_flags()

The reason why the display_plugin_get_device_flags() is added is as follows
1. device flags was being used in the lcd_on/off_procedure() through get_lcd_on/off_flags()
2. There is no need for the function to be divded to get_lcd_on/off_flags()
3. Also, ambient flags is only used in the wearable plugin.

Thus, display_plugin_get_device_flgas is a combination of get_lcd_on/off_flags().
It provides device flags value to get_lcd_on/off_flags().
However wearable uses ambient flags, so wearable gets own get_device_flags().

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