Test patch to resolve crash 17/238017/2
authorAmritanshu <a.pandia1@samsung.com>
Tue, 7 Jul 2020 12:26:05 +0000 (17:56 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Tue, 7 Jul 2020 12:31:29 +0000 (18:01 +0530)
Change-Id: Ic447ef02c6f43229d51c60f2bec1641ff9c1d63a
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
src/settings/modules/bluetooth.c
src/settings/modules/dnd.c
src/settings/modules/more-settings.c
src/settings/modules/softkey.c
src/settings/modules/sound-profile.c
src/settings/modules/wifi.c
src/settings/setting_module_api.c
tizen-manifest.xml

index 81e18b97b6285a5a06978ff60a5d3bf030d0c1ac..14912af18f7b3c527777e229bb3a37a981c6a2f2 100755 (executable)
@@ -76,9 +76,9 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
 {
        Evas_Object *image = NULL;
        const char *icon_path = NULL;
-
+       ERR("AMRIT bluetooth _view_update Before");
        quickpanel_setting_icon_state_set(view, state);
-
+       ERR("AMRIT bluetooth _view_update After");
        if (state == ICON_VIEW_STATE_ON) {
 #ifdef BUTTON_ICON_HIGHLIGHT
                icon_path = BUTTON_ICON_HIGHLIGHT;
index 6fe17574aac14e294e0ae6d5ddbc13bb940922d0..489dab27fe7b99139be898399295d55423c2478e 100755 (executable)
@@ -133,9 +133,9 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
 {
        Evas_Object *image = NULL;
        const char *icon_path = NULL;
-
+       ERR("AMRIT dnd _view_update Before");
        quickpanel_setting_icon_state_set(view, state);
-
+       ERR("AMRIT dnd _view_update After");
        if (state == ICON_VIEW_STATE_ON) {
 #ifdef BUTTON_ICON_HIGHLIGHT
                icon_path = BUTTON_ICON_HIGHLIGHT;
index f912ad046701e4c93e46209cda5fb6d34272f320..ba010b5cfcf23d540985c4fe65cfb3644931797e 100755 (executable)
@@ -71,9 +71,9 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
 {
        Evas_Object *image = NULL;
        const char *icon_path = NULL;
-
+       ERR("AMRIT more-setting softkey _view_update Before");
        quickpanel_setting_icon_state_set(view, state);
-
+       ERR("AMRIT more-setting _view_update After");
        if (state == ICON_VIEW_STATE_ON) {
 #ifdef BUTTON_ICON_HIGHLIGHT
                icon_path = BUTTON_ICON_HIGHLIGHT;
index 6c0edc7f00c8f2420fe44f0d2aca7bcfc2eee661..3a862cbd0f796d5ce941e33efb71fc60339d395f 100755 (executable)
 #define BUTTON_ICON_NORMAL "icon_softkey_off.png"\r
 #define BUTTON_ICON_HIGHLIGHT "icon_softkey_on.png"\r
 #define BUTTON_ICON_DIM "icon_softkey_disabled.png"\r
+//#define VCONFKEY_SETAPPL_SOFT_KEY  "db/setting/soft_key"\r
 \r
 static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source);\r
 \r
 static const char *_label_get(void)\r
 {\r
+       ERR("AMRIT inside softkey _label_get Before leaving");\r
        return BUTTON_LABEL;\r
 }\r
 \r
 static const char *_icon_get(qp_setting_icon_image_type type)\r
 {\r
+       ERR("AMRIT inside softkey _icon_get");\r
        if (type == QP_SETTING_ICON_NORMAL) {\r
                return BUTTON_ICON_NORMAL;\r
        } else if (type == QP_SETTING_ICON_HIGHLIGHT) {\r
@@ -50,18 +53,20 @@ static const char *_icon_get(qp_setting_icon_image_type type)
                return BUTTON_ICON_DIM;\r
 #endif\r
        }\r
-\r
+       ERR("AMRIT inside softkey _icon_get Before leaving");\r
        return NULL;\r
 }\r
 \r
 static void _long_press_cb(void *data)\r
 {\r
+       ERR("AMRIT inside softkey _long_press_cb");\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
 \r
        if (quickpanel_setting_module_is_immediate_actionable(module, QP_SETTING_ICON_LONGPRESSED) == false)\r
                return;\r
 \r
        quickpanel_setting_icon_handler_longpress(module->setting_pkgname, NULL, NULL);\r
+       ERR("AMRIT inside softkey _long_press_cb Before leaving");\r
 }\r
 \r
 static void _view_update(Evas_Object *view, int state, int flag_extra_1, int flag_extra_2)\r
@@ -70,8 +75,10 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
        Evas_Object *image = NULL;\r
        const char *icon_path = NULL;\r
 \r
+       ERR("AMRIT inside softkey _view_update Before");\r
        quickpanel_setting_icon_state_set(view, state);\r
-\r
+       ERR("AMRIT inside softkey _view_update After");\r
+       \r
        if (state == ICON_VIEW_STATE_ON) {\r
 #ifdef BUTTON_ICON_HIGHLIGHT\r
                icon_path = BUTTON_ICON_HIGHLIGHT;\r
@@ -90,6 +97,7 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
        image = quickpanel_setting_icon_image_new(view, icon_path);\r
        quickpanel_setting_icon_content_set(view, image);\r
        quickpanel_setting_icon_text_set(view, BUTTON_LABEL, state);\r
+       ERR("AMRIT inside softkey _view_update Before leaving");\r
 }\r
 \r
 static void _status_update(QP_Module_Setting *module, int flag_extra_1, int flag_extra_2)\r
@@ -113,6 +121,7 @@ static void _status_update(QP_Module_Setting *module, int flag_extra_1, int flag
        quickpanel_setting_module_icon_view_update(module,\r
                        quickpanel_setting_module_icon_state_get(module),\r
                        FLAG_VALUE_VOID);\r
+       ERR("AMRIT inside softkey _status_update Before leaving");\r
 }\r
 \r
 static void _state_change(QP_Module_Setting *module)\r
@@ -138,17 +147,20 @@ static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission
        DBG(">>> calling state_change <<<");\r
        _state_change(module);\r
        _status_update(data, FLAG_VALUE_VOID, FLAG_VALUE_VOID);\r
+       ERR("AMRIT inside softkey _mouse_clicked_cb Before leaving");\r
 }\r
 \r
 static int _register_module_event_handler(void *data)\r
 {\r
        int ret = 0;\r
+       ERR("AMRIT inside softkey _register_module_event_handler Before leaving");\r
        return QP_OK;\r
 }\r
 \r
 static int _unregister_module_event_handler(void *data)\r
 {\r
        int ret = 0;\r
+       ERR("AMRIT inside softkey _unregister_module_event_handler Before leaving");\r
        return QP_OK;\r
 }\r
 \r
@@ -160,18 +172,18 @@ static int _unregister_module_event_handler(void *data)
 static int _init(void *data)\r
 {\r
        int ret = QP_OK;\r
-\r
+       ERR("AMRIT inside softkey _init");\r
        ret = _register_module_event_handler(data);\r
-\r
+       ERR("AMRIT inside softkey _init Before leaving");\r
        return ret;\r
 }\r
 \r
 static int _fini(void *data)\r
 {\r
        int ret = QP_OK;\r
-\r
+       ERR("AMRIT inside softkey _fin");\r
        ret = _unregister_module_event_handler(data);\r
-\r
+       ERR("AMRIT inside softkey _fini Before leaving");\r
        return ret;\r
 }\r
 \r
@@ -179,7 +191,7 @@ static void _lang_changed(void *data)
 {\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
        retif(module == NULL, , "Invalid parameter!");\r
-\r
+       ERR("AMRIT inside softkey _lang_changed");\r
        quickpanel_setting_module_icon_view_update_text(module);\r
 }\r
 \r
@@ -187,20 +199,24 @@ static void _refresh(void *data)
 {\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
        retif(module == NULL, , "Invalid parameter!");\r
-\r
+       ERR("AMRIT inside softkey _refresh");\r
        quickpanel_setting_module_icon_view_update_text(module);\r
+       ERR("AMRIT inside softkey _refresh Before leaving");\r
 }\r
 \r
 static void _reset_icon(QP_Module_Setting *module)\r
 {\r
+       ERR("AMRIT inside softkey _reset_icon");\r
        retif(module == NULL, , "Invalid parameter!");\r
 \r
        quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_VALUE_VOID);\r
        _status_update(module, FLAG_VALUE_VOID, FLAG_VALUE_VOID);\r
+       ERR("AMRIT inside softkey _reset_icon Before leaving");\r
 }\r
 \r
 static void _handler_on(void *data)\r
 {\r
+       ERR("AMRIT inside softkey _handler_on");\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
        retif(module == NULL, , "Invalid parameter!");\r
 \r
@@ -214,10 +230,12 @@ static void _handler_on(void *data)
                ERR("the button is already turned on");\r
                _reset_icon(module);\r
        }\r
+       ERR("AMRIT inside softkey _handler_on Before leaving");\r
 }\r
 \r
 static void _handler_off(void *data)\r
 {\r
+       ERR("AMRIT inside softkey _handler_off");\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
        retif(module == NULL, , "Invalid parameter!");\r
 \r
@@ -231,26 +249,32 @@ static void _handler_off(void *data)
                ERR("the button is already turned off");\r
                _reset_icon(module);\r
        }\r
+       ERR("AMRIT inside softkey _handler_off Before leaving");\r
 }\r
 \r
 static void _handler_progress_on(void *data)\r
 {\r
+       ERR("AMRIT inside softkey _handler_progress_on");\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
        retif(module == NULL, , "Invalid parameter!");\r
 \r
        quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_VALUE_VOID);\r
+       ERR("AMRIT inside softkey _handler_progress_on Before leaving");\r
 }\r
 \r
 static void _handler_progress_off(void *data)\r
 {\r
+       ERR("AMRIT inside softkey _handler_progress_off");\r
        QP_Module_Setting *module = (QP_Module_Setting *)data;\r
        retif(module == NULL, , "Invalid parameter!");\r
 \r
        _reset_icon(module);\r
+       ERR("AMRIT inside softkey _handler_progress_off Before leaving");\r
 }\r
 \r
 static int _handler_ipc(const char *command, void *data)\r
 {\r
+       ERR("AMRIT inside softkey _handler_ipc");\r
        int i = 0;\r
        retif(data == NULL, EINA_FALSE, "item data is NULL");\r
        retif(command == NULL, EINA_FALSE, "command is NULL");\r
@@ -289,7 +313,7 @@ static int _handler_ipc(const char *command, void *data)
                }\r
                break;\r
        }\r
-\r
+       ERR("AMRIT inside softkey _handler_ipc Before leaving");\r
        return EINA_TRUE;\r
 }\r
 \r
index e005e89fecfd1ca2348c3e407d9665f89bf6dd47..7e33574476feb8c0ecedf164e643f2fb2b9b9fed 100755 (executable)
@@ -191,8 +191,9 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
                img_path = BUTTON_ICON_SND_HIGHLIGHT;
        break;
        }
-
+       ERR("AMRIT sound _view_update Before");
        quickpanel_setting_icon_state_set(view, icon_state);
+       ERR("AMRIT sound _view_update After");
        quickpanel_setting_icon_text_set(view, text, icon_state);
        image = quickpanel_setting_icon_image_new(view, img_path);
        quickpanel_setting_icon_content_set(view, image);
index 652f221c14b4b8c28804bcec74ab140898d8bb09..05790d85ceca3c8b43f3e53619f51893b877b74c 100755 (executable)
@@ -86,9 +86,9 @@ static void _view_update(Evas_Object *view, int state, int flag_extra_1, int fla
 {
        Evas_Object *image = NULL;
        const char *icon_path = NULL;
-
+       ERR("AMRIT inside wifi _view_update Before");
        quickpanel_setting_icon_state_set(view, state);
-
+       ERR("AMRIT inside wifi _view_update After");
        if (state == ICON_VIEW_STATE_ON) {
 #ifdef BUTTON_ICON_HIGHLIGHT
                icon_path = BUTTON_ICON_HIGHLIGHT;
index f49f5b887a1359397099e901417fa7f502916a8a..67d57efffbc4e0040947f387761caefac9a8c1a4 100755 (executable)
@@ -287,6 +287,7 @@ static void _progressbar_set(Evas_Object *view, int is_enable, int is_request_on
                quickpanel_setting_icon_content_set(view, content);
 
                quickpanel_setting_icon_state_progress_set(view);
+               ERR("AMRIT inside _progressbar_set");
                quickpanel_setting_icon_state_set(view, ICON_VIEW_STATE_DIM);
        }
 }
index 0adbbdf32f4e6bae124fc68a7f777498a521939e..7bb0275e925a587fdb465e559402088a4a9fd561 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <manifest xmlns="http://tizen.org/ns/packages" api-version="4.0" install-location="internal-only" package="org.tizen.quickpanel_common" version="1.0.0">
     <author email="jin0.kim@samsung.com" href="www.samsung.com">Jinyoung Kim</author>
-    <profile name="tizeniot"/>
+    <profile name="mobile"/>
     <ui-application appid="org.tizen.quickpanel" exec="quickpanel" hw-acceleration="on" launch_mode="single" multiple="false" nodisplay="true" process-pool="true" taskmanage="false" type="capp">
         <label>quickpanel</label>
         <icon>quickpanel.png</icon>