From: nibha.sharma Date: Tue, 7 Mar 2017 11:55:12 +0000 (+0530) Subject: [TBT][Non-ACR][TTS][DPTTIZEN-2573, TTS not supported case added] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21e0d6eb697fdc01b5620ea5f8764ed0463dccf8;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Non-ACR][TTS][DPTTIZEN-2573, TTS not supported case added] Change-Id: Iffae46bed97fdbe9eb57e7297c177dbf25084953 Signed-off-by: nibha.sharma --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 1374564..24492bf 100644 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 diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk deleted file mode 100644 index 9091b0e..0000000 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk and /dev/null differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk new file mode 100644 index 0000000..5196a49 Binary files /dev/null and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/tbt_pushtestapp/res/tbt_push_auth.xml b/tbt_pushtestapp/res/tbt_push_auth.xml new file mode 100755 index 0000000..ecc918b --- /dev/null +++ b/tbt_pushtestapp/res/tbt_push_auth.xml @@ -0,0 +1,8 @@ + + +da58f09b7dcd898f +E55A746761233098DDD1114F652AFE51 +00f829f1fd898590 +5eMue+osQCi4Pbhdw+bltGC8PbEAAA== + + \ No newline at end of file diff --git a/tbt_pushtestapp/src/tbt_pushtestapp.c b/tbt_pushtestapp/src/tbt_pushtestapp.c old mode 100644 new mode 100755 index 1e3aebc..24da4c6 --- a/tbt_pushtestapp/src/tbt_pushtestapp.c +++ b/tbt_pushtestapp/src/tbt_pushtestapp.c @@ -1,4 +1,6 @@ #include "tbt_pushtestapp.h" +#include +#include #define PUSH_APP_ID "00f829f1fd898590" #define PUSH_APP_SECRET "5eMue+osQCi4Pbhdw+bltGC8PbEAAA==" @@ -261,10 +263,16 @@ static void start_push_operation(void* data) int ret = storage_foreach_device_supported(_storage_device_supported_cb,NULL); RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret)); - ret = storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_OTHERS,&TBT_PUSH_XML_DIR); - RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret)); + //this->push_app_id_text = PUSH_APP_ID; + + char * script = "cp /opt/usr/globalapps/org.tizen.tbt_pushtestapp/res/tbt_push_auth.xml /home/owner/media/Others/tbt_push_auth.xml"; + system(script); + + + ret = storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_OTHERS,&TBT_PUSH_XML_DIR); + RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret)); - init_xml_operation(this); + init_xml_operation(this); this->push_app_id_text = get_xml_element_value(this->doc, this->root_node_ptr, "TestappID"); DBG("appID: %s", this->push_app_id_text); diff --git a/tbtcoreapp/src/view/tbt-tts-view.c b/tbtcoreapp/src/view/tbt-tts-view.c old mode 100644 new mode 100755 index d9cdbe8..1875813 --- a/tbtcoreapp/src/view/tbt-tts-view.c +++ b/tbtcoreapp/src/view/tbt-tts-view.c @@ -27,6 +27,7 @@ #include "utils/app_module_config.h" #ifdef TBT_MODULE_TTS +#include #include #include #include "utils/logger.h" @@ -192,8 +193,17 @@ static void _btn_tts_pressed_cb(void *data, Evas_Object *obj, void *event_info) RETM_IF(NULL == this, "view is NULL"); this->is_tts_btn_pressed = true; int ret; + bool is_tts_supported = false; + system_info_get_platform_bool("tizen.org/feature/speech.synthesis", &is_tts_supported); ret = tts_create(&this->tts_handle); - RETM_IF(ret != TTS_ERROR_NONE, "tts_create fail > Error = %s", get_tts_error(ret)); + if ( (is_tts_supported == false) && (ret == TTS_ERROR_NOT_SUPPORTED) ) + { + notification_status_message_post("PASS the tc"); + } + else + { + RETM_IF(ret != TTS_ERROR_NONE, "tts_create fail > Error = %s", get_tts_error(ret)); + } ret = tts_set_state_changed_cb(this->tts_handle, _tts_state_changed_cb, this); RETM_IF(ret != TTS_ERROR_NONE, "tts_set_state_changed_cb fail > Error = %s", get_tts_error(ret)); ret = tts_foreach_supported_voices(this->tts_handle, _tts_supported_voice_cb, this);