Set enable 'Brightness' and 'Screen timeout' 82/243382/1 accepted/tizen/unified/20200907.143918 submit/tizen/20200907.072419
authorKiseok Chang <kiso.chang@samsung.com>
Mon, 7 Sep 2020 07:13:45 +0000 (16:13 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Mon, 7 Sep 2020 07:13:45 +0000 (16:13 +0900)
- In IoT Headed profile, Device should have a LCD display.
- It doeesn't work in hdmi-connected display for developer.

Change-Id: I06931aa696dbb323bb9736bda8037164890bc39b

setting-display/src/setting-display-brightness.c
setting-display/src/setting-display-main.c

index fd58058bda1a23a3107387676fdc17fbff45044d..f5f7cd9da3cb795b8000eb1de41c9f3baddc4d12 100755 (executable)
@@ -857,18 +857,10 @@ setting_display_birghtness_bright_slider_value_change_cb(
 /**
  * @brief Indicate if changing brightness feature is supported on platform.
  *
- * @note Currently there is no decent API to check if changing brightness is
- * supported. For now we workaround this by checking for hdmi connection.
- * If hdmi is connected we assume the brightness cannot be changed using Tizen API,
- * in other cases we assume it is possible.
+ * @note This is always TRUE in IoT Headed profile.
+ * In IoT Headed profile, Device has a LCD display, which support controling brightness on it.
  */
 static bool setting_display_brightness_change_is_supported()
 {
-       int hdmi_connected;
-       int err = vconf_get_int(VCONFKEY_SYSMAN_HDMI, &hdmi_connected);
-       if (err != 0) {
-               SETTING_TRACE_ERROR("vconf_get_int failed for VCONFKEY_SYSMAN_HDMI");
-               return false;
-       }
-       return hdmi_connected == VCONFKEY_SYSMAN_HDMI_DISCONNECTED;
+       return true;
 }
index 4179f8412d3e6f91884542cdeffff59c7bafbce0..6f82ea27000ce59f2a140035322a7921d555c8f8 100755 (executable)
@@ -623,13 +623,7 @@ static void setting_display_main_click_softkey_back_cb(
  */
 static bool setting_display_screen_timeout_change_is_supported()
 {
-       int hdmi_connected;
-       int err = vconf_get_int(VCONFKEY_SYSMAN_HDMI, &hdmi_connected);
-       if (err != 0) {
-               SETTING_TRACE_ERROR("vconf_get_int failed for VCONFKEY_SYSMAN_HDMI");
-               return false;
-       }
-       return hdmi_connected == VCONFKEY_SYSMAN_HDMI_DISCONNECTED;
+       return true;
 }
 
 static bool setting_display_font_change_is_supported()