[TBT][Non-ACR][Device][DPTTIZEN-2974,Removed Device Status testcase] 73/164673/4
authornibha2 <nibha.sharma@samsung.com>
Wed, 20 Dec 2017 08:45:46 +0000 (14:15 +0530)
committershobhit verma <shobhit.v@samsung.com>
Thu, 21 Dec 2017 06:50:01 +0000 (06:50 +0000)
Change-Id: I277140247961a85d02f80ee1a6aa8bd11dede5c6
Signed-off-by: nibha2 <nibha.sharma@samsung.com>
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk
tbtcoreapp/inc/model/tbt-info.h
tbtcoreapp/inc/utils/app_module_config.h
tbtcoreapp/src/model/tbt-list.c
tbtcoreapp/src/view/tbt-genlist-view.c
tbtcoreapp/src/view/tbt-sound-manager-view.c

index 30fe4baece27a2116335ec58300352ee933c46e5..88ef3c112c29b09b6ee9501a15df8a5ae2a54b29 100755 (executable)
Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ
index f1ca1272598dc429082468e700840da5a01a6b1e..d00fcc5633a6be4fda591a7420c151ce73fb8bc6 100755 (executable)
Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ
index 4d4c35a3548356f411c51bfbfcf28f5f09b6999b..97053b06ce55a3d3bc8e265445e983ab699ce342 100644 (file)
@@ -216,8 +216,6 @@ typedef enum {
 
     TBT_APP_SOUND_MANAGER,
 
-    TBT_APP_SOUND_MANAGER_DEVICE,
-
     TBT_APP_MEDIA_KEY,
 
     TBT_APP_PACKAGE_MANAGER,
index e62aac2136528ab9741e22c32eff8994403197ad..5a6ecdd2ccb33293627bd1f47c81a852803feaf5 100644 (file)
 
 #define TBT_MODULE_SOUND_MANAGER
 #define TBT_MODULE_APP_SOUND_MANAGER
-#define TBT_MODULE_APP_SOUND_MANAGER_DEVICE
 
 #define TBT_MODULE_MEDIA_KEY
 #define TBT_MODULE_APP_MEDIA_KEY
index de840a72d3822138736a87d025874ee71c17ebee..9ee50527876bcee7878bf445a52fbd648cf8e237 100644 (file)
@@ -2091,20 +2091,6 @@ static tbt_info tbtapps[] =
                        .features_required = {13}
                },
        #endif
-       #ifdef TBT_MODULE_APP_SOUND_MANAGER_DEVICE
-
-               //SOUND_MANAGER
-               {
-                       .name = "Device Status",
-                       .parent = "Sound Manager",
-                       .apptype = TBT_APP_SOUND_MANAGER_DEVICE,
-                       .icon_name = "dummy",
-                       .info = "Insert Audio jack and change sound profile to Sound",
-                       .result = 0,
-                       .required_features_count = 1,
-                       .features_required = {FEATURE_MICROPHONE}
-               },
-       #endif
 #endif
 #ifdef TBT_MODULE_MEDIA_KEY
        #ifdef TBT_MODULE_APP_MEDIA_KEY
index f1c23d4439cea8ed1712feaea7cb374d2fa0eebe..e2dc6d5d1d7ff3d057ca7f19661b99c6e4e5ca9e 100644 (file)
@@ -1155,9 +1155,6 @@ static void _gl_item_selected_cb(void *data, Evas_Object *obj EINA_UNUSED, void
                        case TBT_APP_SOUND_MANAGER:
                                soundmanager_view_add(view->navi, info, it);
                                break;
-                       case TBT_APP_SOUND_MANAGER_DEVICE:
-                               soundmanager_view_add(view->navi, info, it);
-                               break;
                #endif
                #ifdef TBT_MODULE_MEDIA_KEY
                        case TBT_APP_MEDIA_KEY:
index a9a96f37b250a157594bb042cab37d273e3437fa..e1fd9c420fbf6a6845d876b6786be69a99d20f8f 100755 (executable)
@@ -40,12 +40,10 @@ struct _soundmanager_view
        common_view* view;
 
        Evas_Object *info_label;
-       Evas_Object *device_label;
 };
 
 static void _app_destroy_cb(void* this);
 void _sound_device_connected_cb(sound_device_h device, bool is_connected, void *user_data);
-void _sound_device_information_changed_cb(sound_device_h device, sound_device_changed_info_e changed_info, void *user_data);
 
 static bool is_not_supported = false;
 
@@ -109,59 +107,34 @@ soundmanager_view *soundmanager_view_add(Evas_Object *navi, tbt_info *tbt_info,
 {
        RETVM_IF(NULL == navi, NULL, "navi is null");
        int ret;
-       soundmanager_view *this = NULL;
-       this = calloc(1, sizeof(soundmanager_view));
-       RETVM_IF(!this, NULL, "calloc failed");
+       soundmanager_view *this = NULL;
+       this = calloc(1, sizeof(soundmanager_view));
+       RETVM_IF(!this, NULL, "calloc failed");
 
 
-       this->view = calloc(1, sizeof(common_view));
-       RETVM_IF(!this->view, NULL, "calloc failed");
+       this->view = calloc(1, sizeof(common_view));
+       RETVM_IF(!this->view, NULL, "calloc failed");
 
        tbt_info->layout_group = "2_part_cnt_btn";
-       tbt_info->layout_file = get_edje_path("2_part_cnt3.5_btn.edj");
+       tbt_info->layout_file = get_edje_path("2_part_cnt3.5_btn.edj");
 
-       common_view_add(navi, tbt_info, item, this->view, _app_destroy_cb, this);
-       RETVM_IF(NULL == this->view, NULL, "navi is null");             
+       common_view_add(navi, tbt_info, item, this->view, _app_destroy_cb, this);
+       RETVM_IF(NULL == this->view, NULL, "navi is null");
 
-       if(this->view->tbt_info->apptype == TBT_APP_SOUND_MANAGER)
-       {
-
-               ret = sound_manager_set_device_connected_cb(SOUND_DEVICE_IO_DIRECTION_BOTH_MASK,_sound_device_connected_cb,this);
-               RETVM_IF(ret != SOUND_MANAGER_ERROR_NONE && ret != SOUND_MANAGER_ERROR_NOT_SUPPORTED, NULL, "sound_manager_set_device_connected_cb failed : %s", get_soundmanager_error(ret));
-
-               this->info_label = ui_utils_label_add(this->view->layout, "Please change Audio Jack state[Insert/Remove]");
-               elm_label_line_wrap_set(this->info_label, ELM_WRAP_WORD);
-
-               if(ret == SOUND_MANAGER_ERROR_NOT_SUPPORTED)
-               {
-                       is_not_supported = true;
-                       Evas_Object *popup = ui_utils_popup_add(this->view->navi, "Message");
-                       elm_object_text_set(popup, "Sound Device is not supported");
-                       RETVM_IF(!this->view, NULL,"Sound Device is not supported");
-               }
-               elm_object_part_content_set(this->view->layout, "1cnt", this->info_label);
-               return this;
-       }
-       else if (this->view->tbt_info->apptype == TBT_APP_SOUND_MANAGER_DEVICE)
-       {
+       ret = sound_manager_set_device_connected_cb(SOUND_DEVICE_IO_DIRECTION_BOTH_MASK,_sound_device_connected_cb,this);
+       RETVM_IF(ret != SOUND_MANAGER_ERROR_NONE && ret != SOUND_MANAGER_ERROR_NOT_SUPPORTED, NULL, "sound_manager_set_device_connected_cb failed : %s", get_soundmanager_error(ret));
 
-               ret = sound_manager_set_device_information_changed_cb(SOUND_DEVICE_TYPE_EXTERNAL_MASK, _sound_device_information_changed_cb,this);
-       RETVM_IF(ret != SOUND_MANAGER_ERROR_NONE && ret != SOUND_MANAGER_ERROR_NOT_SUPPORTED, NULL, "sound_manager_set_device_information_changed_cb failed : %s", get_soundmanager_error(ret));
-               
-               this->info_label = ui_utils_label_add(this->view->layout, "Insert Audio jack and change sound profile to Sound");
-               elm_label_line_wrap_set(this->info_label, ELM_WRAP_WORD);
-
-               if(ret == SOUND_MANAGER_ERROR_NOT_SUPPORTED)
-               {
-                       is_not_supported = true;
-                       Evas_Object *popup = ui_utils_popup_add(this->view->navi, "Message");
-                       elm_object_text_set(popup, "Sound Device is not supported");
-                       RETVM_IF(!this->view, NULL,"Sound Device is not supported");
-               }
-               elm_object_part_content_set(this->view->layout, "1cnt", this->info_label);
-               return this;
-       }       
+       this->info_label = ui_utils_label_add(this->view->layout, "Please change Audio Jack state[Insert/Remove]");
+       elm_label_line_wrap_set(this->info_label, ELM_WRAP_WORD);
 
+       if(ret == SOUND_MANAGER_ERROR_NOT_SUPPORTED)
+       {
+               is_not_supported = true;
+               Evas_Object *popup = ui_utils_popup_add(this->view->navi, "Message");
+               elm_object_text_set(popup, "Sound Device is not supported");
+               RETVM_IF(!this->view, NULL,"Sound Device is not supported");
+       }
+       elm_object_part_content_set(this->view->layout, "1cnt", this->info_label);
        return this;
 }
 
@@ -220,36 +193,4 @@ void _sound_device_connected_cb(sound_device_h device, bool is_connected, void *
 
 }
 
-/**
- * @function           _sound_device_information_changed_cb
- * @since_tizen                3.0
- * @description                sound Device Information Changed Cb
- * @parameter          sound_device_h device, sound_device_changed_info_e changed_info, void *user_data
- * @return             void
- */
-void _sound_device_information_changed_cb(sound_device_h device, sound_device_changed_info_e changed_info, void *user_data)
-{
-
-       RETM_IF(NULL == user_data, "user_data is null");
-       soundmanager_view *this = NULL;
-       this = (soundmanager_view*) user_data;
-
-       DBG("changed_info: %d", changed_info);
-
-       switch(changed_info)
-       {
-               case SOUND_DEVICE_CHANGED_INFO_STATE :
-                       ui_utils_label_set_text(this->info_label, "State of the device was changed", "left");
-                       break;
-
-               case SOUND_DEVICE_CHANGED_INFO_IO_DIRECTION:
-                       ui_utils_label_set_text(this->info_label, "IO direction of the device was changed", "left");
-                       break;
-               default:
-                       ui_utils_label_set_text(this->info_label, "Unknown status", "left");
-                       break;
-       }
-
-}
-
 #endif