[ITC/UTC][stt,tts,voice-control,multi-assistant][Non-ACR][Remove elemantary dependency]
authorWonnam Jang <wn.jang@samsung.com>
Wed, 10 Oct 2018 00:08:18 +0000 (09:08 +0900)
committerAmritanshu Pandia <a.pandia1@samsung.com>
Wed, 10 Oct 2018 08:45:28 +0000 (08:45 +0000)
Change-Id: I7f35051246bcbe30332519e484ffa3aab928167b
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
15 files changed:
packaging/utc/core-multi-assistant-tests.spec
src/itc/stt/ITs-stt.c
src/itc/stt/ITs-stte.c
src/itc/tts/ITs-tts.c
src/itc/tts/ITs-ttse.c
src/itc/voice-control/ITs-voice-control-common.h
src/itc/voice-control/ITs-voice-control-engine.c
src/itc/voice-control/ITs-voice-control.c
src/utc/multi-assistant/utc-multi-assistant.c
src/utc/stt/utc-stt.c
src/utc/stt/utc-stte.c
src/utc/tts/utc-tts.c
src/utc/tts/utc-ttse.c
src/utc/voice-control/utc-voice-control-engine.c
src/utc/voice-control/utc-voice-control.c

index 3b40e27071d2e476ec655373ee99912fd34a9b4d..7a0a3b65b5742e74f20145d8bd5991a89ca76473 100755 (executable)
@@ -9,7 +9,6 @@ License:    Apache License, Version 2.0
 Source0:    %{name}-%{version}.tar.gz
 BuildRequires: pkgconfig(%{MODULE_LIBNAME})
 BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(elementary)
 BuildRequires: cmake
 BuildRequires: pkgconfig(capi-appfw-application)
 BuildRequires: pkgconfig(dlog)
index 9131e8f0f5dca0744934cd6b18a91bfd9474adf0..3726bef492a06888f41710d2d81426d83b9cbbbe 100755 (executable)
@@ -15,7 +15,6 @@
 //
 #include "ITs-stt-common.h"
 #include <Ecore.h>
-#include <Elementary.h>
 
 /** @addtogroup itc-stt
 *  @ingroup itc
@@ -44,7 +43,6 @@ bool g_CallBackHit = false;
 */ 
 void ITs_stt_startup(void)
 {
-       elm_init(0, NULL);
        struct stat stBuff;
        if ( stat(ERR_LOG, &stBuff) == 0 )
        {
@@ -135,7 +133,6 @@ void ITs_stt_cleanup(void)
                        FPRINTF("[Line : %d][%s] Unable to destroy SST handle in postcondition, error returned = %s\\n", __LINE__, API_NAMESPACE, SttGetError(nRet));
                }
        }
-       elm_shutdown();
        return;
 }
 
index 06e5ab4cd29084c301f7ed9d73a2d32ed83d37c2..81266190144e615971720a81715a4ed253747ac9 100755 (executable)
@@ -15,7 +15,6 @@
 //
 #include "ITs-stt-common.h"
 #include <Ecore.h>
-#include <Elementary.h>
 
 /** @addtogroup itc-stte
 *  @ingroup itc
@@ -149,7 +148,6 @@ void ITs_stte_startup(void)
 #if DEBUG
        FPRINTF("[Line : %d][%s] TEST SUIT start-up: ITs_STTE_p\\n", __LINE__, API_NAMESPACE);
 #endif
-       elm_init(0, NULL);
        g_bFeatureSupported = true;
        g_bFeatureMismatch = false;
        g_bFeatureNotSupported = false;
@@ -200,7 +198,6 @@ void ITs_stte_cleanup(void)
        FPRINTF("[Line : %d][%s] TEST SUIT clean-up: ITs_STTE_p\\n", __LINE__, API_NAMESPACE);
 #endif
 
-       elm_shutdown();
        return;
 }
 //& purpose stte main function
index 15d4666ff0e8deaf9df3c21cc57d8a7120d0eac9..2b236f367a0c058c1addaec0093559d862eb34cb 100755 (executable)
@@ -15,7 +15,6 @@
 //
 #include "ITs-tts-common.h"
 #include <Ecore.h>
-#include <Elementary.h>
 
 /** @addtogroup itc-tts
 *  @ingroup itc
@@ -33,7 +32,6 @@ bool g_CallBackHit = false;
 */
 void ITs_tts_startup(void)
 {
-       elm_init(0,NULL);
 
        g_bTtsCreation = false;
        struct stat stBuff;
@@ -100,7 +98,6 @@ void ITs_tts_cleanup(void)
                }
        }
 
-       elm_shutdown();
        sleep(SLEEP_TIME);
        return;
 }
index c4ad9b5d2d6ca1be6067e40b530940d2672acfa9..b52d60b884986d257c611f86c78a0384f42f2564 100755 (executable)
@@ -15,7 +15,6 @@
 //
 #include "ITs-tts-common.h"
 #include <Ecore.h>
-#include <Elementary.h>
 
 /** @addtogroup itc-tts
 *  @ingroup itc
@@ -128,7 +127,6 @@ void ITs_ttse_startup(void)
        #if DEBUG
                FPRINTF("[Line: %d][%s] TEST SUIT start-up: ITs_TTS_p\\n", __LINE__, API_NAMESPACE);
        #endif
-       elm_init(0,NULL);
        g_bFeatureSupported = true;
        g_bFeatureMismatch = false;
        g_bFeatureNotSupported = false;
@@ -172,7 +170,6 @@ void ITs_ttse_cleanup(void)
 #if DEBUG
        FPRINTF("[Line: %d][%s] TEST SUIT clean-up: ITs_TTSE_p\\n", __LINE__, API_NAMESPACE);
 #endif
-       elm_shutdown();
        return;
 }
 
index a5aa328a6cabc1d2701767a0a7d6c7eb9d4d7829..b597ac60ef51a4cf2fe149d5027db57f97545e86 100755 (executable)
@@ -23,7 +23,6 @@
 #include <voice_control_common.h>
 #include <glib.h>
 #include <Ecore.h>
-#include <Elementary.h>
 
 
 /** @addtogroup itc-voice-control
index 24c298f80d0eb0e9b3ebde5094e532a79a39a43b..4a9d0b6de1bfdc34ecf912933d777cd3977c1c2a 100755 (executable)
@@ -19,7 +19,6 @@
 #include <system_info.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <Elementary.h>
 #include <dlog.h>
 
 
@@ -235,7 +234,6 @@ int VceStartMain()
                }
        }
 
-       elm_init(0, NULL);
        g_bIsVcFeatureSupported = TCTCheckSystemInfoFeatureSupported(MICROPHONEFEATURE, API_NAMESPACE) && TCTCheckSystemInfoFeatureSupported(SPEECHCONTROLFEATURE, API_NAMESPACE);
 
        transfer_arg(&nArgs, &pszArgv);
@@ -277,7 +275,6 @@ int VceStartMain()
  */
 void ITs_voice_control_engine_cleanup(void)
 {
-       elm_shutdown();
        return;
 }
 
index 09ec61175b2c962693c512899219512f4d213a04..08a16b8713ef223a9de8f8738150d856fd29be8b 100755 (executable)
@@ -181,7 +181,6 @@ void ITs_voice_control_startup(void)
                remove(ERR_LOG);
        }
 
-       elm_init(0, NULL);
 
        g_bVoiceControlStartup = false;
        g_bIsVcFeatureSupported = TCTCheckSystemInfoFeatureSupported(MICROPHONEFEATURE, API_NAMESPACE) && TCTCheckSystemInfoFeatureSupported(SPEECHCONTROLFEATURE, API_NAMESPACE);
@@ -214,7 +213,6 @@ void ITs_voice_control_cleanup(void)
                vc_deinitialize();
        }
 
-       elm_shutdown();
        return;
 }
 
index fa3dc7b38de28a5b0850b0c8ce1c1a5079f7b882..f585102bc10b31de9fb210bb362dc291fa7be5a9 100755 (executable)
@@ -16,9 +16,9 @@
 #include "assert.h"
 #include <stdlib.h>
 #include <system_info.h>
-#include <Elementary.h>
 #include <multi_assistant.h>
 #include <multi_assistant_common.h>
+#include <Ecore.h>
 
 static int g_ma_init = false;
 static ma_state_e g_ma_state = MA_STATE_NONE;
@@ -61,7 +61,6 @@ void utc_multi_assistant_startup(void)
                        }
                }
 //     }
-       elm_init(0, NULL);
 
        g_ma_init = false;
        if (true == g_ma_supported) {
@@ -89,7 +88,6 @@ void utc_multi_assistant_startup(void)
 void utc_multi_assistant_cleanup(void)
 {
        int ret = MA_ERROR_NONE;
-       elm_shutdown();
 
        if (true == g_ma_supported) {
                ret = ma_unset_state_changed_cb();
index 4fc1f1fdba86c907cd9d53f74e0f1ff09c6a6c75..dd4df79e2ffa9707ad1b3299dc768f22696d1820 100755 (executable)
@@ -18,8 +18,8 @@
 #include <system_info.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <Elementary.h>
 #include <dlog.h>
+#include <Ecore.h>
 
 #include "assert.h"
 
@@ -42,7 +42,6 @@ void utc_stt_startup(void)
        int ret = -1;
        g_stt_supported = false;
        system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &g_stt_supported);
-       elm_init(0,NULL);
        g_current_state = 0;
        g_error = TIZEN_ERROR_NONE;
 
@@ -71,7 +70,6 @@ void utc_stt_cleanup(void)
        }
        g_stt = NULL;
 
-       elm_shutdown();
 }
 
 static bool __stt_supported_engine_cb(stt_h stt, const char* engine_id, const char* engine_name, void* user_data)
index dcb9c3a0024e8be33d72c06445b22acd27d159e3..be8eb55436a31c85127fb6923709b44119eefdf3 100755 (executable)
@@ -18,7 +18,6 @@
 #include <system_info.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <Elementary.h>
 #include <dlog.h>
 
 #include "assert.h"
@@ -150,7 +149,6 @@ void utc_stte_startup(void)
 {
        /* start of TC */
        system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &g_is_supported);
-       elm_init(0,NULL);
 
        if (g_is_supported == false)
                return;
@@ -185,7 +183,6 @@ void utc_stte_startup(void)
 void utc_stte_cleanup(void)
 {
        /* end of TC */
-       elm_shutdown();
 }
 
 /**
index 3628ed8dad915c6b09760822e932cb8ae88994a5..286390526c09c514857a3aae2d06a419f622c784 100755 (executable)
@@ -17,7 +17,6 @@
 #include <tts.h>
 #include <stdlib.h>
 #include <Ecore.h>
-#include <Elementary.h>
 
 //& set: TTS
 
@@ -50,7 +49,6 @@ static char *g_text = "Speech Synthesis is the artificial production of human sp
 void utc_tts_startup(void)
 {
        system_info_get_platform_bool("http://tizen.org/feature/speech.synthesis",&g_supported);
-       elm_init(0,NULL);
        g_current_state = 0;
        /* start of TC */
        int ret = TTS_ERROR_NONE;
@@ -71,7 +69,6 @@ void utc_tts_startup(void)
 void utc_tts_cleanup(void)
 {
        /* end of TC */
-       elm_shutdown();
        free (g_language);
        g_language = NULL;
 
index 67102b8446c759e9a5b9d738c246dd9fa44a3e63..2d858d64e778fc8437b7f07041f3c7ee0e21fef7 100755 (executable)
@@ -17,7 +17,6 @@
 #include <ttse.h>
 #include <stdlib.h>
 #include <Ecore.h>
-#include <Elementary.h>
 #include <dlog.h>
 
 
@@ -120,7 +119,6 @@ static int engine_get_private_data(const char* key, char** data)
 void utc_ttse_startup(void)
 {
        system_info_get_platform_bool("http://tizen.org/feature/speech.synthesis", &g_is_supported);
-       elm_init(0,NULL);
        /* start of TC */
 
        if (g_is_supported == false)
@@ -155,7 +153,6 @@ void utc_ttse_startup(void)
 void utc_ttse_cleanup(void)
 {
     /* end of TC */
-    elm_shutdown();
 }
 
 /**
index f2943fabd4d15ba6daeb71b663e3de1c9f8cff04..1840e861a98be01ec7fd2a0d14bafdf8409c29bb 100644 (file)
@@ -19,7 +19,6 @@
 #include <system_info.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <Elementary.h>
 #include <dlog.h>
 
 #include "assert.h"
@@ -182,7 +181,6 @@ void utc_vce_startup(void)
                        }
                }
        }
-       elm_init(0, NULL);
 
        transfer_arg(&g_argc, &g_argv);
 
@@ -216,7 +214,6 @@ void utc_vce_startup(void)
 void utc_vce_cleanup(void)
 {
        /* end of TC */
-       elm_shutdown();
 }
 
 /**
index b125304c1f4426a8725e70a7ebd3e3bef3a6fe60..2e754c345c5b199ffd5c376d3a04ad4ebc82f3d4 100755 (executable)
 #include "assert.h"
 #include <stdlib.h>
 #include <system_info.h>
-#include <Elementary.h>
 #include <voice_control.h>
 #include <voice_control_command.h>
 #include <voice_control_common.h>
+#include <Ecore.h>
 
 static int g_vc_init = false;
 static vc_state_e g_vc_state = VC_STATE_NONE;
@@ -74,7 +74,6 @@ void utc_voice_control_startup(void)
                        }
                }
        }
-       elm_init(0, NULL);
 
        g_vc_init = false;
        if (true == g_vc_supported) {
@@ -102,7 +101,6 @@ void utc_voice_control_startup(void)
 void utc_voice_control_cleanup(void)
 {
        int ret = VC_ERROR_NONE;
-       elm_shutdown();
 
        if (true == g_vc_supported) {
                ret = vc_unset_state_changed_cb();