Refactorying about get and set vconf function 53/226353/2 accepted/tizen/unified/20200304.010545 submit/tizen/20200303.075432
authorjinwang.an <jinwang.an@samsung.com>
Mon, 2 Mar 2020 04:14:27 +0000 (13:14 +0900)
committerjinwang.an <jinwang.an@samsung.com>
Tue, 3 Mar 2020 07:53:01 +0000 (16:53 +0900)
Change-Id: I86aaa3ca2d23e17f27669f93bb0d07976902a50b
Signed-off-by: jinwang.an <jinwang.an@samsung.com>
include/system_settings_private.h
src/system_setting_platform.c
src/system_settings.c

index cd9b254..0f48f3e 100644 (file)
@@ -176,6 +176,7 @@ typedef int (*system_setting_unset_changed_callback_cb)(system_settings_key_e ke
  */
 typedef struct {
        system_settings_key_e key;                                                                              /**< key */
+       const char * const vconf_key;                                                                   /**< vconf key */
        system_setting_data_type_e data_type;                                                   /**< data type */
        system_setting_get_value_cb get_value_cb;                                               /**< function pointer for getter */
        system_setting_set_value_cb set_value_cb;                                               /**< function pointer for setter */
@@ -294,6 +295,31 @@ int system_setting_vconf_set_value_string(const char *vconf_key, char *value);
 
 /**
  * @internal
+ * @brief get vconf value for genernal case
+ * @since_tizen 6.0
+ *
+ * @param[in] system_settings_key_e key
+ * @param[in] void value pointer
+ *
+ * @return 0 on success, -1 on error
+ * @retval     #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_vconf(system_settings_key_e key, void **value);
+
+/**
+ * @internal
+ * @brief set vconf value for genernal case
+ * @since_tizen 6.0
+ *
+ * @param[in] system_settings_key_e key
+ * @param[in] void value pointer
+ *
+ * @return 0 on success, -1 on error
+ * @retval     #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_set_vconf(system_settings_key_e key, void *value);
+/**
+ * @internal
  * @brief Set the system settings notification callback
  * @since_tizen 2.3
  * @param[in] vconf_key
index 4fa9f82..976d78b 100644 (file)
@@ -135,48 +135,6 @@ int system_setting_get_email_alert_ringtone(system_settings_key_e key, void **va
 }
 
 
-int system_setting_get_wallpaper_home_screen(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       char *vconf_value;
-       if (system_setting_vconf_get_value_string(VCONFKEY_BGSET, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = vconf_value;
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-
-int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       char *vconf_value;
-
-       if (system_setting_vconf_get_value_string(VCONFKEY_IDLE_LOCK_BGSET, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-
-/* [int] vconf GET */
-int system_setting_get_font_size(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       int vconf_value;
-       int ** val = (int**)value;
-
-       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       **val = vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-
 int system_setting_get_default_font_type(system_settings_key_e key, void **value)
 {
        SETTING_TRACE_BEGIN;
@@ -189,59 +147,7 @@ int system_setting_get_default_font_type(system_settings_key_e key, void **value
        }
 }
 
-/* [int] vconf GET */
-int system_setting_get_font_type(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       char *font_name = NULL;
-
-       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME, &font_name)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       *value = font_name;
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-
-int system_setting_get_motion_activation(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_MOTION_ACTIVATION, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
 
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-int system_setting_get_usb_debugging_option(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-int system_setting_get_3g_data_network(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_3G_ENABLE, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
 /*////////////////////////////////////////////////////////////////////////////////////////////////// */
 
 
@@ -1117,47 +1023,6 @@ int system_setting_set_font_type(system_settings_key_e key, void *value)
 /*  LCOV_EXCL_STOP */
 
 /*  LCOV_EXCL_START */
-int system_setting_set_motion_activation(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_MOTION_ACTIVATION, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
-/*  LCOV_EXCL_START */
-int system_setting_set_usb_debugging_option(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       return SYSTEM_SETTINGS_ERROR_NONE;
-
-}
-/*  LCOV_EXCL_STOP */
-
-/*  LCOV_EXCL_START */
-int system_setting_set_3g_data_network(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_3G_ENABLE, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
-/*  LCOV_EXCL_START */
 static int category_func(const char *name, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -1628,20 +1493,6 @@ int system_setting_unset_changed_callback_time_changed(system_settings_key_e key
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SYSTEM_TIME_CHANGED, SYSTEM_SETTING_CALLBACK_SLOT_3);
 }
 
-/* SYSTEM_SETTINGS_KEY_SOUND_LOCK */
-int system_setting_get_sound_lock(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
 int system_setting_set_changed_callback_sound_lock(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -1738,27 +1589,6 @@ int system_setting_unset_changed_callback_sound_silent_mode(system_settings_key_
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_3);
 }
 
-/* SYSTEM_SETTINGS_KEY_SOUND_TOUCH */
-int system_setting_get_sound_touch(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       int ret = system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, &vconf_value);
-       if (ret != SYSTEM_SETTINGS_ERROR_NONE) {
-               return ret;
-       }
-       *value = (void *)vconf_value;
-       return ret;
-}
-
-int system_setting_set_sound_touch(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       return system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, *(bool *)value);
-}
-
-
 int system_setting_set_changed_callback_sound_touch(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -1771,33 +1601,6 @@ int system_setting_unset_changed_callback_sound_touch(system_settings_key_e key)
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-int system_setting_get_auto_rotation_mode(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_auto_rotation_mode(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_auto_rotation_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -1810,21 +1613,6 @@ int system_setting_unset_changed_callback_auto_rotation_mode(system_settings_key
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-int system_setting_get_screen_backlight_time(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       int vconf_value;
-       int ** val = (int**)value;
-
-       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       **val = vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-
 /*  LCOV_EXCL_START */
 int system_setting_set_screen_backlight_time(system_settings_key_e key, void *value)
 {
@@ -1857,18 +1645,6 @@ int system_setting_unset_changed_callback_screen_backlight_time(system_settings_
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-int system_setting_get_sound_notification(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       char *vconf_value = NULL;
-       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       *value = vconf_value;
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
 /*  LCOV_EXCL_START */
 int system_setting_set_sound_notification(system_settings_key_e key, void *value)
 {
@@ -1904,35 +1680,6 @@ int system_setting_unset_changed_callback_sound_notification(system_settings_key
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, SYSTEM_SETTING_CALLBACK_SLOT_0);
 }
 
-int system_setting_get_notification_repetition_period(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       int ** val = (int**)value;
-       int vconf_value;
-
-       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       **val = vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_notification_repetition_period(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       int *vconf_value;
-       vconf_value = *(int **)value;
-
-       if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       SETTING_TRACE_END;
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_notification_repetition_period(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -1945,18 +1692,6 @@ int system_setting_unset_changed_callback_notification_repetition_period(system_
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, SYSTEM_SETTING_CALLBACK_SLOT_1);
 }
 
-int system_setting_get_device_name(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       char *vconf_value = NULL;
-       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_DEVICE_NAME_STR, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       *value = vconf_value;
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
 /*  LCOV_EXCL_START */
 int system_setting_set_device_name(system_settings_key_e key, void *value)
 {
@@ -1984,19 +1719,6 @@ int system_setting_unset_changed_callback_device_name(system_settings_key_e key)
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_DEVICE_NAME_STR, SYSTEM_SETTING_CALLBACK_SLOT_0);
 }
 
-/*---------------------------------------------- */
-int system_setting_get_network_flight_mode(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-       if (system_setting_vconf_get_value_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
 int system_setting_set_changed_callback_network_flight_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2036,36 +1758,6 @@ int system_setting_unset_changed_callback_network_wifi_notification(system_setti
 }
 
 /*  LCOV_EXCL_START */
-int system_setting_get_lock_state(system_settings_key_e key, void **value)
-{
-       int vconf_value;
-       int ** val = (int**)value;
-
-       if (system_setting_vconf_get_value_int(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       **val = vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
-/*  LCOV_EXCL_START */
-int system_setting_set_lock_state(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       int *vconf_value;
-       vconf_value = *(int **)value;
-
-       if (system_setting_vconf_set_value_int(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       SETTING_TRACE_END;
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
-/*  LCOV_EXCL_START */
 int system_setting_set_changed_callback_lock_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        return system_setting_vconf_set_changed_cb(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY, SYSTEM_SETTINGS_KEY_LOCK_STATE, SYSTEM_SETTING_CALLBACK_SLOT_4, user_data);
@@ -2396,34 +2088,6 @@ int system_setting_unset_changed_callback_uds_pkg_list(system_settings_key_e key
 }
 /*  LCOV_EXCL_STOP */
 
-/* SYSTEM_SETTINGS_KEY_ACCESSIBILITY_TTS */
-int system_setting_get_accessibility_tts(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       int ret = system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &vconf_value);
-       if (ret != SYSTEM_SETTINGS_ERROR_NONE) {
-               return ret;
-       }
-       *value = (void *)vconf_value;
-       return ret;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_accessibility_tts(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_accessibility_tts(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2436,34 +2100,6 @@ int system_setting_unset_changed_callback_accessibility_tts(system_settings_key_
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-/* SYSTEM_SETTINGS_KEY_VIBRATION */
-int system_setting_get_vibration(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_vibration(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_vibration(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2476,34 +2112,6 @@ int system_setting_unset_changed_callback_vibration(system_settings_key_e key)
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-/* SYSTEM_SETTINGS_KEY_AUTOMATIC_TIME_UPDATE */
-int system_setting_get_automatic_time_update(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_automatic_time_update(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_automatic_time_update(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2516,34 +2124,6 @@ int system_setting_unset_changed_callback_automatic_time_update(system_settings_
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-/* SYSTEM_SETTINGS_KEY_DEVELOPER_OPTION_STATE */
-int system_setting_get_developer_option_state(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_developer_option_state(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_developer_option_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2556,34 +2136,6 @@ int system_setting_unset_changed_callback_developer_option_state(system_settings
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-/* SYSTEM_SETTINGS_KEY_ACCESSIBILITY_GRAYSCALE */
-int system_setting_get_accessibility_grayscale(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_accessibility_grayscale(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_accessibility_grayscale(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2596,34 +2148,6 @@ int system_setting_unset_changed_callback_accessibility_grayscale(system_setting
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-/* SYSTEM_SETTINGS_KEY_ACCESSIBILITY_NEGATIVE_COLOR */
-int system_setting_get_accessibility_negative_color(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
-/*  LCOV_EXCL_START */
-int system_setting_set_accessibility_negative_color(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 int system_setting_set_changed_callback_accessibility_negative_color(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
@@ -2636,36 +2160,6 @@ int system_setting_unset_changed_callback_accessibility_negative_color(system_se
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST, SYSTEM_SETTING_CALLBACK_SLOT_2);
 }
 
-/* SYSTEM_SETTINGS_KEY_ROTARY_EVENT_ENABLED */
-/*  LCOV_EXCL_START */
-int system_setting_get_rotary_event_enabled(system_settings_key_e key, void **value)
-{
-       SETTING_TRACE_BEGIN;
-       bool vconf_value;
-
-       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL, &vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-       *value = (void *)vconf_value;
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
-/*  LCOV_EXCL_START */
-int system_setting_set_rotary_event_enabled(system_settings_key_e key, void *value)
-{
-       SETTING_TRACE_BEGIN;
-       bool *vconf_value;
-       vconf_value = (bool *)value;
-       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL, *vconf_value)) {
-               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-       }
-
-       return SYSTEM_SETTINGS_ERROR_NONE;
-}
-/*  LCOV_EXCL_STOP */
-
 /*  LCOV_EXCL_START */
 int system_setting_set_changed_callback_rotary_event_enabled(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
@@ -2681,4 +2175,3 @@ int system_setting_unset_changed_callback_rotary_event_enabled(system_settings_k
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_3);
 }
 /*  LCOV_EXCL_STOP */
-
index 3a4479b..c5b36a6 100644 (file)
@@ -35,6 +35,7 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE,
+               VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_incoming_call_ringtone,
                system_setting_set_incoming_call_ringtone,
@@ -51,8 +52,9 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN,
+               VCONFKEY_BGSET,
                SYSTEM_SETTING_DATA_TYPE_STRING,
-               system_setting_get_wallpaper_home_screen,
+               system_setting_get_vconf,
                system_setting_set_wallpaper_home_screen,
                system_setting_set_changed_callback_wallpaper_home_screen,
                system_setting_unset_changed_callback_wallpaper_home_screen,
@@ -67,8 +69,9 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN,
+               VCONFKEY_IDLE_LOCK_BGSET,
                SYSTEM_SETTING_DATA_TYPE_STRING,
-               system_setting_get_wallpaper_lock_screen,
+               system_setting_get_vconf,
                system_setting_set_wallpaper_lock_screen,
                system_setting_set_changed_callback_wallpaper_lock_screen,
                system_setting_unset_changed_callback_wallpaper_lock_screen,
@@ -83,8 +86,9 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_FONT_SIZE,
+               VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE,
                SYSTEM_SETTING_DATA_TYPE_INT,
-               system_setting_get_font_size,
+               system_setting_get_vconf,
                system_setting_set_font_size,
                system_setting_set_changed_callback_font_size,
                system_setting_unset_changed_callback_font_size,
@@ -99,8 +103,9 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_FONT_TYPE,
+               VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME,
                SYSTEM_SETTING_DATA_TYPE_STRING,
-               system_setting_get_font_type,
+               system_setting_get_vconf,
                system_setting_set_font_type,
                system_setting_set_changed_callback_font_type,
                system_setting_unset_changed_callback_font_type,
@@ -115,9 +120,10 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION,
+               VCONFKEY_SETAPPL_MOTION_ACTIVATION,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_motion_activation,
-               system_setting_set_motion_activation,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_motion_activation,
                system_setting_unset_changed_callback_motion_activation,
                NULL,
@@ -131,6 +137,7 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE,
+               VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_email_alert_ringtone,
                system_setting_set_email_alert_ringtone,
@@ -146,9 +153,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED,
+               VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_usb_debugging_option,
-               system_setting_set_usb_debugging_option,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_usb_debugging_option,
                system_setting_unset_changed_callback_usb_debugging_option,
                NULL,
@@ -161,9 +169,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED,
+               VCONFKEY_3G_ENABLE,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_3g_data_network,
-               system_setting_set_3g_data_network,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_3g_data_network,
                system_setting_unset_changed_callback_3g_data_network,
                NULL,
@@ -174,8 +183,12 @@ system_setting_s system_setting_table[] = {
                { NULL, 0 }, /* changed callabck list */
                NULL,           /* user data */
        },
+//     { /* Deprecated */
+//             -5, NULL, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, { NULL, 0 }, NULL
+//     },
        {
                SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP,
+               VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_lockscreen_app,
                system_setting_set_lockscreen_app,
@@ -191,6 +204,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE,
+               NULL,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_default_font_type,
                NULL,
@@ -206,6 +220,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY,
+               VCONFKEY_REGIONFORMAT,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_locale_country,
                system_setting_set_locale_country,
@@ -221,6 +236,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE,
+               VCONFKEY_LANGSET,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_locale_language,
                system_setting_set_locale_language,
@@ -236,6 +252,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR,
+               VCONFKEY_REGIONFORMAT_TIME1224,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
                system_setting_get_locale_timeformat_24hour,
                system_setting_set_locale_timeformat_24hour,
@@ -251,6 +268,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE,
+               VCONFKEY_SETAPPL_TIMEZONE_ID,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_locale_timezone,
                system_setting_set_locale_timezone,
@@ -266,6 +284,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_TIME_CHANGED,
+               VCONFKEY_SYSTEM_TIME_CHANGED,
                SYSTEM_SETTING_DATA_TYPE_INT,
                system_setting_get_time_changed,
                NULL,
@@ -281,8 +300,9 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_SOUND_LOCK,
+               VCONFKEY_SETAPPL_SOUND_LOCK_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_sound_lock,
+               system_setting_get_vconf,
                NULL,
                system_setting_set_changed_callback_sound_lock,
                system_setting_unset_changed_callback_sound_lock,
@@ -296,6 +316,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE,
+               VCONFKEY_SETAPPL_SOUND_STATUS_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
                system_setting_get_sound_silent_mode,
                system_setting_set_sound_silent_mode,
@@ -311,9 +332,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_SOUND_TOUCH,
+               VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_sound_touch,
-               system_setting_set_sound_touch,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_sound_touch,
                system_setting_unset_changed_callback_sound_touch,
                NULL,
@@ -326,9 +348,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO,
+               VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_auto_rotation_mode,
-               system_setting_set_auto_rotation_mode,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_auto_rotation_mode,
                system_setting_unset_changed_callback_auto_rotation_mode,
                NULL,
@@ -340,12 +363,13 @@ system_setting_s system_setting_table[] = {
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME,
-               SYSTEM_SETTING_DATA_TYPE_INT,
-               system_setting_get_screen_backlight_time,
-               system_setting_set_screen_backlight_time,
-               system_setting_set_changed_callback_screen_backlight_time,
-               system_setting_unset_changed_callback_screen_backlight_time,
+               SYSTEM_SETTINGS_KEY_DEVICE_NAME,
+               VCONFKEY_SETAPPL_DEVICE_NAME_STR,
+               SYSTEM_SETTING_DATA_TYPE_STRING,
+               system_setting_get_vconf,
+               NULL,
+               system_setting_set_changed_callback_device_name,
+               system_setting_unset_changed_callback_device_name,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
@@ -355,42 +379,45 @@ system_setting_s system_setting_table[] = {
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION,
-               SYSTEM_SETTING_DATA_TYPE_STRING,
-               system_setting_get_sound_notification,
-               system_setting_set_sound_notification,
-               system_setting_set_changed_callback_sound_notification,
-               system_setting_unset_changed_callback_sound_notification,
+               SYSTEM_SETTINGS_KEY_MOTION_ENABLED,
+               VCONFKEY_SETAPPL_MOTION_ACTIVATION,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_vconf,
+               NULL,
+               system_setting_set_changed_callback_motion_activation,
+               system_setting_unset_changed_callback_motion_activation,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
                NULL,           /* LIST */
-               system_setting_feature_check_incoming_call,             /* feature check */
+               NULL,           /* feature check */
                { NULL, 0 }, /* changed callabck list */
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD,
-               SYSTEM_SETTING_DATA_TYPE_INT,
-               system_setting_get_notification_repetition_period,
-               system_setting_set_notification_repetition_period,
-               system_setting_set_changed_callback_notification_repetition_period,
-               system_setting_unset_changed_callback_notification_repetition_period,
+               SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION,
+               VCONFKEY_WIFI_ENABLE_QS,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_network_wifi_notification,
+               NULL,
+               system_setting_set_changed_callback_network_wifi_notification,
+               system_setting_unset_changed_callback_network_wifi_notification,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
                NULL,           /* LIST */
-               NULL,           /* feature check */
+               system_setting_feature_check_wifi,              /* feature check */
                { NULL, 0 }, /* changed callabck list */
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_DEVICE_NAME,
-               SYSTEM_SETTING_DATA_TYPE_STRING,
-               system_setting_get_device_name,
+               SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE,
+               VCONFKEY_TELEPHONY_FLIGHT_MODE,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_vconf,
                NULL,
-               system_setting_set_changed_callback_device_name,
-               system_setting_unset_changed_callback_device_name,
+               system_setting_set_changed_callback_network_flight_mode,
+               system_setting_unset_changed_callback_network_flight_mode,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
@@ -400,12 +427,13 @@ system_setting_s system_setting_table[] = {
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_MOTION_ENABLED,
-               SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_motion_activation,
-               NULL,
-               system_setting_set_changed_callback_motion_activation,
-               system_setting_unset_changed_callback_motion_activation,
+               SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME,
+               VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL,
+               SYSTEM_SETTING_DATA_TYPE_INT,
+               system_setting_get_vconf,
+               system_setting_set_screen_backlight_time,
+               system_setting_set_changed_callback_screen_backlight_time,
+               system_setting_unset_changed_callback_screen_backlight_time,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
@@ -415,40 +443,43 @@ system_setting_s system_setting_table[] = {
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE,
-               SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_network_flight_mode,
-               NULL,
-               system_setting_set_changed_callback_network_flight_mode,
-               system_setting_unset_changed_callback_network_flight_mode,
+               SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION,
+               VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR,
+               SYSTEM_SETTING_DATA_TYPE_STRING,
+               system_setting_get_vconf,
+               system_setting_set_sound_notification,
+               system_setting_set_changed_callback_sound_notification,
+               system_setting_unset_changed_callback_sound_notification,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
                NULL,           /* LIST */
-               NULL,           /* feature check */
+               system_setting_feature_check_incoming_call,             /* feature check */
                { NULL, 0 }, /* changed callabck list */
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION,
-               SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_network_wifi_notification,
-               NULL,
-               system_setting_set_changed_callback_network_wifi_notification,
-               system_setting_unset_changed_callback_network_wifi_notification,
+               SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD,
+               VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT,
+               SYSTEM_SETTING_DATA_TYPE_INT,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
+               system_setting_set_changed_callback_notification_repetition_period,
+               system_setting_unset_changed_callback_notification_repetition_period,
                NULL,
                NULL,           /* ADD */
                NULL,           /* DEL */
                NULL,           /* LIST */
-               system_setting_feature_check_wifi,              /* feature check */
+               NULL,           /* feature check */
                { NULL, 0 }, /* changed callabck list */
                NULL,           /* user data */
        },
        {
                SYSTEM_SETTINGS_KEY_LOCK_STATE,
+               VCONFKEY_IDLE_LOCK_STATE_READ_ONLY,
                SYSTEM_SETTING_DATA_TYPE_INT,
-               system_setting_get_lock_state,
-               system_setting_set_lock_state,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_lock_state,
                system_setting_unset_changed_callback_lock_state,
                NULL,
@@ -461,6 +492,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_ADS_ID,
+               VCONFKEY_SETAPPL_AD_ID,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                system_setting_get_ads_id,
                system_setting_set_ads_id,
@@ -477,6 +509,7 @@ system_setting_s system_setting_table[] = {
 
        {
                SYSTEM_SETTINGS_KEY_ULTRA_DATA_SAVE,
+               VCONFKEY_SETAPPL_UDSM,
                SYSTEM_SETTING_DATA_TYPE_INT,
                system_setting_get_uds_state,
                NULL,
@@ -492,6 +525,7 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_ULTRA_DATA_SAVE_PKG_LIST,
+               VCONFKEY_SETAPPL_UDSM_PKGID_LIST,
                SYSTEM_SETTING_DATA_TYPE_STRING,
                NULL,
                NULL,
@@ -507,9 +541,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_ACCESSIBILITY_TTS,
+               VCONFKEY_SETAPPL_ACCESSIBILITY_TTS,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_accessibility_tts,
-               system_setting_set_accessibility_tts,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_accessibility_tts,
                system_setting_unset_changed_callback_accessibility_tts,
                NULL,
@@ -522,9 +557,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_VIBRATION,
+               VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_vibration,
-               system_setting_set_vibration,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_vibration,
                system_setting_unset_changed_callback_vibration,
                NULL,
@@ -537,9 +573,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_AUTOMATIC_TIME_UPDATE,
+               VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_automatic_time_update,
-               system_setting_set_automatic_time_update,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_automatic_time_update,
                system_setting_unset_changed_callback_automatic_time_update,
                NULL,
@@ -552,9 +589,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_DEVELOPER_OPTION_STATE,
+               VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_developer_option_state,
-               system_setting_set_developer_option_state,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_developer_option_state,
                system_setting_unset_changed_callback_developer_option_state,
                NULL,
@@ -567,9 +605,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_ACCESSIBILITY_GRAYSCALE,
+               VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_accessibility_grayscale,
-               system_setting_set_accessibility_grayscale,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_accessibility_grayscale,
                system_setting_unset_changed_callback_accessibility_grayscale,
                NULL,
@@ -582,9 +621,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_ACCESSIBILITY_NEGATIVE_COLOR,
+               VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_accessibility_negative_color,
-               system_setting_set_accessibility_negative_color,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_accessibility_negative_color,
                system_setting_unset_changed_callback_accessibility_negative_color,
                NULL,
@@ -597,9 +637,10 @@ system_setting_s system_setting_table[] = {
        },
        {
                SYSTEM_SETTINGS_KEY_ROTARY_EVENT_ENABLED,
+               VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
-               system_setting_get_rotary_event_enabled,
-               system_setting_set_rotary_event_enabled,
+               system_setting_get_vconf,
+               system_setting_set_vconf,
                system_setting_set_changed_callback_rotary_event_enabled,
                system_setting_unset_changed_callback_rotary_event_enabled,
                NULL,
@@ -611,7 +652,7 @@ system_setting_s system_setting_table[] = {
                NULL,           /* user data */
        },
        {
-               SYSTEM_SETTINGS_MAX, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, { NULL, 0 }, NULL
+               SYSTEM_SETTINGS_MAX, NULL, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, { NULL, 0 }, NULL
        }
 };
 
@@ -662,7 +703,7 @@ static int _dump_context_node(int key)
        return -1;
 }
 /*  LCOV_EXCL_STOP */
-
+#if 0
 int system_settings_get_item(system_settings_key_e key, system_setting_h *item)
 {
        LOGE("Enter [%s], key=%d", __FUNCTION__, key);
@@ -695,6 +736,140 @@ int system_settings_get_item(system_settings_key_e key, system_setting_h *item)
 
        return TIZEN_ERROR_INVALID_PARAMETER;
 }
+#else
+
+int binary_search_for_item(system_settings_key_e key)
+{
+       int start = 0;
+       int end = SYSTEM_SETTINGS_KEY_MAX;
+
+       while (start <= end) {
+               int mid = (start + end) / 2;
+               if (system_setting_table[mid].key == key) {
+                       return mid;
+               } else if (system_setting_table[mid].key < key) {
+                       start = mid + 1;
+               } else {
+                       end = mid - 1;
+               }
+       }
+
+       LOGE("Enter [%s], key=%d, Can NOT find the key", __FUNCTION__, key);
+       return -1;
+}
+
+
+int system_settings_get_item(system_settings_key_e key, system_setting_h *item)
+{
+       LOGE("Enter [%s], key=%d", __FUNCTION__, key);
+
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               LOGE("Enter [%s] catch invalid parameter error (%d) ", __FUNCTION__, key);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+#if DEBUG_DUMP_CONTEXT
+       _dump_context();
+#endif
+       int idx = binary_search_for_item(key);
+       if (-1 == idx)
+               return TIZEN_ERROR_INVALID_PARAMETER;
+
+       *item = &system_setting_table[idx];
+       LOGE("Enter [%s],  key = %d, type = %d", __FUNCTION__, key, (*item)->data_type);
+       if (system_setting_table[idx].feature_check_cb != NULL) {
+               int ret = system_setting_table[idx].feature_check_cb(item);
+               if (ret == SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED) {
+                       LOGE("Not supported API, because there is no feature!");
+               }
+               return ret;
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+
+}
+#endif
+
+int system_setting_get_vconf(system_settings_key_e key, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       system_setting_h item;
+       char *vconf_char;
+       int vconf_int;
+       int **val = (int**)value;
+       bool vconf_bool;
+
+       int ret = system_settings_get_item(key, &item);
+       if (ret != 0) {
+               if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+                       _dump_context_node(key);
+                       LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               }
+               return ret;
+       }
+
+       switch(item->data_type) {
+       case SYSTEM_SETTING_DATA_TYPE_STRING:
+               if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_char))
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               *value = vconf_char;
+       break;
+       case SYSTEM_SETTING_DATA_TYPE_INT:
+               if (system_setting_vconf_get_value_int(item->vconf_key, &vconf_int))
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               **val = vconf_int;
+       break;
+       case SYSTEM_SETTING_DATA_TYPE_BOOL:
+               if (system_setting_vconf_get_value_bool(item->vconf_key, &vconf_bool))
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               *value = (void *)vconf_bool;
+       break;
+       default:
+               LOGE("Error system_setting_h struct data_type");
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_vconf(system_settings_key_e key, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       system_setting_h item;
+       char *vconf_char;
+       int vconf_int;
+       bool vconf_bool;
+
+       int ret = system_settings_get_item(key, &item);
+       if (ret != 0) {
+               if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+                       _dump_context_node(key);
+                       LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               }
+               return ret;
+       }
+
+       switch(item->data_type) {
+       case SYSTEM_SETTING_DATA_TYPE_STRING:
+               vconf_char = (char*)value;
+               if (system_setting_vconf_set_value_string(item->vconf_key, vconf_char))
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       break;
+       case SYSTEM_SETTING_DATA_TYPE_INT:
+               vconf_int = **(int**)value;
+               if (system_setting_vconf_set_value_int(item->vconf_key, vconf_int))
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       break;
+       case SYSTEM_SETTING_DATA_TYPE_BOOL:
+               vconf_bool = *(bool*)value;
+               if (system_setting_vconf_set_value_bool(item->vconf_key, vconf_bool))
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       break;
+       default:
+               LOGE("Error system_setting_h struct data_type");
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
 
 int system_settings_get_value(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {