Made lockscreen set password working 00/70000/5
authorBartlomiej Uliasz <b.uliasz@samsung.com>
Tue, 17 May 2016 14:26:55 +0000 (16:26 +0200)
committerBartlomiej Uliasz <b.uliasz@samsung.com>
Thu, 19 May 2016 10:47:05 +0000 (12:47 +0200)
Fixed issue: TSAM-1808

Change-Id: I5fe6604dd105cb796a3cb19c13913429ecbd5b4e
Signed-off-by: Bartlomiej Uliasz <b.uliasz@samsung.com>
setting-common/include/setting-common-data-type.h
setting-common/include/setting-common-draw-widget.h
setting-common/src/setting-common-draw-genlist.c
setting-locktype/src/setting-locktype-main.c
setting-password/include/setting-password-main.h
setting-password/include/setting-password.h
setting-password/src/setting-password-main.c
setting-password/src/setting-password-simple.c
setting-password/src/setting-password.c

index 61faad4f65505366de53399a879d242419e76a1e..8af57952ad51831586eea6797f6dbe2b5ac0d421 100644 (file)
 #define PWD_FILE       _TZ_SYS_DATA"/setting/set_info"
 
 
-#if 0 /* OLD_GENLIST_STYLE */
-#define SETTING_GENLIST_GROUP_INDEX_STYLE "groupindex"
-#define SETTING_GENLIST_ICON_1LINE_STYLE "1line"
-#define SETTING_GENLIST_2LINE_STYLE "2line.top"
-#define SETTING_GENLIST_MULTILINE_STYLE "multiline_sub"
-#define SETTING_GENLIST_LEFT_ICON_CONTENT_ICON_STYLE "1icon"
-#endif
-
 #define SETTING_GENLIST_GROUP_INDEX_STYLE "group_index"
 #define SETTING_GENLIST_ICON_1LINE_STYLE "type1"
 #define SETTING_GENLIST_2LINE_STYLE "type1"
 #define SETTING_GENLIST_MULTILINE_STYLE "multiline"
 #define SETTING_GENLIST_LEFT_ICON_CONTENT_ICON_STYLE "full"
-
+#define SETTING_GENLIST_ENTRY_STYLE "entry.main"
 
 #define SETTING_POSTINST_FILE "/var/lib/dpkg/info/org.tizen.setting.postinst"
 #define SETTING_PACKAGE                "setting"
index 548e753f87de3f5848fdc1526ae927013997be52..5bbff06f3bb08208102941f02fdf97c2762a20f8 100644 (file)
@@ -351,22 +351,15 @@ extern Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(
                const Elm_Genlist_Item_Class *itc,
                setting_call_back_func gl_sel,
                void *sel_data,
-               SWALLOW_Type
-               swallow_type,
+               SWALLOW_Type swallow_type,
                const char *keyStr,
                char *sub_desc,
-               setting_call_back_func
-               chk_change_cb,
-               setting_call_back_func
-               focused_cb,
-               setting_call_back_func
-               unfocused_cb,
-               setting_call_back_func
-               activated_cb,
-               setting_call_back_func
-               max_reached_cb,
-               Elm_Input_Panel_Layout
-               input_type,
+               setting_call_back_func chk_change_cb,
+               setting_call_back_func focused_cb,
+               setting_call_back_func unfocused_cb,
+               setting_call_back_func activated_cb,
+               setting_call_back_func max_reached_cb,
+               Elm_Input_Panel_Layout input_type,
                bool isPasswordFlag,
                bool isFocusFlag,
                int max_char_count,
index ac7ef2cdc2f25ce90c51183f1b06487cba310f78..a659aa17fa1783603d5e6ce268a215f2b460276b 100644 (file)
 
 #define DEF_BUF_SIZE 32
 
-static char *_gl_Gendial_text_get(void *data, Evas_Object *obj, const char *part);
-
-static Evas_Object *_gl_Gendial_content_get(void *data, Evas_Object *obj, const char *part);
-static char *_gl_Gendial_new_text_get(void *data, Evas_Object *obj, const char *part);
-
-#if 0
-static char *_gl_Gendial_text2_get(void *data, Evas_Object *obj, const char *part);
-#endif
-
+static Evas_Object *_gl_Gendial_content_get(void *data, Evas_Object *obj,
+               const char *part);
+static char *_gl_Gendial_new_text_get(void *data, Evas_Object *obj,
+               const char *part);
 static void _gl_Gendial_del(void *data, Evas_Object *obj);
-
+static Evas_Object *__add_entry_padding(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent);
+static Evas_Object *__add_entry_without_layout(
+               Setting_GenGroupItem_Data *item_data, Evas_Object *parent);
 /*
-EXPORT_PUBLIC
-const Elm_Genlist_Item_Class itc_seperator = {
      .item_style = "dialogue/separator.transparent.2",
      .func.text_get = NULL,
      .func.content_get = NULL,
      .func.state_get = NULL,
      .func.del = NULL,
-};
-*/
+ EXPORT_PUBLIC
+ const Elm_Genlist_Item_Class itc_seperator = {
+ .item_style = "dialogue/separator.transparent.2",
+ .func.text_get = NULL,
+ .func.content_get = NULL,
+ .func.state_get = NULL,
+ .func.del = NULL,
+ };
+ */
 
 /*
-EXPORT_PUBLIC
-const Elm_Genlist_Item_Class itc_bottom_seperator = {
      .item_style = NULL,
      .func.text_get = NULL,
      .func.content_get = NULL,
      .func.state_get = NULL,
      .func.del = NULL,
-};
-*/
+ EXPORT_PUBLIC
+ const Elm_Genlist_Item_Class itc_bottom_seperator = {
+ .item_style = NULL,
+ .func.text_get = NULL,
+ .func.content_get = NULL,
+ .func.state_get = NULL,
+ .func.del = NULL,
+ };
+ */
 
 #define DEFINE_ITC1(style, name) \
-       EXPORT_PUBLIC const Elm_Genlist_Item_Class name = {\
-                                                                                                          .item_style = style,\
-                                                                                                          .func.text_get = _gl_Gendial_new_text_get,\
-                                                                                                          .func.content_get = _gl_Gendial_content_get,\
-                                                                                                          .func.state_get = NULL,\
-                                                                                                          .func.del = _gl_Gendial_del,\
-                                                                                                         };
+       EXPORT_PUBLIC \
+       const Elm_Genlist_Item_Class name = {\
+               .item_style = style,\
+               .func.text_get = _gl_Gendial_new_text_get,\
+               .func.content_get = _gl_Gendial_content_get,\
+               .func.state_get = NULL,\
+               .func.del = _gl_Gendial_del,\
+       };
 
 DEFINE_ITC1(SETTING_GENLIST_ICON_1LINE_STYLE, itc_1text);
 DEFINE_ITC1(SETTING_GENLIST_ICON_1LINE_STYLE, itc_1text_1icon_2);
@@ -108,7 +107,7 @@ DEFINE_ITC1(SETTING_GENLIST_2LINE_STYLE, itc_2text_3_parent);
 DEFINE_ITC1(SETTING_GENLIST_MULTILINE_STYLE, itc_multiline_text);
 
 DEFINE_ITC1(SETTING_GENLIST_GROUP_INDEX_STYLE, itc_group_item);
-DEFINE_ITC1("elm/genlist/item/entry.main/default", itc_editfield);
+DEFINE_ITC1(SETTING_GENLIST_ENTRY_STYLE, itc_editfield);
 
 typedef struct _tagParamData {
        Setting_GenGroupItem_Data *item_data;
@@ -118,20 +117,19 @@ typedef struct _tagParamData {
        Evas_Object *box;
 } Datefield_Paramdata;
 
-
 /**
  * Do process when clicking on a common genlist item
  */
 EXPORT_PUBLIC
 void setting_mouse_up_Gendial_list_radio_cb(void *data, Evas_Object *obj,
-                                                                                       void *event_info)
+               void *event_info)
 {
        /* error check */
        retm_if(event_info == NULL, "Invalid argument: event info is NULL");
        Elm_Object_Item *item = (Elm_Object_Item *) event_info;
        elm_genlist_item_selected_set(item, 0);
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) elm_object_item_data_get(item);
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) elm_object_item_data_get(
+                       item);
 
        setting_retm_if(data == NULL, "Data parameter is NULL");
        Evas_Object *radio = data;
@@ -142,27 +140,31 @@ void setting_mouse_up_Gendial_list_radio_cb(void *data, Evas_Object *obj,
 static void __radio_changed(void *data, Evas_Object *obj, void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
-       list_item->chk_status = elm_radio_value_get(obj);       /*      for update */
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
+       list_item->chk_status = elm_radio_value_get(obj); /*    for update */
 }
 
 static void __entry_changed(void *data, Evas_Object *obj, void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
        SETTING_TRACE_BEGIN;
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
-       list_item->sub_desc = (char *)g_strdup(elm_entry_entry_get(obj));
+
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
+       list_item->sub_desc = (char *) g_strdup(elm_entry_entry_get(obj));
        Evas_Object *entry_container = elm_object_parent_widget_get(obj);
        if (entry_container) {
                if (elm_entry_is_empty(obj)) {
-                       elm_object_signal_emit(entry_container, "elm,state,guidetext,show", "elm");
-                       elm_object_signal_emit(entry_container, "elm,state,eraser,hide", "elm");
+                       elm_object_signal_emit(entry_container,
+                                       "elm,state,guidetext,show", "elm");
+                       elm_object_signal_emit(entry_container,
+                                       "elm,state,eraser,hide", "elm");
                } else {
-                       elm_object_signal_emit(entry_container, "elm,state,guidetext,hide", "elm");
-                       if (elm_object_focus_get(obj)) { /*only do when entry is focused */
-                               elm_object_signal_emit(entry_container, "elm,state,eraser,show", "elm");
+                       elm_object_signal_emit(entry_container,
+                                       "elm,state,guidetext,hide", "elm");
+                       /*only do when entry is focused */
+                       if (elm_object_focus_get(obj)) {
+                               elm_object_signal_emit(entry_container,
+                                               "elm,state,eraser,show", "elm");
                        }
                }
        }
@@ -171,15 +173,15 @@ static void __entry_changed(void *data, Evas_Object *obj, void *event_info)
 static void __chk_changed(void *data, Evas_Object *obj, void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
-       list_item->chk_status = elm_check_state_get(obj);       /*      for update */
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
+       list_item->chk_status = elm_check_state_get(obj); /*    for update */
 }
 
 static void __error_popup_response_cb(void *data, Evas_Object *obj,
-                                                                         void *event_info)
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
+
        retm_if(data == NULL, "Data parameter is NULL");
        Setting_GenGroupItem_Data *list_item = data;
        if (list_item->notify) {
@@ -191,15 +193,18 @@ static void __error_popup_response_cb(void *data, Evas_Object *obj,
 static void __max_len_reached(void *data, Evas_Object *obj, void *event_info)
 {
        SETTING_TRACE_BEGIN;
+
        retm_if(data == NULL, "Data parameter is NULL");
-       retm_if(!elm_object_focus_get(obj), "Entry is not focused");/*notify only when entry is being focused on. */
+       /*notify only when entry is being focused on. */
+       retm_if(!elm_object_focus_get(obj), "Entry is not focused");
 
        Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
        if (!list_item->notify) {
-               list_item->notify = setting_create_popup(list_item, list_item->win_main,
-                                                                                                NULL, EXCEED_LIMITATION_STR,
-                                                                                                __error_popup_response_cb,
-                                                                                                POPUP_INTERVAL, FALSE, FALSE, 0);
+               list_item->notify = setting_create_popup(list_item,
+                               list_item->win_main,
+                               NULL, EXCEED_LIMITATION_STR,
+                               __error_popup_response_cb,
+                               POPUP_INTERVAL, FALSE, FALSE, 0);
                elm_object_focus_set(list_item->eo_check, EINA_FALSE);
        } else {
                /*postpone 2 seconds again */
@@ -208,22 +213,26 @@ static void __max_len_reached(void *data, Evas_Object *obj, void *event_info)
 
 }
 
-static void __entry_keydown(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void __entry_keydown(void *data, Evas *e, Evas_Object *obj,
+               void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
        retm_if(event_info == NULL, "event_info is NULL");
        Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
-       Evas_Event_Key_Down *ev = (Evas_Event_Key_Down *)event_info;
+       Evas_Event_Key_Down *ev = (Evas_Event_Key_Down *) event_info;
        list_item->enterKeyPressFlag = FALSE;
        list_item->spaceKeyPressFlag = FALSE;
-       if (safeStrCmp(ev->key, "KP_Enter") == 0 /*it is for Japanese keyboard to fix N_SE-10719 */
-               || safeStrCmp(ev->key, "Return") == 0) { /*to disable the 'Enter' orginal function */
+       /*it is for Japanese keyboard to fix N_SE-10719 */
+       /*to disable the 'Enter' orginal function */
+       if (safeStrCmp(ev->key, "KP_Enter") == 0
+                       || safeStrCmp(ev->key, "Return") == 0) {
                SETTING_TRACE("ENTER %s ev->key:%s", __FUNCTION__, ev->key);
                list_item->enterKeyPressFlag = TRUE;
                /*hide the eraser button */
                /*format like:xx<br/> */
                if (list_item->isSinglelineFlag == FALSE) {
-                       const char *entry_str = remove_first_substring(elm_entry_entry_get(obj), "<br/>");
+                       const char *entry_str = remove_first_substring(
+                                       elm_entry_entry_get(obj), "<br/>");
                        elm_entry_entry_set(obj, entry_str);
                        FREE(entry_str);
                        elm_entry_cursor_end_set(obj);
@@ -245,23 +254,25 @@ EXPORT_PUBLIC
 void setting_sub_list_rd_change(void *data, Evas_Object *obj, void *event_info)
 {
        SETTING_TRACE_BEGIN;
+
        retm_if(data == NULL, "Data parameter is NULL");
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
-       list_item->chk_status = elm_radio_value_get(obj);       /*      for update */
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
+       list_item->chk_status = elm_radio_value_get(obj); /*    for update */
 
        Elm_Object_Item *subItem = list_item->item;
        Elm_Object_Item *parentItem = elm_genlist_item_parent_get(subItem);
 
-       Setting_GenGroupItem_Data *data_subItem = elm_object_item_data_get(subItem);    /* subItem data */
-       Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(parentItem);      /* parent data */
+       Setting_GenGroupItem_Data *data_subItem = elm_object_item_data_get(
+                       subItem); /* subItem data */
+       Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(
+                       parentItem); /* parent data */
 
        ret_if(NULL == data_subItem || NULL == data_parentItem);
        int err;
        setting_set_int_slp_key(data_parentItem->int_slp_setting_binded,
-                                                       list_item->chk_status, &err);
+                       list_item->chk_status, &err);
        ret_if(0 != err);
-       data_parentItem->sub_desc = (char *)g_strdup(_(data_subItem->keyStr));
+       data_parentItem->sub_desc = (char *) g_strdup(_(data_subItem->keyStr));
        elm_object_item_data_set(data_parentItem->item, data_parentItem);
        elm_genlist_item_update(data_parentItem->item);
 }
@@ -273,23 +284,26 @@ EXPORT_PUBLIC
 void setting_sub_list_sel_cb(void *data, Evas_Object *obj, void *event_info)
 {
        SETTING_TRACE_BEGIN;
+
        /* error check */
        retm_if(event_info == NULL, "Invalid argument: event info is NULL");
        Elm_Object_Item *subitem = (Elm_Object_Item *) event_info;
        Elm_Object_Item *parentItem = elm_genlist_item_parent_get(subitem);
        elm_genlist_item_selected_set(subitem, 0);
-       Setting_GenGroupItem_Data *data_subItem =
-               elm_object_item_data_get(subitem);
-       Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(parentItem);      /* parent data */
+       Setting_GenGroupItem_Data *data_subItem = elm_object_item_data_get(
+                       subitem);
+       Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(
+                       parentItem); /* parent data */
        ret_if(NULL == data_subItem || NULL == data_parentItem);
 
        elm_radio_value_set(data_subItem->rgd, data_subItem->chk_status);
        int err;
        setting_set_int_slp_key(data_parentItem->int_slp_setting_binded,
-                                                       data_subItem->chk_status, &err);
-       setting_retm_if(0 != err, "Set vconf error[%d]", data_parentItem->int_slp_setting_binded);
+                       data_subItem->chk_status, &err);
+       setting_retm_if(0 != err, "Set vconf error[%d]",
+                       data_parentItem->int_slp_setting_binded);
 
-       data_parentItem->sub_desc = (char *)g_strdup(data_subItem->keyStr);
+       data_parentItem->sub_desc = (char *) g_strdup(data_subItem->keyStr);
        elm_object_item_data_set(data_parentItem->item, data_parentItem);
        elm_genlist_item_update(data_parentItem->item);
        elm_genlist_item_expanded_set(parentItem, EINA_FALSE);
@@ -299,24 +313,27 @@ static void __exp_list_smart_cb(void *data, Evas_Object *obj, void *event_info)
 {
        ret_if(data == NULL || event_info == NULL);
        Elm_Object_Item *item = (Elm_Object_Item *) event_info;
-       Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(item);    /* parent data */
+       Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(
+                       item); /* parent data */
        char *cb_type = data;
 
        /*SETTING_TRACE_DEBUG("cb_type: %s", cb_type); */
        if (0 == safeStrCmp(cb_type, "drag")
-               || 0 == safeStrCmp(cb_type, "longpressed")) {
+                       || 0 == safeStrCmp(cb_type, "longpressed")) {
        } else if (0 == safeStrCmp(cb_type, "contracted")) {
                elm_genlist_item_subitems_clear(item);
                if (data_parentItem) {
                        const char *tmp = data_parentItem->r_swallow_path;
-                       elm_object_item_data_set(data_parentItem->item, data_parentItem);
+                       elm_object_item_data_set(data_parentItem->item,
+                                       data_parentItem);
                        elm_genlist_item_update(data_parentItem->item);
                        FREE(tmp);
                }
        } else if (0 == safeStrCmp(cb_type, "expanded")) {
                if (data_parentItem) {
                        const char *tmp = data_parentItem->r_swallow_path;
-                       elm_object_item_data_set(data_parentItem->item, data_parentItem);
+                       elm_object_item_data_set(data_parentItem->item,
+                                       data_parentItem);
                        elm_genlist_item_update(data_parentItem->item);
                        FREE(tmp);
                }
@@ -325,14 +342,15 @@ static void __exp_list_smart_cb(void *data, Evas_Object *obj, void *event_info)
 
 static void _gl_Gendial_sel(void *data, Evas_Object *obj, void *event_info)
 {
-       /* SETTING_TRACE_BEGIN; */
+       SETTING_TRACE_BEGIN;
+
        retm_if(event_info == NULL, "Invalid argument: event info is NULL");
        Elm_Object_Item *item = (Elm_Object_Item *) event_info;
-       elm_genlist_item_selected_set(item, 0);
+       elm_genlist_item_selected_set(item, EINA_FALSE);
 }
 
 static void _gl_Gendial_sel_expand(void *data, Evas_Object *obj,
-                                                                  void *event_info)
+               void *event_info)
 {
        /* SETTING_TRACE_BEGIN; */
        retm_if(event_info == NULL, "Invalid argument: event info is NULL");
@@ -343,53 +361,59 @@ static void _gl_Gendial_sel_expand(void *data, Evas_Object *obj,
 }
 
 static char *_gl_Gendial_new_text_get(void *data, Evas_Object *obj,
-                                                                         const char *part)
+               const char *part)
 {
-       /*SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) data;
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) data;
 
-#if 0
-       SETTING_TRACE("part:%s -------- item_data->itc : %s ", part, item_data->itc);
-#endif
        char *ret_str = NULL;
        /*------------------------------------------------------------- */
        /* style == multiline ---------> "elm.text.multiline" */
        /*------------------------------------------------------------- */
        /* style != multiline ---------> "elm.text" */
-       /*                                                               "elm.text.sub" */
+       /*                                               "elm.text.sub" */
        /*------------------------------------------------------------- */
        if (!safeStrCmp(item_data->itc, "multiline")) {
 
                if (!safeStrCmp(part, "elm.text.multiline")) {
                        if (item_data->keyStr) {
-                               ret_str = (char *)g_strdup(_(item_data->keyStr));
+                               ret_str = (char *) g_strdup(
+                                               _(item_data->keyStr));
                        }
                }
        } else {
                if (!safeStrCmp(part, "elm.text")) {
                        if (item_data->keyStr) {
-                               ret_str = (char *)g_strdup(_(item_data->keyStr));
+                               ret_str = (char *) g_strdup(
+                                               _(item_data->keyStr));
                        }
                } else if (!safeStrCmp(part, "elm.text.sub")) {
                        if (item_data->sub_desc) {
-                               ret_str = (char *)g_strdup(_(item_data->sub_desc));
+                               ret_str = (char *) g_strdup(
+                                               _(item_data->sub_desc));
                        }
                }
 #if 1
-               else if (!safeStrCmp(part, "elm.text.main") || !safeStrCmp(part, "elm.text.main.left") || !safeStrCmp(part, "elm.text.main.left.top")) {        /* title */
+               else if (!safeStrCmp(part, "elm.text.main")
+                               || !safeStrCmp(part, "elm.text.main.left")
+                               || !safeStrCmp(part,
+                                               "elm.text.main.left.top")) { /* title */
                        if (item_data->keyStr) {
-                               ret_str = (char *)g_strdup(_(item_data->keyStr));       /* use item_data->keyStr */
+                               ret_str = (char *) g_strdup(
+                                               _(item_data->keyStr)); /* use item_data->keyStr */
                        }
 
-               } else if (!safeStrCmp(part, "elm.text.2") || !safeStrCmp(part, "elm.text.sub.left.bottom")) {  /* bottom or right */
+               } else if (!safeStrCmp(part, "elm.text.2")
+                               || !safeStrCmp(part,
+                                               "elm.text.sub.left.bottom")) { /* bottom or right */
                        if (item_data->sub_desc) {
-                               ret_str = (char *)g_strdup(_(item_data->sub_desc));
+                               ret_str = (char *) g_strdup(
+                                               _(item_data->sub_desc));
                        }
 
-               } else if (!safeStrCmp(part, "elm.text.multiline")) {   /* title */
+               } else if (!safeStrCmp(part, "elm.text.multiline")) { /* title */
                        if (item_data->keyStr) {
-                               ret_str = (char *)g_strdup(_(item_data->keyStr));
+                               ret_str = (char *) g_strdup(
+                                               _(item_data->keyStr));
                        }
                }
 #endif
@@ -401,30 +425,30 @@ static char *_gl_Gendial_new_text_get(void *data, Evas_Object *obj,
        return ret_str;
 }
 
-
-
 static char *_gl_Gendial_text_get(void *data, Evas_Object *obj,
-                                                                 const char *part)
+               const char *part)
 {
        /*SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) data;
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) data;
        /* SETTING_TRACE("part:%s", part); */
 
        char *ret_str = NULL;
-       if (!safeStrCmp(part, "elm.text.main") || !safeStrCmp(part, "elm.text.main.left") || !safeStrCmp(part, "elm.text.main.left.top")) {     /* title */
+       if (!safeStrCmp(part, "elm.text.main")
+                       || !safeStrCmp(part, "elm.text.main.left")
+                       || !safeStrCmp(part, "elm.text.main.left.top")) { /* title */
                if (item_data->keyStr) {
-                       ret_str = (char *)g_strdup(_(item_data->keyStr));       /* use item_data->keyStr */
+                       ret_str = (char *) g_strdup(_(item_data->keyStr)); /* use item_data->keyStr */
                }
 
-       } else if (!safeStrCmp(part, "elm.text.2") || !safeStrCmp(part, "elm.text.sub.left.bottom")) {  /* bottom or right */
+       } else if (!safeStrCmp(part, "elm.text.2")
+                       || !safeStrCmp(part, "elm.text.sub.left.bottom")) { /* bottom or right */
                if (item_data->sub_desc) {
-                       ret_str = (char *)g_strdup(_(item_data->sub_desc));
+                       ret_str = (char *) g_strdup(_(item_data->sub_desc));
                }
 
-       } else if (!safeStrCmp(part, "elm.text.multiline")) {   /* title */
+       } else if (!safeStrCmp(part, "elm.text.multiline")) { /* title */
                if (item_data->keyStr) {
-                       ret_str = (char *)g_strdup(_(item_data->keyStr));
+                       ret_str = (char *) g_strdup(_(item_data->keyStr));
                }
        } else {
                FREE(ret_str);
@@ -436,20 +460,20 @@ static char *_gl_Gendial_text_get(void *data, Evas_Object *obj,
 
 #if 0
 static char *_gl_Gendial_text2_get(void *data, Evas_Object *obj,
-                                                                  const char *part)
+               const char *part)
 {
        /*SETTING_TRACE_BEGIN; */
        Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) data;
+       (Setting_GenGroupItem_Data *) data;
        /* SETTING_TRACE("part:%s", part); */
 
        char *ret_str = NULL;
        /*SETTING_TRACE("part:[%s], text:[%s] ", part, _(item_data->keyStr)); */
-       if (!safeStrCmp(part, "elm.text")) {    /* title */
+       if (!safeStrCmp(part, "elm.text")) { /* title */
                if (item_data->keyStr) {
-                       ret_str = (char *)g_strdup(_(item_data->keyStr));       /* use item_data->keyStr */
+                       ret_str = (char *)g_strdup(_(item_data->keyStr)); /* use item_data->keyStr */
                }
-       } else if (!safeStrCmp(part, "elm.text.multiline")) {   /* bottom or right */
+       } else if (!safeStrCmp(part, "elm.text.multiline")) { /* bottom or right */
                if (item_data->sub_desc) {
                        ret_str = (char *)g_strdup(_(item_data->sub_desc));
                }
@@ -462,11 +486,13 @@ static char *_gl_Gendial_text2_get(void *data, Evas_Object *obj,
 }
 #endif
 
-static Evas_Object *__add_check_invisible(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_check_invisible(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
 
-       if (item_data->isItemHideFlag) return NULL;
+       if (item_data->isItemHideFlag)
+               return NULL;
 
 #if 0
        Evas_Object *content = elm_layout_add(parent);
@@ -481,16 +507,19 @@ static Evas_Object *__add_check_invisible(Setting_GenGroupItem_Data *item_data,
        elm_check_state_set(check, item_data->chk_status);
        evas_object_propagate_events_set(check, 0);
        evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
 
        evas_object_pass_events_set(check, 1);
 
        item_data->eo_check = check;
 
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(check, "changed", item_data->chk_change_cb, item_data);
+               evas_object_smart_callback_add(check, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(check, "changed", __chk_changed, item_data);
+               evas_object_smart_callback_add(check, "changed", __chk_changed,
+                               item_data);
        }
        evas_object_show(check);
 
@@ -505,9 +534,8 @@ static Evas_Object *__add_check_invisible(Setting_GenGroupItem_Data *item_data,
 #endif
 }
 
-
-
-static Evas_Object *__add_check(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_check(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
 
@@ -525,22 +553,25 @@ static Evas_Object *__add_check(Setting_GenGroupItem_Data *item_data, Evas_Objec
        elm_check_state_set(check, item_data->chk_status);
        evas_object_propagate_events_set(check, 0);
        evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
 
        if (SWALLOW_Type_1CHECK == item_data->swallow_type) {
-               elm_check_state_pointer_set(check, (Eina_Bool *)(&(item_data->chk_status)));
+               elm_check_state_pointer_set(check,
+                               (Eina_Bool *) (&(item_data->chk_status)));
                evas_object_pass_events_set(check, 1);
        } else {
                evas_object_pass_events_set(check, 1);
        }
 
-
        item_data->eo_check = check;
 
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(check, "changed", item_data->chk_change_cb, item_data);
+               evas_object_smart_callback_add(check, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(check, "changed", __chk_changed, item_data);
+               evas_object_smart_callback_add(check, "changed", __chk_changed,
+                               item_data);
        }
        evas_object_show(check);
 
@@ -554,7 +585,8 @@ static Evas_Object *__add_check(Setting_GenGroupItem_Data *item_data, Evas_Objec
 #endif
 }
 
-static Evas_Object *__add_toggle(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_toggle(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
        Evas_Object *check = elm_check_add(parent);
@@ -566,22 +598,25 @@ static Evas_Object *__add_toggle(Setting_GenGroupItem_Data *item_data, Evas_Obje
        elm_check_state_set(check, item_data->chk_status);
        evas_object_propagate_events_set(check, 0);
        evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
 
        if (SWALLOW_Type_1CHECK == item_data->swallow_type) {
-               elm_check_state_pointer_set(check, (Eina_Bool *)(&(item_data->chk_status)));
+               elm_check_state_pointer_set(check,
+                               (Eina_Bool *) (&(item_data->chk_status)));
                evas_object_pass_events_set(check, 1);
        } else {
                evas_object_pass_events_set(check, 1);
        }
 
-
        item_data->eo_check = check;
 
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(check, "changed", item_data->chk_change_cb, item_data);
+               evas_object_smart_callback_add(check, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(check, "changed", __chk_changed, item_data);
+               evas_object_smart_callback_add(check, "changed", __chk_changed,
+                               item_data);
        }
        evas_object_show(check);
 
@@ -589,18 +624,19 @@ static Evas_Object *__add_toggle(Setting_GenGroupItem_Data *item_data, Evas_Obje
        return check;
 }
 
-static Evas_Object *__add_dot_toggle(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_dot_toggle(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        /*SETTING_TRACE_BEGIN; */
        retv_if(!item_data || !parent || -1 == item_data->chk_status, NULL);
        return NULL;
 }
 
-
-static Evas_Object *__add_radio(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_radio(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
-       if (!item_data->rgd) {  /* exceptional handling */
+       if (!item_data->rgd) { /* exceptional handling */
                item_data->rgd = elm_radio_add(parent);
                elm_radio_state_value_set(item_data->rgd, -1);
        }
@@ -615,21 +651,16 @@ static Evas_Object *__add_radio(Setting_GenGroupItem_Data *item_data, Evas_Objec
 
        evas_object_propagate_events_set(radio, EINA_FALSE);
        evas_object_repeat_events_set(radio, EINA_TRUE);
-       elm_radio_state_value_set(radio,
-                                                         item_data->chk_status);
+       elm_radio_state_value_set(radio, item_data->chk_status);
        elm_radio_group_add(radio, item_data->rgd);
        evas_object_show(radio);
        item_data->eo_check = radio;
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          __radio_changed,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               __radio_changed, item_data);
        }
 
 #if 0
@@ -641,11 +672,11 @@ static Evas_Object *__add_radio(Setting_GenGroupItem_Data *item_data, Evas_Objec
 #endif
 }
 
-
 /**
  * this code is as same as __add_radio_right, in exception of evas_object_propagate_events_set(... FALSE)
  */
-static Evas_Object *__add_radio_right_propagate_events_set(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_radio_right_propagate_events_set(
+               Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
 {
 
        retv_if(!item_data || !parent, NULL);
@@ -663,26 +694,21 @@ static Evas_Object *__add_radio_right_propagate_events_set(Setting_GenGroupItem_
 #endif
 
 #if 1
-       #if 0
+#if 0
        evas_object_propagate_events_set(ly_radio, EINA_FALSE);
-       #endif
+#endif
        evas_object_propagate_events_set(radio, EINA_FALSE);
 #endif
-       elm_radio_state_value_set(radio,
-                                                         item_data->chk_status);
+       elm_radio_state_value_set(radio, item_data->chk_status);
        elm_radio_group_add(radio, item_data->rgd);
        evas_object_show(radio);
        item_data->eo_check = radio;
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          __radio_changed,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               __radio_changed, item_data);
        }
 #if 0
        elm_layout_content_set(ly_radio, "elm.swallow.content", radio);
@@ -693,7 +719,8 @@ static Evas_Object *__add_radio_right_propagate_events_set(Setting_GenGroupItem_
 #endif
 }
 
-static Evas_Object *__add_radio_right(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_radio_right(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
        if (!item_data->rgd) {
@@ -702,57 +729,48 @@ static Evas_Object *__add_radio_right(Setting_GenGroupItem_Data *item_data, Evas
        }
        Evas_Object *radio = elm_radio_add(parent);
 
-       elm_radio_state_value_set(radio,
-                                                         item_data->chk_status);
+       elm_radio_state_value_set(radio, item_data->chk_status);
        elm_radio_group_add(radio, item_data->rgd);
        item_data->eo_check = radio;
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          __radio_changed,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               __radio_changed, item_data);
        }
        elm_object_signal_emit(radio, "elm,event,pass,enabled", "elm");
 
        return radio;
 }
 
-static Evas_Object *__add_radio_text(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_radio_text(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
-       if (!item_data->rgd) {  /* exceptional handling */
+       if (!item_data->rgd) { /* exceptional handling */
                item_data->rgd = elm_radio_add(parent);
                elm_radio_state_value_set(item_data->rgd, -1);
        }
        Evas_Object *radio = elm_radio_add(parent);
        evas_object_propagate_events_set(radio, EINA_FALSE);
        evas_object_repeat_events_set(radio, EINA_FALSE);
-       elm_radio_state_value_set(radio,
-                                                         item_data->chk_status);
+       elm_radio_state_value_set(radio, item_data->chk_status);
        elm_radio_group_add(radio, item_data->rgd);
        evas_object_show(radio);
        item_data->eo_check = radio;
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               item_data->chk_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(radio,
-                                                                          "changed",
-                                                                          __radio_changed,
-                                                                          item_data);
+               evas_object_smart_callback_add(radio, "changed",
+                               __radio_changed, item_data);
        }
        return radio;
 }
 
-
-static Evas_Object *__add_button(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_button(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
        Evas_Object *btn = elm_button_add(parent);
@@ -761,38 +779,36 @@ static Evas_Object *__add_button(Setting_GenGroupItem_Data *item_data, Evas_Obje
        if (item_data->r_swallow_path) {
                elm_object_style_set(btn, item_data->r_swallow_path);
        }
-       if (item_data->keyStr && item_data->swallow_type != SWALLOW_Type_1RADIO_1BTN) {
+       if (item_data->keyStr
+                       && item_data->swallow_type
+                                       != SWALLOW_Type_1RADIO_1BTN) {
                elm_object_text_set(btn, _(item_data->keyStr));
        }
        evas_object_propagate_events_set(btn, EINA_FALSE);
 
-       if (item_data->stop_change_cb) {        /* just only for 1radio_1btn type */
+       if (item_data->stop_change_cb) { /* just only for 1radio_1btn type */
 
-               evas_object_smart_callback_add(btn,
-                                                                          "clicked",
-                                                                          item_data->stop_change_cb,
-                                                                          item_data);
-       } else if (item_data->chk_change_cb) {  /* for other types */
-               evas_object_smart_callback_add(btn,
-                                                                          "clicked",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(btn, "clicked",
+                               item_data->stop_change_cb, item_data);
+       } else if (item_data->chk_change_cb) { /* for other types */
+               evas_object_smart_callback_add(btn, "clicked",
+                               item_data->chk_change_cb, item_data);
        }
        return btn;
 }
 
-
-static Evas_Object *__add_gif(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_gif(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
        Evas_Object *image = NULL;
-       const char **png_list = (const char **)item_data->belongs_to;
+       const char **png_list = (const char **) item_data->belongs_to;
 
        /*SETTING_TRACE("item_data->belongs_to:%p", png_list); */
        if (png_list && *png_list) {
-               if (png_list[1]) {      /*png_list is an array end with 'NULL', and it has at least 2 png file, */
+               if (png_list[1]) { /*png_list is an array end with 'NULL', and it has at least 2 png file, */
                        image = setting_create_gif(parent, png_list);
-               } else {        /*png_list just has one png file, */
+               } else { /*png_list just has one png file, */
                        image = setting_create_image(parent, *png_list);
                }
        }
@@ -810,54 +826,70 @@ static Evas_Object *__add_image(Setting_GenGroupItem_Data *item_data, Evas_Objec
 }
 #endif
 
-static void __entry_without_layout_focused_cb(void *data, Evas_Object *obj, void *ei) /* Focused callback will show X marked button and hide guidetext. */
+static void __entry_without_layout_focused_cb(void *data, Evas_Object *obj,
+               void *ei) /* Focused callback will show X marked button and hide guidetext. */
 {
        SETTING_TRACE_BEGIN;
+
        Setting_GenGroupItem_Data *id = data;
        if (!elm_entry_is_empty(obj)) {
-               elm_object_item_signal_emit(id->item, "elm,state,eraser,show", "");
+               elm_object_item_signal_emit(id->item, "elm,state,eraser,show",
+                               "");
        }
        elm_object_item_signal_emit(id->item, "elm,state,rename,hide", "");
 
        /* accessibiliy */
        Evas_Object *acc = elm_object_item_access_object_get(id->item);
-       if (!acc) return;
+       if (!acc)
+               return;
 
        const char *txt = elm_entry_entry_get(obj);
        if (!txt || 0 == strlen(txt))
                txt = elm_object_part_text_get(obj, "elm.guide");
 
        /* Say entry focused */
-       Eina_Stringshare *str = eina_stringshare_printf("%s, Edit Field, Keyboard opened", txt);
-       elm_access_say((char *)str);
+       Eina_Stringshare *str = eina_stringshare_printf(
+                       "%s, Edit Field, Keyboard opened", txt);
+       elm_access_say((char *) str);
        eina_stringshare_del(str);
        SETTING_TRACE_END;
+
 }
 
-static void __entry_without_layout_unfocused_cb(void *data, Evas_Object *obj, void *event_info) /* Unfocused callback will show guidetext and hide X marked button. */
+static void __entry_without_layout_unfocused_cb(void *data, Evas_Object *obj,
+               void *event_info) /* Unfocused callback will show guidetext and hide X marked button. */
 {
        SETTING_TRACE_BEGIN;
+
        setting_retm_if(data == NULL, "invalid parameter: data is NULL");
        Setting_GenGroupItem_Data *id = data;
        setting_retm_if(id->item == NULL, "item is NULL");
        elm_object_item_signal_emit(id->item, "elm,state,eraser,hide", "");
        elm_object_item_signal_emit(id->item, "elm,state,rename,show", "");
        SETTING_TRACE_END;
+
 }
 
 static void __rejected_char_cb(void *data, Evas_Object *obj, void *event_info)
 {
        SETTING_TRACE_BEGIN;
 
+
        /*SETTING_TRACE_DEBUG("Input char is not an Alphanumeric&Symbol."); */
-       setting_create_popup(NULL, elm_object_parent_widget_get(obj), NULL, _("IDS_ST_BODY_PASSWORD_CONTAINS_INVALID_CHARACTER_ABB"), NULL, 0, false, false, 0);
+       setting_create_popup(NULL, elm_object_parent_widget_get(obj), NULL,
+                       _(
+                                       "IDS_ST_BODY_PASSWORD_CONTAINS_INVALID_CHARACTER_ABB"),
+                       NULL, 0, false, false, 0);
 }
 
-static Evas_Object *__add_entry_without_layout(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_entry_without_layout(
+               Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
 {
        SETTING_TRACE_BEGIN;
 
-       elm_genlist_mode_set(parent, ELM_LIST_COMPRESS);        /* resolve abnormal height issue */
+
+       /* resolve abnormal height issue */
+       elm_genlist_mode_set(parent, ELM_LIST_COMPRESS);
        Evas_Object *entry = NULL;
        item_data->eo_check = entry = elm_entry_add(parent);
        if (item_data->isPasswordFlag) {
@@ -867,17 +899,19 @@ static Evas_Object *__add_entry_without_layout(Setting_GenGroupItem_Data *item_d
        } else {
                elm_entry_single_line_set(entry, EINA_FALSE);
        }
-       evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
        if (item_data->focus_unallowed) {
                elm_object_focus_allow_set(entry, EINA_FALSE);
        }
-       elm_entry_input_panel_layout_set(entry,
-                                                                        item_data->input_type);
+       elm_entry_input_panel_layout_set(entry, item_data->input_type);
        elm_entry_prediction_allow_set(entry, FALSE);
-       elm_entry_input_panel_return_key_type_set(entry, item_data->return_key_type);
+       elm_entry_input_panel_return_key_type_set(entry,
+                       item_data->return_key_type);
        if (item_data->disable_auto_cap) {
-               elm_entry_autocapital_type_set(entry, ELM_AUTOCAPITAL_TYPE_NONE);
+               elm_entry_autocapital_type_set(entry,
+                               ELM_AUTOCAPITAL_TYPE_NONE);
        }
 
        if (item_data->isSinglelineFlag) {
@@ -885,117 +919,118 @@ static Evas_Object *__add_entry_without_layout(Setting_GenGroupItem_Data *item_d
                elm_entry_single_line_set(entry, EINA_TRUE);
                elm_object_signal_emit(entry, "elm,state,scroll,enabled", "");
        } else {
-               /*for multi-line editfield or entry, need to disable clear button,refer to P130802-3553*/
+               /*for multi-line editfield or entry, need to disable clear
+                * button,refer to P130802-3553*/
                /*ea_editfield_clear_button_disabled_set(entry, EINA_TRUE); */
        }
 
        if (item_data->isPasswordFlag) {
                elm_entry_password_set(entry, EINA_TRUE);
                static Elm_Entry_Filter_Accept_Set accept_filter_data;
-               accept_filter_data.accepted = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!""#$%&'()*+,-./:;<=>?@[]\\^_`{|}~";
+               accept_filter_data.accepted = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+                               "abcdefghijklmnopqrstuvwxyz"
+                               "0123456789"
+                               "!#$%&'()*+,-./:;<=>?@[]\\^_`{|}~";
                accept_filter_data.rejected = NULL;
-               elm_entry_markup_filter_append(entry, elm_entry_filter_accept_set, &accept_filter_data);
+               elm_entry_markup_filter_append(entry,
+                               elm_entry_filter_accept_set,
+                               &accept_filter_data);
 
-               evas_object_smart_callback_add(entry, "rejected", __rejected_char_cb, item_data);
+               evas_object_smart_callback_add(entry, "rejected",
+                               __rejected_char_cb, item_data);
        }
 
        if (item_data->limit_filter_data) {
-               elm_entry_markup_filter_append
-               (entry,
-                elm_entry_filter_limit_size,
-                item_data->limit_filter_data);
+               elm_entry_markup_filter_append(entry,
+                               elm_entry_filter_limit_size,
+                               item_data->limit_filter_data);
 
                if (item_data->maxlength_reached_cb) {
                        evas_object_smart_callback_add(entry,
-                                                                                  "maxlength,reached",
-                                                                                  item_data->maxlength_reached_cb,
-                                                                                  item_data);
+                                       "maxlength,reached",
+                                       item_data->maxlength_reached_cb,
+                                       item_data);
                } else {
                        evas_object_smart_callback_add(entry,
-                                                                                  "maxlength,reached",
-                                                                                  __max_len_reached,
-                                                                                  item_data);
+                                       "maxlength,reached", __max_len_reached,
+                                       item_data);
                }
        }
 
        /*SETTING_TRACE("item_data->stop_change_cb:%p", item_data->stop_change_cb); */
        if (item_data->stop_change_cb) {/*invoked when stop focusing on */
-               evas_object_smart_callback_add(entry,
-                                                                          "unfocused",
-                                                                          item_data->stop_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(entry, "unfocused",
+                               item_data->stop_change_cb, item_data);
        } else {
-               evas_object_smart_callback_add(entry,
-                                                                          "unfocused",
-                                                                          __entry_without_layout_unfocused_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(entry, "unfocused",
+                               __entry_without_layout_unfocused_cb, item_data);
        }
        if (item_data->digits_filter_data) {
                elm_entry_markup_filter_append(entry,
-                                                                          elm_entry_filter_accept_set,
-                                                                          item_data->digits_filter_data);
+                               elm_entry_filter_accept_set,
+                               item_data->digits_filter_data);
        }
 
-
        if (item_data->sub_desc && safeStrLen(item_data->sub_desc) > 0) {
                elm_entry_entry_set(entry, item_data->sub_desc);
        } else {
                if (item_data->guide_text) {
-                       elm_object_part_text_set(entry, "elm.guide", _(item_data->guide_text)); /* Add guide text to elm_entry. */
+                       elm_object_part_text_set(entry, "elm.guide",
+                                       _(item_data->guide_text)); /* Add guide text to elm_entry. */
                } else {
-                       elm_object_part_text_set(entry, "elm.guide", _("IDS_ST_BODY_TAP_TO_INSERT"));
+                       elm_object_part_text_set(entry, "elm.guide",
+                                       _("IDS_ST_BODY_TAP_TO_INSERT"));
                }
        }
 
-
        /* for Setting App, All the entrys's context popup shouldn't be able */
        /* to insert images, text is the only one can be inserted. */
        elm_entry_cnp_mode_set(entry, ELM_CNP_MODE_PLAINTEXT);
 
        if (item_data->chk_change_cb) {
-               evas_object_smart_callback_add(entry,
-                                                                          "changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
-               evas_object_smart_callback_add(entry,
-                                                                          "preedit,changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(entry, "changed",
+                               item_data->chk_change_cb, item_data);
+               evas_object_smart_callback_add(entry, "preedit,changed",
+                               item_data->chk_change_cb, item_data);
        } else {
                /*default handle */
-               evas_object_smart_callback_add(entry, "changed", __entry_changed, item_data);
+               evas_object_smart_callback_add(entry, "changed",
+                               __entry_changed, item_data);
        }
 
        /* callback for handling enter key */
        if (item_data->activated_cb) {
-               evas_object_smart_callback_add(entry,
-                                                                          "activated",
-                                                                          item_data->activated_cb,
-                                                                          item_data);
+               evas_object_smart_callback_add(entry, "activated",
+                               item_data->activated_cb, item_data);
        }
 
        /*SETTING_TRACE("item_data->focus_cb:%p", item_data->focus_cb); */
 
        if (item_data->focus_cb) {
-               evas_object_smart_callback_add(entry, "focused", item_data->focus_cb, item_data);
+               evas_object_smart_callback_add(entry, "focused",
+                               item_data->focus_cb, item_data);
        } else {
-               evas_object_smart_callback_add(entry, "focused", __entry_without_layout_focused_cb, item_data);
+               evas_object_smart_callback_add(entry, "focused",
+                               __entry_without_layout_focused_cb, item_data);
        }
 
        /*elm_object_signal_callback_add(ed_name, "elm,eraser,clicked", "elm", __eraser_clicked, entry); */
 
        if (item_data->start_change_cb) {
-               evas_object_event_callback_add(entry, EVAS_CALLBACK_KEY_DOWN, (Evas_Object_Event_Cb)(item_data->start_change_cb), item_data->userdata);
+               evas_object_event_callback_add(entry, EVAS_CALLBACK_KEY_DOWN,
+                               (Evas_Object_Event_Cb) (item_data->start_change_cb),
+                               item_data->userdata);
        } else {
-               evas_object_event_callback_add(entry, EVAS_CALLBACK_KEY_DOWN, __entry_keydown, item_data);
+               evas_object_event_callback_add(entry, EVAS_CALLBACK_KEY_DOWN,
+                               __entry_keydown, item_data);
        }
 
-       Ecore_IMF_Context *imf_context = (Ecore_IMF_Context *)elm_entry_imf_context_get(entry);
+       Ecore_IMF_Context *imf_context = (Ecore_IMF_Context *) elm_entry_imf_context_get(
+                       entry);
        if (imf_context && item_data->x_callback_cb) {
                ecore_imf_context_input_panel_event_callback_add(imf_context,
-                                                                                                                ECORE_IMF_INPUT_PANEL_STATE_EVENT,
-                                                                                                                item_data->x_callback_cb,
-                                                                                                                item_data->userdata);
+                               ECORE_IMF_INPUT_PANEL_STATE_EVENT,
+                               item_data->x_callback_cb, item_data->userdata);
        }
        if (item_data->input_panel_disable_flag) {
                elm_entry_input_panel_enabled_set(entry, EINA_FALSE);
@@ -1005,17 +1040,22 @@ static Evas_Object *__add_entry_without_layout(Setting_GenGroupItem_Data *item_d
                elm_object_focus_set(entry, EINA_TRUE);
        }
 
+       SETTING_TRACE_END;
+
        return entry;
 }
 
-static Evas_Object *__add_entry_padding(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_entry_padding(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        SETTING_TRACE_BEGIN;
 
+
        retv_if(!item_data || !parent, NULL);
        Evas_Object *layout = elm_layout_add(parent);
        elm_layout_file_set(layout, SETTING_THEME_EDJ_NAME, "entry_layout");
-       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
        setting_retvm_if(layout == NULL, FALSE, "layout == NULL");
 
@@ -1028,16 +1068,16 @@ static Evas_Object *__add_entry_padding(Setting_GenGroupItem_Data *item_data, Ev
 static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
-       elm_genlist_mode_set(parent, ELM_LIST_COMPRESS);        /* resolve abnormal height issue */
+       elm_genlist_mode_set(parent, ELM_LIST_COMPRESS); /* resolve abnormal height issue */
        Evas_Object *ed_name =
-               setting_create_editfiled(parent, _(item_data->keyStr),
-                                                                item_data->sub_desc, item_data->guide_text);
+       setting_create_editfiled(parent, _(item_data->keyStr),
+                       item_data->sub_desc, item_data->guide_text);
        evas_object_pass_events_set(ed_name, 1);
        evas_object_propagate_events_set(ed_name, 0);
        Evas_Object *entry = elm_object_part_content_get(ed_name, "elm.swallow.content");
        item_data->eo_check = entry;
        elm_entry_input_panel_layout_set(entry,
-                                                                        item_data->input_type);
+                       item_data->input_type);
 
        if (item_data->isSinglelineFlag) {
                elm_entry_scrollable_set(entry, EINA_TRUE);
@@ -1052,36 +1092,36 @@ static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Objec
        if (item_data->limit_filter_data) {
                elm_entry_markup_filter_append
                (entry,
-                elm_entry_filter_limit_size,
-                item_data->limit_filter_data);
+                               elm_entry_filter_limit_size,
+                               item_data->limit_filter_data);
 
                if (item_data->maxlength_reached_cb) {
                        evas_object_smart_callback_add(entry,
-                                                                                  "maxlength,reached",
-                                                                                  item_data->maxlength_reached_cb,
-                                                                                  item_data);
+                                       "maxlength,reached",
+                                       item_data->maxlength_reached_cb,
+                                       item_data);
                } else {
                        evas_object_smart_callback_add(entry,
-                                                                                  "maxlength,reached",
-                                                                                  __max_len_reached,
-                                                                                  item_data);
+                                       "maxlength,reached",
+                                       __max_len_reached,
+                                       item_data);
                }
        }
        if (item_data->stop_change_cb) {/*invoked when stop focusing on */
                evas_object_smart_callback_add(entry,
-                                                                          "unfocused",
-                                                                          item_data->stop_change_cb,
-                                                                          item_data);
+                               "unfocused",
+                               item_data->stop_change_cb,
+                               item_data);
        } else {
                evas_object_smart_callback_add(entry,
-                                                                          "unfocused",
-                                                                          __entry_unfocused,
-                                                                          ed_name);
+                               "unfocused",
+                               __entry_unfocused,
+                               ed_name);
        }
        if (item_data->digits_filter_data) {
                elm_entry_markup_filter_append(entry,
-                                                                          elm_entry_filter_accept_set,
-                                                                          item_data->digits_filter_data);
+                               elm_entry_filter_accept_set,
+                               item_data->digits_filter_data);
        }
 
        /* for Setting App, All the entrys's context popup shouldn't be able */
@@ -1090,9 +1130,9 @@ static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Objec
 
        if (item_data->chk_change_cb) {
                evas_object_smart_callback_add(entry,
-                                                                          "changed",
-                                                                          item_data->chk_change_cb,
-                                                                          item_data);
+                               "changed",
+                               item_data->chk_change_cb,
+                               item_data);
        } else {
                /*default handle */
                evas_object_smart_callback_add(entry, "changed", __entry_changed, item_data);
@@ -1101,9 +1141,9 @@ static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Objec
        /* callback for handling enter key */
        if (item_data->activated_cb) {
                evas_object_smart_callback_add(entry,
-                                                                          "activated",
-                                                                          item_data->activated_cb,
-                                                                          item_data);
+                               "activated",
+                               item_data->activated_cb,
+                               item_data);
        }
 
        if (item_data->focus_cb) {
@@ -1123,9 +1163,9 @@ static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Objec
        Ecore_IMF_Context *imf_context = (Ecore_IMF_Context *)elm_entry_imf_context_get(entry);
        if (imf_context) {
                ecore_imf_context_input_panel_event_callback_add(imf_context,
-                                                                                                                ECORE_IMF_INPUT_PANEL_STATE_EVENT,
-                                                                                                                item_data->x_callback_cb,
-                                                                                                                item_data->userdata);
+                               ECORE_IMF_INPUT_PANEL_STATE_EVENT,
+                               item_data->x_callback_cb,
+                               item_data->userdata);
        }
        if (item_data->input_panel_disable_flag) {
                elm_entry_input_panel_enabled_set(entry, EINA_FALSE);
@@ -1134,29 +1174,27 @@ static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Objec
 }
 #endif
 
-static Evas_Object *__add_5step_slider(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_5step_slider(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        SETTING_TRACE_BEGIN;
+
        retv_if(!item_data || !parent, NULL);
-       Evas_Object *li_slider =
-               setting_create_5step_slider(parent, item_data->evas,
-                                                                       item_data->l_swallow_path,
-                                                                       item_data->r_swallow_path,
-                                                                       item_data->chk_status,
-                                                                       item_data->isIndicatorVisible,
-                                                                       item_data->slider_min,
-                                                                       item_data->slider_max,
-                                                                       item_data->chk_change_cb,
-                                                                       item_data->start_change_cb,
-                                                                       item_data->stop_change_cb,
-                                                                       item_data);
+       Evas_Object *li_slider = setting_create_5step_slider(parent,
+                       item_data->evas, item_data->l_swallow_path,
+                       item_data->r_swallow_path, item_data->chk_status,
+                       item_data->isIndicatorVisible, item_data->slider_min,
+                       item_data->slider_max, item_data->chk_change_cb,
+                       item_data->start_change_cb, item_data->stop_change_cb,
+                       item_data);
        evas_object_pass_events_set(li_slider, 1);
        evas_object_propagate_events_set(li_slider, 0);
        item_data->eo_check = li_slider;
        return li_slider;
 }
 
-static Evas_Object *__add_slider(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_slider(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
        Evas_Object *li_slider = setting_create_slider(parent, item_data);
@@ -1182,37 +1220,44 @@ static Evas_Object *__add_layout(Setting_GenGroupItem_Data *item_data, Evas_Obje
 }
 #endif
 
-static void __picker_popup_cancel_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+static void __picker_popup_cancel_btn_clicked_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
+
        Evas_Object *popup = data;
        evas_object_del(popup);
 }
 
-static void __picker_popup_set_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+static void __picker_popup_set_btn_clicked_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        /*printf("Set clicked\n"); */
        SETTING_TRACE_BEGIN;
+
        SETTING_TRACE("DEFAULT @@@");
        elm_object_signal_emit(data, "picker,action,value,set", "");
        /*Evas_Object *popup = evas_object_data_get((Evas_Object *)data, "popup"); */
        /*evas_object_del(popup); */
 }
 
-static Evas_Object *_datefield_picker_popup_add(Evas_Object *parent, Evas_Object *datetime, void *data)
+static Evas_Object *_datefield_picker_popup_add(Evas_Object *parent,
+               Evas_Object *datetime, void *data)
 {
-       Datefield_Paramdata      *param = (Datefield_Paramdata *)data;
+       Datefield_Paramdata *param = (Datefield_Paramdata *) data;
 
        Setting_GenGroupItem_Data *item_data = param->item_data;
 
        Evas_Object *popup = elm_popup_add(parent);
-       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
+       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
+                       eext_popup_back_cb, NULL);
 
        Evas_Object *cancel_btn = elm_button_add(popup);
        elm_object_style_set(cancel_btn, "popup");
        elm_object_text_set(cancel_btn, _("IDS_ST_BUTTON_CANCEL"));
        elm_object_part_content_set(popup, "button1", cancel_btn);
-       evas_object_smart_callback_add(cancel_btn, "clicked", __picker_popup_cancel_btn_clicked_cb, popup);
+       evas_object_smart_callback_add(cancel_btn, "clicked",
+                       __picker_popup_cancel_btn_clicked_cb, popup);
 
        Evas_Object *set_btn = elm_button_add(popup);
        elm_object_style_set(set_btn, "popup");
@@ -1221,9 +1266,11 @@ static Evas_Object *_datefield_picker_popup_add(Evas_Object *parent, Evas_Object
 
        if (item_data->activated_cb)
                /*evas_object_smart_callback_add(set_btn, "clicked", item_data->activated_cb, datetime); */
-               evas_object_smart_callback_add(set_btn, "clicked", item_data->activated_cb, item_data);
+               evas_object_smart_callback_add(set_btn, "clicked",
+                               item_data->activated_cb, item_data);
        else
-               evas_object_smart_callback_add(set_btn, "clicked", __picker_popup_set_btn_clicked_cb, datetime);
+               evas_object_smart_callback_add(set_btn, "clicked",
+                               __picker_popup_set_btn_clicked_cb, datetime);
 
        return popup;
 }
@@ -1251,15 +1298,19 @@ static void _datefield_set_min_max(Evas_Object *datetime)
 /**
  * DATE
  */
-static void _datefield_date_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+static void _datefield_date_btn_clicked_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
 
+
        /*Evas_Object *parent = data; */
-       Datefield_Paramdata      *param = (Datefield_Paramdata *)data;
-       Evas_Object *popup = _datefield_picker_popup_add(param->parent, obj/*elm_button*/, param/* context */);
+       Datefield_Paramdata *param = (Datefield_Paramdata *) data;
+       Evas_Object *popup = _datefield_picker_popup_add(param->parent,
+                       obj/*elm_button*/, param/* context */);
 
-       elm_object_part_text_set(popup, "title,text", _("IDS_ST_BODY_SET_DATE"));
+       elm_object_part_text_set(popup, "title,text",
+                       _("IDS_ST_BODY_SET_DATE"));
 
        Evas_Object *datetime = elm_datetime_add(param->parent);
        elm_object_style_set(datetime, "date_layout");
@@ -1284,10 +1335,12 @@ static void _datefield_date_btn_clicked_cb(void *data, Evas_Object *obj, void *e
 /**
  * TIME
  */
-static void _datefield_time_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+static void _datefield_time_btn_clicked_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
-       Datefield_Paramdata      *param = (Datefield_Paramdata *)data;
+
+       Datefield_Paramdata *param = (Datefield_Paramdata *) data;
 
        Evas_Object *datetime = elm_datetime_add(param->parent);
 #if 1
@@ -1298,7 +1351,8 @@ static void _datefield_time_btn_clicked_cb(void *data, Evas_Object *obj, void *e
 
        char *pa_time_format = get_pa_time_format_str();
        if (pa_time_format) {
-               if (!strncmp(pa_time_format, "IDS_ST_BODY_12_HOURS", strlen("IDS_ST_BODY_12_HOURS"))) {
+               if (!strncmp(pa_time_format, "IDS_ST_BODY_12_HOURS",
+                               strlen("IDS_ST_BODY_12_HOURS"))) {
                        elm_object_style_set(datetime, "time_layout");
                        elm_datetime_format_set(datetime, "%d/%b/%Y %I:%M %p");
                } else {
@@ -1307,11 +1361,13 @@ static void _datefield_time_btn_clicked_cb(void *data, Evas_Object *obj, void *e
                }
        }
 
-       evas_object_size_hint_align_set(datetime, 0.5 , 0.5);
+       evas_object_size_hint_align_set(datetime, 0.5, 0.5);
        evas_object_show(datetime);
 
-       Evas_Object *popup = _datefield_picker_popup_add(param->parent, obj, (void *)data);
-       elm_object_part_text_set(popup, "title,text", _("IDS_ST_BODY_SET_TIME"));
+       Evas_Object *popup = _datefield_picker_popup_add(param->parent, obj,
+                       (void *) data);
+       elm_object_part_text_set(popup, "title,text",
+                       _("IDS_ST_BODY_SET_TIME"));
 
        evas_object_data_set(datetime, "popup", popup);
 
@@ -1328,13 +1384,14 @@ static void _datefield_time_btn_clicked_cb(void *data, Evas_Object *obj, void *e
        /*--------------------------------------- */
 }
 
-EXPORT_PUBLIC char *__setting_phone_lang_get_by_pattern(const char *locale, const char *skeleton)
+EXPORT_PUBLIC char *__setting_phone_lang_get_by_pattern(const char *locale,
+               const char *skeleton)
 {
        /*setting_retvm_if(!locale, NULL, "locale parameter is NULL"); */
        /*setting_retvm_if(data == NULL, NULL, "Data parameter is NULL"); */
 
        /*remove ".UTF-8" in locale */
-       char locale_tmp[DEF_BUF_SIZE] = {0,};
+       char locale_tmp[DEF_BUF_SIZE] = { 0, };
        strncpy(locale_tmp, locale, DEF_BUF_SIZE);
        locale_tmp[DEF_BUF_SIZE - 1] = '\0';
 
@@ -1359,16 +1416,22 @@ EXPORT_PUBLIC char *__setting_phone_lang_get_by_pattern(const char *locale, cons
        UDateTimePatternGenerator *pattern_generator;
        pattern_generator = udatpg_open(locale_tmp, &status);
 
-       int32_t bestPatternCapacity = (int32_t)(sizeof(bestPattern) / sizeof((bestPattern)[0]));
-       (void)udatpg_getBestPattern(pattern_generator, customSkeleton, u_strlen(customSkeleton), bestPattern, bestPatternCapacity, &status);
+       int32_t bestPatternCapacity = (int32_t) (sizeof(bestPattern)
+                       / sizeof((bestPattern)[0]));
+       (void) udatpg_getBestPattern(pattern_generator, customSkeleton,
+                       u_strlen(customSkeleton), bestPattern,
+                       bestPatternCapacity, &status);
 
        u_austrcpy(bestPatternString, bestPattern);
        SETTING_TRACE("BestPattern is %s", bestPatternString);
 
        UDate date = ucal_getNow();
-       formatter = udat_open(UDAT_IGNORE, UDAT_IGNORE, locale_tmp, NULL, -1, bestPattern, -1, &status);
-       int32_t formattedCapacity = (int32_t)(sizeof(formatted) / sizeof((formatted)[0]));
-       (void)udat_format(formatter, date, formatted, formattedCapacity, NULL, &status);
+       formatter = udat_open(UDAT_IGNORE, UDAT_IGNORE, locale_tmp, NULL, -1,
+                       bestPattern, -1, &status);
+       int32_t formattedCapacity = (int32_t) (sizeof(formatted)
+                       / sizeof((formatted)[0]));
+       (void) udat_format(formatter, date, formatted, formattedCapacity, NULL,
+                       &status);
        u_austrcpy(formattedString, formatted);
        SETTING_TRACE("DATE & TIME is %s", formattedString);
 
@@ -1378,16 +1441,17 @@ EXPORT_PUBLIC char *__setting_phone_lang_get_by_pattern(const char *locale, cons
        return ret_str;
 }
 
-
 /**
  * eo_check ??
  */
-static Evas_Object *__add_datefield_new(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_datefield_new(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        SETTING_TRACE_BEGIN;
+
        retv_if(!item_data || !parent, NULL);
 
-       Datefield_Paramdata      *param = malloc(sizeof(Datefield_Paramdata));
+       Datefield_Paramdata *param = malloc(sizeof(Datefield_Paramdata));
        setting_retvm_if(NULL == param, NULL, "param is NULL");
 
        param->item_data = item_data;
@@ -1397,37 +1461,45 @@ static Evas_Object *__add_datefield_new(Setting_GenGroupItem_Data *item_data, Ev
        char *region = NULL;
        /*int err = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &lang); */
        /*? int err = */
-       system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, &region);
+       system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY,
+                       &region);
 
-       char *date = __setting_phone_lang_get_by_pattern(region , "MMM/d/yyyy");
+       char *date = __setting_phone_lang_get_by_pattern(region, "MMM/d/yyyy");
        char *pa_time_format = get_pa_time_format_str();
        char *time = NULL;
 
        if (pa_time_format) {
-               if (!strncmp(pa_time_format, "IDS_ST_BODY_12_HOURS", strlen("IDS_ST_BODY_12_HOURS")))
-                       time = __setting_phone_lang_get_by_pattern(region , "hhmm");
+               if (!strncmp(pa_time_format, "IDS_ST_BODY_12_HOURS",
+                               strlen("IDS_ST_BODY_12_HOURS")))
+                       time = __setting_phone_lang_get_by_pattern(region,
+                                       "hhmm");
                else
-                       time = __setting_phone_lang_get_by_pattern(region , "Hm");
+                       time = __setting_phone_lang_get_by_pattern(region,
+                                       "Hm");
                SETTING_TRACE("DATE : %s ", date);
                SETTING_TRACE("TIME : %s ", time);
        }
 
        Evas_Object *btn_left = elm_button_add(parent);
        elm_object_style_set(btn_left, "datetime");
-       evas_object_size_hint_weight_set(btn_left, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(btn_left, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(btn_left, EVAS_HINT_FILL, 0.5);
 
        elm_object_text_set(btn_left, date);
-       evas_object_smart_callback_add(btn_left, "clicked", _datefield_date_btn_clicked_cb , param);
+       evas_object_smart_callback_add(btn_left, "clicked",
+                       _datefield_date_btn_clicked_cb, param);
        evas_object_show(btn_left);
 
        Evas_Object *btn_right = elm_button_add(parent);
        elm_object_style_set(btn_right, "datetime");
-       evas_object_size_hint_weight_set(btn_right, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(btn_right, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(btn_right, EVAS_HINT_FILL, 0.5);
 
        elm_object_text_set(btn_right, time);
-       evas_object_smart_callback_add(btn_right, "clicked", _datefield_time_btn_clicked_cb , param);
+       evas_object_smart_callback_add(btn_right, "clicked",
+                       _datefield_time_btn_clicked_cb, param);
        evas_object_show(btn_right);
 
 #if 1
@@ -1435,25 +1507,29 @@ static Evas_Object *__add_datefield_new(Setting_GenGroupItem_Data *item_data, Ev
        param->item_data->btn_right = btn_right;
 #endif
        Evas_Object *box = elm_box_add(parent);
-       evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
-
        Evas_Object *box1 = elm_box_add(box);
-       evas_object_size_hint_weight_set(box1, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(box1, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(box1, EVAS_HINT_FILL, EVAS_HINT_FILL);
        elm_box_horizontal_set(box1, 1);
        elm_box_align_set(box1, 0.5, 0.0);
        elm_box_padding_set(box1, ELM_SCALE_SIZE(15), ELM_SCALE_SIZE(5));
 
        Evas_Object *layout = elm_layout_add(box1);
-       Eina_Bool ret = elm_layout_file_set(layout, SETTING_THEME_EDJ_NAME, "date_time_layout");
-       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       Eina_Bool
+       ret = elm_layout_file_set(layout, SETTING_THEME_EDJ_NAME, "date_time_layout");
+       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
        if (ret == EINA_TRUE) { /* error condition */
                SETTING_TRACE("elm_layout_file_set - OK --> date_time_layout");
        } else {
-               SETTING_TRACE_ERROR("elm_layout_file_set - FAILED --> date_time_layout");
+               SETTING_TRACE_ERROR(
+                               "elm_layout_file_set - FAILED --> date_time_layout");
        }
 
        elm_layout_content_set(layout, "date_field", btn_left);
@@ -1470,22 +1546,24 @@ static Evas_Object *__add_datefield_new(Setting_GenGroupItem_Data *item_data, Ev
 }
 
 #if 0
-static Evas_Object *__add_process(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_process(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
        Evas_Object *progressbar = elm_progressbar_add(parent);
        elm_object_style_set(progressbar, PROGRESSBAR_STYLE);
        evas_object_size_hint_align_set(progressbar,
-                                                                       EVAS_HINT_FILL, 0.5);
+                       EVAS_HINT_FILL, 0.5);
        evas_object_size_hint_weight_set(progressbar,
-                                                                        EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
+                       EVAS_HINT_EXPAND,
+                       EVAS_HINT_EXPAND);
        elm_progressbar_pulse(progressbar, EINA_TRUE);
        evas_object_show(progressbar);
        return progressbar;
 }
 
-static Evas_Object *__add_radio_lable(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_radio_lable(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        retv_if(!item_data || !parent, NULL);
 
@@ -1496,25 +1574,30 @@ static Evas_Object *__add_radio_lable(Setting_GenGroupItem_Data *item_data, Evas
 }
 #endif
 
-static Evas_Object *__add_left_default(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_left_default(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        if (!item_data || !parent || !item_data->l_swallow_path) {
                return NULL;
        }
 
        if (SWALLOW_Type_1ICON_1DOTTOOGLE == item_data->swallow_type
-               || SWALLOW_Type_1ICON_1IMAGE == item_data->swallow_type) {
+                       || SWALLOW_Type_1ICON_1IMAGE
+                                       == item_data->swallow_type) {
                Evas_Object *icon = elm_icon_add(parent);
                setting_decorate_image_RGBA(icon, 15, 41, 73, 255);
                elm_image_file_set(icon, item_data->l_swallow_path, NULL);
-               evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+               evas_object_size_hint_aspect_set(icon,
+                               EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
                return icon;
        } else if (SWALLOW_Type_1ICON_SMALL_ICON == item_data->swallow_type) {
 
                Evas_Object *c = elm_image_add(parent);
                elm_image_file_set(c, item_data->l_swallow_path, NULL);
-               evas_object_size_hint_align_set(c, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               evas_object_size_hint_weight_set(c, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+               evas_object_size_hint_align_set(c, EVAS_HINT_FILL,
+               EVAS_HINT_FILL);
+               evas_object_size_hint_weight_set(c, EVAS_HINT_EXPAND,
+               EVAS_HINT_EXPAND);
                return c;
        } else {
 #if 0
@@ -1526,8 +1609,10 @@ static Evas_Object *__add_left_default(Setting_GenGroupItem_Data *item_data, Eva
 #endif
                elm_image_file_set(c, item_data->l_swallow_path, NULL);
                setting_decorate_image_RGBA(c, 14, 41, 73, 255);
-               evas_object_size_hint_align_set(c, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               evas_object_size_hint_weight_set(c, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+               evas_object_size_hint_align_set(c, EVAS_HINT_FILL,
+               EVAS_HINT_FILL);
+               evas_object_size_hint_weight_set(c, EVAS_HINT_EXPAND,
+               EVAS_HINT_EXPAND);
 #if 0
                elm_layout_content_set(ic, "elm.swallow.content", c);
                return ic;
@@ -1538,7 +1623,8 @@ static Evas_Object *__add_left_default(Setting_GenGroupItem_Data *item_data, Eva
 
 }
 
-static Evas_Object *__add_right_default(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
+static Evas_Object *__add_right_default(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent)
 {
        if (!item_data || !parent || !item_data->r_swallow_path) {
                return NULL;
@@ -1552,13 +1638,16 @@ static Evas_Object *__add_right_default(Setting_GenGroupItem_Data *item_data, Ev
        Evas_Object *icon = elm_image_add(parent);
 #endif
 
-       if (!safeStrCmp(item_data->r_swallow_path, SETTING_IMAGE_PATH_CFG"00_list_button_expand_closed.png"))
+       if (!safeStrCmp(item_data->r_swallow_path,
+                       SETTING_IMAGE_PATH_CFG"00_list_button_expand_closed.png"))
                setting_decorate_image_RGBA(icon, 14, 41, 73, 255);
-       else if (!safeStrCmp(item_data->r_swallow_path, SETTING_IMAGE_PATH_CFG"00_list_button_expand_opened.png"))
+       else if (!safeStrCmp(item_data->r_swallow_path,
+                       SETTING_IMAGE_PATH_CFG"00_list_button_expand_opened.png"))
                setting_decorate_image_RGBA(icon, 14, 41, 73, 255);
        elm_image_file_set(icon, item_data->r_swallow_path, NULL);
        evas_object_size_hint_align_set(icon, 0.0, EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
 
 #if 0
        elm_layout_content_set(ic, "elm.swallow.content", icon);
@@ -1571,107 +1660,117 @@ static Evas_Object *__add_right_default(Setting_GenGroupItem_Data *item_data, Ev
 }
 
 /* draw handler */
-typedef Evas_Object *(*__drawer_fp)(Setting_GenGroupItem_Data *item_data, Evas_Object *parent);
+typedef Evas_Object *(*__drawer_fp)(Setting_GenGroupItem_Data *item_data,
+               Evas_Object *parent);
 typedef struct {
-       SWALLOW_Type type;                      /* ui type */
+       SWALLOW_Type type; /* ui type */
        __drawer_fp draw;
 } __Content_Drawer;
-static __Content_Drawer __cd_left[SWALLOW_Type_MAX] = {
-       /*base objects */
-       {SWALLOW_Type_1CHECK, __add_check},
-       {SWALLOW_Type_1TOGGLE, __add_toggle},   /* setting-network, security-sim-setting */
-       {SWALLOW_Type_1RADIO, __add_radio},             /* many */
-       {SWALLOW_Type_1RADIO_1BTN, __add_radio},
-       {SWALLOW_Type_1BUTTON, __add_button},
-       {SWALLOW_Type_1GIF, __add_gif},
-
-       /*base objects in an layout */
-       {SWALLOW_Type_LAYOUT_SLIDER, __add_slider},
-       {SWALLOW_Type_LAYOUT_5STEP_SLIDER, __add_5step_slider},
-
-       /*other compelx objects */
-       {SWALLOW_Type_1RADIO_1TEXT, __add_radio_text},  /* setting-network */
-
-       /*left part object of the type */
-       /*{SWALLOW_Type_1ICON_1RADIO, __add_left_default},*/
-       /*{SWALLOW_Type_1ICON_1PROCESS, __add_left_default},*/
-       {SWALLOW_Type_1ICON_SMALL_ICON, __add_left_default},
+static __Content_Drawer    __cd_left [SWALLOW_Type_MAX] = {
+               /*base objects */
+               { SWALLOW_Type_1CHECK, __add_check },
+               { SWALLOW_Type_1TOGGLE, __add_toggle }, /* setting-network, security-sim-setting */
+               { SWALLOW_Type_1RADIO, __add_radio }, /* many */
+               { SWALLOW_Type_1RADIO_1BTN, __add_radio },
+               { SWALLOW_Type_1BUTTON, __add_button },
+               { SWALLOW_Type_1GIF, __add_gif },
+
+               /*base objects in an layout */
+               { SWALLOW_Type_LAYOUT_SLIDER, __add_slider },
+               { SWALLOW_Type_LAYOUT_5STEP_SLIDER, __add_5step_slider },
+
+               /*other compelx objects */
+               { SWALLOW_Type_1RADIO_1TEXT, __add_radio_text }, /* setting-network */
+
+               /*left part object of the type */
+               /*{SWALLOW_Type_1ICON_1RADIO, __add_left_default},*/
+               /*{SWALLOW_Type_1ICON_1PROCESS, __add_left_default},*/
+               { SWALLOW_Type_1ICON_SMALL_ICON, __add_left_default },
 };
-static __Content_Drawer __cd_right[SWALLOW_Type_MAX] = {
-       /*right part object of the type */
-       {SWALLOW_Type_1CHECK_RIGHT, __add_check},
-       {SWALLOW_Type_1ICON_1RADIO, __add_toggle},
-       {SWALLOW_Type_1ICON_1DOTTOOGLE, __add_dot_toggle},
-       {SWALLOW_TYPE_1RADIO_RIGHT_PROPAGATE_EVENTS_SET, __add_radio_right_propagate_events_set},
-       {SWALLOW_Type_1RADIO_RIGHT, __add_radio_right},
-       {SWALLOW_Type_1CHECK_RIGHT_INVISIBLE, __add_check_invisible},
+
+static __Content_Drawer    __cd_right [SWALLOW_Type_MAX] = {
+               /*right part object of the type */
+               { SWALLOW_Type_1CHECK_RIGHT, __add_check }, {
+               SWALLOW_Type_1ICON_1RADIO,
+               __add_toggle }, {
+               SWALLOW_Type_1ICON_1DOTTOOGLE,
+               __add_dot_toggle }, {
+               SWALLOW_TYPE_1RADIO_RIGHT_PROPAGATE_EVENTS_SET,
+               __add_radio_right_propagate_events_set }, {
+               SWALLOW_Type_1RADIO_RIGHT,
+               __add_radio_right }, {
+               SWALLOW_Type_1CHECK_RIGHT_INVISIBLE,
+               __add_check_invisible },
 };
 
-static __Content_Drawer __cd_end[SWALLOW_Type_MAX] = {
-       /*end part object of the type */
-       {SWALLOW_Type_1RADIO, __add_radio},
+static __Content_Drawer    __cd_end [SWALLOW_Type_MAX] = {
+               /*end part object of the type */
+               { SWALLOW_Type_1RADIO, __add_radio },
 };
 
-static void __multiline_eraser_clicked(void *data, Evas_Object *obj, void *event_info) /* When X marked button clicked, make string as empty. */
+static void __multiline_eraser_clicked(void *data, Evas_Object *obj,
+               void *event_info) /* When X marked button clicked, make string as empty. */
 {
        Setting_GenGroupItem_Data *list_item = data;
-       Evas_Object *entry = elm_object_item_part_content_get(list_item->item, "elm.icon.entry");
+       Evas_Object *entry = elm_object_item_part_content_get(list_item->item,
+                       "elm.icon.entry");
        elm_object_focus_set(entry, EINA_TRUE); /* After button is clicked, entry should get focus again. */
        elm_entry_entry_set(entry, "");
 }
 
 static Evas_Object *_gl_Gendial_content_get(void *data, Evas_Object *obj,
-                                               const char *part)
+               const char *part)
 {
-       retv_if(!data, NULL);
        Setting_GenGroupItem_Data *item_data = data;
-       retv_if(!data, NULL);
        __Content_Drawer *cd_list = NULL;
        __drawer_fp fp = NULL;
+       retv_if(!item_data, NULL);
+
+       SETTING_TRACE(" ---> content get: part [%s]; itc style [%s]", part,
+                       item_data->itc);
 
-#if 1
-       SETTING_TRACE(" ------------> content get [%s]",part);
-#endif
        if (!safeStrCmp(part, "elm.swallow.icon")) { /* LEFT AREA */
                fp = __add_left_default;
                cd_list = __cd_left;
+
        } else if (!safeStrCmp(part, "elm.swallow.end")) { /* RIGHT AREA */
                fp = __add_right_default; /*hold default drawer */
                cd_list = __cd_right;
+
        } else if (!safeStrCmp(part, "elm.icon.1")) { /* LEFT AREA */
                if (item_data->swallow_type == SWALLOW_Type_LAYOUT_EDITFIELD
-                       && item_data->isPasswordFlag == TRUE)
+                               && item_data->isPasswordFlag == TRUE)
                        return NULL;
                fp = __add_left_default; /*hold default drawer */
                cd_list = __cd_left;
+
        } else if (!safeStrCmp(part, "elm.icon.2")) { /* RIGHT AREA */
                if (item_data->swallow_type == SWALLOW_Type_LAYOUT_EDITFIELD
-                       && item_data->isPasswordFlag == TRUE)
+                               && item_data->isPasswordFlag == TRUE)
                        return NULL;
                fp = __add_right_default; /*hold default drawer */
                cd_list = __cd_right;
+
        } else if (!safeStrCmp(part, "elm.icon")) { /* CENTER WHOLE */
                fp = __add_left_default; /*hold default drawer */
                cd_list = __cd_left;
-       } else if (!safeStrCmp(part, "elm.swallow.end")) {
-               /*the default value of fp is NULL here */
-               cd_list = __cd_end;
-       }
-       /* To do : add code for editfield */
-       else if (!safeStrCmp(part, "elm.icon.entry")) {
+
+       } else if (!safeStrCmp(part, "elm.icon.entry")) {
                if (item_data->swallow_type == SWALLOW_Type_LAYOUT_DATEFIELD) {
-                       /*fp = __add_datefield; */
                        fp = __add_datefield_new;
                } else {
-                       /*fp = __add_entry_without_layout; */
                        fp = __add_entry_padding;
                }
+
        } else if (!safeStrCmp(part, "elm.icon.eraser")) {
                /*fp = __add_button_eraser; */
                Evas_Object *btn = elm_button_add(obj);
-               elm_object_style_set(btn, "editfield_clear"); /*Make "X" marked button by changing style. */
-               evas_object_smart_callback_add(btn, "clicked", __multiline_eraser_clicked, item_data);
+               /*Make "X" marked button by changing style. */
+               elm_object_style_set(btn, "editfield_clear");
+               evas_object_smart_callback_add(btn, "clicked",
+                               __multiline_eraser_clicked, item_data);
                return btn;
+
        } else if (!safeStrCmp(part, "elm.icon.edit")) {
                Evas_Object *btn = elm_button_add(obj);
                elm_object_style_set(btn, "minus");
@@ -1683,7 +1782,8 @@ static Evas_Object *_gl_Gendial_content_get(void *data, Evas_Object *obj,
        if (cd_list) {
                int idx = 0;
                for (; idx < SWALLOW_Type_MAX; idx++) {
-                       if (item_data->swallow_type == cd_list[idx].type) { /*match using swallow type */
+                       /*match using swallow type */
+                       if (item_data->swallow_type == cd_list[idx].type) {
                                fp = cd_list[idx].draw;
                                break;
                        }
@@ -1692,12 +1792,10 @@ static Evas_Object *_gl_Gendial_content_get(void *data, Evas_Object *obj,
        return fp ? fp(item_data, obj) : NULL;
 }
 
-
 static void _gl_Gendial_del(void *data, Evas_Object *obj)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) data;
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) data;
        if (item_data) {
                item_data->eo_check = NULL;/*set to NULL at once */
                G_FREE(item_data->keyStr);
@@ -1732,13 +1830,13 @@ static void _gl_Gendial_del(void *data, Evas_Object *obj)
  */
 EXPORT_PUBLIC
 bool setting_create_Gendial_itc(const char *item_style,
-                                                               Elm_Genlist_Item_Class *itc)
+               Elm_Genlist_Item_Class *itc)
 {
        itc->item_style = item_style;
        itc->func.text_get = _gl_Gendial_new_text_get;
        itc->func.content_get = _gl_Gendial_content_get;
        itc->func.state_get = NULL;
-       itc->func.del = _gl_Gendial_del;        /* _gl_Gendial_del; */
+       itc->func.del = _gl_Gendial_del; /* _gl_Gendial_del; */
        return TRUE;
 }
 
@@ -1748,33 +1846,28 @@ bool setting_create_Gendial_itc(const char *item_style,
  * @return a pointer to Setting_GenGroupItem_Data
  */
 EXPORT_PUBLIC Setting_GenGroupItem_Data *setting_create_Gendial_field_titleItem(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       const char *keyStr,
-       setting_call_back_func gl_sel)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               const char *keyStr, setting_call_back_func gl_sel)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                        sizeof
-                                                                                        (Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
+       item_data->keyStr = (char *) g_strdup(keyStr);
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
        if (gl_sel) {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                       NULL);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE, gl_sel,
+                               NULL);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE,
-                                                                       _gl_Gendial_sel, NULL);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE,
+                               _gl_Gendial_sel, NULL);
        }
-       elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+       elm_genlist_item_select_mode_set(item_data->item,
+                       ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
        return item_data;
 }
 
@@ -1785,90 +1878,73 @@ EXPORT_PUBLIC Setting_GenGroupItem_Data *setting_create_Gendial_field_titleItem(
  */
 EXPORT_PUBLIC
 Setting_GenGroupItem_Data *setting_create_Gendial_field_1radio(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       setting_call_back_func gl_sel,
-       void *sel_data,
-       SWALLOW_Type swallow_type,
-       Evas_Object *rgd, int chk_status,
-       const char *keyStr,
-       setting_call_back_func chk_change_cb)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel, void *sel_data,
+               SWALLOW_Type swallow_type, Evas_Object *rgd, int chk_status,
+               const char *keyStr, setting_call_back_func chk_change_cb)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                        sizeof
-                                                                                        (Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
+       item_data->keyStr = (char *) g_strdup(keyStr);
        item_data->swallow_type = swallow_type;
        item_data->chk_status = chk_status;
        item_data->chk_change_cb = chk_change_cb;
        item_data->rgd = rgd;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
 
        if (gl_sel) {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                       sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE, gl_sel,
+                               sel_data);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE,
-                                                                       _gl_Gendial_sel, sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE,
+                               _gl_Gendial_sel, sel_data);
        }
        return item_data;
 }
 
-
 EXPORT_PUBLIC
 Setting_GenGroupItem_Data *setting_create_Gendial_field_1radio_1button(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       setting_call_back_func gl_sel,
-       void *sel_data,
-       SWALLOW_Type swallow_type,
-       char *button_style,
-       Evas_Object *rgd, int chk_status,
-       const char *keyStr,
-       setting_call_back_func chk_change_cb,
-       setting_call_back_func btn_clicked_cb)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel, void *sel_data,
+               SWALLOW_Type swallow_type, char *button_style, Evas_Object *rgd,
+               int chk_status, const char *keyStr,
+               setting_call_back_func chk_change_cb,
+               setting_call_back_func btn_clicked_cb)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                        sizeof
-                                                                                        (Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
+       item_data->keyStr = (char *) g_strdup(keyStr);
        item_data->swallow_type = swallow_type;
        if (SWALLOW_Type_1RADIO_RIGHT == swallow_type) {
                /*Radio in right,so icon is in left */
-               item_data->l_swallow_path = (char *)g_strdup(button_style);
+               item_data->l_swallow_path = (char *) g_strdup(button_style);
        } else {
-               item_data->r_swallow_path = (char *)g_strdup(button_style);
+               item_data->r_swallow_path = (char *) g_strdup(button_style);
        }
        item_data->chk_status = chk_status;
        item_data->chk_change_cb = chk_change_cb;
        item_data->stop_change_cb = btn_clicked_cb;
        item_data->rgd = rgd;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
 
        if (gl_sel) {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                       sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE, gl_sel,
+                               sel_data);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE,
-                                                                       _gl_Gendial_sel, sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE,
+                               _gl_Gendial_sel, sel_data);
        }
        return item_data;
 }
@@ -1876,35 +1952,38 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_1radio_1button(
 static char *_handle_special_str(const char *keyStr)
 {
        char speciliztion[MAX_SPECIALIZITION_LEN] = { 0, };
-       char *temp1 = (char *)keyStr;
+       char *temp1 = (char *) keyStr;
        char *temp2 = strchr(temp1, '&');
        char *temp = NULL;
 
        while (NULL != temp2) {
-               if (0 == safeStrNCmp(temp2, "&amp;", strlen("&amp;")) ||/*'&' */
-                       0 == safeStrNCmp(temp2, "&lt;", strlen("&lt;")) ||/*'<' */
-                       0 == safeStrNCmp(temp2, "&gt;", strlen("&gt;")) ||/*'>' */
-                       0 == safeStrNCmp(temp2, "&quot;", strlen("&quot;")) ||/*double quotes */
-                       0 == safeStrNCmp(temp2, "&apos;", strlen("&apos;")) ||/*single quotes */
-                       0 == safeStrNCmp(temp2, "&nbsp;", strlen("&nbsp;")) ||/*space character */
-                       0 == safeStrNCmp(temp2, "&copy;", strlen("&copy;")) ||/*copyright character */
-                       0 == safeStrNCmp(temp2, "&reg;", strlen("&reg;"))/*registeration character */
-                  ) {/*escape character,do nothing */
+               if (0 == safeStrNCmp(temp2, "&amp;", strlen("&amp;")) || /*'&' */
+               0 == safeStrNCmp(temp2, "&lt;", strlen("&lt;")) || /*'<' */
+               0 == safeStrNCmp(temp2, "&gt;", strlen("&gt;")) || /*'>' */
+               0 == safeStrNCmp(temp2, "&quot;", strlen("&quot;")) || /*double quotes */
+               0 == safeStrNCmp(temp2, "&apos;", strlen("&apos;")) || /*single quotes */
+               0 == safeStrNCmp(temp2, "&nbsp;", strlen("&nbsp;")) || /*space character */
+               0 == safeStrNCmp(temp2, "&copy;", strlen("&copy;")) || /*copyright character */
+               0 == safeStrNCmp(temp2, "&reg;", strlen("&reg;"))/*registeration character */
+               ) {/*escape character,do nothing */
                        temp = temp2 + 1;
-                       if ('\0' == temp[0]) break;
+                       if ('\0' == temp[0])
+                               break;
                        temp2 = strchr(temp, '&');
                } else {
                        g_strlcat(speciliztion, temp1, temp2 - temp1 + 1);
-                       g_strlcat(speciliztion, "&amp;", MAX_SPECIALIZITION_LEN);
+                       g_strlcat(speciliztion, "&amp;",
+                       MAX_SPECIALIZITION_LEN);
                        temp1 = temp2 + 1;
-                       if ('\0' == temp1[0]) break;
+                       if ('\0' == temp1[0])
+                               break;
                        temp2 = strchr(temp1, '&');
                }
        }
        if ('\0' != temp1[0]) {
                g_strlcat(speciliztion, temp1, MAX_SPECIALIZITION_LEN);
        }
-       return (char *)g_strdup(speciliztion);
+       return (char *) g_strdup(speciliztion);
 }
 
 /**
@@ -1913,73 +1992,66 @@ static char *_handle_special_str(const char *keyStr)
  * @return a pointer to Setting_GenGroupItem_Data
  */
 static Setting_GenGroupItem_Data *setting_create_Gendial_field_groupitem(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       Elm_Object_Item *parent,
-       setting_call_back_func gl_sel,
-       void *sel_data,
-       SWALLOW_Type swallow_type,
-       char *l_icon_path,
-       char *r_icon_path, int chk_status,
-       const char *keyStr, char *sub_desc,
-       setting_call_back_func
-       chk_change_cb)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               Elm_Object_Item *parent, setting_call_back_func gl_sel,
+               void *sel_data, SWALLOW_Type swallow_type, char *l_icon_path,
+               char *r_icon_path, int chk_status, const char *keyStr,
+               char *sub_desc, setting_call_back_func chk_change_cb)
 {
        /*      SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-                       (Setting_GenGroupItem_Data *) calloc(1, sizeof(Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
 
        /* to do formatting customizition in one place */
        if (SWALLOW_Type_LAYOUT_SPECIALIZTION == swallow_type
-               || SWALLOW_Type_LAYOUT_SPECIALIZTION_X == swallow_type) {
+                       || SWALLOW_Type_LAYOUT_SPECIALIZTION_X
+                                       == swallow_type) {
                elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
 
                item_data->keyStr = _handle_special_str(keyStr);
        } else {
-               item_data->keyStr = (char *)g_strdup(keyStr);
+               item_data->keyStr = (char *) g_strdup(keyStr);
        }
 
        item_data->sub_desc = NULL;
        if (sub_desc)
-               item_data->sub_desc = (char *)g_strdup(sub_desc);
+               item_data->sub_desc = (char *) g_strdup(sub_desc);
 
        item_data->swallow_type = swallow_type;
-       item_data->l_swallow_path = (char *)g_strdup(l_icon_path);
-       item_data->r_swallow_path = (char *)g_strdup(r_icon_path);
+       item_data->l_swallow_path = (char *) g_strdup(l_icon_path);
+       item_data->r_swallow_path = (char *) g_strdup(r_icon_path);
        item_data->chk_status = chk_status;
        item_data->chk_change_cb = chk_change_cb;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
 
        const char *insert_type = evas_object_data_get(genlist, "InsertType");
        SETTING_TRACE("insert_type:%s", insert_type);
-       if (!gl_sel) gl_sel = _gl_Gendial_sel;
+       if (!gl_sel)
+               gl_sel = _gl_Gendial_sel;
        if (0 == safeStrCmp(insert_type, "Insert before")) {
-               item_data->item =
-                       elm_genlist_item_insert_before(genlist, itc, item_data, parent, parent,
-                                                                                  ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                                  sel_data);
+               item_data->item = elm_genlist_item_insert_before(genlist, itc,
+                               item_data, parent, parent,
+                               ELM_GENLIST_ITEM_NONE, gl_sel, sel_data);
        } else if (0 == safeStrCmp(insert_type, "Insert after")) {
-               item_data->item =
-                       elm_genlist_item_insert_after(genlist, itc, item_data, parent, parent,
-                                                                                 ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                                 sel_data);
+               item_data->item = elm_genlist_item_insert_after(genlist, itc,
+                               item_data, parent, parent,
+                               ELM_GENLIST_ITEM_NONE, gl_sel, sel_data);
        } else if (0 == safeStrCmp(insert_type, "Prepend")) {
-               item_data->item =
-                       elm_genlist_item_prepend(genlist, itc, item_data, parent,
-                                                                        ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                        sel_data);
+               item_data->item = elm_genlist_item_prepend(genlist, itc,
+                               item_data, parent, ELM_GENLIST_ITEM_NONE,
+                               gl_sel, sel_data);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, parent,
-                                                                       ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                       sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, parent, ELM_GENLIST_ITEM_NONE,
+                               gl_sel, sel_data);
        }
        /*help text clicking issue */
        if (SWALLOW_Type_LAYOUT_SPECIALIZTION_X == swallow_type)
-               elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+               elm_genlist_item_select_mode_set(item_data->item,
+                               ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
        evas_object_data_set(genlist, "InsertType", NULL);/*redundant process,it should be due to invokers,but maybe they forget it */
 
        return item_data;
@@ -1987,14 +2059,12 @@ static Setting_GenGroupItem_Data *setting_create_Gendial_field_groupitem(
 
 EXPORT_PUBLIC
 Setting_GenGroupItem_Data *setting_create_Gendial_field_helpitem_without_bottom_separator(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       SWALLOW_Type swallow_type,
-       const char *keyStr)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               SWALLOW_Type swallow_type, const char *keyStr)
 {
        /*      SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data = (
-                                                                                          Setting_GenGroupItem_Data *) calloc(1, sizeof(Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
 
        elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
@@ -2002,41 +2072,33 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_helpitem_without_bottom_
        item_data->keyStr = _handle_special_str(keyStr);
        item_data->swallow_type = swallow_type;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
 
-       item_data->item =
-               elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                               ELM_GENLIST_ITEM_NONE,
-                                                               NULL, NULL);
+       item_data->item = elm_genlist_item_append(genlist, itc, item_data, NULL,
+                       ELM_GENLIST_ITEM_NONE,
+                       NULL, NULL);
 
-       elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+       elm_genlist_item_select_mode_set(item_data->item,
+                       ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
        return item_data;
 }
 
-
 /**
  * Common function to create a genlist item
  * @return a pointer to Setting_GenGroupItem_Data
  */
-EXPORT_PUBLIC Setting_GenGroupItem_Data *setting_create_Gendial_field_def(Evas_Object *genlist,
-                                                                                                                                                 const Elm_Genlist_Item_Class *itc,
-                                                                                                                                                 setting_call_back_func gl_sel,
-                                                                                                                                                 void *sel_data,
-                                                                                                                                                 SWALLOW_Type swallow_type,
-                                                                                                                                                 char *l_icon_path,
-                                                                                                                                                 char *r_icon_path,
-                                                                                                                                                 int chk_status,
-                                                                                                                                                 const char *keyStr,
-                                                                                                                                                 char *sub_desc,
-                                                                                                                                                 setting_call_back_func chk_change_cb)
+EXPORT_PUBLIC Setting_GenGroupItem_Data *setting_create_Gendial_field_def(
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel, void *sel_data,
+               SWALLOW_Type swallow_type, char *l_icon_path, char *r_icon_path,
+               int chk_status, const char *keyStr, char *sub_desc,
+               setting_call_back_func chk_change_cb)
 {
        return setting_create_Gendial_field_groupitem(genlist, itc, NULL,
-                                                                                                 gl_sel, sel_data,
-                                                                                                 swallow_type, l_icon_path,
-                                                                                                 r_icon_path, chk_status,
-                                                                                                 keyStr, sub_desc,
-                                                                                                 chk_change_cb);
+                       gl_sel, sel_data, swallow_type, l_icon_path,
+                       r_icon_path, chk_status, keyStr, sub_desc,
+                       chk_change_cb);
 }
 
 /**
@@ -2044,38 +2106,30 @@ EXPORT_PUBLIC Setting_GenGroupItem_Data *setting_create_Gendial_field_def(Evas_O
  * @return a pointer to Setting_GenGroupItem_Data
  */
 EXPORT_PUBLIC
-Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(Evas_Object *genlist,
-                                                                                                                                                         const Elm_Genlist_Item_Class *itc,
-                                                                                                                                                         setting_call_back_func gl_sel,
-                                                                                                                                                         void *sel_data,
-                                                                                                                                                         SWALLOW_Type swallow_type,
-                                                                                                                                                         char *l_icon_path,
-                                                                                                                                                         char *r_icon_path,
-                                                                                                                                                         int chk_status,
-                                                                                                                                                         const char *keyStr,
-                                                                                                                                                         char *sub_desc,
-                                                                                                                                                         setting_call_back_func chk_change_cb,
-                                                                                                                                                         setting_call_back_func max_reach_cb,
-                                                                                                                                                         Elm_Input_Panel_Layout input_type,
-                                                                                                                                                         bool isPasswordFlag,
-                                                                                                                                                         bool isFocusFlag,
-                                                                                                                                                         int max_char_count,
-                                                                                                                                                         int max_byte_count,
-                                                                                                                                                         char *accepted,
-                                                                                                                                                         char *rejected,
-                                                                                                                                                         Elm_Input_Panel_Return_Key_Type return_key_type,
-                                                                                                                                                         setting_call_back_func activated_cb,
-                                                                                                                                                         setting_call_back_func x_callback_cb)
+Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel, void *sel_data,
+               SWALLOW_Type swallow_type, char *l_icon_path, char *r_icon_path,
+               int chk_status, const char *keyStr, char *sub_desc,
+               setting_call_back_func chk_change_cb,
+               setting_call_back_func max_reach_cb,
+               Elm_Input_Panel_Layout input_type,
+               bool isPasswordFlag,
+               bool isFocusFlag, int max_char_count, int max_byte_count,
+               char *accepted, char *rejected,
+               Elm_Input_Panel_Return_Key_Type return_key_type,
+               setting_call_back_func activated_cb,
+               setting_call_back_func x_callback_cb)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                                                                                               sizeof(Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
-       item_data->sub_desc = (char *)g_strdup(sub_desc);
+       item_data->keyStr = (char *) g_strdup(keyStr);
+       item_data->sub_desc = (char *) g_strdup(sub_desc);
        item_data->swallow_type = swallow_type;
-       item_data->l_swallow_path = (char *)g_strdup(l_icon_path);
-       item_data->r_swallow_path = (char *)g_strdup(r_icon_path);
+       item_data->l_swallow_path = (char *) g_strdup(l_icon_path);
+       item_data->r_swallow_path = (char *) g_strdup(r_icon_path);
        item_data->chk_status = chk_status;
        item_data->chk_change_cb = chk_change_cb;
        item_data->maxlength_reached_cb = max_reach_cb;
@@ -2090,10 +2144,10 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(Ev
        item_data->return_key_type = return_key_type;
        item_data->disable_auto_cap = EINA_TRUE;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
-       Elm_Entry_Filter_Accept_Set *digits_filter_data =
-               (Elm_Entry_Filter_Accept_Set *) calloc(1, sizeof(Elm_Entry_Filter_Accept_Set));
+       Elm_Entry_Filter_Accept_Set *digits_filter_data = (Elm_Entry_Filter_Accept_Set *) calloc(
+                       1, sizeof(Elm_Entry_Filter_Accept_Set));
        if (!digits_filter_data) {
                SETTING_TRACE_ERROR("calloc Elm_Entry_Filter_Accept_Set failed");
                /* free allocated data */
@@ -2106,9 +2160,8 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(Ev
                return NULL;
        }
 
-
-       Elm_Entry_Filter_Limit_Size *limit_filter_data =
-               (Elm_Entry_Filter_Limit_Size *) calloc(1, sizeof(Elm_Entry_Filter_Limit_Size));
+       Elm_Entry_Filter_Limit_Size *limit_filter_data = (Elm_Entry_Filter_Limit_Size *) calloc(
+                       1, sizeof(Elm_Entry_Filter_Limit_Size));
        if (!limit_filter_data) {
                SETTING_TRACE_ERROR("calloc Elm_Entry_Filter_Limit_Size failed");
 
@@ -2125,27 +2178,26 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(Ev
 
        limit_filter_data->max_char_count = max_char_count;
        limit_filter_data->max_byte_count = max_byte_count;
-       digits_filter_data->accepted = (char *)g_strdup(accepted);
-       digits_filter_data->rejected = (char *)g_strdup(rejected);
+       digits_filter_data->accepted = (char *) g_strdup(accepted);
+       digits_filter_data->rejected = (char *) g_strdup(rejected);
 
        item_data->digits_filter_data = digits_filter_data;
        item_data->limit_filter_data = limit_filter_data;
        item_data->userdata = sel_data;
 
        if (gl_sel) {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                       sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE, gl_sel,
+                               sel_data);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE,
-                                                                       _gl_Gendial_sel, sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE,
+                               _gl_Gendial_sel, sel_data);
        }
 
        if (swallow_type == SWALLOW_Type_LAYOUT_EDITFIELD)
-               elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+               elm_genlist_item_select_mode_set(item_data->item,
+                               ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
 
        return item_data;
 }
@@ -2155,32 +2207,33 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(Ev
  * @return a pointer to Setting_GenGroupItem_Data
  */
 EXPORT_PUBLIC
-Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(Evas_Object *genlist,
-                                                                                                                                 const Elm_Genlist_Item_Class *itc,
-                                                                                                                                 setting_call_back_func gl_sel,
-                                                                                                                                 void *sel_data,
-                                                                                                                                 SWALLOW_Type swallow_type,
-                                                                                                                                 const char *keyStr,
-                                                                                                                                 char *sub_desc,
-                                                                                                                                 setting_call_back_func chk_change_cb,
-                                                                                                                                 setting_call_back_func focused_cb,
-                                                                                                                                 setting_call_back_func unfocused_cb,
-                                                                                                                                 setting_call_back_func activated_cb,
-                                                                                                                                 setting_call_back_func max_reached_cb,
-                                                                                                                                 Elm_Input_Panel_Layout input_type,
-                                                                                                                                 bool isPasswordFlag,
-                                                                                                                                 bool isFocusFlag,
-                                                                                                                                 int max_char_count,
-                                                                                                                                 int max_byte_count,
-                                                                                                                                 char *accepted,
-                                                                                                                                 char *rejected)
+Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(
+               Evas_Object *genlist,
+               const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel,
+               void *sel_data,
+               SWALLOW_Type swallow_type,
+               const char *keyStr,
+               char *sub_desc,
+               setting_call_back_func chk_change_cb,
+               setting_call_back_func focused_cb,
+               setting_call_back_func unfocused_cb,
+               setting_call_back_func activated_cb,
+               setting_call_back_func max_reached_cb,
+               Elm_Input_Panel_Layout input_type,
+               bool isPasswordFlag,
+               bool isFocusFlag,
+               int max_char_count,
+               int max_byte_count,
+               char *accepted,
+               char *rejected)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                                                                                               sizeof(Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
-       item_data->sub_desc = (char *)g_strdup(sub_desc);
+       item_data->keyStr = (char *) g_strdup(keyStr);
+       item_data->sub_desc = (char *) g_strdup(sub_desc);
        item_data->swallow_type = swallow_type;
        item_data->l_swallow_path = NULL;
        item_data->r_swallow_path = NULL;
@@ -2194,15 +2247,17 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(Evas_Object *g
        item_data->input_type = input_type;
        item_data->isPasswordFlag = isPasswordFlag;
        if (isPasswordFlag)
-               item_data->guide_text = (char *)g_strdup(_("IDS_ST_BODY_ENTER_PASSWORD"));
+               item_data->guide_text = (char *) g_strdup(
+                               _("IDS_ST_BODY_ENTER_PASSWORD"));
        item_data->isSinglelineFlag = isPasswordFlag;
        item_data->isFocusFlag = isFocusFlag;
+       item_data->entry_auto_focus = isFocusFlag;
        item_data->userdata = sel_data;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
-       Elm_Entry_Filter_Accept_Set *digits_filter_data =
-               (Elm_Entry_Filter_Accept_Set *) calloc(1, sizeof(Elm_Entry_Filter_Accept_Set));
+       Elm_Entry_Filter_Accept_Set *digits_filter_data = (Elm_Entry_Filter_Accept_Set *) calloc(
+                       1, sizeof(Elm_Entry_Filter_Accept_Set));
        if (!digits_filter_data) {
                SETTING_TRACE_ERROR("calloc Elm_Entry_Filter_Accept_Set failed");
                /* free allocated data */
@@ -2214,9 +2269,8 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(Evas_Object *g
                return NULL;
        }
 
-
-       Elm_Entry_Filter_Limit_Size *limit_filter_data =
-               (Elm_Entry_Filter_Limit_Size *) calloc(1, sizeof(Elm_Entry_Filter_Limit_Size));
+       Elm_Entry_Filter_Limit_Size *limit_filter_data = (Elm_Entry_Filter_Limit_Size *) calloc(
+                       1, sizeof(Elm_Entry_Filter_Limit_Size));
        if (!limit_filter_data) {
                SETTING_TRACE_ERROR("calloc Elm_Entry_Filter_Limit_Size failed");
 
@@ -2232,25 +2286,25 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(Evas_Object *g
 
        limit_filter_data->max_char_count = max_char_count;
        limit_filter_data->max_byte_count = max_byte_count;
-       digits_filter_data->accepted = (char *)g_strdup(accepted);
-       digits_filter_data->rejected = (char *)g_strdup(rejected);
+       digits_filter_data->accepted = (char *) g_strdup(accepted);
+       digits_filter_data->rejected = (char *) g_strdup(rejected);
 
        item_data->digits_filter_data = digits_filter_data;
        item_data->limit_filter_data = limit_filter_data;
-       item_data->userdata = sel_data;
+       item_data->return_key_type = ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE;
+       item_data->win_main = genlist;
 
        if (gl_sel) {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE, gl_sel,
-                                                                       sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE, gl_sel,
+                               sel_data);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_NONE,
-                                                                       _gl_Gendial_sel, sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_NONE,
+                               _gl_Gendial_sel, item_data);
        }
-       elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+       elm_genlist_item_select_mode_set(item_data->item,
+                       ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
 
        return item_data;
 }
@@ -2262,37 +2316,29 @@ Setting_GenGroupItem_Data *setting_create_Gendial_field_editfield(Evas_Object *g
  */
 EXPORT_PUBLIC
 Setting_GenGroupItem_Data *setting_create_Gendial_exp_parent_field(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       setting_call_back_func gl_sel,
-       void *sel_data,
-       SWALLOW_Type swallow_type,
-       const char *keyStr,
-       char *sub_desc)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel, void *sel_data,
+               SWALLOW_Type swallow_type, const char *keyStr, char *sub_desc)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                        sizeof
-                                                                                        (Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
-       item_data->sub_desc = (char *)g_strdup(sub_desc);
+       item_data->keyStr = (char *) g_strdup(keyStr);
+       item_data->sub_desc = (char *) g_strdup(sub_desc);
        item_data->swallow_type = swallow_type;
        /*item_data->r_swallow_path = (char *)g_strdup(SETTING_IMAGE_PATH_CFG"00_list_button_expand_closed.png"); */
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
        if (gl_sel) {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_TREE, gl_sel,
-                                                                       sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_TREE, gl_sel,
+                               sel_data);
        } else {
-               item_data->item =
-                       elm_genlist_item_append(genlist, itc, item_data, NULL,
-                                                                       ELM_GENLIST_ITEM_TREE,
-                                                                       _gl_Gendial_sel_expand, sel_data);
+               item_data->item = elm_genlist_item_append(genlist, itc,
+                               item_data, NULL, ELM_GENLIST_ITEM_TREE,
+                               _gl_Gendial_sel_expand, sel_data);
        }
        return item_data;
 }
@@ -2304,29 +2350,22 @@ Setting_GenGroupItem_Data *setting_create_Gendial_exp_parent_field(
  */
 EXPORT_PUBLIC
 Setting_GenGroupItem_Data *setting_create_Gendial_exp_sub_field(
-       Evas_Object *genlist,
-       const Elm_Genlist_Item_Class *itc,
-       setting_call_back_func gl_sel,
-       void *sel_data,
-       Elm_Object_Item *parent,
-       SWALLOW_Type swallow_type,
-       Evas_Object *rgd, int chk_status,
-       const char *keyStr,
-       setting_call_back_func
-       chk_change_cb)
+               Evas_Object *genlist, const Elm_Genlist_Item_Class *itc,
+               setting_call_back_func gl_sel, void *sel_data,
+               Elm_Object_Item *parent, SWALLOW_Type swallow_type,
+               Evas_Object *rgd, int chk_status, const char *keyStr,
+               setting_call_back_func chk_change_cb)
 {
        /* SETTING_TRACE_BEGIN; */
-       Setting_GenGroupItem_Data *item_data =
-               (Setting_GenGroupItem_Data *) calloc(1,
-                                                                                        sizeof
-                                                                                        (Setting_GenGroupItem_Data));
+       Setting_GenGroupItem_Data *item_data = (Setting_GenGroupItem_Data *) calloc(
+                       1, sizeof(Setting_GenGroupItem_Data));
        setting_retvm_if(!item_data, NULL, "calloc failed");
-       item_data->keyStr = (char *)g_strdup(keyStr);
+       item_data->keyStr = (char *) g_strdup(keyStr);
        item_data->swallow_type = swallow_type;
        item_data->chk_status = chk_status;
        item_data->rgd = rgd;
        if (itc && itc->item_style) {
-               item_data->itc = (char *)g_strdup(itc->item_style);
+               item_data->itc = (char *) g_strdup(itc->item_style);
        }
        if (!gl_sel) {
                gl_sel = setting_sub_list_sel_cb;
@@ -2336,9 +2375,8 @@ Setting_GenGroupItem_Data *setting_create_Gendial_exp_sub_field(
        }
 
        item_data->chk_change_cb = chk_change_cb;
-       item_data->item =
-               elm_genlist_item_append(genlist, itc, item_data, parent,
-                                                               ELM_GENLIST_ITEM_NONE, gl_sel, sel_data);
+       item_data->item = elm_genlist_item_append(genlist, itc, item_data,
+                       parent, ELM_GENLIST_ITEM_NONE, gl_sel, sel_data);
 
        return item_data;
 }
@@ -2348,8 +2386,8 @@ Setting_GenGroupItem_Data *setting_create_Gendial_exp_sub_field(
  */
 EXPORT_PUBLIC
 void setting_enable_expandable_genlist(Evas_Object *genlist, void *data,
-                                                                          setting_call_back_func gl_exp_cb,
-                                                                          setting_call_back_func gl_smart_cb)
+               setting_call_back_func gl_exp_cb,
+               setting_call_back_func gl_smart_cb)
 {
        ret_if(NULL == genlist);
        elm_genlist_tree_effect_enabled_set(genlist, EINA_FALSE);
@@ -2358,20 +2396,23 @@ void setting_enable_expandable_genlist(Evas_Object *genlist, void *data,
        }
 
        if (gl_exp_cb)
-               evas_object_smart_callback_add(genlist, "expanded", gl_exp_cb, data);
-       evas_object_smart_callback_add(genlist, "contracted", gl_smart_cb, "contracted");
-       evas_object_smart_callback_add(genlist, "expanded", gl_smart_cb, "expanded");
+               evas_object_smart_callback_add(genlist, "expanded", gl_exp_cb,
+                               data);
+       evas_object_smart_callback_add(genlist, "contracted", gl_smart_cb,
+                       "contracted");
+       evas_object_smart_callback_add(genlist, "expanded", gl_smart_cb,
+                       "expanded");
 
        evas_object_smart_callback_add(genlist, "drag", gl_smart_cb, "drag");
-       evas_object_smart_callback_add(genlist, "longpressed", gl_smart_cb, "longpressed");
+       evas_object_smart_callback_add(genlist, "longpressed", gl_smart_cb,
+                       "longpressed");
 }
 
-
 /**
-* To disable a specialized genlist item
-*
-* @param[in] item
-*/
+ * To disable a specialized genlist item
+ *
+ * @param[in] item
+ */
 EXPORT_PUBLIC
 void setting_disable_genlist_item(Elm_Object_Item *item)
 {
@@ -2382,28 +2423,28 @@ void setting_disable_genlist_item(Elm_Object_Item *item)
 }
 
 /**
-* To enable a specialized genlist item
-*
-* @param[in] item
-*/
+ * To enable a specialized genlist item
+ *
+ * @param[in] item
+ */
 EXPORT_PUBLIC
 void setting_enable_genlist_item(Elm_Object_Item *item)
 {
        if (item) {
-               elm_object_item_disabled_set(item, EINA_FALSE); /* make it be normally displayed */
+               elm_object_item_disabled_set(item, EINA_FALSE); /* make it be normally displayed */
                /*elm_genlist_item_update(item); */
        }
 }
 
 EXPORT_PUBLIC
-void setting_genlist_item_disabled_set(Setting_GenGroupItem_Data *item_data, int disable)
+void setting_genlist_item_disabled_set(Setting_GenGroupItem_Data *item_data,
+               int disable)
 {
        if (item_data && item_data->item) {
                elm_object_item_disabled_set(item_data->item, disable); /* make it be dim displayed */
        }
 }
 
-
 EXPORT_PUBLIC
 void setting_check_genlist_item_bottom_line(Elm_Object_Item *item)
 {
@@ -2414,11 +2455,11 @@ void setting_check_genlist_item_bottom_line(Elm_Object_Item *item)
        if (itc && itc->item_style) {
                /*SETTING_TRACE("itc->item_style:%s", itc->item_style); */
                if (0 == safeStrCmp(itc->item_style, "groupindex")
-                       || 0 == safeStrNCmp(itc->item_style, "dialogue/separator", safeStrLen("dialogue/separator"))
-                       || 0 == safeStrNCmp(itc->item_style, "bottom_line", safeStrLen("bottom_line"))
-                       || 0 == safeStrNCmp(itc->item_style, "multiline_sub", safeStrLen("multiline_sub"))
-                       || 0 == safeStrNCmp(itc->item_style, "1icon", safeStrLen("1icon"))
-                  ) {
+                               || 0 == safeStrNCmp(itc->item_style, "dialogue/separator", safeStrLen("dialogue/separator"))
+                               || 0 == safeStrNCmp(itc->item_style, "bottom_line", safeStrLen("bottom_line"))
+                               || 0 == safeStrNCmp(itc->item_style, "multiline_sub", safeStrLen("multiline_sub"))
+                               || 0 == safeStrNCmp(itc->item_style, "1icon", safeStrLen("1icon"))
+               ) {
                        if (0 == safeStrCmp(itc->item_style, "groupindex")) {
                                Elm_Object_Item *prev_item = elm_genlist_item_prev_get(item);
                                if (prev_item) {
@@ -2437,7 +2478,7 @@ void setting_check_genlist_item_bottom_line(Elm_Object_Item *item)
                        /*SETTING_TRACE("parent:%p", parent); */
                        if (parent) { /*expandable */
                                Elm_Object_Item *it = elm_genlist_item_insert_before(scroller, &(itc_bottom_line), NULL, parent,
-                                                                                                                                        item, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+                                               item, ELM_GENLIST_ITEM_NONE, NULL, NULL);
                                elm_genlist_item_select_mode_set(it, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
                                Evas_Object *real_obj = elm_object_item_edje_get(item);
                                setting_decorate_image_RGBA(real_obj, 0, 0, 85, 255);
@@ -2452,8 +2493,9 @@ EXPORT_PUBLIC
 void __gl_realized_cb(void *data, Evas_Object *obj, void *event_info)
 {
        /*SETTING_TRACE_BEGIN; */
-       setting_retm_if(event_info == NULL, "invalid parameter: event_info is NULL");
-       Elm_Object_Item *item = (Elm_Object_Item *)event_info;
+       setting_retm_if(event_info == NULL,
+                       "invalid parameter: event_info is NULL");
+       Elm_Object_Item *item = (Elm_Object_Item *) event_info;
 
        /*? Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) */
        elm_object_item_data_get(item);
@@ -2463,25 +2505,30 @@ void __gl_realized_cb(void *data, Evas_Object *obj, void *event_info)
 }
 
 /*for check,radio,slider etc.. */
-EXPORT_PUBLIC void setting_update_gl_item_chk_status(Setting_GenGroupItem_Data *item_data, int status)
+EXPORT_PUBLIC void setting_update_gl_item_chk_status(
+               Setting_GenGroupItem_Data *item_data, int status)
 {
        if (item_data && item_data->chk_status != status) {
                item_data->chk_status = status;
                if (item_data->item) {
                        /*SETTING_TRACE_DEBUG("update item %d", item_data->chk_status); */
-                       elm_genlist_item_fields_update(item_data->item, "*", ELM_GENLIST_ITEM_FIELD_CONTENT);
+                       elm_genlist_item_fields_update(item_data->item, "*",
+                                       ELM_GENLIST_ITEM_FIELD_CONTENT);
                }
        }
 }
 
 /*do not check current status, only update the icon.2 of item which has 2 icons. */
-EXPORT_PUBLIC void setting_force_update_gl_item_chk_status(Setting_GenGroupItem_Data *item_data, int status)
+EXPORT_PUBLIC void setting_force_update_gl_item_chk_status(
+               Setting_GenGroupItem_Data *item_data, int status)
 {
        if (item_data) {
                item_data->chk_status = status;
                if (item_data->item) {
                        /*SETTING_TRACE_DEBUG("update item %s : %d", item_data->keyStr, item_data->chk_status); */
-                       elm_genlist_item_fields_update(item_data->item, "elm.icon.2", ELM_GENLIST_ITEM_FIELD_CONTENT);
+                       elm_genlist_item_fields_update(item_data->item,
+                                       "elm.icon.2",
+                                       ELM_GENLIST_ITEM_FIELD_CONTENT);
                }
        }
 }
index 9cf935c2e48318195874ca3eced8faa68ce44d16..65faf5c900c4c5bc33733d86bf43dba6897745d9 100644 (file)
@@ -40,15 +40,15 @@ static int setting_locktype_main_update(void *cb);
 static int setting_locktype_main_cleanup(void *cb);
 
 #if 0
-static void __record_btn_click_cb(void *data, Evas_Object *obj, void *event_info);
+static void __record_btn_click_cb(void *data, Evas_Object *obj,
+               void *event_info);
 #endif
 
 setting_view setting_view_locktype_main = {
-       .create = setting_locktype_main_create,
-       .destroy = setting_locktype_main_destroy,
-       .update = setting_locktype_main_update,
-       .cleanup = setting_locktype_main_cleanup,
-};
+               .create = setting_locktype_main_create,
+               .destroy = setting_locktype_main_destroy,
+               .update = setting_locktype_main_update,
+               .cleanup = setting_locktype_main_cleanup, };
 
 openlock_appdata *lockapp_data = NULL;
 
@@ -102,7 +102,8 @@ int __get_appinfo_cb(pkgmgrinfo_appinfo_h appinfo, void *user_data)
 
        ret = pkgmgrinfo_appinfo_get_appid(appinfo, &app_id);
        if (ret != 0) {
-               SETTING_TRACE_DEBUG("pkgmgrinfo_appinfo_get_appid() returns error");
+               SETTING_TRACE_DEBUG(
+                               "pkgmgrinfo_appinfo_get_appid() returns error");
                return -1;
        }
 
@@ -115,14 +116,16 @@ int __get_appinfo_cb(pkgmgrinfo_appinfo_h appinfo, void *user_data)
 
        ret = pkgmgrinfo_appinfo_get_appinfo(app_id, &handle);
        if (ret != PMINFO_R_OK) {
-               SETTING_TRACE_DEBUG("pkgmgrinfo_appinfo_get_appinfo() returns error");
+               SETTING_TRACE_DEBUG(
+                               "pkgmgrinfo_appinfo_get_appinfo() returns error");
                pkgmgrinfo_appinfo_destroy_appinfo(handle);
                return -1;
        }
 
        ret = pkgmgrinfo_appinfo_get_label(handle, &app_name);
        if (ret != PMINFO_R_OK) {
-               SETTING_TRACE_DEBUG("pkgmgrinfo_appinfo_get_label() returns error");
+               SETTING_TRACE_DEBUG(
+                               "pkgmgrinfo_appinfo_get_label() returns error");
                pkgmgrinfo_appinfo_destroy_appinfo(handle);
                return -1;
        }
@@ -135,25 +138,30 @@ int __get_appinfo_cb(pkgmgrinfo_appinfo_h appinfo, void *user_data)
        if (item->index == 0 && item->pkg_name == NULL) {
                SETTING_TRACE_DEBUG("first app");
                /* first app */
-               item->pkg_name = (char *)strdup(app_id);
-               item->app_name = (char *)strdup(app_name);
+               item->pkg_name = (char *) strdup(app_id);
+               item->app_name = (char *) strdup(app_name);
 
                if (app_id && app_name)
-                       SETTING_TRACE_DEBUG("app info %d %s %s", item->index, item->pkg_name, item->app_name);
+                       SETTING_TRACE_DEBUG("app info %d %s %s", item->index,
+                                       item->pkg_name, item->app_name);
        } else {
                SETTING_TRACE_DEBUG("create new");
                /* create new */
-               new_item = (openlock_appdata *)malloc(sizeof(openlock_appdata));
+               new_item = (openlock_appdata *) malloc(
+                               sizeof(openlock_appdata));
                if (new_item != NULL) {
                        memset(new_item, 0x00, sizeof(openlock_appdata));
-                       new_item->pkg_name = (char *)strdup(app_id);
-                       new_item->app_name = (char *)strdup(app_name);
+                       new_item->pkg_name = (char *) strdup(app_id);
+                       new_item->app_name = (char *) strdup(app_name);
                        new_item->index = item->index + 1;
                        new_item->prev = item;
                        item->next = new_item;
 
                        if (app_id && app_name)
-                               SETTING_TRACE_DEBUG("app info %d %s %s", new_item->index, new_item->pkg_name, new_item->app_name);
+                               SETTING_TRACE_DEBUG("app info %d %s %s",
+                                               new_item->index,
+                                               new_item->pkg_name,
+                                               new_item->app_name);
                } else {
                        SETTING_TRACE_DEBUG("malloc() failed");
                }
@@ -181,10 +189,13 @@ static int __add_3rd_party_lock(void *data)
 
        ret = pkgmgrinfo_appinfo_filter_create(&filter);
        if (ret > 0) {
-               SETTING_TRACE_DEBUG("pkgmgrinfo_appinfo_filter_create() failed");
+               SETTING_TRACE_DEBUG("pkgmgrinfo_appinfo_filter_create() "
+                               "failed");
                return ret_index;
        }
-       ret = pkgmgrinfo_appinfo_filter_add_string(filter, PMINFO_APPINFO_PROP_APP_CATEGORY, "http://tizen.org/category/lockapp");
+       ret = pkgmgrinfo_appinfo_filter_add_string(filter,
+                       PMINFO_APPINFO_PROP_APP_CATEGORY,
+                       "http://tizen.org/category/lockapp");
        ret = pkgmgrinfo_appinfo_filter_count(filter, &count);
        SETTING_TRACE_DEBUG("There is/are %d 3rd lock app(s)", count);
        if (count <= 0) {
@@ -220,7 +231,8 @@ static int __add_3rd_party_lock(void *data)
        lockapp_data->app_name = NULL;
        lockapp_data->index = 0;
 
-       ret = pkgmgrinfo_appinfo_filter_foreach_appinfo(filter, __get_appinfo_cb, NULL);
+       ret = pkgmgrinfo_appinfo_filter_foreach_appinfo(filter,
+                       __get_appinfo_cb, NULL);
        SETTING_TRACE("ret:%d", ret);
        pkgmgrinfo_appinfo_filter_destroy(filter);
        filter = NULL;
@@ -229,14 +241,17 @@ static int __add_3rd_party_lock(void *data)
        openlock_appdata *list = lockapp_data;
        int index = 0;
        for (index = 0; index < count; index++) {
-               ad->data_locktype_3rd[index] = setting_create_Gendial_field_1radio(ad->genlist,
-                                                                                                                                                  &(itc_1text_1icon_3),
-                                                                                                                                                  setting_locktype_main_mouse_up_Gendial_list_cb,      /*add to sel_cb */
-                                                                                                                                                  ad,  /* sel data */
-                                                                                                                                                  SWALLOW_Type_1RADIO,
-                                                                                                                                                  ad->lock_type_rd, SETTING_SCREEN_LOCK_TYPE_OTHER + index,
-                                                                                                                                                  list->app_name,
-                                                                                                                                                  NULL);
+               ad->data_locktype_3rd[index] = setting_create_Gendial_field_1radio(
+                               ad->genlist,
+                               &(itc_1text_1icon_3),
+                               /*add to sel_cb */
+                               setting_locktype_main_mouse_up_Gendial_list_cb,
+                               ad, /* sel data */
+                               SWALLOW_Type_1RADIO,
+                               ad->lock_type_rd,
+                               SETTING_SCREEN_LOCK_TYPE_OTHER + index,
+                               list->app_name,
+                               NULL);
                if (ad->data_locktype_3rd[index]) {
                        ad->data_locktype_3rd[index]->userdata = ad;
                } else {
@@ -244,9 +259,10 @@ static int __add_3rd_party_lock(void *data)
                }
 
                char *open_lock_name = NULL;
-               open_lock_name = vconf_get_str(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR);
+               open_lock_name = vconf_get_str(
+                               VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR);
                if (safeStrCmp(open_lock_name, list->app_name) == 0)
-                       ret_index = index;
+               ret_index = index;
                FREE(open_lock_name);
 
                list = list->next;
@@ -257,14 +273,14 @@ static int __add_3rd_party_lock(void *data)
 }
 #endif
 
-static void __change_simple_password_cb(void *data, Evas_Object *obj, void *event_info)
+static void __change_simple_password_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
        /*      for update */
 
-       SettingLocktypeUG *ad = (SettingLocktypeUG *)list_item->userdata;
+       SettingLocktypeUG *ad = (SettingLocktypeUG *) list_item->userdata;
        if (ad == NULL)
                return;
 
@@ -272,14 +288,14 @@ static void __change_simple_password_cb(void *data, Evas_Object *obj, void *even
        setting_locktype_create_password_sg(ad);
 }
 
-static void __change_password_cb(void *data, Evas_Object *obj, void *event_info)
+static void __change_password_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
        /*      for update */
 
-       SettingLocktypeUG *ad = (SettingLocktypeUG *)list_item->userdata;
+       SettingLocktypeUG *ad = (SettingLocktypeUG *) list_item->userdata;
        if (ad == NULL)
                return;
 
@@ -296,7 +312,6 @@ void __add_locktype_items(void *data)
 
        Evas_Object *radio;
 
-
        int locktype = 0;
        vconf_get_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, &locktype);
        SETTING_TRACE("locktype is %d", locktype);
@@ -307,75 +322,80 @@ void __add_locktype_items(void *data)
                ad->lock_type_rd = radio;
        }
 
-       evas_object_smart_callback_add(ad->genlist, "realized", __gl_realized_cb, NULL);
+       evas_object_smart_callback_add(ad->genlist, "realized",
+                       __gl_realized_cb, NULL);
 
        /* to do : radio menu */
        /* 0) None */
-       if (!isEmulBin()) {
-               ad->data_locktype_none =
-                       setting_create_Gendial_field_def(ad->genlist,
-                                                                                        &(itc_1text_1icon_3),
-                                                                                        setting_locktype_main_mouse_up_Gendial_list_cb,        /*add to sel_cb */
-                                                                                        ad,    /* sel data */
-                                                                                        SWALLOW_Type_INVALID,
-                                                                                        NULL, NULL, SETTING_SCREEN_LOCK_TYPE_NONE,
-                                                                                        "IDS_ST_BODY_NONE",
-                                                                                        NULL, NULL);
-               if (ad->data_locktype_none) {
-                       ad->data_locktype_none->userdata = ad;
-               } else {
-                       SETTING_TRACE_ERROR("item_data is NULL");
-               }
+       ad->data_locktype_none = setting_create_Gendial_field_def(
+                       ad->genlist, &(itc_1text_1icon_3),
+                       /*add to sel_cb */
+                       setting_locktype_main_mouse_up_Gendial_list_cb,
+                       ad, /* sel data */
+                       SWALLOW_Type_INVALID,
+                       NULL, NULL, SETTING_SCREEN_LOCK_TYPE_NONE,
+                       "IDS_ST_BODY_NONE",
+                       NULL, NULL);
+       if (ad->data_locktype_none) {
+               ad->data_locktype_none->userdata = ad;
+       } else {
+               SETTING_TRACE_ERROR("item_data is NULL");
        }
 
        /* 1) swipe */
-       ad->data_locktype_swipe =
-               setting_create_Gendial_field_def(ad->genlist,
-                                                                                &(itc_1text_1icon_3),
-                                                                                setting_locktype_main_mouse_up_Gendial_list_cb,        /*add to sel_cb */
-                                                                                ad,    /* sel data */
-                                                                                SWALLOW_Type_INVALID,
-                                                                                NULL, NULL, SETTING_SCREEN_LOCK_TYPE_SWIPE,
-                                                                                Keystr_Swipe,
-                                                                                NULL, NULL);
+       ad->data_locktype_swipe = setting_create_Gendial_field_def(ad->genlist,
+                       &(itc_1text_1icon_3),
+                       /*add to sel_cb */
+                       setting_locktype_main_mouse_up_Gendial_list_cb,
+                       ad, /* sel data */
+                       SWALLOW_Type_INVALID,
+                       NULL, NULL, SETTING_SCREEN_LOCK_TYPE_SWIPE,
+                       Keystr_Swipe,
+                       NULL, NULL);
        if (ad->data_locktype_swipe) {
                ad->data_locktype_swipe->userdata = ad;
        } else {
                SETTING_TRACE_ERROR("item_data is NULL");
        }
 
-       if (!isEmulBin()) {
-               /* 4) simple password */
-               ad->data_locktype_simple =
-                       setting_create_Gendial_field_def(ad->genlist,
-                                                                                        &(itc_1text_1icon_3),
-                                                                                        setting_locktype_main_mouse_up_Gendial_list_cb,        /*add to sel_cb */
-                                                                                        ad,    /* sel data */
-                                                                                        SWALLOW_Type_INVALID,
-                                                                                        NULL, NULL, SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD,
-                                                                                        "IDS_ST_BODY_SIMPLE_PASSWORD",
-                                                                                        NULL, NULL);
-               if (ad->data_locktype_simple) {
-                       ad->data_locktype_simple->userdata = ad;
-               } else {
-                       SETTING_TRACE_ERROR("item_data is NULL");
-               }
+       /* 4) simple password */
+       ad->data_locktype_simple = setting_create_Gendial_field_def(
+                       ad->genlist,
+                       &(itc_1text_1icon_3),
+                       /*add to sel_cb */
+                       setting_locktype_main_mouse_up_Gendial_list_cb,
+                       ad, /* sel data */
+                       SWALLOW_Type_INVALID,
+                       NULL,
+                       NULL,
+                       SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD,
+                       "IDS_ST_BODY_SIMPLE_PASSWORD",
+                       NULL,
+                       NULL);
+       if (ad->data_locktype_simple) {
+               ad->data_locktype_simple->userdata = ad;
+       } else {
+               SETTING_TRACE_ERROR("item_data is NULL");
+       }
 
-               /* 5) password */
-               ad->data_locktype_password =
-                       setting_create_Gendial_field_def(ad->genlist,
-                                                                                        &(itc_1text_1icon_3),
-                                                                                        setting_locktype_main_mouse_up_Gendial_list_cb,        /*add to sel_cb */
-                                                                                        ad,    /* sel data */
-                                                                                        SWALLOW_Type_INVALID,
-                                                                                        NULL, NULL, SETTING_SCREEN_LOCK_TYPE_PASSWORD,
-                                                                                        "IDS_ST_BODY_PASSWORD",
-                                                                                        NULL, NULL);
-               if (ad->data_locktype_password) {
-                       ad->data_locktype_password->userdata = ad;
-               } else {
-                       SETTING_TRACE_ERROR("item_data is NULL");
-               }
+       /* 5) password */
+       ad->data_locktype_password = setting_create_Gendial_field_def(
+                       ad->genlist,
+                       &(itc_1text_1icon_3),
+                       /*add to sel_cb */
+                       setting_locktype_main_mouse_up_Gendial_list_cb,
+                       ad, /* sel data */
+                       SWALLOW_Type_INVALID,
+                       NULL,
+                       NULL,
+                       SETTING_SCREEN_LOCK_TYPE_PASSWORD,
+                       "IDS_ST_BODY_PASSWORD",
+                       NULL,
+                       NULL);
+       if (ad->data_locktype_password) {
+               ad->data_locktype_password->userdata = ad;
+       } else {
+               SETTING_TRACE_ERROR("item_data is NULL");
        }
 
 #if 0
@@ -384,18 +404,16 @@ void __add_locktype_items(void *data)
        index = __add_3rd_party_lock(ad);
 
        if (index < 0)
-               elm_radio_value_set(radio, locktype);
+       elm_radio_value_set(radio, locktype);
        else
-               elm_radio_value_set(radio, locktype + index);
+       elm_radio_value_set(radio, locktype + index);
 #endif
        /* End */
        elm_radio_value_set(radio, locktype);
 
-
        SETTING_TRACE_END;
 }
 
-
 static void __lock_type_key_changed_cb(keynode_t *key, void *data)
 {
        ret_if(data == NULL);
@@ -419,7 +437,6 @@ static void __lock_type_key_changed_cb(keynode_t *key, void *data)
        /*ug_destroy_me(ad->ug); */
 }
 
-
 static int setting_locktype_main_create(void *cb)
 {
        SETTING_TRACE_BEGIN;
@@ -430,21 +447,20 @@ static int setting_locktype_main_create(void *cb)
        /* add basic layout */
 
        Evas_Object *scroller = NULL;
-       ad->ly_main = setting_create_layout_navi_bar_genlist(ad->win_main_layout,
-                                                                                                                ad->win_get,
-                                                                                                                "IDS_ST_BODY_SCREEN_LOCK_TYPE",
-                                                                                                                _("IDS_ST_BUTTON_BACK"),
-                                                                                                                NULL,
-                                                                                                                (setting_call_back_func)setting_locktype_main_click_softkey_back_cb,
-                                                                                                                NULL, ad, &scroller,
-                                                                                                                &(ad->navi_bar));
+       ad->ly_main = setting_create_layout_navi_bar_genlist(
+                       ad->win_main_layout, ad->win_get,
+                       "IDS_ST_BODY_SCREEN_LOCK_TYPE", _("IDS_ST_BUTTON_BACK"),
+                       NULL,
+                       (setting_call_back_func) setting_locktype_main_click_softkey_back_cb,
+                       NULL, ad, &scroller, &(ad->navi_bar));
        ad->screen_lock_main_item = elm_naviframe_top_item_get(ad->navi_bar);
 
        ad->genlist = scroller;
 
        __add_locktype_items(ad);
 
-       vconf_notify_key_changed(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, __lock_type_key_changed_cb, ad);
+       vconf_notify_key_changed(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT,
+                       __lock_type_key_changed_cb, ad);
 
        setting_view_locktype_main.is_create = 1;
        return SETTING_RETURN_SUCCESS;
@@ -463,7 +479,8 @@ static int setting_locktype_main_destroy(void *cb)
                ad->notify = NULL;
        }
 
-       (void)vconf_ignore_key_changed(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, __lock_type_key_changed_cb);
+       (void) vconf_ignore_key_changed(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT,
+                       __lock_type_key_changed_cb);
 
        evas_object_del(ad->ly_main);
        ad->screen_lock_main_item = NULL;
@@ -534,10 +551,8 @@ __motion_cancel_cb(void *data, Evas_Object *obj, void *event_info)
 }
 #endif
 
-
-static void
-setting_locktype_main_mouse_up_Gendial_list_cb(void *data, Evas_Object *obj,
-                                                                                          void *event_info)
+static void setting_locktype_main_mouse_up_Gendial_list_cb(void *data,
+               Evas_Object *obj, void *event_info)
 {
        SETTING_TRACE_BEGIN;
        /* error check */
@@ -546,13 +561,14 @@ setting_locktype_main_mouse_up_Gendial_list_cb(void *data, Evas_Object *obj,
        retm_if(event_info == NULL, "Invalid argument: event info is NULL");
        Elm_Object_Item *item = (Elm_Object_Item *) event_info;
        elm_genlist_item_selected_set(item, 0);
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) elm_object_item_data_get(item);
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *)
+                       elm_object_item_data_get(item);
        SettingLocktypeUG *ad = (SettingLocktypeUG *) data;
        setting_retm_if(NULL == list_item, "list_item is NULL");
 
        int lock_type = list_item->chk_status;
-       SETTING_TRACE("clicking item[%s - %d] ", _(list_item->keyStr), lock_type);
+       SETTING_TRACE("clicking item[%s - %d] ", _(list_item->keyStr),
+                       lock_type);
 
        int old_type;
        vconf_get_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, &old_type);
@@ -574,21 +590,26 @@ setting_locktype_main_mouse_up_Gendial_list_cb(void *data, Evas_Object *obj,
        case SETTING_SCREEN_LOCK_TYPE_SWIPE:
                /* To do : Call security-server API. pw : 0000 */
                if (old_type == SETTING_SCREEN_LOCK_TYPE_PASSWORD
-                       || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
+                               || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
 #if SECURITY_SERVER
-                       //int result = security_server_set_pwd(ad->input_pwd, "0000", 0, 0);
-                       int result = auth_passwd_set_passwd(AUTH_PWD_NORMAL,ad->input_pwd, "0000");
+                       //int result = security_server_set_pwd(ad->input_pwd,
+                       //"0000", 0, 0);
+                       int result = auth_passwd_set_passwd(AUTH_PWD_NORMAL,
+                                       ad->input_pwd, "0000");
                        SETTING_TRACE_DEBUG("set_pwd result : %d", result);
 #endif
 
 #if 0
                        uid_t user = 5000;
                        int ckmc_ret = CKMC_ERROR_NONE;
-                       ckmc_ret = ckmc_change_user_password(user, ad->input_pwd, NULL);
-                       SETTING_TRACE("ckmc_change_user_password() returns %d", ckmc_ret);
+                       ckmc_ret = ckmc_change_user_password(user,
+                                       ad->input_pwd, NULL);
+                       SETTING_TRACE("ckmc_change_user_password() returns %d",
+                                       ckmc_ret);
 #endif
                }
-               if (vconf_set_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, lock_type) == 0) {
+               if (vconf_set_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT,
+                               lock_type) == 0) {
                        /* set radio */
                        elm_radio_value_set(list_item->eo_check, lock_type);
                }
@@ -596,61 +617,68 @@ setting_locktype_main_mouse_up_Gendial_list_cb(void *data, Evas_Object *obj,
                ug_destroy_me(ad->ug);
                break;
 #if 0
-       case SETTING_SCREEN_LOCK_TYPE_MOTION:
+               case SETTING_SCREEN_LOCK_TYPE_MOTION:
                ad->old_type = old_type;
                setting_create_guild_layout(ad->navi_bar,
-                                                                       _(About_Motion_Unlock_Str),
-                                                                       _("IDS_ST_BUTTON_CANCEL_ABB"), _(SET_AS_LOCK_STR), NULL,
-                                                                       __motion_cancel_cb, __motion_set_cb, NULL,
-                                                                       _("IDS_LCKSCN_BODY_TAP_AND_HOLD_THE_SCREEN_THEN_TILT_THE_DEVICE_TOWARDS_YOU_TO_UNLOCK_IT_MSG"),
-                                                                       (char **)motion_img,
-                                                                       NULL,
-                                                                       NULL,
-                                                                       NULL, ad);
+                               _(About_Motion_Unlock_Str),
+                               _("IDS_ST_BUTTON_CANCEL_ABB"),
+                               _(SET_AS_LOCK_STR), NULL,
+                               __motion_cancel_cb, __motion_set_cb, NULL,
+                               _("IDS_LCKSCN_BODY_TAP_AND_HOLD_THE_SCREEN_THEN_TILT_THE_DEVICE_TOWARDS_YOU_TO_UNLOCK_IT_MSG"),
+                               (char **)motion_img,
+                               NULL,
+                               NULL,
+                               NULL, ad);
                break;
 #endif
        case SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD:
                if (SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD == old_type) {
-                       __change_simple_password_cb(list_item,NULL,NULL);
+                       __change_simple_password_cb(list_item, NULL, NULL);
                } else {
                        ad->pw_type = SETTING_LOCKTYPE_PW_SIMPLE_PASSWD;
                        if (old_type != SETTING_SCREEN_LOCK_TYPE_PASSWORD) {
                                FREE(ad->input_pwd);
-                               ad->input_pwd = (char *)strdup("0000");
+                               ad->input_pwd = (char *) strdup("0000");
                        }
                        setting_locktype_create_password_sg(ad);
                }
                break;
        case SETTING_SCREEN_LOCK_TYPE_PASSWORD:
                if (SETTING_SCREEN_LOCK_TYPE_PASSWORD == old_type) {
-                       __change_password_cb(list_item,NULL,NULL);
+                       __change_password_cb(list_item, NULL, NULL);
                } else {
                        ad->pw_type = SETTING_LOCKTYPE_PW_PASSWORD;
                        if (old_type != SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
                                FREE(ad->input_pwd);
-                               ad->input_pwd = (char *)strdup("0000");
+                               ad->input_pwd = (char *) strdup("0000");
                        }
                        setting_locktype_create_password_sg(ad);
                }
                break;
        case SETTING_SCREEN_LOCK_TYPE_OTHER:
                if (old_type == SETTING_SCREEN_LOCK_TYPE_PASSWORD
-                       || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
+                               || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
 #if SECURITY_SERVER
-                       //int result = security_server_set_pwd(ad->input_pwd, "0000", 0, 0);
-                       int result = auth_passwd_set_passwd(AUTH_PWD_NORMAL,ad->input_pwd, "0000");
+                       //int result = security_server_set_pwd(ad->input_pwd,
+                       //"0000", 0, 0);
+                       int result = auth_passwd_set_passwd(AUTH_PWD_NORMAL,
+                                       ad->input_pwd, "0000");
                        SETTING_TRACE_DEBUG("set_pwd result : %d", result);
 #endif
 #if 0
                        uid_t user = 5000;
                        int ckmc_ret = CKMC_ERROR_NONE;
-                       ckmc_ret = ckmc_change_user_password(user, ad->input_pwd, NULL);
-                       SETTING_TRACE("ckmc_change_user_password() returns %d", ckmc_ret);
+                       ckmc_ret = ckmc_change_user_password(user,
+                                       ad->input_pwd, NULL);
+                       SETTING_TRACE("ckmc_change_user_password() returns %d",
+                                       ckmc_ret);
 #endif
                }
                index = __get_lockapp_index_from_appname(list_item->keyStr);
-               pkg_name = __get_lockapp_pkgname_from_appname(list_item->keyStr);
-               SETTING_TRACE_DEBUG("3rd lock selected. index[%d] pkg_name[%s]", index, pkg_name);
+               pkg_name = __get_lockapp_pkgname_from_appname(
+                               list_item->keyStr);
+               SETTING_TRACE_DEBUG("3rd lock selected. index[%d] pkg_name[%s]",
+                               index, pkg_name);
                vconf_set_str(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, pkg_name);
                vconf_set_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, lock_type);
                /* set radio */
@@ -664,12 +692,13 @@ setting_locktype_main_mouse_up_Gendial_list_cb(void *data, Evas_Object *obj,
 
 #if 0
 static void
-setting_locktype_main_click_radio_cb(void *data, Evas_Object *obj, void *event_info)
+setting_locktype_main_click_radio_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
        setting_retm_if(data == NULL, "Data parameter is NULL");
        Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
+       (Setting_GenGroupItem_Data *) data;
        SettingLocktypeUG *ad = list_item->userdata;
 
        int lock_type = elm_radio_value_get(obj);
@@ -678,45 +707,50 @@ setting_locktype_main_click_radio_cb(void *data, Evas_Object *obj, void *event_i
        vconf_get_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, &old_type);
 
        if (old_type == lock_type)
-               return;
+       return;
 
        switch (lock_type) {
-       case SETTING_SCREEN_LOCK_TYPE_NONE:
-       case SETTING_SCREEN_LOCK_TYPE_SWIPE:
+               case SETTING_SCREEN_LOCK_TYPE_NONE:
+               case SETTING_SCREEN_LOCK_TYPE_SWIPE:
                /* To do : Call security-server API. pw : 0000 */
                if (old_type == SETTING_SCREEN_LOCK_TYPE_PASSWORD
-                       || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
+                               || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
 #if SECURITY_SERVER
-//                     int result = security_server_set_pwd(ad->input_pwd, "0000", 0, 0);
-                       int result = auth_passwd_set_passwd(AUTH_PWD_NORMAL,ad->input_pwd, "0000");
+//                     int result = security_server_set_pwd(
+//                     ad->input_pwd, "0000", 0, 0);
+                       int result = auth_passwd_set_passwd(
+                                       AUTH_PWD_NORMAL,ad->input_pwd, "0000");
                        SETTING_TRACE_DEBUG("set_pwd result : %d", result);
 #endif
 #if 0
                        uid_t user = 5000;
                        int ckmc_ret = CKMC_ERROR_NONE;
-                       ckmc_ret = ckmc_change_user_password(user, ad->input_pwd, NULL);
-                       SETTING_TRACE("ckmc_change_user_password() returns %d", ckmc_ret);
+                       ckmc_ret = ckmc_change_user_password(user,
+                                       ad->input_pwd, NULL);
+                       SETTING_TRACE("ckmc_change_user_password() returns %d",
+                                       ckmc_ret);
 #endif
                }
                vconf_set_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, lock_type);
                ug_destroy_me(ad->ug);
                break;
 #if 0
-       case SETTING_SCREEN_LOCK_TYPE_MOTION:
+               case SETTING_SCREEN_LOCK_TYPE_MOTION:
                ad->old_type = old_type;
                elm_radio_value_set(obj, old_type);
                setting_create_guild_layout(ad->navi_bar,
-                                                                       _(About_Motion_Unlock_Str),
-                                                                       _("IDS_ST_BUTTON_CANCEL_ABB"), _(SET_AS_LOCK_STR), NULL,
-                                                                       __motion_cancel_cb, __motion_set_cb, NULL,
-                                                                       _("IDS_LCKSCN_BODY_TAP_AND_HOLD_THE_SCREEN_THEN_TILT_THE_DEVICE_TOWARDS_YOU_TO_UNLOCK_IT_MSG"),
-                                                                       (char **)motion_img,
-                                                                       NULL,
-                                                                       NULL,
-                                                                       NULL, ad);
+                               _(About_Motion_Unlock_Str),
+                               _("IDS_ST_BUTTON_CANCEL_ABB"),
+                               _(SET_AS_LOCK_STR), NULL,
+                               __motion_cancel_cb, __motion_set_cb, NULL,
+                               _("IDS_LCKSCN_BODY_TAP_AND_HOLD_THE_SCREEN_THEN_TILT_THE_DEVICE_TOWARDS_YOU_TO_UNLOCK_IT_MSG"),
+                               (char **)motion_img,
+                               NULL,
+                               NULL,
+                               NULL, ad);
                break;
 #endif
-       case SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD:
+               case SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD:
                elm_radio_value_set(obj, old_type);
                ad->pw_type = SETTING_SEC_PW_SIMPLE_PASSWD;
                if (old_type != SETTING_SCREEN_LOCK_TYPE_PASSWORD) {
@@ -725,7 +759,7 @@ setting_locktype_main_click_radio_cb(void *data, Evas_Object *obj, void *event_i
                }
                setting_locktype_create_password_sg(ad);
                break;
-       case SETTING_SCREEN_LOCK_TYPE_PASSWORD:
+               case SETTING_SCREEN_LOCK_TYPE_PASSWORD:
                elm_radio_value_set(obj, old_type);
                ad->pw_type = SETTING_SEC_PW_PASSWORD;
                if (old_type != SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
@@ -734,44 +768,60 @@ setting_locktype_main_click_radio_cb(void *data, Evas_Object *obj, void *event_i
                }
                setting_locktype_create_password_sg(ad);
                break;
-       case SETTING_SCREEN_LOCK_TYPE_OTHER: {
+               case SETTING_SCREEN_LOCK_TYPE_OTHER: {
                        int index = -1;
                        char *pkg_name = NULL;
                        if (old_type == SETTING_SCREEN_LOCK_TYPE_PASSWORD
-                               || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
+                                       || old_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
 #if SECURITY_SERVER
-//                             int result = security_server_set_pwd(ad->input_pwd, "0000", 0, 0);
-                               int result = auth_passwd_set_passwd(AUTH_PWD_NORMAL,ad->input_pwd, "0000");
-                               SETTING_TRACE_DEBUG("set_pwd result : %d", result);
+//                             int result = security_server_set_pwd(
+//                             ad->input_pwd, "0000", 0, 0);
+                               int result = auth_passwd_set_passwd(
+                                               AUTH_PWD_NORMAL,ad->input_pwd,
+                                               "0000");
+                               SETTING_TRACE_DEBUG("set_pwd result : %d",
+                                               result);
 #endif
 #if 0
                                uid_t user = 5000;
                                int ckmc_ret = CKMC_ERROR_NONE;
-                               ckmc_ret = ckmc_change_user_password(user, ad->input_pwd, NULL);
-                               SETTING_TRACE("ckmc_change_user_password() returns %d", ckmc_ret);
+                               ckmc_ret = ckmc_change_user_password(user,
+                                               ad->input_pwd, NULL);
+                               SETTING_TRACE("ckmc_change_user_password() returns %d",
+                                               ckmc_ret);
 #endif
                        }
-                       index = __get_lockapp_index_from_appname(list_item->keyStr);
-                       pkg_name = __get_lockapp_pkgname_from_appname(list_item->keyStr);
-                       SETTING_TRACE_DEBUG("3rd lock selected. index[%d] pkg_name[%s]", index, pkg_name);
-                       vconf_set_str(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, pkg_name);
-                       vconf_set_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, lock_type);
+                       index = __get_lockapp_index_from_appname(
+                                       list_item->keyStr);
+                       pkg_name = __get_lockapp_pkgname_from_appname(
+                                       list_item->keyStr);
+                       SETTING_TRACE_DEBUG(
+                                       "3rd lock selected. index[%d] pkg_name[%s]",
+                                       index, pkg_name);
+                       vconf_set_str(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR,
+                                       pkg_name);
+                       vconf_set_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT,
+                                       lock_type);
                        /* set radio */
-                       elm_radio_value_set(list_item->eo_check, lock_type + index);
+                       elm_radio_value_set(list_item->eo_check,
+                                       lock_type + index);
                        ug_destroy_me(ad->ug);
                }
                break;
-       default:
+               default:
                break;
        }
 }
 #endif
 
-Eina_Bool setting_locktype_main_click_softkey_back_cb(void *data, Elm_Object_Item *it)
+Eina_Bool setting_locktype_main_click_softkey_back_cb(void *data,
+               Elm_Object_Item *it)
 {
        SETTING_TRACE_BEGIN;
+
        /* error check */
-       retvm_if(data == NULL, EINA_FALSE, "[Setting > Security] Data parameter is NULL");
+       retvm_if(data == NULL, EINA_FALSE,
+                       "[Setting > Security] Data parameter is NULL");
 
        SettingLocktypeUG *ad = (SettingLocktypeUG *) data;
        if (ad->ug_passwd) {
index 6d3ccaecde9b37c1cd1cd589236863099f945b0c..aa35c49365f518e30305143f9f5ffcd480dcf113 100644 (file)
@@ -32,13 +32,12 @@ int setting_password_main_clear_2line_password(void *data);
 int setting_password_main_check_1line_password(void *data);
 int setting_password_main_check_2line_password(void *data);
 
-void setting_password_main_click_softkey_done_cb(void *data,
-                                                                                                Evas_Object *obj,
-                                                                                                void *event_info);
-void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *obj,
-                                                                                                        void *event_info);
+void setting_password_main_click_softkey_done_cb(void *data, Evas_Object *obj,
+               void *event_info);
+void setting_password_main_click_softkey_continue_cb(void *data,
+               Evas_Object *obj, void *event_info);
 
 void setting_password_main_warning_entry_added_byte_popup(SettingPasswordUG *ad,
-                                                                                                                 int min, int max);
+               int min, int max);
 
 #endif
index e3d5867b4427d6631395a0130c30165727429a22..156ba48f3d6a43f534b30642a0e33b5778946950 100644 (file)
 #define ATTEMPT_INFINITE       999999
 
 typedef enum {
-       SETTING_PW_TYPE_PASSWORD = 1,                   /* Final type to verify current password */
-       SETTING_PW_TYPE_SET_PASSWORD,           /* This view type is used when click "password" and "change password" items in screen lock type view */
-       SETTING_PW_TYPE_SIMPLE_PASSWORD,        /* Final type to verify current simple password */
+       SETTING_PW_TYPE_PASSWORD = 1, /* Final type to verify current password */
+       SETTING_PW_TYPE_SET_PASSWORD, /* This view type is used when click "password" and "change password" items in screen lock type view */
+       SETTING_PW_TYPE_SIMPLE_PASSWORD, /* Final type to verify current simple password */
        SETTING_PW_TYPE_SET_SIMPLE_PASSWORD, /* This view type is used when click "simple password" and "change simple password" items in screen lock type view */
-       SETTING_PW_TYPE_ENTER_LOCK_TYPE,        /* This view type is used when enter screen lock type menu to verify current password lock type */
-       SETTING_PW_TYPE_SIM_LOCK_ON = 6,                /* No use : Do not support SIM LOCK */
-       SETTING_PW_TYPE_SIM_LOCK_OFF,           /* No use : Do not support SIM LOCK */
-       SETTING_PW_TYPE_PIN_LOCK_ON,            /* This view type is used when try to turn PIN LOCK on */
-       SETTING_PW_TYPE_PIN_LOCK_OFF,           /* This view type is used when try to turn PIN LOCK off */
+       SETTING_PW_TYPE_ENTER_LOCK_TYPE, /* This view type is used when enter screen lock type menu to verify current password lock type */
+       SETTING_PW_TYPE_SIM_LOCK_ON = 6, /* No use : Do not support SIM LOCK */
+       SETTING_PW_TYPE_SIM_LOCK_OFF, /* No use : Do not support SIM LOCK */
+       SETTING_PW_TYPE_PIN_LOCK_ON, /* This view type is used when try to turn PIN LOCK on */
+       SETTING_PW_TYPE_PIN_LOCK_OFF, /* This view type is used when try to turn PIN LOCK off */
        SETTING_PW_TYPE_CHANGE_PIN,
        SETTING_PW_TYPE_CHANGE_PIN2 = 11,
-       SETTING_PW_TYPE_PIN_BLOCKED,    /* No use : PIN1 must be unblocked through pwlock app */
+       SETTING_PW_TYPE_PIN_BLOCKED, /* No use : PIN1 must be unblocked through pwlock app */
        SETTING_PW_TYPE_PIN2_BLOCKED,
        SETTING_PW_TYPE_MAX,
 } setting_pw_type;
 
 typedef enum {
-       SETTING_PW_ERROR_INVALID_LENGTH = -1,                   /* if length of password is wrong, */
-       SETTING_PW_ERROR_INCLUDE_NO_LETTER = -2,                /* if password that user enter has no letter, */
-       SETTING_PW_ERROR_NO_MATCH_WITH_POLICY = -3,             /* if password that user enter does not match with policy, */
-       SETTING_PW_ERROR_NO_MATCH_MIN_COMPLEX = -4,             /* if password that user enter has no letter, */
+       SETTING_PW_ERROR_INVALID_LENGTH = -1, /* if length of password is wrong, */
+       SETTING_PW_ERROR_INCLUDE_NO_LETTER = -2, /* if password that user enter has no letter, */
+       SETTING_PW_ERROR_NO_MATCH_WITH_POLICY = -3, /* if password that user enter does not match with policy, */
+       SETTING_PW_ERROR_NO_MATCH_MIN_COMPLEX = -4, /* if password that user enter has no letter, */
        SETTING_PW_ERROR_EXIST_FORBIDDEN_STRING = -5,
        SETTING_PW_ERROR_NO_MATCH_MAX_REPEAT_COUNT = -6,
        SETTING_PW_ERROR_NO_MATCH_CUR_PASSWORD = -7,
@@ -105,11 +105,9 @@ enum {
 };
 
 enum {
-       SETTING_PW_SUB_CATEGORY_SIMPLE = 0x01,
-       SETTING_PW_SUB_CATEGORY_MAX,
+       SETTING_PW_SUB_CATEGORY_SIMPLE = 0x01, SETTING_PW_SUB_CATEGORY_MAX,
 };
 
-
 struct _pw_item {
        int pw_type_num;
        char *pw_type_string;
@@ -205,8 +203,8 @@ typedef struct _SettingPasswordUG {
        char *view_type_string;
        int step;
 
-       Evas_Object *bottom_btn;        /* Instead of Toolbar btn */
-       Evas_Object *bottom_btn1;       /* Instead of Toolbar btn */
+       Evas_Object *bottom_btn; /* Instead of Toolbar btn */
+       Evas_Object *bottom_btn1; /* Instead of Toolbar btn */
        Setting_GenGroupItem_Data *ed_pw1;
        Setting_GenGroupItem_Data *ed_pw2;
        Setting_GenGroupItem_Data *ed_pw3;
@@ -277,20 +275,22 @@ typedef struct _SettingPasswordUG {
 
 } SettingPasswordUG;
 
-
 extern setting_view setting_view_password_sim;
 extern setting_view setting_view_password_simple;
 extern setting_view setting_view_password_main;
 
-void setting_password_ug_popup_resp_cb(void *data, Evas_Object *obj, void *event_info);
-void setting_password_ug_create_popup_notitle_nobtn(void *data, char *str, int destroy);
+void setting_password_ug_popup_resp_cb(void *data, Evas_Object *obj,
+               void *event_info);
+void setting_password_ug_create_popup_notitle_nobtn(void *data, char *str,
+               int destroy);
 
 void setting_password_ug_display_desc(void *data, char *desc, int destroy);
 
-
 extern void setting_password_ug_check_attemps_left(void *data);
 
-int setting_password_check_password(const char *challenge,     unsigned int *remain_attempt, unsigned int *valid_sec);
-int setting_password_set_password(const char *cur_pwd, const char *new_pwd, void *data);
+int setting_password_check_password(const char *challenge,
+               unsigned int *remain_attempt, unsigned int *valid_sec);
+int setting_password_set_password(const char *cur_pwd, const char *new_pwd,
+               void *data);
 
 #endif
index ea15724c14a4199d12a6e549dac1c52d7f932d64..94e823f969a4fa3461ce4de1d1e9952a7a276587 100644 (file)
@@ -1,23 +1,23 @@
 /*
-* setting
-*
-* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
-*
-* Contact: MyoungJune Park <mj2004.park@samsung.com>
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
+ * setting
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+ *
+ * Contact: MyoungJune Park <mj2004.park@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 
 #include <setting-password.h>
 #include <setting-password-main.h>
@@ -33,7 +33,6 @@
 #include <time.h>
 #include <notification.h>
 
-
 void __add_help_of_password_fails(int ret, SettingPasswordUG *ad);
 
 static int setting_password_main_create(void *cb);
@@ -41,17 +40,15 @@ static int setting_password_main_destroy(void *cb);
 static int setting_password_main_update(void *cb);
 static int setting_password_main_cleanup(void *cb);
 
-
 setting_view setting_view_password_main = {
-       .create = setting_password_main_create,
-       .destroy = setting_password_main_destroy,
-       .update = setting_password_main_update,
-       .cleanup = setting_password_main_cleanup,
-};
-
+               .create = setting_password_main_create,
+               .destroy = setting_password_main_destroy,
+               .update = setting_password_main_update,
+               .cleanup = setting_password_main_cleanup, };
 
 static void setting_password_main_done_password(void *data);
-static int __count_string(const char *str, int *cnt_letter, int *cnt_digit, int *cnt_sym);
+static int __count_string(const char *str, int *cnt_letter, int *cnt_digit,
+               int *cnt_sym);
 
 extern struct _pw_item pw_its[];
 
@@ -61,11 +58,13 @@ extern struct _pw_item pw_its[];
  *
  ***************************************************/
 
-static void setting_password_main_click_softkey_cancel_cb(void *data, Evas_Object *obj, void *event_info)
+static void setting_password_main_click_softkey_cancel_cb(void *data,
+               Evas_Object *obj, void *event_info)
 {
        SETTING_TRACE_BEGIN;
        /* error check */
-       setting_retm_if(NULL == data, "[Setting > Password] Data parameter is NULL");
+       setting_retm_if(NULL == data,
+                       "[Setting > Password] Data parameter is NULL");
 
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
@@ -98,12 +97,14 @@ Eina_Bool __rotate_cb(void *data)
 
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
-       /*SETTING_TRACE_DEBUG("category : 0x%x", pw_its[ad->view_type].category);*/
+       /*SETTING_TRACE_DEBUG("category : 0x%x",
+        * pw_its[ad->view_type].category);*/
 
        /* it can manage the cursor self */
        if (ad->ed_pw1 && ad->ed_pw1->eo_check) {
                SETTING_TRACE_DEBUG("set focus on first entry");
-               /* no matter how many edifileds, it only need focus on 1st editfiled */
+               /* no matter how many edifileds, it only need focus on 1st
+                * editfiled */
                elm_object_focus_set(ad->ed_pw1->eo_check, EINA_TRUE);
                elm_entry_cursor_end_set(ad->ed_pw1->eo_check);
        }
@@ -121,22 +122,23 @@ static int setting_password_main_create(void *cb)
 
        SettingPasswordUG *ad = (SettingPasswordUG *) cb;
 
-       ad->ly_main = setting_create_layout_navi_bar_genlist(ad->win_main_layout, ad->win_get, "IDS_ST_BODY_PASSWORD",
-                                                                                                                _("IDS_ST_BUTTON_BACK"),
-                                                                                                                NULL,
-                                                                                                                (setting_call_back_func)setting_password_main_click_softkey_cancel_cb,
-                                                                                                                NULL,
-                                                                                                                ad,
-                                                                                                                &(ad->scroller),
-                                                                                                                &(ad->navi_bar));
+       ad->ly_main = setting_create_layout_navi_bar_genlist(
+                       ad->win_main_layout, ad->win_get,
+                       "IDS_ST_BODY_PASSWORD", _("IDS_ST_BUTTON_BACK"),
+                       NULL,
+                       (setting_call_back_func) setting_password_main_click_softkey_cancel_cb,
+                       NULL, ad, &(ad->scroller), &(ad->navi_bar));
 
        ad->navi_it = elm_naviframe_top_item_get(ad->navi_bar);
 
        ad->bottom_btn = elm_box_add(ad->navi_bar);
-       elm_box_padding_set(ad->bottom_btn, ELM_SCALE_SIZE(10), ELM_SCALE_SIZE(10));
+       elm_box_padding_set(ad->bottom_btn, ELM_SCALE_SIZE(10),
+                       ELM_SCALE_SIZE(10));
        elm_box_horizontal_set(ad->bottom_btn, EINA_TRUE);
-       evas_object_size_hint_weight_set(ad->bottom_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(ad->bottom_btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(ad->bottom_btn, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
+       evas_object_size_hint_align_set(ad->bottom_btn, EVAS_HINT_FILL,
+       EVAS_HINT_FILL);
        evas_object_show(ad->bottom_btn);
        elm_box_pack_end(ad->navi_bar, ad->bottom_btn);
 
@@ -144,8 +146,10 @@ static int setting_password_main_create(void *cb)
        Evas_Object *btn = elm_button_add(ad->bottom_btn);
        elm_object_style_set(btn, "bottom");
        elm_object_text_set(btn, _("IDS_ST_BUTTON_CANCEL"));
-       evas_object_smart_callback_add(btn, "clicked", setting_password_main_click_softkey_cancel_cb, ad);
-       evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_smart_callback_add(btn, "clicked",
+                       setting_password_main_click_softkey_cancel_cb, ad);
+       evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, 0.5);
        evas_object_show(btn);
        elm_box_pack_end(ad->bottom_btn, btn);
@@ -154,18 +158,26 @@ static int setting_password_main_create(void *cb)
        ad->bottom_btn1 = elm_button_add(ad->bottom_btn);
        elm_object_style_set(ad->bottom_btn1, "bottom");
        if (ad->view_type == SETTING_PW_TYPE_SET_PASSWORD) {
-               elm_object_text_set(ad->bottom_btn1, _("IDS_ST_BUTTON_CONTINUE"));
-               evas_object_smart_callback_add(ad->bottom_btn1, "clicked", setting_password_main_click_softkey_continue_cb, ad);
+               elm_object_text_set(ad->bottom_btn1,
+                               _("IDS_ST_BUTTON_CONTINUE"));
+               evas_object_smart_callback_add(ad->bottom_btn1, "clicked",
+                               setting_password_main_click_softkey_continue_cb,
+                               ad);
        } else {
-               elm_object_text_set(ad->bottom_btn1, _("IDS_SA_BUTTON_DONE_ABB"));
-               evas_object_smart_callback_add(ad->bottom_btn1, "clicked", setting_password_main_click_softkey_done_cb, ad);
+               elm_object_text_set(ad->bottom_btn1,
+                               _("IDS_SA_BUTTON_DONE_ABB"));
+               evas_object_smart_callback_add(ad->bottom_btn1, "clicked",
+                               setting_password_main_click_softkey_done_cb,
+                               ad);
        }
-       evas_object_size_hint_weight_set(ad->bottom_btn1, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_size_hint_weight_set(ad->bottom_btn1, EVAS_HINT_EXPAND,
+       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(ad->bottom_btn1, EVAS_HINT_FILL, 0.5);
        evas_object_show(ad->bottom_btn1);
        elm_box_pack_end(ad->bottom_btn, ad->bottom_btn1);
 
-       elm_object_item_part_content_set(ad->navi_it, "toolbar", ad->bottom_btn);
+       elm_object_item_part_content_set(ad->navi_it, "toolbar",
+                       ad->bottom_btn);
 
        ad->cur_step = 1;
        setting_password_main_draw_1line_password(ad, NULL);
@@ -251,18 +263,17 @@ static int setting_password_main_cleanup(void *cb)
  *
  ***************************************************/
 
-static void
-setting_password_main_entry_changed_cb(void *data, Evas_Object *obj,
-                                                                          void *event_info)
+static void setting_password_main_entry_changed_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
+
        retm_if(data == NULL, "[Setting > Password] Data parameter is NULL");
        retm_if(obj == NULL, "[Setting > Password] Data parameter is NULL");
-       Setting_GenGroupItem_Data *list_item =
-               (Setting_GenGroupItem_Data *) data;
+       Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
        SettingPasswordUG *ad = (SettingPasswordUG *) list_item->userdata;
        const char *entry_str = elm_entry_entry_get(obj);
-       list_item->sub_desc = (char *)g_strdup(entry_str);
+       list_item->sub_desc = (char *) g_strdup(entry_str);
        bool isFoundEmptyEntry = FALSE;
 
        do {
@@ -270,10 +281,12 @@ setting_password_main_entry_changed_cb(void *data, Evas_Object *obj,
                        entry_str = ad->ed_pw1->sub_desc;
                        if (NULL == entry_str || '\0' == entry_str[0]) {
                                isFoundEmptyEntry = TRUE;
-                               elm_object_item_signal_emit(ad->ed_pw1->item, "elm,state,eraser,hide", "");
+                               elm_object_item_signal_emit(ad->ed_pw1->item,
+                                               "elm,state,eraser,hide", "");
                                break;
                        } else {
-                               elm_object_item_signal_emit(ad->ed_pw1->item, "elm,state,eraser,show", "");
+                               elm_object_item_signal_emit(ad->ed_pw1->item,
+                                               "elm,state,eraser,show", "");
                                break;
                        }
                }
@@ -285,7 +298,11 @@ setting_password_main_entry_changed_cb(void *data, Evas_Object *obj,
 
        /* For disable toolbar (done) item */
        bool disableFlag = isFoundEmptyEntry;
-       if (ad->ed_pw1 && ad->ed_pw1->eo_check && (safeStrLen(elm_entry_entry_get(ad->ed_pw1->eo_check)) < 4))
+       if (ad->ed_pw1 && ad->ed_pw1->eo_check
+                       && (safeStrLen(
+                                       elm_entry_entry_get(
+                                                       ad->ed_pw1->eo_check))
+                                       < 4))
                disableFlag = TRUE;
 
 #if SUPPORT_BOTTOM_BTNS
@@ -297,16 +314,19 @@ setting_password_main_entry_changed_cb(void *data, Evas_Object *obj,
                elm_entry_input_panel_return_key_disabled_set(obj, EINA_FALSE);
        }
 #else
-       elm_object_item_disabled_set(elm_toolbar_last_item_get(ad->controllbar), disableFlag);
+       elm_object_item_disabled_set(elm_toolbar_last_item_get(ad->controllbar),
+                       disableFlag);
 #endif
 
 }
 
-static void __reached_max_pwlength_cb(void *data, Evas_Object *obj, void *event_info)
+static void __reached_max_pwlength_cb(void *data, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
        retm_if(data == NULL, "Data parameter is NULL");
-       retm_if(!elm_object_focus_get(obj), "Entry is not focused");/*notify only when entry is being focused on. */
+       /*notify only when entry is being focused on. */
+       retm_if(!elm_object_focus_get(obj), "Entry is not focused");
 
        /* int err = 0; */
 
@@ -314,8 +334,9 @@ static void __reached_max_pwlength_cb(void *data, Evas_Object *obj, void *event_
        SettingPasswordUG *ad = (SettingPasswordUG *) list_item->userdata;
 
        /* Display help text. */
-       char temp[128] = {0,};
-       snprintf(temp, 128, _(PW_ST_PW_MAX_LENGTH_HELP), list_item->limit_filter_data->max_char_count);
+       char temp[128] = { 0, };
+       snprintf(temp, 128, _(PW_ST_PW_MAX_LENGTH_HELP),
+                       list_item->limit_filter_data->max_char_count);
        setting_password_ug_display_desc(ad, temp, FALSE);
 }
 
@@ -330,17 +351,23 @@ static void __entry_activated_cb(void *data, Evas_Object *obj, void *event_info)
        if (ad->bottom_btn) {
                if (elm_object_disabled_get(ad->bottom_btn1) == EINA_FALSE) {
                        /* call done cb. */
-                       if (ad->view_type == SETTING_PW_TYPE_SET_PASSWORD && ad->cur_step == 1) {
+                       if (ad->view_type == SETTING_PW_TYPE_SET_PASSWORD
+                                       && ad->cur_step == 1) {
                                /* Save first input */
-                               ad->step1_str = (char *)strdup(ad->ed_pw1->sub_desc);
+                               ad->step1_str = (char *) strdup(
+                                               ad->ed_pw1->sub_desc);
 
-                               /* Check step1_str : more than 4, not all digits */
+                               /* Check step1_str : more than 4, not all
+                                * digits */
                                int letter = 0;
                                int digit = 0;
                                int symbol = 0;
-                               __count_string(ad->step1_str, &letter, &digit, &symbol);
+                               __count_string(ad->step1_str, &letter, &digit,
+                                               &symbol);
                                if (safeStrLen(ad->step1_str) == digit) {
-                                       __add_help_of_password_fails(SETTING_PW_ERROR_INCLUDE_NO_LETTER, ad);
+                                       __add_help_of_password_fails(
+                                                       SETTING_PW_ERROR_INCLUDE_NO_LETTER,
+                                                       ad);
                                        FREE(ad->step1_str);
                                        return;
                                }
@@ -351,17 +378,27 @@ static void __entry_activated_cb(void *data, Evas_Object *obj, void *event_info)
                                        ad->err_desc = NULL;
                                }
 
-                               /* Change entry title : PW_SHORT_GUIDE_CONFIRM */
+                               /* Change entry title :
+                                * PW_SHORT_GUIDE_CONFIRM */
                                FREE(ad->ed_pw1->keyStr);
-                               ad->ed_pw1->keyStr = (char *)strdup(PW_SHORT_GUIDE_CONFIRM);
-                               elm_genlist_item_fields_update(ad->ed_pw1->item, "elm.text.main", ELM_GENLIST_ITEM_FIELD_TEXT);
-
+                               ad->ed_pw1->keyStr = (char *) strdup(
+                               PW_SHORT_GUIDE_CONFIRM);
+                               elm_genlist_item_fields_update(ad->ed_pw1->item,
+                                               "elm.text.main",
+                                               ELM_GENLIST_ITEM_FIELD_TEXT);
 
                                /* Change button */
-                               elm_object_text_set(ad->bottom_btn1, _("IDS_SA_BUTTON_DONE_ABB"));
-                               evas_object_smart_callback_add(ad->bottom_btn1, "clicked", setting_password_main_click_softkey_done_cb, ad);
-                               elm_object_disabled_set(ad->bottom_btn1, EINA_TRUE);
-                               elm_entry_input_panel_return_key_disabled_set(obj, EINA_TRUE);
+                               elm_object_text_set(ad->bottom_btn1,
+                                               _("IDS_SA_BUTTON_DONE_ABB"));
+                               evas_object_smart_callback_add(ad->bottom_btn1,
+                                               "clicked",
+                                               setting_password_main_click_softkey_done_cb,
+                                               ad);
+                               elm_object_disabled_set(ad->bottom_btn1,
+                               EINA_TRUE);
+                               elm_entry_input_panel_return_key_disabled_set(
+                                               obj,
+                                               EINA_TRUE);
                                ad->cur_step++;
                        } else {
                                setting_password_main_done_password(ad);
@@ -379,9 +416,11 @@ static void __entry_focused_cb(void *data, Evas_Object *obj, void *event_info)
        /* SettingPasswordUG *ad = (SettingPasswordUG *)list_item->userdata; */
 
        if (!elm_entry_is_empty(obj)) {
-               elm_object_item_signal_emit(list_item->item, "elm,state,eraser,show", "");
+               elm_object_item_signal_emit(list_item->item,
+                               "elm,state,eraser,show", "");
        }
-       elm_object_item_signal_emit(list_item->item, "elm,state,rename,hide", "");
+       elm_object_item_signal_emit(list_item->item, "elm,state,rename,hide",
+                       "");
 }
 
 static void __entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info)
@@ -393,8 +432,10 @@ static void __entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info)
        Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *) data;
 
        if (list_item->item) {
-               elm_object_item_signal_emit(list_item->item, "elm,state,eraser,hide", "");
-               elm_object_item_signal_emit(list_item->item, "elm,state,rename,show", "");
+               elm_object_item_signal_emit(list_item->item,
+                               "elm,state,eraser,hide", "");
+               elm_object_item_signal_emit(list_item->item,
+                               "elm,state,rename,show", "");
        }
 }
 
@@ -403,65 +444,83 @@ int setting_password_main_draw_1line_password(void *data, void *cb)
        SETTING_TRACE_BEGIN;
        /* error check */
        retvm_if(data == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER,
-                        "[Setting > Password] Data parameter is NULL");
+                       "[Setting > Password] Data parameter is NULL");
 
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
        switch (ad->view_type) {
        case SETTING_PW_TYPE_PASSWORD:
-               ad->ed_pw1 =
-                       setting_create_Gendial_field_editfield(ad->scroller,
-                                                                                                  &(itc_editfield),
-                                                                                                  NULL, ad,
-                                                                                                  SWALLOW_Type_LAYOUT_EDITFIELD,
-                                                                                                  "IDS_ST_BODY_PASSWORD",
-                                                                                                  NULL,
-                                                                                                  setting_password_main_entry_changed_cb,
-                                                                                                  __entry_focused_cb,
-                                                                                                  __entry_unfocused_cb,
-                                                                                                  __entry_activated_cb,
-                                                                                                  __reached_max_pwlength_cb,
-                                                                                                  ELM_INPUT_PANEL_LAYOUT_PASSWORD,
-                                                                                                  TRUE, TRUE,
-                                                                                                  SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH,
-                                                                                                  0, NULL, NULL);
+               ad->ed_pw1 = setting_create_Gendial_field_editfield(
+                               ad->scroller,
+                               &(itc_editfield),
+                               NULL,
+                               ad,
+                               SWALLOW_Type_LAYOUT_EDITFIELD,
+                               "IDS_ST_BODY_PASSWORD",
+                               NULL,
+                               setting_password_main_entry_changed_cb,
+                               __entry_focused_cb,
+                               __entry_unfocused_cb,
+                               __entry_activated_cb,
+                               __reached_max_pwlength_cb,
+                               ELM_INPUT_PANEL_LAYOUT_PASSWORD,
+                               TRUE,
+                               TRUE,
+                               SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH,
+                               0,
+                               NULL,
+                               NULL);
                /* change return key type */
                if (ad->ed_pw1) {
                        ad->ed_pw1->return_key_type = ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE;
-                       elm_entry_input_panel_return_key_type_set(ad->ed_pw1->eo_check, ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE);
+                       elm_entry_input_panel_return_key_type_set(
+                                       ad->ed_pw1->eo_check,
+                                       ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE);
                        elm_object_focus_set(ad->ed_pw1->eo_check, EINA_TRUE);
+               } else {
+                       SETTING_TRACE_ERROR("Cannot create editfield");
                }
 
                break;
        case SETTING_PW_TYPE_SET_PASSWORD:
-               ad->ed_pw1 =
-                       setting_create_Gendial_field_editfield(ad->scroller,
-                                                                                                  &(itc_editfield),
-                                                                                                  NULL, ad,
-                                                                                                  SWALLOW_Type_LAYOUT_EDITFIELD,
-                                                                                                  PW_SHORT_GUIDE_NEW,
-                                                                                                  NULL,
-                                                                                                  setting_password_main_entry_changed_cb,
-                                                                                                  __entry_focused_cb,
-                                                                                                  __entry_unfocused_cb,
-                                                                                                  __entry_activated_cb,
-                                                                                                  __reached_max_pwlength_cb,
-                                                                                                  ELM_INPUT_PANEL_LAYOUT_PASSWORD,
-                                                                                                  TRUE, TRUE,
-                                                                                                  SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH,
-                                                                                                  0, NULL, NULL);
+               ad->ed_pw1 = setting_create_Gendial_field_editfield(
+                               ad->scroller,
+                               &(itc_editfield),
+                               NULL,
+                               ad,
+                               SWALLOW_Type_LAYOUT_EDITFIELD,
+                               PW_SHORT_GUIDE_NEW,
+                               NULL,
+                               setting_password_main_entry_changed_cb,
+                               __entry_focused_cb,
+                               __entry_unfocused_cb,
+                               __entry_activated_cb,
+                               __reached_max_pwlength_cb,
+                               ELM_INPUT_PANEL_LAYOUT_PASSWORD,
+                               TRUE,
+                               TRUE,
+                               SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH,
+                               0,
+                               NULL,
+                               NULL);
 
                ad->err_desc = setting_create_Gendial_field_helpitem_without_bottom_separator(
-                                                  ad->scroller,
-                                                  &(itc_multiline_text),
-                                                  SWALLOW_Type_LAYOUT_SPECIALIZTION_X,
-                                                  PW_NORMAL_AND_CONTAIN_ALPHANUMER_DESC);
+                               ad->scroller, &(itc_multiline_text),
+                               SWALLOW_Type_LAYOUT_SPECIALIZTION_X,
+                               PW_NORMAL_AND_CONTAIN_ALPHANUMER_DESC);
 
                /* change return key type */
                if (ad->ed_pw1) {
+                       SETTING_TRACE_ERROR("Edit field created");
                        ad->ed_pw1->return_key_type = ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT;
-                       elm_entry_input_panel_return_key_type_set(ad->ed_pw1->eo_check, ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT);
+                       elm_entry_input_panel_return_key_type_set(
+                                       ad->ed_pw1->eo_check,
+                                       ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT);
                        elm_object_focus_set(ad->ed_pw1->eo_check, EINA_TRUE);
+                       setting_password_main_entry_changed_cb(ad->ed_pw1,
+                                       ad->scroller, NULL);
+               } else {
+                       SETTING_TRACE_ERROR("Cannot create editfield");
                }
 
                break;
@@ -479,7 +538,7 @@ int setting_password_main_clear_1line_password(void *data)
 {
        /* error check */
        retvm_if(data == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER,
-                        "[Setting > Password] Data parameter is NULL");
+                       "[Setting > Password] Data parameter is NULL");
 
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
        retv_if(NULL == ad->ed_pw1, -1);
@@ -488,7 +547,8 @@ int setting_password_main_clear_1line_password(void *data)
        ad->ed_pw1->isFocusFlag = FALSE;
 
        elm_entry_entry_set(ad->ed_pw1->eo_check, "");
-       elm_object_part_text_set(ad->ed_pw1->eo_check, "elm.guide", _("IDS_ST_BODY_ENTER_PASSWORD"));
+       elm_object_part_text_set(ad->ed_pw1->eo_check, "elm.guide",
+                       _("IDS_ST_BODY_ENTER_PASSWORD"));
 
        return 0;
 }
@@ -499,10 +559,9 @@ void __add_help_of_password_policy(SettingPasswordUG *ad)
        ret_if(ad == NULL);
 
        ad->err_desc = setting_create_Gendial_field_helpitem_without_bottom_separator(
-                                          ad->scroller,
-                                          &(itc_multiline_text),
-                                          SWALLOW_Type_LAYOUT_SPECIALIZTION_X,
-                                          PW_NORMAL_AND_CONTAIN_ALPHANUMER_DESC);
+                       ad->scroller, &(itc_multiline_text),
+                       SWALLOW_Type_LAYOUT_SPECIALIZTION_X,
+                       PW_NORMAL_AND_CONTAIN_ALPHANUMER_DESC);
 
        if (ad->ed_pw1 && ad->ed_pw1->eo_check) {
                SETTING_TRACE_DEBUG("FOCUS IN");
@@ -511,7 +570,8 @@ void __add_help_of_password_policy(SettingPasswordUG *ad)
        }
 }
 
-/* This help is shown after verifying entered new/confirm password with constraint */
+/* This help is shown after verifying entered new/confirm password with
+ * constraint */
 void __add_help_of_password_fails(int ret, SettingPasswordUG *ad)
 {
        ret_if(ad == NULL);
@@ -521,31 +581,45 @@ void __add_help_of_password_fails(int ret, SettingPasswordUG *ad)
                setting_password_ug_display_desc(ad, "Invalid length", FALSE);
                break;
        case SETTING_PW_ERROR_INCLUDE_NO_LETTER:
-               setting_password_ug_display_desc(ad, "IDS_ST_BODY_PASSWORD_MUST_CONTAIN_AT_LEAST_1_LETTER", FALSE);
+               setting_password_ug_display_desc(ad,
+                               "IDS_ST_BODY_PASSWORD_MUST_CONTAIN_AT_LEAST_1_LETTER",
+                               FALSE);
                break;
        case SETTING_PW_ERROR_NO_MATCH_WITH_POLICY:
-               setting_password_ug_display_desc(ad, "No match with policy", FALSE);
+               setting_password_ug_display_desc(ad, "No match with policy",
+               FALSE);
                break;
        case SETTING_PW_ERROR_NO_MATCH_MIN_COMPLEX:
-               setting_password_ug_display_desc(ad, "No match with min complex", FALSE);
+               setting_password_ug_display_desc(ad,
+                               "No match with min complex",
+                               FALSE);
                break;
        case SETTING_PW_ERROR_EXIST_FORBIDDEN_STRING:
-               setting_password_ug_display_desc(ad, "Exist forbidden string", FALSE);
+               setting_password_ug_display_desc(ad, "Exist forbidden string",
+               FALSE);
                break;
        case SETTING_PW_ERROR_NO_MATCH_MAX_REPEAT_COUNT:
-               setting_password_ug_display_desc(ad, "No match with max repeat count", FALSE);
+               setting_password_ug_display_desc(ad,
+                               "No match with max repeat count",
+                               FALSE);
                break;
        case SETTING_PW_ERROR_SIMPLE_STYLE:
-               setting_password_ug_display_desc(ad, "Exist simple sequence", FALSE);
+               setting_password_ug_display_desc(ad, "Exist simple sequence",
+               FALSE);
                break;
        case SETTING_PW_ERROR_INCLUDE_DIGIT:
-               setting_password_ug_display_desc(ad, "Password should not include any digit or symbol", FALSE);
+               setting_password_ug_display_desc(ad,
+                               "Password should not include any digit or symbol",
+                               FALSE);
                break;
        case SETTING_PW_ERROR_NO_MATCH_WITH_PATTERN:
-               setting_password_ug_display_desc(ad, "No match with pattern", FALSE);
+               setting_password_ug_display_desc(ad, "No match with pattern",
+               FALSE);
                break;
        case SETTING_PW_ERROR_NO_DIGIT:
-               setting_password_ug_display_desc(ad, "IDS_ST_BODY_PASSWORD_MUST_CONTAIN_AT_LEAST_1_NUMBER", FALSE);
+               setting_password_ug_display_desc(ad,
+                               "IDS_ST_BODY_PASSWORD_MUST_CONTAIN_AT_LEAST_1_NUMBER",
+                               FALSE);
                break;
        default:
                setting_password_ug_display_desc(ad, PW_ERR_DESC, FALSE);
@@ -567,7 +641,9 @@ int setting_password_main_check_1line_password(void *data)
 
        /*      Empty Check */
        if (isEmptyStr(entry_str)) {
-               setting_password_ug_display_desc(ad, _("IDS_ST_BODY_PASSWORD_EMPTY"), FALSE);
+               setting_password_ug_display_desc(ad,
+                               _("IDS_ST_BODY_PASSWORD_EMPTY"),
+                               FALSE);
                FREE(entry_str);
                return SETTING_ENTRY_RETURN_NULL_STR_ERR;
        }
@@ -575,10 +651,11 @@ int setting_password_main_check_1line_password(void *data)
        /*      Length Check */
        int entry_str_len = safeStrLen(entry_str);
        if (entry_str_len < SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH
-               || entry_str_len > SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH) {
+                       || entry_str_len
+                                       > SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH) {
                setting_password_main_warning_entry_added_byte_popup(ad,
-                                                                                                                        SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH,
-                                                                                                                        SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH);
+               SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH,
+               SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH);
                FREE(entry_str);
                return SETTING_ENTRY_REQUIRED_CORRECT_DIGIT_PW;
        }
@@ -610,7 +687,9 @@ int setting_password_main_check_2line_password(void *data)
 
        /*      Empty Check */
        if (isEmptyStr(entry_str1_mk)) {
-               setting_password_ug_display_desc(ad, _("IDS_ST_BODY_PASSWORD_EMPTY"), FALSE);
+               setting_password_ug_display_desc(ad,
+                               _("IDS_ST_BODY_PASSWORD_EMPTY"),
+                               FALSE);
                FREE(entry_str1_mk);
                FREE(entry_str2_mk);
                return SETTING_ENTRY_RETURN_NULL_STR_ERR;
@@ -619,7 +698,9 @@ int setting_password_main_check_2line_password(void *data)
        /*      Match Check */
        if (0 != safeStrCmp(entry_str1_mk, entry_str2_mk)) {
                setting_password_main_clear_1line_password(ad);
-               setting_password_ug_display_desc(ad, _("IDS_ST_POP_PASSWORDS_DO_NOT_MATCH"), FALSE);
+               setting_password_ug_display_desc(ad,
+                               _("IDS_ST_POP_PASSWORDS_DO_NOT_MATCH"),
+                               FALSE);
                FREE(entry_str1_mk);
                FREE(entry_str2_mk);
                return SETTING_ENTRY_NOT_MATCH_NEW_CONF_PW;
@@ -628,10 +709,11 @@ int setting_password_main_check_2line_password(void *data)
        /*      Length Check */
        int entry_str_len = safeStrLen(entry_str1_mk);
        if (entry_str_len < SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH
-               || entry_str_len > SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH) {
+                       || entry_str_len
+                                       > SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH) {
                setting_password_main_warning_entry_added_byte_popup(ad,
-                                                                                                                        SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH,
-                                                                                                                        SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH);
+               SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH,
+               SETTING_PW_UG_NORMAL_PASSWORD_MAX_LENGTH);
                FREE(entry_str1_mk);
                FREE(entry_str2_mk);
                return SETTING_ENTRY_REQUIRED_CORRECT_DIGIT_PW;
@@ -643,11 +725,15 @@ int setting_password_main_check_2line_password(void *data)
 }
 
 void setting_password_main_warning_entry_added_byte_popup(SettingPasswordUG *ad,
-                                                                                                                 int min, int max)
+               int min, int max)
 {
        char str[MAX_SPECIALIZITION_LEN + 1] = { 0 };
 
-       snprintf(str, MAX_SPECIALIZITION_LEN, _("IDS_ST_POP_PASSWORD_MUST_BE_MORE_THAN_P1SD_CHARACTERS_AND_LESS_THAN_P2SD"), min, max);
+       snprintf(str,
+       MAX_SPECIALIZITION_LEN,
+                       _(
+                                       "IDS_ST_POP_PASSWORD_MUST_BE_MORE_THAN_P1SD_CHARACTERS_AND_LESS_THAN_P2SD"),
+                       min, max);
        setting_password_ug_display_desc(ad, str, FALSE);
 }
 
@@ -673,26 +759,38 @@ static void setting_password_main_done_password(void *data)
                        const char *entry_str;
                        entry_str = ad->ed_pw1->sub_desc;
                        /*SETTING_TRACE(" ----> entry_str : %s ", entry_str); */
-                       /*SETTING_TRACE(" ----> ad->view_type_string : %s ", ad->view_type_string); */
+                       /*SETTING_TRACE(" ----> ad->view_type_string : %s ",
+                        * ad->view_type_string); */
                        unsigned int remain_attempt = ATTEMPT_INFINITE;
                        unsigned int valid_seconds = 0;
 
-                       ret = setting_password_check_password(entry_str, &remain_attempt, &valid_seconds);
+                       ret = setting_password_check_password(entry_str,
+                                       &remain_attempt, &valid_seconds);
 
                        if (ret == SETTING_RETURN_SUCCESS) {
                                int err;
 
-                               if (safeStrCmp(ad->view_type_string, "SETTING_PW_TYPE_PASSWORD") == 0) {
+                               if (safeStrCmp(ad->view_type_string,
+                                               "SETTING_PW_TYPE_PASSWORD")
+                                               == 0) {
 
                                        /*      reset VCONF */
-                                       setting_set_int_slp_key(INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT, PHONE_LOCK_ATTEMPS_MAX, &err);
+                                       setting_set_int_slp_key(
+                                                       INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT,
+                                                       PHONE_LOCK_ATTEMPS_MAX,
+                                                       &err);
                                        if (err == SETTING_RETURN_FAIL) {
-                                               SETTING_TRACE_ERROR("[Error] set value of vconf fail.");
+                                               SETTING_TRACE_ERROR(
+                                                               "[Error] set value of vconf fail.");
                                                app_control_destroy(svc);
                                                return;
                                        }
-                               } else if (0 == safeStrCmp(ad->view_type_string, "SETTING_PW_TYPE_ENTER_LOCK_TYPE")) {
-                                       app_control_add_extra_data(svc, "current", entry_str);
+                               } else if (0
+                                               == safeStrCmp(
+                                                               ad->view_type_string,
+                                                               "SETTING_PW_TYPE_ENTER_LOCK_TYPE")) {
+                                       app_control_add_extra_data(svc,
+                                                       "current", entry_str);
                                }
                        } else {
                                /*      Incorrect Password. Display Popup.       */
@@ -703,7 +801,8 @@ static void setting_password_main_done_password(void *data)
                                /*      setting_password_ug_check_attemps_left(ad); */
                                /*      return; */
                                /*} */
-                               setting_password_ug_display_desc(ad, PW_ERR_DESC, FALSE);
+                               setting_password_ug_display_desc(ad,
+                               PW_ERR_DESC, FALSE);
                                app_control_destroy(svc);
                                return;
                        }
@@ -714,71 +813,93 @@ static void setting_password_main_done_password(void *data)
                }
                break;
        case SETTING_PW_TYPE_SET_PASSWORD: {
-                       /*SETTING_TRACE("case SETTING_PW_TYPE_SET_PASSWORD"); */
-                       ret = setting_password_main_check_2line_password(ad);
-                       /*SETTING_TRACE("setting_password_main_check_2line_password --> ret = %d ", ret); */
-
-                       if (SETTING_RETURN_SUCCESS == ret) {
-                               const char *entry_str;
-                               entry_str = ad->ed_pw1->sub_desc;
-
-                               if (isEmptyStr(entry_str)) {
-                                       ad->focus_data = ad->ed_pw1;
-                                       SETTING_TRACE_DEBUG("%s*** [ERR] elm_entry_entry_get return NULL ***%s",
-                                                                               SETTING_FONT_RED, SETTING_FONT_BLACK);
-                                       setting_password_ug_create_popup_notitle_nobtn(ad, _("IDS_ST_POP_ERROR"), FALSE);
-                                       app_control_destroy(svc);
-                                       return;
-                               }
+               /*SETTING_TRACE("case SETTING_PW_TYPE_SET_PASSWORD"); */
+               ret = setting_password_main_check_2line_password(ad);
+               /*SETTING_TRACE("setting_password_main_check_2line_password
+                * --> ret = %d ", ret); */
 
-                               ret = setting_password_set_password(ad->cur_pwd, entry_str, ad);
-                               SETTING_TRACE(" -----------------> setting_password_set_password : %d \n", ret);
+               if (SETTING_RETURN_SUCCESS == ret) {
+                       const char *entry_str;
+                       entry_str = ad->ed_pw1->sub_desc;
 
-                               /*      Modify Setting Password */
-                               if (ret > 0) {
-                                       /*      Display popup */
-                                       /*service_add_extra_data(svc, "current", entry_str); */
-                                       if (ad->set_history_timer) {
-                                               setting_password_ug_create_popup_notitle_nobtn(ad, _("IDS_ST_POP_NEW_PASSWD_SAVED"), FALSE);
-                                       } else {
-                                               app_control_add_extra_data(svc, "result", ad->view_type_string);
-                                               ug_send_result(ad->ug, svc);
-                                               SETTING_TRACE("Send Result : %s\n", ad->view_type_string);
+                       if (isEmptyStr(entry_str)) {
+                               ad->focus_data = ad->ed_pw1;
+                               SETTING_TRACE_DEBUG(
+                                               "%s*** [ERR] elm_entry_entry_get return NULL ***%s",
+                                               SETTING_FONT_RED,
+                                               SETTING_FONT_BLACK);
+                               setting_password_ug_create_popup_notitle_nobtn(
+                                               ad, _("IDS_ST_POP_ERROR"),
+                                               FALSE);
+                               app_control_destroy(svc);
+                               return;
+                       }
 
-                                               app_control_destroy(svc);
-                                               /* Send destroy request */
-                                               ug_destroy_me(ad->ug);
-                                               return;
-                                       }
-                                       app_control_destroy(svc);
-                                       return;
-                               } else if (ret == SETTING_PW_ERROR_REUSED) {
-                                       ad->focus_data = ad->ed_pw1;
-                                       setting_password_main_clear_1line_password(ad);
-                                       setting_password_ug_display_desc(ad, _(PW_ERR_REUSED), FALSE);
-                                       app_control_destroy(svc);
-                                       return;
+                       ret = setting_password_set_password(ad->cur_pwd,
+                                       entry_str, ad);
+                       SETTING_TRACE(
+                                       " ---> setting_password_set_password : %d \n",
+                                       ret);
+
+                       /*      Modify Setting Password */
+                       if (ret > 0) {
+                               /*      Display popup */
+                               /*service_add_extra_data(svc, "current", entry_str); */
+                               if (ad->set_history_timer) {
+                                       setting_password_ug_create_popup_notitle_nobtn(
+                                                       ad,
+                                                       _(
+                                                                       "IDS_ST_POP_NEW_PASSWD_SAVED"),
+                                                       FALSE);
                                } else {
-                                       ad->focus_data = ad->ed_pw1;
-                                       setting_password_main_clear_1line_password(ad);
-                                       setting_password_ug_display_desc(ad, _("IDS_BT_POP_OPERATION_FAILED"), FALSE);
+                                       app_control_add_extra_data(svc,
+                                                       "result",
+                                                       ad->view_type_string);
+                                       ug_send_result(ad->ug, svc);
+                                       SETTING_TRACE("Send Result : %s\n",
+                                                       ad->view_type_string);
+
                                        app_control_destroy(svc);
+                                       /* Send destroy request */
+                                       ug_destroy_me(ad->ug);
                                        return;
                                }
-                       } else if (SETTING_ENTRY_NOT_MATCH_NEW_CONF_PW == ret) {
-                               /* Nothing */
                                app_control_destroy(svc);
+                               return;
+                       } else if (ret == SETTING_PW_ERROR_REUSED) {
+                               ad->focus_data = ad->ed_pw1;
                                setting_password_main_clear_1line_password(ad);
-                               setting_password_ug_display_desc(ad, PW_ST_PW_DO_NOT_MATCH, FALSE);
+                               setting_password_ug_display_desc(ad,
+                                               _(PW_ERR_REUSED),
+                                               FALSE);
+                               app_control_destroy(svc);
                                return;
                        } else {
-                               SETTING_TRACE("error : %d", ret);
+                               ad->focus_data = ad->ed_pw1;
                                setting_password_main_clear_1line_password(ad);
-                               setting_password_ug_display_desc(ad, PW_ERR_DESC, FALSE);
+                               setting_password_ug_display_desc(ad,
+                                               _(
+                                                               "IDS_BT_POP_OPERATION_FAILED"),
+                                               FALSE);
                                app_control_destroy(svc);
                                return;
                        }
+               } else if (SETTING_ENTRY_NOT_MATCH_NEW_CONF_PW == ret) {
+                       /* Nothing */
+                       app_control_destroy(svc);
+                       setting_password_main_clear_1line_password(ad);
+                       setting_password_ug_display_desc(ad,
+                       PW_ST_PW_DO_NOT_MATCH, FALSE);
+                       return;
+               } else {
+                       SETTING_TRACE("error : %d", ret);
+                       setting_password_main_clear_1line_password(ad);
+                       setting_password_ug_display_desc(ad, PW_ERR_DESC,
+                       FALSE);
+                       app_control_destroy(svc);
+                       return;
                }
+       }
                break;
        default:
                app_control_destroy(svc);
@@ -794,13 +915,17 @@ static void setting_password_main_done_password(void *data)
        ug_destroy_me(ad->ug);
 }
 
-static int __count_string(const char *str, int *cnt_letter, int *cnt_digit, int *cnt_sym)
+static int __count_string(const char *str, int *cnt_letter, int *cnt_digit,
+               int *cnt_sym)
 {
        SETTING_TRACE_BEGIN;
-       retv_if(str == NULL || cnt_letter == NULL || cnt_digit == NULL || cnt_sym == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
+
+       retv_if(
+                       str == NULL || cnt_letter == NULL || cnt_digit == NULL || cnt_sym == NULL,
+                       SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
 
        /*char* plain_str = elm_entry_markup_to_utf8(str); */
-       char *plain_str = (char *)str;
+       char *plain_str = (char *) str;
 
        int length = strlen(plain_str);
        int index = 0;
@@ -815,28 +940,31 @@ static int __count_string(const char *str, int *cnt_letter, int *cnt_digit, int
        }
 
        for (index = 0; index < length; index++) {
-               temp = (char)(plain_str[index]);
+               temp = (char) (plain_str[index]);
                SETTING_TRACE_SECURE_DEBUG("temp %c", temp);
 
-               if ((temp >= '0') && (temp <= '9')) {   /* digit */
+               if ((temp >= '0') && (temp <= '9')) { /* digit */
                        digit++;
-               } else if ((temp >= 'a') && (temp <= 'z')) {    /* lower letter */
+               } else if ((temp >= 'a') && (temp <= 'z')) { /* lower letter */
                        letter++;
-               } else if ((temp >= 'A') && (temp <= 'Z')) {    /* upper letter */
+               } else if ((temp >= 'A') && (temp <= 'Z')) { /* upper letter */
                        letter++;
-               } else if ((temp >= ' ') && (temp <= '~')) { /* symbol means special char that enables to input from IME. */
+                       /* symbol means special char that enables to input from IME. */
+               } else if ((temp >= ' ') && (temp <= '~')) {
                        symbol++;
                }
        }
-       SETTING_TRACE_SECURE_DEBUG("%s includes %d letters, %d digits, and %d symbols", plain_str, letter, digit, symbol);
+       SETTING_TRACE_SECURE_DEBUG(
+                       "%s includes %d letters, %d digits, and %d symbols",
+                       plain_str, letter, digit, symbol);
        *cnt_letter = letter;
        *cnt_digit = digit;
        *cnt_sym = symbol;
        return SETTING_RETURN_SUCCESS;
 }
 
-void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *obj,
-                                                                                                        void *event_info)
+void setting_password_main_click_softkey_continue_cb(void *data,
+               Evas_Object *obj, void *event_info)
 {
        /* error check */
        retm_if(data == NULL, "[Setting > Password] Data parameter is NULL");
@@ -844,7 +972,7 @@ void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *ob
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
        /* Save first input */
-       ad->step1_str = (char *)strdup(ad->ed_pw1->sub_desc);
+       ad->step1_str = (char *) strdup(ad->ed_pw1->sub_desc);
 
        /* Check step1_str : more than 4, not all digits */
        int letter = 0;
@@ -855,7 +983,8 @@ void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *ob
 
        if (safeStrLen(plain_str) == digit) {
                setting_password_main_clear_1line_password(ad);
-               __add_help_of_password_fails(SETTING_PW_ERROR_INCLUDE_NO_LETTER, ad);
+               __add_help_of_password_fails(SETTING_PW_ERROR_INCLUDE_NO_LETTER,
+                               ad);
                FREE(ad->step1_str);
                FREE(plain_str);
                return;
@@ -869,21 +998,26 @@ void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *ob
 
        /* Change entry title : PW_SHORT_GUIDE_CONFIRM */
        FREE(ad->ed_pw1->keyStr);
-       ad->ed_pw1->keyStr = (char *)strdup(PW_SHORT_GUIDE_CONFIRM);
-       elm_genlist_item_fields_update(ad->ed_pw1->item, "elm.text.main", ELM_GENLIST_ITEM_FIELD_TEXT);
+       ad->ed_pw1->keyStr = (char *) strdup(PW_SHORT_GUIDE_CONFIRM);
+       elm_genlist_item_fields_update(ad->ed_pw1->item, "elm.text.main",
+                       ELM_GENLIST_ITEM_FIELD_TEXT);
 
        /* change return key type */
        ad->ed_pw1->return_key_type = ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE;
-       elm_entry_input_panel_return_key_type_set(ad->ed_pw1->eo_check, ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE);
+       elm_entry_input_panel_return_key_type_set(ad->ed_pw1->eo_check,
+                       ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE);
        elm_object_focus_set(ad->ed_pw1->eo_check, EINA_TRUE);
 
        /* Change button */
        if (ad->bottom_btn) {
                ad->bottom_btn = elm_box_add(ad->navi_bar);
-               elm_box_padding_set(ad->bottom_btn, ELM_SCALE_SIZE(10), ELM_SCALE_SIZE(10));
+               elm_box_padding_set(ad->bottom_btn, ELM_SCALE_SIZE(10),
+                               ELM_SCALE_SIZE(10));
                elm_box_horizontal_set(ad->bottom_btn, EINA_TRUE);
-               evas_object_size_hint_weight_set(ad->bottom_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(ad->bottom_btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
+               evas_object_size_hint_weight_set(ad->bottom_btn,
+               EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+               evas_object_size_hint_align_set(ad->bottom_btn, EVAS_HINT_FILL,
+               EVAS_HINT_FILL);
                evas_object_show(ad->bottom_btn);
                elm_box_pack_end(ad->navi_bar, ad->bottom_btn);
 
@@ -891,8 +1025,11 @@ void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *ob
                Evas_Object *btn = elm_button_add(ad->bottom_btn);
                elm_object_style_set(btn, "bottom");
                elm_object_text_set(btn, _("IDS_ST_BUTTON_CANCEL"));
-               evas_object_smart_callback_add(btn, "clicked", setting_password_main_click_softkey_cancel_cb, ad);
-               evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+               evas_object_smart_callback_add(btn, "clicked",
+                               setting_password_main_click_softkey_cancel_cb,
+                               ad);
+               evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND,
+               EVAS_HINT_EXPAND);
                evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, 0.5);
                evas_object_show(btn);
                elm_box_pack_end(ad->bottom_btn, btn);
@@ -901,15 +1038,22 @@ void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *ob
                /* button 2 */
                ad->bottom_btn1 = elm_button_add(ad->bottom_btn);
                elm_object_style_set(ad->bottom_btn1, "bottom");
-               elm_object_text_set(ad->bottom_btn1, _("IDS_SA_BUTTON_DONE_ABB"));
-               evas_object_smart_callback_del(ad->bottom_btn1, "clicked", setting_password_main_click_softkey_continue_cb);
-               evas_object_smart_callback_add(ad->bottom_btn1, "clicked", setting_password_main_click_softkey_done_cb, ad);
+               elm_object_text_set(ad->bottom_btn1,
+                               _("IDS_SA_BUTTON_DONE_ABB"));
+               evas_object_smart_callback_del(ad->bottom_btn1, "clicked",
+                               setting_password_main_click_softkey_continue_cb);
+               evas_object_smart_callback_add(ad->bottom_btn1, "clicked",
+                               setting_password_main_click_softkey_done_cb,
+                               ad);
                elm_object_disabled_set(ad->bottom_btn1, EINA_TRUE);
-               evas_object_size_hint_weight_set(ad->bottom_btn1, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(ad->bottom_btn1, EVAS_HINT_FILL, 0.5);
+               evas_object_size_hint_weight_set(ad->bottom_btn1,
+               EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+               evas_object_size_hint_align_set(ad->bottom_btn1,
+               EVAS_HINT_FILL, 0.5);
                evas_object_show(ad->bottom_btn1);
                elm_box_pack_end(ad->bottom_btn, ad->bottom_btn1);
-               elm_object_item_part_content_set(ad->navi_it, "toolbar", ad->bottom_btn);
+               elm_object_item_part_content_set(ad->navi_it, "toolbar",
+                               ad->bottom_btn);
        }
 
        ad->cur_step++;
@@ -917,7 +1061,7 @@ void setting_password_main_click_softkey_continue_cb(void *data, Evas_Object *ob
 }
 
 void setting_password_main_click_softkey_done_cb(void *data, Evas_Object *obj,
-                                                                                                void *event_info)
+               void *event_info)
 {
        /* error check */
        retm_if(data == NULL, "[Setting > Password] Data parameter is NULL");
index d7e75c73310fb0371ac41fc349ed9fa2370f7c14..559251c1c865efc660882b9cb9fb563cde5c26be 100644 (file)
@@ -31,7 +31,8 @@
 
 
 int setting_password_simple_check_simple_password(const char *collection);
-int setting_password_simple_draw_next_simple_password(void *data, int title_index);
+int setting_password_simple_draw_next_simple_password(void *data,
+               int title_index);
 
 static int setting_password_simple_create(void *cb);
 static int setting_password_simple_destroy(void *cb);
@@ -48,12 +49,13 @@ setting_view setting_view_password_simple = {
 
 #define SETTING_SP_TITLE_INDEX_START 0
 #define SETTING_SP_TITLE_INDEX_MAX 3
-const char *sp_titles[5] = { PW_ST_ENTER_PW,
-                                                        PW_ST_NEW_PW,
-                                                        PW_ST_ENTER_PW_AGAIN,
-                                                        PW_ST_ENTER_CUR_PW,
-                                                        NULL,
-                                                  };
+const char *sp_titles[5] = {
+       PW_ST_ENTER_PW,
+       PW_ST_NEW_PW,
+       PW_ST_ENTER_PW_AGAIN,
+       PW_ST_ENTER_CUR_PW,
+       NULL,
+};
 
 
 extern struct _pw_item pw_its[];
@@ -64,11 +66,13 @@ extern struct _pw_item pw_its[];
  *
  ***************************************************/
 
-static Eina_Bool setting_password_simple_click_softkey_cancel_cb(void *data, Elm_Object_Item *it)
+static Eina_Bool setting_password_simple_click_softkey_cancel_cb(void *data,
+               Elm_Object_Item *it)
 {
        SETTING_TRACE_BEGIN;
        /* error check */
-       retvm_if(data == NULL, EINA_FALSE, "[Setting > Password] Data parameter is NULL");
+       retvm_if(data == NULL, EINA_FALSE,
+                       "[Setting > Password] Data parameter is NULL");
 
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
@@ -101,7 +105,8 @@ static Eina_Bool setting_password_simple_click_softkey_cancel_cb(void *data, Elm
        return EINA_TRUE;
 }
 
-static void setting_password_simple_add_description(Evas_Object *layout, char *desc)
+static void setting_password_simple_add_description(Evas_Object *layout,
+               char *desc)
 {
        ret_if(!layout || !desc);
        elm_object_part_text_set(layout, "help.txt", _(desc));
@@ -143,7 +148,8 @@ static int _handle_step1(void *data, char *collection)
 
        unsigned int remain_attempt;
        unsigned int valid_sec;
-       ret = setting_password_check_password(collection, &remain_attempt, &valid_sec);
+       ret = setting_password_check_password(collection, &remain_attempt,
+                       &valid_sec);
        SETTING_TRACE("ret:%d", ret);
        if (ret != SETTING_RETURN_SUCCESS) {
                SETTING_TRACE_ERROR("Failed to invoke security_server_chk_pwd")
@@ -156,21 +162,27 @@ static int _handle_step1(void *data, char *collection)
        int value = 0;
        ecore_imf_context_input_panel_hide(ad->imf_context);
 
-       if (0 == safeStrCmp(ad->view_type_string, "SETTING_PW_TYPE_SIMPLE_PASSWORD")) {
-               setting_get_bool_slp_key(BOOL_SLP_SETTING_POWER_ON_LOCK, &value, &err);
+       if (0 == safeStrCmp(ad->view_type_string,
+                       "SETTING_PW_TYPE_SIMPLE_PASSWORD")) {
+               setting_get_bool_slp_key(BOOL_SLP_SETTING_POWER_ON_LOCK,
+                               &value, &err);
                SETTING_TRACE_DEBUG("get VCONF POWER_ON_LOCK : %d", value);
 
                if (value == 0)
-                       ret = setting_set_bool_slp_key(BOOL_SLP_SETTING_POWER_ON_LOCK,
-                                                                                  SETTING_ON_OFF_BTN_ON, &err);
+                       ret = setting_set_bool_slp_key(
+                                       BOOL_SLP_SETTING_POWER_ON_LOCK,
+                                       SETTING_ON_OFF_BTN_ON, &err);
                else
-                       ret = setting_set_bool_slp_key(BOOL_SLP_SETTING_POWER_ON_LOCK,
-                                                                                  SETTING_ON_OFF_BTN_OFF, &err);
+                       ret = setting_set_bool_slp_key(
+                                       BOOL_SLP_SETTING_POWER_ON_LOCK,
+                                       SETTING_ON_OFF_BTN_OFF, &err);
 
                /* reset VCONF */
                setting_set_int_slp_key(INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT,
-                                                               PHONE_LOCK_ATTEMPS_MAX, &err);
-               setting_retvm_if(err == SETTING_RETURN_FAIL, SETTING_RETURN_FAIL, "[Error] set value of vconf fail.");
+                               PHONE_LOCK_ATTEMPS_MAX, &err);
+               setting_retvm_if(err == SETTING_RETURN_FAIL,
+                               SETTING_RETURN_FAIL,
+                               "[Error] set value of vconf fail.");
 
                /* Correct Password. Send Bundle to caller for status change */
        }
@@ -183,7 +195,8 @@ static int _handle_step1(void *data, char *collection)
 
        app_control_add_extra_data(svc, "result", ad->view_type_string);
 
-       if (0 == safeStrCmp(ad->view_type_string, "SETTING_PW_TYPE_ENTER_LOCK_TYPE"))
+       if (0 == safeStrCmp(ad->view_type_string,
+                       "SETTING_PW_TYPE_ENTER_LOCK_TYPE"))
                app_control_add_extra_data(svc, "current", collection);
 
        /* reset static variables */
@@ -199,7 +212,8 @@ static int _handle_step1(void *data, char *collection)
 }
 
 /* Set new simple password */
-static int _handle_step2(void *data, int *step, char *collection1, char *collection2)
+static int _handle_step2(void *data, int *step, char *collection1,
+               char *collection2)
 {
        SETTING_TRACE_BEGIN;
        retv_if(data == NULL, SETTING_RETURN_FAIL);
@@ -211,9 +225,11 @@ static int _handle_step2(void *data, int *step, char *collection1, char *collect
        if (*step == 0) {       /* Enter new password */
                _copy_chars_from_sp_entries(ad, collection1);
 
-               ret = setting_password_simple_check_simple_password(collection1);
+               ret = setting_password_simple_check_simple_password(
+                               collection1);
                if (ret < 0) {
-                       setting_password_simple_draw_next_simple_password(ad, 1);
+                       setting_password_simple_draw_next_simple_password(
+                                       ad, 1);
                        return SETTING_RETURN_FAIL;
                }
 
@@ -222,68 +238,93 @@ static int _handle_step2(void *data, int *step, char *collection1, char *collect
        } else if (*step == 1) {        /* Enter password again */
                _copy_chars_from_sp_entries(ad, collection2);
 
-               ret = setting_password_simple_check_simple_password(collection2);
+               ret = setting_password_simple_check_simple_password(
+                               collection2);
                if (ret < 0) {
-                       setting_password_simple_draw_next_simple_password(ad, 2);
+                       setting_password_simple_draw_next_simple_password(
+                                       ad, 2);
                        return SETTING_RETURN_FAIL;
                }
 
-               /* compare two input passwords : collection_step1, collection_step2 */
+               /* compare two input passwords : collection_step1,
+                * collection_step2 */
                if (safeStrNCmp(collection1, collection2, 4) == 0) {
                        ecore_imf_context_input_panel_hide(ad->imf_context);
-                       ret = setting_password_set_password(ad->cur_pwd, collection1, ad);
+                       ret = setting_password_set_password(ad->cur_pwd,
+                                       collection1, ad);
 
                        if (SETTING_RETURN_SUCCESS == ret) {
                                FREE(ad->step1_str);
 
                                app_control_h svc;
                                if (!app_control_create(&svc)) {
-                                       app_control_add_extra_data(svc, "result", ad->view_type_string);
+                                       app_control_add_extra_data(svc,
+                                                       "result",
+                                                       ad->view_type_string);
 
                                        /* reset static variables */
                                        *step = 0;
                                        /* reset static variables */
-                                       memset(collection1, 0x00, SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
-                                       memset(collection2, 0x00, SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
+                                       memset(collection1, 0x00,
+                                                       SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
+                                       memset(collection2, 0x00,
+                                                       SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
 
                                        ug_send_result(ad->ug, svc);
-                                       SETTING_TRACE("Send Result : %s\n", ad->view_type_string);
+                                       SETTING_TRACE("Send Result : %s\n",
+                                                       ad->view_type_string);
                                        app_control_destroy(svc);
                                        /* Send destroy request */
                                        ug_destroy_me(ad->ug);
                                        return SETTING_RETURN_SUCCESS;
                                }
                                /* Display popup */
-                               setting_password_ug_create_popup_notitle_nobtn(ad, _("IDS_ST_POP_NEW_PASSWD_SAVED"), TRUE);
+                               setting_password_ug_create_popup_notitle_nobtn(
+                                               ad,
+                                               _("IDS_ST_POP_NEW_PASSWD_SAVED"),
+                                               TRUE);
                        } else if (ret == SETTING_PW_ERROR_REUSED) {
-                               setting_password_simple_draw_next_simple_password(ad, 1);
-                               setting_password_simple_add_description(ad->simple_layout, PW_ERR_REUSED);
+                               setting_password_simple_draw_next_simple_password(
+                                               ad, 1);
+                               setting_password_simple_add_description(
+                                               ad->simple_layout,
+                                               PW_ERR_REUSED);
                                *step = 0;
                                /* reset static variables */
-                               memset(collection1, 0x00, SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
-                               memset(collection2, 0x00, SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
+                               memset(collection1, 0x00,
+                                               SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
+                               memset(collection2, 0x00,
+                                               SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
                                return SETTING_PW_ERROR_REUSED;
                        } else {
-                               setting_password_simple_draw_next_simple_password(ad, 1);
+                               setting_password_simple_draw_next_simple_password(
+                                               ad, 1);
                                char temp[256] = {0,};
-                               snprintf(temp, 256, "Unable to save password (%d)", ret);
-                               setting_password_ug_create_popup_notitle_nobtn(ad, temp, FALSE);
+                               snprintf(temp, 256,
+                                               "Unable to save password (%d)",
+                                               ret);
+                               setting_password_ug_create_popup_notitle_nobtn(
+                                               ad, temp, FALSE);
 
                                *step = 0;
                                /* reset static variables */
-                               memset(collection1, 0x00, SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
-                               memset(collection2, 0x00, SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
+                               memset(collection1, 0x00,
+                                               SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
+                               memset(collection2, 0x00,
+                                               SETTING_PW_UG_NORMAL_PASSWORD_MIN_LENGTH + 1);
                                return SETTING_PW_ERROR_UNKNOWN;
                        }
                } else {
-                       setting_password_simple_draw_next_simple_password(ad, 2);
+                       setting_password_simple_draw_next_simple_password(
+                                       ad, 2);
                        return SETTING_ENTRY_NOT_MATCH_NEW_CONF_PW;
                }
        }
        return SETTING_RETURN_SUCCESS;
 }
 
-static int setting_password_simple_done_simple_password(void *data, int on_locking)
+static int setting_password_simple_done_simple_password(void *data,
+               int on_locking)
 {
        SETTING_TRACE_BEGIN;
        retv_if(data == NULL, SETTING_RETURN_FAIL);
@@ -302,7 +343,8 @@ static int setting_password_simple_done_simple_password(void *data, int on_locki
                }
        case SETTING_PW_TYPE_SET_SIMPLE_PASSWORD: {
                        SETTING_TRACE_DEBUG("case SET_SIMPLE_PASSWORD");
-                       return _handle_step2(ad, &step, collection_step1, collection_step2);
+                       return _handle_step2(ad, &step, collection_step1,
+                                       collection_step2);
                }
 
        default:
@@ -324,11 +366,14 @@ static Eina_Bool setting_password_simple_check_4entries(void *data)
        memset(ad->sp_chars, 0x00, 5);
 
        if (ret == SETTING_RETURN_FAIL) {
-               setting_password_simple_add_description(ad->simple_layout, PW_ST_INCORRECT_PW_TRY_AGAIN);
+               setting_password_simple_add_description(ad->simple_layout,
+                               PW_ST_INCORRECT_PW_TRY_AGAIN);
        } else if (ret == SETTING_PW_ERROR_DO_NOT_MATCH) {
-               if (0 == safeStrCmp(ad->view_type_string, "SETTING_PW_TYPE_ENTER_LOCK_TYPE")) {
+               if (0 == safeStrCmp(ad->view_type_string,
+                               "SETTING_PW_TYPE_ENTER_LOCK_TYPE")) {
 
-                       setting_password_simple_add_description(ad->simple_layout, PW_ERR_DESC);
+                       setting_password_simple_add_description(
+                                       ad->simple_layout, PW_ERR_DESC);
                        return EINA_FALSE;
                }
                /** @todo setting_password_ug_check_attemps_left */
@@ -342,42 +387,55 @@ static Eina_Bool setting_password_simple_check_4entries(void *data)
                int value = -1;
                int err = SETTING_RETURN_SUCCESS;
                setting_get_int_slp_key(item_attempts_left, &value, &err);
-               retvm_if(err == SETTING_RETURN_FAIL, EINA_FALSE, "[Error] get value of vconf fail.");
+               retvm_if(err == SETTING_RETURN_FAIL, EINA_FALSE,
+                               "[Error] get value of vconf fail.");
                value--;
                if (value > 0 && value <= attemps_left_max) {
-                       setting_set_int_slp_key(item_attempts_left, value, &err);
-                       setting_retvm_if(err == SETTING_RETURN_FAIL, EINA_FALSE, "[Error] set value of vconf fail.");
+                       setting_set_int_slp_key(item_attempts_left, value,
+                                       &err);
+                       setting_retvm_if(err == SETTING_RETURN_FAIL, EINA_FALSE,
+                                       "[Error] set value of vconf fail.");
                        char speciliztion[MAX_SPECIALIZITION_LEN] = { 0, };
                        char temp[MAX_SPECIALIZITION_LEN] = {0,};
                        if (value > 1)
-                               snprintf(temp, sizeof(temp), "%s. %s.", PW_ERR_DESC, ATTEMPTS_DESC);
+                               snprintf(temp, sizeof(temp), "%s. %s.",
+                                               PW_ERR_DESC, ATTEMPTS_DESC);
                        else
-                               snprintf(temp, sizeof(temp), "%s. %s.", PW_ERR_DESC, ATTEMPT_DESC);
-                       snprintf(speciliztion, sizeof(speciliztion), temp, value);
-                       setting_password_simple_add_description(ad->simple_layout, speciliztion);
+                               snprintf(temp, sizeof(temp), "%s. %s.",
+                                               PW_ERR_DESC, ATTEMPT_DESC);
+                       snprintf(speciliztion, sizeof(speciliztion), temp,
+                                       value);
+                       setting_password_simple_add_description(
+                                       ad->simple_layout, speciliztion);
                } else if (value == 0) {
                        /*      store the lock timestamp */
                        elm_object_focus_set(ad->sp_entry1, EINA_FALSE);
                        time_t cur_time = time(NULL);
                        char cur_timestamp[LOCK_TIMESTAMP_LEN] = { 0, };
-                       int ret = snprintf(cur_timestamp, sizeof(cur_timestamp), "%ld", cur_time);
+                       int ret = snprintf(cur_timestamp, sizeof(cur_timestamp),
+                                       "%ld",  cur_time);
                        retv_if(ret < 0, EINA_FALSE);
-                       setting_set_string_slp_key(item_lock_timestamp, cur_timestamp, &err);
+                       setting_set_string_slp_key(item_lock_timestamp,
+                                       cur_timestamp, &err);
                        setting_retvm_if(err == SETTING_RETURN_FAIL, EINA_FALSE,
-                                                        "[Error] set value of vconf fail.");
+                                       "[Error] set value of vconf fail.");
 
-                       setting_set_int_slp_key(item_attempts_left, value, &err);
+                       setting_set_int_slp_key(item_attempts_left, value,
+                                       &err);
                        setting_retvm_if(err == SETTING_RETURN_FAIL, EINA_FALSE,
-                                                        "[Error] set value of vconf fail.");
+                                       "[Error] set value of vconf fail.");
 
                        ad->disable_item_type = ad->view_type;
 
                        char temp[MAX_SPECIALIZITION_LEN] = {0,};
-                       snprintf(temp, sizeof(temp), PW_ERR_DELAY_DESC, PW_ERR_DELAY_TIME);
-                       setting_password_ug_create_popup_notitle_nobtn(ad, temp, TRUE);
+                       snprintf(temp, sizeof(temp), PW_ERR_DELAY_DESC,
+                                       PW_ERR_DELAY_TIME);
+                       setting_password_ug_create_popup_notitle_nobtn(
+                                       ad, temp, TRUE);
                }
        } else if (ret == SETTING_ENTRY_NOT_MATCH_NEW_CONF_PW) {
-               setting_password_simple_add_description(ad->simple_layout, PW_ST_PW_DO_NOT_MATCH);
+               setting_password_simple_add_description(ad->simple_layout,
+                               PW_ST_PW_DO_NOT_MATCH);
        } else {
                /* if you have more cases, modify here. */
        }
@@ -399,8 +457,11 @@ Ecore_IMF_Context *__imf_context_create(void *data)
                imf_context = ecore_imf_context_add(ctx_id);
 
                if (ad->evas && imf_context) {
-                       ecore_imf_context_client_window_set(imf_context, (void *)ecore_evas_window_get(ecore_evas_ecore_evas_get(ad->evas)));
-                       ecore_imf_context_client_canvas_set(imf_context, ad->evas);
+                       ecore_imf_context_client_window_set(imf_context,
+                                       (void *)ecore_evas_window_get(
+                                                       ecore_evas_ecore_evas_get(ad->evas)));
+                       ecore_imf_context_client_canvas_set(imf_context,
+                                       ad->evas);
                }
        }
        return imf_context;
@@ -414,7 +475,8 @@ static Eina_Bool __imf_event_key_down_cb(void *data, int type, void *event)
 
        char *commit_str = (char *)ev->key;
        char *digit = (char *)ev->string;
-       SETTING_TRACE_DEBUG("ev->keyname is %s\n", commit_str); /*here you get the Input String from ISE */
+       /*here you get the Input String from ISE */
+       SETTING_TRACE_DEBUG("ev->keyname is %s\n", commit_str);
 
        if (!safeStrCmp(commit_str, "Return"))
                return EINA_TRUE;
@@ -423,7 +485,8 @@ static Eina_Bool __imf_event_key_down_cb(void *data, int type, void *event)
 
        if (!safeStrCmp(commit_str, "BackSpace")) {
                if (ad->sp_focused_num > 0)
-                       elm_entry_entry_set(ad->sp_entry[--ad->sp_focused_num], "");
+                       elm_entry_entry_set(ad->sp_entry[--ad->sp_focused_num],
+                                       "");
                if (ad->sp_focused_num < 0)
                        ad->sp_focused_num = 0;
        } else {
@@ -440,11 +503,14 @@ static Eina_Bool __imf_event_key_down_cb(void *data, int type, void *event)
                SETTING_TRACE_DEBUG("digit is %c", key);
                if (key >= '0' && key <= '9') {
                        ad->sp_chars[ad->sp_focused_num] = key;
-                       elm_entry_entry_set(ad->sp_entry[ad->sp_focused_num], "<align=center>•</align>");
+                       elm_entry_entry_set(ad->sp_entry[ad->sp_focused_num],
+                                       "<align=center>•</align>");
                        ad->sp_focused_num++;
                        if (ad->sp_focused_num == 4)
                                /*call done cb */
-                               ad->simple_done_timer = ecore_timer_add(0.2, setting_password_simple_check_4entries, ad);
+                               ad->simple_done_timer = ecore_timer_add(0.2,
+                                               setting_password_simple_check_4entries,
+                                               ad);
                }
        }
 
@@ -466,18 +532,24 @@ void __imf_show_for_simple_password(void *data)
                ad->imf_context = imf_context;
 
                ecore_imf_context_reset(imf_context);
-               ecore_imf_context_input_panel_imdata_set(imf_context, (void *)"type=password", 13); /* for password read out with TTS */
-               ecore_imf_context_input_panel_layout_set(imf_context, ECORE_IMF_INPUT_PANEL_LAYOUT_DATETIME);
-               ecore_imf_context_input_panel_return_key_disabled_set(imf_context, EINA_TRUE);
+               /* for password read out with TTS */
+               ecore_imf_context_input_panel_imdata_set(imf_context,
+                               (void *)"type=password", 13);
+               ecore_imf_context_input_panel_layout_set(imf_context,
+                               ECORE_IMF_INPUT_PANEL_LAYOUT_DATETIME);
+               ecore_imf_context_input_panel_return_key_disabled_set(
+                               imf_context, EINA_TRUE);
                ecore_imf_context_focus_in(imf_context);
-               ad->imf_handler = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, __imf_event_key_down_cb, ad);
+               ad->imf_handler = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN,
+                               __imf_event_key_down_cb, ad);
                if (!ad->imf_handler)
                        SETTING_TRACE_DEBUG("handler is NULL");
        }
        SETTING_TRACE_END;
 }
 
-static void __enable_imf_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void __enable_imf_cb(void *data, Evas *e, Evas_Object *obj,
+               void *event_info)
 {
        SETTING_TRACE_BEGIN;
        setting_retm_if(data == NULL, "Data parameter is NULL");
@@ -498,7 +570,8 @@ static int setting_password_simple_create(void *cb)
 
        /* Create layout : layout/simple_password in setting-theme.edc */
        ad->simple_layout = elm_layout_add(ad->win_main_layout);
-       elm_layout_file_set(ad->simple_layout, SETTING_THEME_EDJ_NAME, "layout/simple_password");
+       elm_layout_file_set(ad->simple_layout, SETTING_THEME_EDJ_NAME,
+                       "layout/simple_password");
 
        ad->sp_entry1  = elm_entry_add(ad->simple_layout);
        elm_object_style_set(ad->sp_entry1 , "popup");
@@ -529,21 +602,30 @@ static int setting_password_simple_create(void *cb)
        elm_object_part_content_set(ad->simple_layout, "entry4", ad->sp_entry4);
 
        if (ad->view_type == SETTING_PW_TYPE_SIMPLE_PASSWORD)
-               elm_object_part_text_set(ad->simple_layout, "title.txt", _(sp_titles[3]));
+               elm_object_part_text_set(ad->simple_layout, "title.txt",
+                               _(sp_titles[3]));
        else
-               elm_object_part_text_set(ad->simple_layout, "title.txt", _(sp_titles[1]));
+               elm_object_part_text_set(ad->simple_layout, "title.txt",
+                               _(sp_titles[1]));
        /* End */
 
-       ad->ly_main = setting_create_layout_navi_bar(ad->win_main_layout, ad->win_get, "IDS_ST_BODY_SIMPLE_PASSWORD",
-                                                                                                _("IDS_ST_BUTTON_BACK"),
-                                                                                                (setting_call_back_func)setting_password_simple_click_softkey_cancel_cb,
-                                                                                                ad,
-                                                                                                ad->simple_layout,
-                                                                                                &(ad->navi_bar), NULL);
-       evas_object_event_callback_add(ad->sp_entry1, EVAS_CALLBACK_MOUSE_DOWN, __enable_imf_cb, ad);
-       evas_object_event_callback_add(ad->sp_entry2, EVAS_CALLBACK_MOUSE_DOWN, __enable_imf_cb, ad);
-       evas_object_event_callback_add(ad->sp_entry3, EVAS_CALLBACK_MOUSE_DOWN, __enable_imf_cb, ad);
-       evas_object_event_callback_add(ad->sp_entry4, EVAS_CALLBACK_MOUSE_DOWN, __enable_imf_cb, ad);
+       ad->ly_main = setting_create_layout_navi_bar(
+                       ad->win_main_layout,
+                       ad->win_get,
+                       "IDS_ST_BODY_SIMPLE_PASSWORD",
+                       _("IDS_ST_BUTTON_BACK"),
+                       (setting_call_back_func)setting_password_simple_click_softkey_cancel_cb,
+                       ad,
+                       ad->simple_layout,
+                       &(ad->navi_bar), NULL);
+       evas_object_event_callback_add(ad->sp_entry1, EVAS_CALLBACK_MOUSE_DOWN,
+                       __enable_imf_cb, ad);
+       evas_object_event_callback_add(ad->sp_entry2, EVAS_CALLBACK_MOUSE_DOWN,
+                       __enable_imf_cb, ad);
+       evas_object_event_callback_add(ad->sp_entry3, EVAS_CALLBACK_MOUSE_DOWN,
+                       __enable_imf_cb, ad);
+       evas_object_event_callback_add(ad->sp_entry4, EVAS_CALLBACK_MOUSE_DOWN,
+                       __enable_imf_cb, ad);
 
        evas_object_show(ad->simple_layout);
 
@@ -626,7 +708,8 @@ static int setting_password_simple_cleanup(void *cb)
  *
  ***************************************************/
 
-int setting_password_simple_draw_next_simple_password(void *data, int title_index)
+int setting_password_simple_draw_next_simple_password(void *data,
+               int title_index)
 {
        /* error check */
        retvm_if(data == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER,
@@ -634,7 +717,8 @@ int setting_password_simple_draw_next_simple_password(void *data, int title_inde
 
        SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
-       elm_object_part_text_set(ad->simple_layout, "title.txt", _(sp_titles[title_index]));
+       elm_object_part_text_set(ad->simple_layout, "title.txt",
+                       _(sp_titles[title_index]));
        elm_entry_entry_set(ad->sp_entry1, "");
        elm_entry_entry_set(ad->sp_entry2, "");
        elm_entry_entry_set(ad->sp_entry3, "");
index 82be36a40dcdd22d695b215d8dfdb30526dd3faf..98553a2537cc8ae83c96c7821f7ec75f4a874fd8 100644 (file)
 
 #include <auth-passwd.h>
 
-extern void setting_get_pin_lock_info_cb(TapiHandle *handle, int result, void *data, void *user_data);
+extern void setting_get_pin_lock_info_cb(TapiHandle *handle, int result,
+               void *data, void *user_data);
 
 #ifndef UG_MODULE_API
 #define UG_MODULE_API __attribute__ ((visibility("default")))
 #endif
 
-struct _pw_item pw_its[] = {
-       { 0, NULL, 0, 0},
-       { SETTING_PW_TYPE_PASSWORD, "SETTING_PW_TYPE_PASSWORD", SETTING_PW_CATEGORY_LOCK, 1 },
-       { SETTING_PW_TYPE_SET_PASSWORD, "SETTING_PW_TYPE_SET_PASSWORD", SETTING_PW_CATEGORY_LOCK, 2 },
-       { SETTING_PW_TYPE_SIMPLE_PASSWORD, "SETTING_PW_TYPE_SIMPLE_PASSWORD", SETTING_PW_CATEGORY_LOCK + SETTING_PW_SUB_CATEGORY_SIMPLE, 1 },
-       { SETTING_PW_TYPE_SET_SIMPLE_PASSWORD, "SETTING_PW_TYPE_SET_SIMPLE_PASSWORD", SETTING_PW_CATEGORY_LOCK + SETTING_PW_SUB_CATEGORY_SIMPLE, 2 },
-       { SETTING_PW_TYPE_ENTER_LOCK_TYPE, "SETTING_PW_TYPE_ENTER_LOCK_TYPE", SETTING_PW_CATEGORY_LOCK, 1 },
-       { SETTING_PW_TYPE_SIM_LOCK_ON, "SETTING_PW_TYPE_SIM_LOCK_ON", SETTING_PW_CATEGORY_SIM, 2 },
-       { SETTING_PW_TYPE_SIM_LOCK_OFF, "SETTING_PW_TYPE_SIM_LOCK_OFF", SETTING_PW_CATEGORY_SIM, 1 },
-       { SETTING_PW_TYPE_PIN_LOCK_ON, "SETTING_PW_TYPE_PIN_LOCK_ON", SETTING_PW_CATEGORY_SIM, 1 },
-       { SETTING_PW_TYPE_PIN_LOCK_OFF, "SETTING_PW_TYPE_PIN_LOCK_OFF", SETTING_PW_CATEGORY_SIM, 1 },
-       { SETTING_PW_TYPE_CHANGE_PIN, "SETTING_PW_TYPE_CHANGE_PIN", SETTING_PW_CATEGORY_SIM, 3 },
-       { SETTING_PW_TYPE_CHANGE_PIN2, "SETTING_PW_TYPE_CHANGE_PIN2", SETTING_PW_CATEGORY_SIM, 3 },
-       { SETTING_PW_TYPE_PIN_BLOCKED, "SETTING_PW_TYPE_PIN_BLOCKED", SETTING_PW_CATEGORY_SIM, 3 },
-       { SETTING_PW_TYPE_PIN2_BLOCKED, "SETTING_PW_TYPE_PIN2_BLOCKED", SETTING_PW_CATEGORY_SIM, 3 },
-       { SETTING_PW_TYPE_MAX, NULL }
-};
-
-static void setting_password_ug_cb_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
+struct _pw_item pw_its[] = { { 0, NULL, 0, 0 }, { SETTING_PW_TYPE_PASSWORD,
+               "SETTING_PW_TYPE_PASSWORD", SETTING_PW_CATEGORY_LOCK, 1 }, {
+               SETTING_PW_TYPE_SET_PASSWORD, "SETTING_PW_TYPE_SET_PASSWORD",
+               SETTING_PW_CATEGORY_LOCK, 2 }, {
+               SETTING_PW_TYPE_SIMPLE_PASSWORD,
+               "SETTING_PW_TYPE_SIMPLE_PASSWORD", SETTING_PW_CATEGORY_LOCK
+                               + SETTING_PW_SUB_CATEGORY_SIMPLE, 1 }, {
+               SETTING_PW_TYPE_SET_SIMPLE_PASSWORD,
+               "SETTING_PW_TYPE_SET_SIMPLE_PASSWORD", SETTING_PW_CATEGORY_LOCK
+                               + SETTING_PW_SUB_CATEGORY_SIMPLE, 2 },
+               { SETTING_PW_TYPE_ENTER_LOCK_TYPE,
+                               "SETTING_PW_TYPE_ENTER_LOCK_TYPE",
+                               SETTING_PW_CATEGORY_LOCK, 1 }, {
+                               SETTING_PW_TYPE_SIM_LOCK_ON,
+                               "SETTING_PW_TYPE_SIM_LOCK_ON",
+                               SETTING_PW_CATEGORY_SIM, 2 }, {
+                               SETTING_PW_TYPE_SIM_LOCK_OFF,
+                               "SETTING_PW_TYPE_SIM_LOCK_OFF",
+                               SETTING_PW_CATEGORY_SIM, 1 }, {
+                               SETTING_PW_TYPE_PIN_LOCK_ON,
+                               "SETTING_PW_TYPE_PIN_LOCK_ON",
+                               SETTING_PW_CATEGORY_SIM, 1 }, {
+                               SETTING_PW_TYPE_PIN_LOCK_OFF,
+                               "SETTING_PW_TYPE_PIN_LOCK_OFF",
+                               SETTING_PW_CATEGORY_SIM, 1 }, {
+                               SETTING_PW_TYPE_CHANGE_PIN,
+                               "SETTING_PW_TYPE_CHANGE_PIN",
+                               SETTING_PW_CATEGORY_SIM, 3 }, {
+                               SETTING_PW_TYPE_CHANGE_PIN2,
+                               "SETTING_PW_TYPE_CHANGE_PIN2",
+                               SETTING_PW_CATEGORY_SIM, 3 }, {
+                               SETTING_PW_TYPE_PIN_BLOCKED,
+                               "SETTING_PW_TYPE_PIN_BLOCKED",
+                               SETTING_PW_CATEGORY_SIM, 3 }, {
+                               SETTING_PW_TYPE_PIN2_BLOCKED,
+                               "SETTING_PW_TYPE_PIN2_BLOCKED",
+                               SETTING_PW_CATEGORY_SIM, 3 }, {
+                               SETTING_PW_TYPE_MAX, NULL } };
+
+static void setting_password_ug_cb_resize(void *data, Evas *e, Evas_Object *obj,
+               void *event_info)
 {
        /*SettingPasswordUG *ad = (SettingPasswordUG *) data; */
        /*setting_view_update(&setting_view_password_main, ad); */
@@ -65,8 +88,11 @@ void __chk_cur_pw_status(SettingPasswordUG *ad, app_control_h service)
        ad->pw_status = SETTING_PW_STATUS_DEFAULT;
 
 #if SECURITY_SERVER
-       ret = auth_passwd_check_passwd_state(AUTH_PWD_NORMAL,&attempt, &max_attempt, &expire_sec);
-       SETTING_TRACE_DEBUG("status of password : %d (cur attempt %d, max %d, expire %d", ret, attempt, max_attempt, expire_sec);
+       ret = auth_passwd_check_passwd_state(AUTH_PWD_NORMAL, &attempt,
+                       &max_attempt, &expire_sec);
+       SETTING_TRACE_DEBUG(
+                       "status of password : %d (cur attempt %d, max %d, expire %d",
+                       ret, attempt, max_attempt, expire_sec);
 
        if (ret == AUTH_PASSWD_API_ERROR_NO_PASSWORD) {
                SETTING_TRACE("auth fw has no password!");
@@ -82,7 +108,8 @@ void __get_extra_data(SettingPasswordUG *ad, app_control_h service)
        /*char *encryption = NULL; */
 
        /* #1. viewtype */
-       app_control_get_extra_data(service, "viewtype", &(ad->view_type_string));
+       app_control_get_extra_data(service, "viewtype",
+                       &(ad->view_type_string));
        SETTING_TRACE("viewtype:%s", ad->view_type_string);
        /* #2. current pw */
        app_control_get_extra_data(service, "current", &(ad->cur_pwd));
@@ -98,32 +125,42 @@ void __get_password_view_type(SettingPasswordUG *ad, app_control_h service)
        int i;
 
        for (i = 1; i < SETTING_PW_TYPE_MAX; i++) {
-               if (0 == safeStrCmp(ad->view_type_string, pw_its[i].pw_type_string)) {
-                       SETTING_TRACE_DEBUG("%s %d", ad->view_type_string, pw_its[i].pw_type_num);
+               if (0
+                               == safeStrCmp(ad->view_type_string,
+                                               pw_its[i].pw_type_string)) {
+                       SETTING_TRACE_DEBUG("%s %d", ad->view_type_string,
+                                       pw_its[i].pw_type_num);
                        ret_pw_type = pw_its[i].pw_type_num;
                        break;
                }
        }
 
        if (pw_its[ret_pw_type].category == SETTING_PW_CATEGORY_SIM) {
-               SETTING_TRACE_DEBUG("SIM or Fingerprint do not need to check pw status. %d", pw_its[ret_pw_type].category);
+               SETTING_TRACE_DEBUG(
+                               "SIM or Fingerprint do not need to check pw status. %d",
+                               pw_its[ret_pw_type].category);
                ad->view_type = ret_pw_type;
                return;
        }
 
        __chk_cur_pw_status(ad, service);
 
-       /* Some pw types should be changed, according to pw status and current lock type */
+       /* Some pw types should be changed, according to pw status and current
+        * lock type */
        if (ret_pw_type == SETTING_PW_TYPE_ENTER_LOCK_TYPE) {
                if (ad->pw_status == SETTING_PW_STATUS_EMPTY) {
-                       if (ad->screen_lock_type == SETTING_SCREEN_LOCK_TYPE_PASSWORD)
+                       if (ad->screen_lock_type
+                                       == SETTING_SCREEN_LOCK_TYPE_PASSWORD)
                                ret_pw_type = SETTING_PW_TYPE_SET_PASSWORD;
-                       else if (ad->screen_lock_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD)
+                       else if (ad->screen_lock_type
+                                       == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD)
                                ret_pw_type = SETTING_PW_TYPE_SET_SIMPLE_PASSWORD;
                } else {
-                       if (ad->screen_lock_type == SETTING_SCREEN_LOCK_TYPE_PASSWORD)
+                       if (ad->screen_lock_type
+                                       == SETTING_SCREEN_LOCK_TYPE_PASSWORD)
                                ret_pw_type = SETTING_PW_TYPE_PASSWORD;
-                       else if (ad->screen_lock_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD)
+                       else if (ad->screen_lock_type
+                                       == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD)
                                ret_pw_type = SETTING_PW_TYPE_SIMPLE_PASSWORD;
                }
        }
@@ -137,13 +174,16 @@ static setting_view *__initialize_view_node_table(int category)
        setting_view_node_table_intialize();
 
        if (category == SETTING_PW_CATEGORY_SIM) {
-               setting_view_node_table_register(&setting_view_password_sim, NULL);
+               setting_view_node_table_register(&setting_view_password_sim,
+                               NULL);
                return &setting_view_password_sim;
        } else if (category & SETTING_PW_SUB_CATEGORY_SIMPLE) {
-               setting_view_node_table_register(&setting_view_password_simple, NULL);
+               setting_view_node_table_register(&setting_view_password_simple,
+                               NULL);
                return &setting_view_password_simple;
        } else {
-               setting_view_node_table_register(&setting_view_password_main, NULL);
+               setting_view_node_table_register(&setting_view_password_main,
+                               NULL);
                return &setting_view_password_main;
        }
 }
@@ -163,17 +203,18 @@ static void __destroy_view(SettingPasswordUG *ad)
        }
 }
 
-static char *__gl_err_desc_text_get(void *data, Evas_Object *obj, const char *part)
+static char *__gl_err_desc_text_get(void *data, Evas_Object *obj,
+               const char *part)
 {
        SETTING_TRACE_BEGIN;
        retv_if(data == NULL, NULL);
-       char buf[256] = {0,};
+       char buf[256] = { 0, };
 
-       snprintf(buf, 256, "<font color=#ff0000>%s</font>", (char *)data);
+       snprintf(buf, 256, "<font color=#ff0000>%s</font>", (char *) data);
 
        SETTING_TRACE_DEBUG("buf is %s", buf);
 
-       return (char *)g_strdup(buf);
+       return (char *) g_strdup(buf);
 }
 
 static void __gl_err_desc_del(void *data, Evas_Object *obj)
@@ -186,51 +227,59 @@ static void __gl_err_desc_del(void *data, Evas_Object *obj)
        }
 }
 
-static void setting_password_rotated_cb(void *data, Evas_Object *obj, void *event)
+static void setting_password_rotated_cb(void *data, Evas_Object *obj,
+               void *event)
 {
        SETTING_TRACE_BEGIN;
-       SettingPasswordUG *ad = (SettingPasswordUG *)data;
+       SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
        if (ad == NULL || ad->win_get == NULL || obj == NULL)
                return;
 
        /*int changed_ang = 0;
-       changed_ang = elm_win_rotation_get(obj);*/
+        changed_ang = elm_win_rotation_get(obj);*/
 
        if (ad->view_type == SETTING_PW_TYPE_PIN_LOCK_OFF
-               || ad->view_type == SETTING_PW_TYPE_PIN_LOCK_ON
-               || ad->view_type == SETTING_PW_TYPE_CHANGE_PIN
-               || ad->view_type == SETTING_PW_TYPE_PIN_BLOCKED) {
+                       || ad->view_type == SETTING_PW_TYPE_PIN_LOCK_ON
+                       || ad->view_type == SETTING_PW_TYPE_CHANGE_PIN
+                       || ad->view_type == SETTING_PW_TYPE_PIN_BLOCKED) {
                if (ad->handle) {
-                       if (tel_get_sim_lock_info(ad->handle, TAPI_SIM_LOCK_SC, setting_get_pin_lock_info_cb, ad) != 0)
-                               SETTING_TRACE_DEBUG("failed to call tel_get_sim_lock_info()");
+                       if (tel_get_sim_lock_info(ad->handle, TAPI_SIM_LOCK_SC,
+                                       setting_get_pin_lock_info_cb, ad) != 0)
+                               SETTING_TRACE_DEBUG(
+                                               "failed to call tel_get_sim_lock_info()");
                }
        } else if (ad->view_type == SETTING_PW_TYPE_CHANGE_PIN2
-                          || ad->view_type == SETTING_PW_TYPE_PIN2_BLOCKED) {
+                       || ad->view_type == SETTING_PW_TYPE_PIN2_BLOCKED) {
                if (ad->handle) {
-                       if (tel_get_sim_lock_info(ad->handle, TAPI_SIM_LOCK_FD, setting_get_pin_lock_info_cb, ad) != 0)
-                               SETTING_TRACE_DEBUG("failed to call tel_get_sim_lock_info()");
+                       if (tel_get_sim_lock_info(ad->handle, TAPI_SIM_LOCK_FD,
+                                       setting_get_pin_lock_info_cb, ad) != 0)
+                               SETTING_TRACE_DEBUG(
+                                               "failed to call tel_get_sim_lock_info()");
                }
        }
        /* it can manage the cursor self */
        if (ad->ed_pw1 && (ad->ed_pw1->isFocusFlag == TRUE)) {
                if (ad->ed_pw1->eo_check) {
                        SETTING_TRACE_DEBUG("set focus on first entry");
-                       /* no matter how many edifileds, it only need focus on 1st editfiled */
+                       /* no matter how many edifileds, it only need focus on
+                        * 1st editfiled */
                        elm_object_focus_set(ad->ed_pw1->eo_check, EINA_TRUE);
                        elm_entry_cursor_end_set(ad->ed_pw1->eo_check);
                }
        } else if (ad->ed_pw2 && (ad->ed_pw2->isFocusFlag == TRUE)) {
                if (ad->ed_pw2->eo_check) {
                        SETTING_TRACE_DEBUG("set focus on second entry");
-                       /*no matter how many edifileds, it only need focus on 1st editfiled */
+                       /*no matter how many edifileds, it only need focus on
+                        * 1st editfiled */
                        elm_object_focus_set(ad->ed_pw2->eo_check, EINA_TRUE);
                        elm_entry_cursor_end_set(ad->ed_pw2->eo_check);
                }
        } else if (ad->ed_pw3 && (ad->ed_pw3->isFocusFlag == TRUE)) {
                if (ad->ed_pw3->eo_check) {
                        SETTING_TRACE_DEBUG("set focus on third entry");
-                       /*no matter how many edifileds, it only need focus on 1st editfiled */
+                       /*no matter how many edifileds, it only need focus on
+                        * 1st editfiled */
                        elm_object_focus_set(ad->ed_pw3->eo_check, EINA_TRUE);
                        elm_entry_cursor_end_set(ad->ed_pw3->eo_check);
                }
@@ -239,14 +288,13 @@ static void setting_password_rotated_cb(void *data, Evas_Object *obj, void *even
        }
 }
 
-static void *setting_password_ug_on_create(ui_gadget_h ug,
-                                                                                  enum ug_mode mode, app_control_h service,
-                                                                                  void *priv)
+static void *setting_password_ug_on_create(ui_gadget_h ug, enum ug_mode mode,
+               app_control_h service, void *priv)
 {
        SETTING_TRACE_BEGIN;
        setting_retvm_if((!priv), NULL, "!priv");
 
-       SettingPasswordUG *passwordUG = (SettingPasswordUG *)priv;
+       SettingPasswordUG *passwordUG = (SettingPasswordUG *) priv;
        passwordUG->ug = ug;
        passwordUG->win_main_layout = (Evas_Object *) ug_get_parent_layout(ug);
        passwordUG->win_get = (Evas_Object *) ug_get_window();
@@ -254,14 +302,18 @@ static void *setting_password_ug_on_create(ui_gadget_h ug,
        passwordUG->evas = evas_object_evas_get(passwordUG->win_main_layout);
 
        setting_retvm_if(passwordUG->win_main_layout == NULL, NULL,
-                                        "cannot get main window ");
+                       "cannot get main window ");
 
        /* set launguage */
        /*setting_set_i18n(SETTING_PACKAGE, SETTING_LOCALEDIR); */
        bindtextdomain(SETTING_PACKAGE, SETTING_LOCALEDIR);
-       evas_object_smart_callback_add(passwordUG->win_get, "wm,rotation,changed", setting_password_rotated_cb, passwordUG);
+       evas_object_smart_callback_add(passwordUG->win_get,
+                       "wm,rotation,changed", setting_password_rotated_cb,
+                       passwordUG);
 
-       setting_create_Gendial_itc(SETTING_GENLIST_GROUP_INDEX_STYLE, &(passwordUG->itc_title));
+       elm_theme_extension_add(NULL, SETTING_GENLIST_EDJ_NAME);
+       setting_create_Gendial_itc(SETTING_GENLIST_GROUP_INDEX_STYLE,
+                       &(passwordUG->itc_title));
        setting_create_Gendial_itc("1icon", &(passwordUG->itc_variable_height));
 
        passwordUG->itc_err_desc.item_style = "multiline_sub";
@@ -271,38 +323,44 @@ static void *setting_password_ug_on_create(ui_gadget_h ug,
        passwordUG->itc_err_desc.func.del = __gl_err_desc_del;
 
        /* get screen lock type */
-       vconf_get_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, &(passwordUG->screen_lock_type));
-       SETTING_TRACE_DEBUG("screen lock type : %d", passwordUG->screen_lock_type);
+       vconf_get_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT,
+                       &(passwordUG->screen_lock_type));
+       SETTING_TRACE_DEBUG("screen lock type : %d",
+                       passwordUG->screen_lock_type);
 
        /* init */
        __get_extra_data(passwordUG, service);
        __get_password_view_type(passwordUG, service);
        passwordUG->step1_str = NULL;
 
-       setting_view *main_view = __initialize_view_node_table(pw_its[passwordUG->view_type].category);
+       setting_view *main_view = __initialize_view_node_table(
+                       pw_its[passwordUG->view_type].category);
 
        /*      creating a view. */
-       setting_view_create(main_view, (void *)passwordUG);
+       setting_view_create(main_view, (void *) passwordUG);
        evas_object_event_callback_add(passwordUG->win_main_layout,
-                                                                  EVAS_CALLBACK_RESIZE,
-                                                                  setting_password_ug_cb_resize,
-                                                                  passwordUG);
+                       EVAS_CALLBACK_RESIZE, setting_password_ug_cb_resize,
+                       passwordUG);
 
        return passwordUG->ly_main;
 }
 
-static void setting_password_ug_on_start(ui_gadget_h ug, app_control_h service, void *priv)
+static void setting_password_ug_on_start(ui_gadget_h ug, app_control_h service,
+               void *priv)
 {
 }
 
-static void setting_password_ug_on_pause(ui_gadget_h ug, app_control_h service, void *priv)
+static void setting_password_ug_on_pause(ui_gadget_h ug, app_control_h service,
+               void *priv)
 {
        SETTING_TRACE_BEGIN;
-       SettingPasswordUG *passwordUG = (SettingPasswordUG *)priv;
+       SettingPasswordUG *passwordUG = (SettingPasswordUG *) priv;
 
-       if (pw_its[passwordUG->view_type].category & SETTING_PW_SUB_CATEGORY_SIMPLE) {
+       if (pw_its[passwordUG->view_type].category
+                       & SETTING_PW_SUB_CATEGORY_SIMPLE) {
                /* If pause, simple password's SIP should be focused out.
-                       If not, Our SIP will not be shown after using Other apps with independent SIP. */
+                If not, Our SIP will not be shown after using Other apps with
+                independent SIP. */
                if (passwordUG->imf_context) {
                        ecore_imf_context_reset(passwordUG->imf_context);
                        ecore_imf_context_focus_out(passwordUG->imf_context);
@@ -310,28 +368,36 @@ static void setting_password_ug_on_pause(ui_gadget_h ug, app_control_h service,
        }
 }
 
-static void setting_password_ug_on_resume(ui_gadget_h ug, app_control_h service, void *priv)
+static void setting_password_ug_on_resume(ui_gadget_h ug, app_control_h service,
+               void *priv)
 {
        SETTING_TRACE_BEGIN;
-       SettingPasswordUG *passwordUG = (SettingPasswordUG *)priv;
+       SettingPasswordUG *passwordUG = (SettingPasswordUG *) priv;
 
-       if (pw_its[passwordUG->view_type].category & SETTING_PW_SUB_CATEGORY_SIMPLE) {
+       if (pw_its[passwordUG->view_type].category
+                       & SETTING_PW_SUB_CATEGORY_SIMPLE) {
                /* If resume, simple password's SIP should be focused in.
-               If not, Our SIP will not be shown after using Other apps with independent SIP. */
+                If not, Our SIP will not be shown after using Other apps with
+                independent SIP. */
                if (passwordUG->imf_context) {
-                       /*ecore_imf_context_input_panel_show(passwordUG->imf_context); */
+                       /*ecore_imf_context_input_panel_show(
+                        * passwordUG->imf_context); */
                        ecore_imf_context_focus_in(passwordUG->imf_context);
                }
        }
 }
 
-static void setting_password_ug_on_destroy(ui_gadget_h ug, app_control_h service, void *priv)
+static void setting_password_ug_on_destroy(ui_gadget_h ug,
+               app_control_h service, void *priv)
 {
        SETTING_TRACE_BEGIN;
-       SettingPasswordUG *passwordUG = (SettingPasswordUG *)priv;
+       SettingPasswordUG *passwordUG = (SettingPasswordUG *) priv;
 
-       evas_object_event_callback_del(passwordUG->win_main_layout, EVAS_CALLBACK_RESIZE, setting_password_ug_cb_resize);       /* fix flash issue for gallery */
-       evas_object_smart_callback_del(passwordUG->win_get, "wm,rotation,changed", setting_password_rotated_cb);
+       evas_object_event_callback_del(passwordUG->win_main_layout,
+                       /* fix flash issue for gallery */
+                       EVAS_CALLBACK_RESIZE, setting_password_ug_cb_resize);
+       evas_object_smart_callback_del(passwordUG->win_get,
+                       "wm,rotation,changed", setting_password_rotated_cb);
        passwordUG->ug = ug;
 
        if (passwordUG->view_type_string)
@@ -345,7 +411,8 @@ static void setting_password_ug_on_destroy(ui_gadget_h ug, app_control_h service
                passwordUG->t_info = NULL;
        }
 
-       if (pw_its[passwordUG->view_type].category & SETTING_PW_SUB_CATEGORY_SIMPLE) {
+       if (pw_its[passwordUG->view_type].category
+                       & SETTING_PW_SUB_CATEGORY_SIMPLE) {
                if (passwordUG->imf_context) {
                        ecore_imf_context_del(passwordUG->imf_context);
                        passwordUG->imf_context = NULL;
@@ -362,14 +429,13 @@ static void setting_password_ug_on_destroy(ui_gadget_h ug, app_control_h service
 }
 
 static void setting_password_ug_on_message(ui_gadget_h ug, app_control_h msg,
-                                                                                  app_control_h service, void *priv)
+               app_control_h service, void *priv)
 {
 
 }
 
-static void setting_password_ug_on_event(ui_gadget_h ug,
-                                                                                enum ug_event event, app_control_h service,
-                                                                                void *priv)
+static void setting_password_ug_on_event(ui_gadget_h ug, enum ug_event event,
+               app_control_h service, void *priv)
 {
        SETTING_TRACE_BEGIN;
        if (!priv)
@@ -384,19 +450,24 @@ static void setting_password_ug_on_event(ui_gadget_h ug,
                break;
        case UG_EVENT_LANG_CHANGE: {
 #if 0
-                       /* update toolbar items */
-                       Evas_Object *toolbar = elm_object_item_part_content_get(ad->navi_it, "toolbar");
-                       if (toolbar != NULL) {
-                               Elm_Object_Item *last_item = elm_toolbar_last_item_get(toolbar);
-                               Elm_Object_Item *first_item = elm_toolbar_last_item_get(toolbar);
-
-                               if (last_item)
-                                       elm_object_item_text_set(last_item, _("IDS_SA_BUTTON_DONE_ABB"));
-                               if (first_item && (first_item != last_item))
-                                       elm_object_item_text_set(last_item, _("IDS_ST_BUTTON_CANCEL_ABB"));
-                       }
-#endif
+               /* update toolbar items */
+               Evas_Object *toolbar = elm_object_item_part_content_get(
+                               ad->navi_it, "toolbar");
+               if (toolbar != NULL) {
+                       Elm_Object_Item *last_item = elm_toolbar_last_item_get(
+                                       toolbar);
+                       Elm_Object_Item *first_item = elm_toolbar_last_item_get(
+                                       toolbar);
+
+                       if (last_item)
+                       elm_object_item_text_set(last_item,
+                                       _("IDS_SA_BUTTON_DONE_ABB"));
+                       if (first_item && (first_item != last_item))
+                       elm_object_item_text_set(last_item,
+                                       _("IDS_ST_BUTTON_CANCEL_ABB"));
                }
+#endif
+       }
                break;
        case UG_EVENT_ROTATE_PORTRAIT:
        case UG_EVENT_ROTATE_PORTRAIT_UPSIDEDOWN:
@@ -411,8 +482,7 @@ static void setting_password_ug_on_event(ui_gadget_h ug,
 }
 
 static void setting_password_ug_on_key_event(ui_gadget_h ug,
-                                                                                        enum ug_key_event event,
-                                                                                        app_control_h service, void *priv)
+               enum ug_key_event event, app_control_h service, void *priv)
 {
        if (!priv)
                return;
@@ -431,7 +501,8 @@ static void setting_password_ug_on_key_event(ui_gadget_h ug,
 UG_MODULE_API int UG_MODULE_INIT(struct ug_module_ops *ops)
 {
        SettingPasswordUG *passwordUG = calloc(1, sizeof(SettingPasswordUG));
-       setting_retvm_if(!passwordUG, -1, "Create SettingPasswordUG obj failed");
+       setting_retvm_if(!passwordUG, -1,
+                       "Create SettingPasswordUG obj failed");
 
        ops->create = setting_password_ug_on_create;
        ops->start = setting_password_ug_on_start;
@@ -461,7 +532,7 @@ UG_MODULE_API void UG_MODULE_EXIT(struct ug_module_ops *ops)
 }
 
 void setting_password_ug_popup_resp_cb(void *data, Evas_Object *obj,
-                                                                          void *event_info)
+               void *event_info)
 {
        retm_if(data == NULL, "Data parameter is NULL");
 
@@ -498,9 +569,10 @@ void setting_password_ug_popup_resp_cb(void *data, Evas_Object *obj,
                        /*      Success to Operate */
 
                        if (app_control_create(&svc))
-                               return;
+                       return;
 
-                       app_control_add_extra_data(svc, "result", diable_view_type);
+                       app_control_add_extra_data(svc, "result",
+                                       diable_view_type);
                        ug_send_result(ad->ug, svc);
 
                        app_control_destroy(svc);
@@ -510,7 +582,8 @@ void setting_password_ug_popup_resp_cb(void *data, Evas_Object *obj,
 #endif
                if (ad->focus_data) {
                        ad->focus_data->isFocusFlag = TRUE;
-                       elm_object_item_data_set(ad->focus_data->item, ad->focus_data);
+                       elm_object_item_data_set(ad->focus_data->item,
+                                       ad->focus_data);
                        elm_genlist_item_update(ad->focus_data->item);
                }
        }
@@ -521,7 +594,7 @@ void setting_password_ug_display_desc(void *data, char *desc, int destroy)
        SETTING_TRACE_BEGIN;
        ret_if(data == NULL || desc == NULL);
 
-       SettingPasswordUG *ad = (SettingPasswordUG *)data;
+       SettingPasswordUG *ad = (SettingPasswordUG *) data;
 
        ad->destroy = destroy;
 
@@ -534,10 +607,8 @@ void setting_password_ug_display_desc(void *data, char *desc, int destroy)
        }
 
        ad->err_desc = setting_create_Gendial_field_helpitem_without_bottom_separator(
-                                          ad->scroller,
-                                          &(itc_multiline_text),
-                                          SWALLOW_Type_LAYOUT_SPECIALIZTION_X,
-                                          desc);
+                       ad->scroller, &(itc_multiline_text),
+                       SWALLOW_Type_LAYOUT_SPECIALIZTION_X, desc);
 
        /* if pw incorrect, show keyboard again. */
        /*if(ad->ed_pw1 && ad->ed_pw1->eo_check) */
@@ -546,9 +617,8 @@ void setting_password_ug_display_desc(void *data, char *desc, int destroy)
        /*} */
 }
 
-void
-setting_password_ug_create_popup_notitle_nobtn(void *data, char *str,
-                                                                                          int destroy)
+void setting_password_ug_create_popup_notitle_nobtn(void *data, char *str,
+               int destroy)
 {
        /* error check */
        retm_if(data == NULL, "Data parameter is NULL");
@@ -561,8 +631,8 @@ setting_password_ug_create_popup_notitle_nobtn(void *data, char *str,
                ad->notify = NULL;
        }
        ad->notify = setting_create_popup(ad, ad->ly_main, NULL, str,
-                                                                         setting_password_ug_popup_resp_cb,
-                                                                         POPUP_INTERVAL, FALSE, FALSE, 0);
+                       setting_password_ug_popup_resp_cb,
+                       POPUP_INTERVAL, FALSE, FALSE, 0);
 }
 
 void setting_password_ug_check_attemps_left(void *data)
@@ -590,22 +660,26 @@ void setting_password_ug_check_attemps_left(void *data)
        int err = SETTING_RETURN_SUCCESS;
        setting_get_int_slp_key(item_attempts_left, &value, &err);
        setting_retm_if(err == SETTING_RETURN_FAIL,
-                                       "[Error] get value of vconf fail.");
+                       "[Error] get value of vconf fail.");
 
        value--;
 
        if (value > 0 && value <= attemps_left_max) {
                setting_set_int_slp_key(item_attempts_left, value, &err);
-               setting_retm_if(err == SETTING_RETURN_FAIL, "[Error] set value of vconf fail.");
-               char temp_str[MAX_SPECIALIZITION_LEN] = {0,};
-               char temp[MAX_SPECIALIZITION_LEN] = {0,};
+               setting_retm_if(err == SETTING_RETURN_FAIL,
+                               "[Error] set value of vconf fail.");
+               char temp_str[MAX_SPECIALIZITION_LEN] = { 0, };
+               char temp[MAX_SPECIALIZITION_LEN] = { 0, };
 
                if (value > 1)
-                       snprintf(temp, sizeof(temp), "%s. %s.", PW_ERR_DESC, ATTEMPTS_DESC);
+                       snprintf(temp, sizeof(temp), "%s. %s.", PW_ERR_DESC,
+                                       ATTEMPTS_DESC);
                else
-                       snprintf(temp, sizeof(temp), "%s. %s.", PW_ERR_DESC, ATTEMPT_DESC);
+                       snprintf(temp, sizeof(temp), "%s. %s.", PW_ERR_DESC,
+                                       ATTEMPT_DESC);
 
-               int ret = snprintf(temp_str, MAX_SPECIALIZITION_LEN, temp, value);
+               int ret = snprintf(temp_str, MAX_SPECIALIZITION_LEN, temp,
+                               value);
 
                ret_if(ret < 0);
 
@@ -614,31 +688,35 @@ void setting_password_ug_check_attemps_left(void *data)
                /*      store the lock timestamp */
                time_t cur_time = time(NULL);
                char cur_timestamp[LOCK_TIMESTAMP_LEN] = { 0, };
-               int ret = snprintf(cur_timestamp, sizeof(cur_timestamp), "%ld", cur_time);
+               int ret = snprintf(cur_timestamp, sizeof(cur_timestamp), "%ld",
+                               cur_time);
                ret_if(ret < 0);
 
-               setting_set_string_slp_key(item_lock_timestamp, cur_timestamp, &err);
+               setting_set_string_slp_key(item_lock_timestamp, cur_timestamp,
+                               &err);
                setting_retm_if(err == SETTING_RETURN_FAIL,
-                                               "[Error] set value of vconf fail.");
+                               "[Error] set value of vconf fail.");
 
                setting_set_int_slp_key(item_attempts_left, value, &err);
                setting_retm_if(err == SETTING_RETURN_FAIL,
-                                               "[Error] set value of vconf fail.");
+                               "[Error] set value of vconf fail.");
 
                ad->disable_item_type = ad->view_type;
 
-               char temp[MAX_SPECIALIZITION_LEN] = {0,};
-               snprintf(temp, sizeof(temp), PW_ERR_DELAY_DESC, PW_ERR_DELAY_TIME);
+               char temp[MAX_SPECIALIZITION_LEN] = { 0, };
+               snprintf(temp, sizeof(temp), PW_ERR_DELAY_DESC,
+                               PW_ERR_DELAY_TIME);
 
                setting_password_ug_create_popup_notitle_nobtn(ad, temp, FALSE);
        } else {
                setting_password_ug_create_popup_notitle_nobtn(ad,
-                                                                                                          _("IDS_ST_POP_ERROR"), FALSE);
+                               _("IDS_ST_POP_ERROR"), FALSE);
        }
 
 }
 
-int setting_password_check_password(const char *challenge, unsigned int *remain_attempt, unsigned int *valid_sec)
+int setting_password_check_password(const char *challenge,
+               unsigned int *remain_attempt, unsigned int *valid_sec)
 {
        SETTING_TRACE_BEGIN;
        retv_if(challenge == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
@@ -654,10 +732,13 @@ int setting_password_check_password(const char *challenge, unsigned int *remain_
        SETTING_TRACE_DEBUG("check pwd : %s", challenge);
 
 #if SECURITY_SERVER
-       inner_ret = auth_passwd_check_passwd(AUTH_PWD_NORMAL,challenge, &current_attempt, &max_attempt, &valid_secs);
+       inner_ret = auth_passwd_check_passwd(AUTH_PWD_NORMAL, challenge,
+                       &current_attempt, &max_attempt, &valid_secs);
 
        SETTING_TRACE_DEBUG("chk password : %d", inner_ret);
-       SETTING_TRACE_SECURE_DEBUG("current_attempt : %d, max_attempt : %d, valid_secs : %d secs", current_attempt, max_attempt, valid_secs);
+       SETTING_TRACE_SECURE_DEBUG(
+                       "current_attempt : %d, max_attempt : %d, valid_secs : %d secs",
+                       current_attempt, max_attempt, valid_secs);
 
        if (valid_sec != NULL)
                *valid_sec = valid_secs;
@@ -666,10 +747,11 @@ int setting_password_check_password(const char *challenge, unsigned int *remain_
                ret = SETTING_RETURN_SUCCESS;
        } else {
                if (remain_attempt != NULL) {
-                       if ((max_attempt > 0) && (max_attempt >= current_attempt))
+                       if ((max_attempt > 0)
+                                       && (max_attempt >= current_attempt))
                                *remain_attempt = max_attempt - current_attempt;
                        else
-                               *remain_attempt = ATTEMPT_INFINITE;     /* infinite */
+                               *remain_attempt = ATTEMPT_INFINITE; /* infinite */
                }
                ret = SETTING_RETURN_FAIL;
        }
@@ -678,28 +760,35 @@ int setting_password_check_password(const char *challenge, unsigned int *remain_
        return ret;
 }
 
-int setting_password_set_password(const char *cur_pwd, const char *new_pwd, void *data)
+int setting_password_set_password(const char *cur_pwd, const char *new_pwd,
+               void *data)
 {
        SETTING_TRACE_BEGIN;
-       retv_if(new_pwd == NULL || data == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
+       retv_if(new_pwd == NULL || data == NULL,
+                       SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
 
 #if SECURITY_SERVER
-       SettingPasswordUG *ad = (SettingPasswordUG *)data;
+       SettingPasswordUG *ad = (SettingPasswordUG *) data;
        int ret = 0;
        int err;
 
        /* max attempt count will be handled in passwordug for a while. */
        if (ad->pw_status == SETTING_PW_STATUS_EMPTY) {
-               ret = auth_passwd_set_passwd(AUTH_PWD_NORMAL,NULL, new_pwd);
-               SETTING_TRACE_DEBUG("[auth_passwd_set_passwd() + empty current] returns %d, INFINITE", ret);
+               ret = auth_passwd_set_passwd(AUTH_PWD_NORMAL, NULL, new_pwd);
+               SETTING_TRACE_DEBUG(
+                               "[auth_passwd_set_passwd() + empty current] returns %d, INFINITE",
+                               ret);
                if (ret == AUTH_PASSWD_API_SUCCESS) {
 #if 0
                        /* To support key manager */
                        uid_t user = 5000;
                        /*int ckmc_ret = CKMC_ERROR_NONE; */
                        ckmc_ret = ckmc_reset_user_password(user, new_pwd);
-                       SETTING_TRACE("ckmc_reset_user_password() returns %d", ckmc_ret);
-                       setting_set_int_slp_key(INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT, PHONE_LOCK_ATTEMPS_MAX, &err);
+                       SETTING_TRACE("ckmc_reset_user_password() returns %d",
+                                       ckmc_ret);
+                       setting_set_int_slp_key(
+                                       INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT,
+                                       PHONE_LOCK_ATTEMPS_MAX, &err);
 #endif
                        return SETTING_RETURN_SUCCESS;
                }
@@ -708,13 +797,17 @@ int setting_password_set_password(const char *cur_pwd, const char *new_pwd, void
 
        }
 
-       ret = auth_passwd_set_passwd(AUTH_PWD_NORMAL,cur_pwd, new_pwd);
-       SETTING_TRACE_DEBUG("[auth_passwd_set_passwd()] returns %d, INFINITE", ret);
+       ret = auth_passwd_set_passwd(AUTH_PWD_NORMAL, cur_pwd, new_pwd);
+       SETTING_TRACE_DEBUG("[auth_passwd_set_passwd()] returns %d, INFINITE",
+                       ret);
        if (ret == AUTH_PASSWD_API_SUCCESS) {
 #if 0
                ckmc_ret = ckmc_change_user_password(user, cur_pwd, new_pwd);
-               SETTING_TRACE("ckmc_change_user_password() returns %d", ckmc_ret);
-               setting_set_int_slp_key(INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT, PHONE_LOCK_ATTEMPS_MAX, &err);
+               SETTING_TRACE("ckmc_change_user_password() returns %d",
+                               ckmc_ret);
+               setting_set_int_slp_key(
+                               INT_SLP_SETTING_PHONE_LOCK_ATTEMPTS_LEFT,
+                               PHONE_LOCK_ATTEMPS_MAX, &err);
 #endif
                return SETTING_RETURN_SUCCESS;
        }
@@ -727,4 +820,3 @@ int setting_password_set_password(const char *cur_pwd, const char *new_pwd, void
 #endif
 }
 
-