Check more feature support 33/219933/3 accepted/tizen/unified/20201230.121825 submit/tizen/20201214.073408 submit/tizen/20201224.001822 submit/tizen/20201228.235910 submit/tizen/20201230.002345
authorKichan Kwon <k_c.kwon@samsung.com>
Thu, 12 Dec 2019 02:16:14 +0000 (11:16 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 14 Dec 2020 07:19:22 +0000 (07:19 +0000)
- Packet data, Data roaming, Vibration and TV out

Change-Id: I32bd0ded8c06b52fc396a9833a025e54be4edaa4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/runtime_info_connectivity.c
src/runtime_info_system.c

index 905ba9e0c541f55c327b7b0fed2e74d61d9c17c2..5aadc7f2873b4b23f12dcdcac9c266b2277c0804 100644 (file)
@@ -200,6 +200,8 @@ int runtime_info_packet_data_get_value(runtime_info_value_h value)
        int vconf_value;
        int ret;
 
+       RETURN_ERROR_IF_NOT_SUPPORTED("http://tizen.org/feature/network.telephony");
+
        ret = runtime_info_vconf_get_value_bool(VCONF_PACKET_DATA_ENABLED, &vconf_value);
        if (ret == RUNTIME_INFO_ERROR_NONE)
                value->b = (bool)vconf_value;
@@ -222,6 +224,8 @@ int runtime_info_data_roaming_get_value(runtime_info_value_h value)
        int vconf_value;
        int ret;
 
+       RETURN_ERROR_IF_NOT_SUPPORTED("http://tizen.org/feature/network.telephony");
+
        ret = runtime_info_vconf_get_value_bool(VCONF_DATA_ROAMING_ENABLED, &vconf_value);
        if (ret == RUNTIME_INFO_ERROR_NONE)
                value->b = (bool)vconf_value;
index cd9d6789656c0988b6230aee4c2dfa8973d83815..78b5348f757f56317ea785c0430bac6db119cb58 100644 (file)
@@ -72,6 +72,8 @@ int runtime_info_vibration_enabled_get_value(runtime_info_value_h value)
        int vconf_value;
        int ret;
 
+       RETURN_ERROR_IF_NOT_SUPPORTED("http://tizen.org/feature/feedback.vibration");
+
        ret = runtime_info_vconf_get_value_bool(VCONF_VIBRATION_ENABLED, &vconf_value);
        if (ret == RUNTIME_INFO_ERROR_NONE)
                value->b = (bool)vconf_value;
@@ -143,6 +145,18 @@ int runtime_info_tvout_connected_get_value(runtime_info_value_h value)
        int vconf_value;
        int ret;
 
+       bool supported;
+       ret = system_info_get_platform_bool("http://tizen.org/feature/screen.output.hdmi", &supported);
+       if (ret != SYSTEM_INFO_ERROR_NONE)
+               return RUNTIME_INFO_ERROR_IO_ERROR;
+       if (!supported) {
+               ret = system_info_get_platform_bool("http://tizen.org/feature/screen.output.rca", &supported);
+               if (ret != SYSTEM_INFO_ERROR_NONE)
+                       return RUNTIME_INFO_ERROR_IO_ERROR;
+               if (!supported)
+                       return RUNTIME_INFO_ERROR_NOT_SUPPORTED;
+       }
+
        ret = runtime_info_vconf_get_value_int(VCONF_TVOUT_CONNECTED, &vconf_value);
        if (ret == RUNTIME_INFO_ERROR_NONE)
                value->b = vconf_value;