[TBT][Non-ACR][TTS][DPTTIZEN-2573, TTS not supported case added] 93/117793/6
authornibha.sharma <nibha.sharma@samsung.com>
Tue, 7 Mar 2017 11:55:12 +0000 (17:25 +0530)
committernibha.sharma <nibha.sharma@samsung.com>
Thu, 9 Mar 2017 03:55:37 +0000 (09:25 +0530)
Change-Id: Iffae46bed97fdbe9eb57e7297c177dbf25084953
Signed-off-by: nibha.sharma <nibha.sharma@samsung.com>
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk [deleted file]
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk [new file with mode: 0644]
tbt_pushtestapp/res/tbt_push_auth.xml [new file with mode: 0755]
tbt_pushtestapp/src/tbt_pushtestapp.c [changed mode: 0644->0755]
tbtcoreapp/src/view/tbt-tts-view.c [changed mode: 0644->0755]

index 13745641a52662f60048e019777fdc1c5b092acc..24492bf1d619afe4cc91ade0a331f2cb00aac1bc 100644 (file)
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 (file)
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 (file)
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 (executable)
index 0000000..ecc918b
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<push_auth>\r
+<appID>da58f09b7dcd898f</appID>\r
+<appSecret>E55A746761233098DDD1114F652AFE51</appSecret>\r
+<TestappID>00f829f1fd898590</TestappID>\r
+<TestappSecret>5eMue+osQCi4Pbhdw+bltGC8PbEAAA==</TestappSecret>\r
+<TestappRegID></TestappRegID>\r
+</push_auth>
\ No newline at end of file
old mode 100644 (file)
new mode 100755 (executable)
index 1e3aebc..24da4c6
@@ -1,4 +1,6 @@
 #include "tbt_pushtestapp.h"
+#include <stdlib.h>
+#include <stdio.h>
 
 #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);
old mode 100644 (file)
new mode 100755 (executable)
index d9cdbe8..1875813
@@ -27,6 +27,7 @@
 #include "utils/app_module_config.h"
 #ifdef TBT_MODULE_TTS
 
+#include <notification.h>
 #include <Elementary.h>
 #include <tts.h>
 #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);