From: shobhit verma Date: Mon, 19 May 2025 04:03:31 +0000 (+0530) Subject: [ITC][voice-control-elm][ACR-1894] Removed deprecated module X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F52%2F324452%2F1;p=test%2Ftct%2Fnative%2Fapi.git [ITC][voice-control-elm][ACR-1894] Removed deprecated module Change-Id: Icadcdbd0e6a76d1983fea99fdf477262f4e09a45 Signed-off-by: shobhit verma --- diff --git a/packaging/itc/native-voice-control-elm-itc.spec b/packaging/itc/native-voice-control-elm-itc.spec deleted file mode 100755 index 1b3aadc3c..000000000 --- a/packaging/itc/native-voice-control-elm-itc.spec +++ /dev/null @@ -1,97 +0,0 @@ -%define MODULE_NAME voice-control-elm -%define MODULE_LIBNAME voice-control-elm -Name: native-%{MODULE_NAME}-itc -Summary: Native API Integration TC (%{name}) -Version: 0.1 -Release: 0 -Group: Development/Tools -License: Apache-2.0 -Source0: %{name}-%{version}.tar.gz -BuildRequires: pkgconfig(%{MODULE_LIBNAME}) -BuildRequires: pkgconfig(capi-appfw-application) -BuildRequires: pkgconfig(capi-system-info) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: cmake -BuildRequires: pkgconfig(bundle) -BuildRequires: pkgconfig(appcore-efl) -BuildRequires: pkgconfig(capi-base-common) -BuildRequires: pkgconfig(evas) -BuildRequires: pkgconfig(eina) -BuildRequires: pkgconfig(ecore) -BuildRequires: pkgconfig(elementary) -BuildRequires: pkgconfig(voice-control-widget) -BuildRequires: pkgconfig(dlog) -BuildRequires: pkgconfig(edje) -BuildRequires: pkgconfig(libxml-2.0) -BuildRequires: pkgconfig(aul) -BuildRequires: pkgconfig(capi-base-common) -BuildRequires: pkgconfig(capi-media-audio-io) -BuildRequires: pkgconfig(capi-media-sound-manager) -BuildRequires: pkgconfig(capi-network-bluetooth) -BuildRequires: pkgconfig(dbus-1) -BuildRequires: pkgconfig(ecore) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(libxml-2.0) -BuildRequires: pkgconfig(vconf) - -%description -Native API Integration TC (%{name}) - -%prep -%setup -q - -%build - -%define PREFIX "%{_libdir}/%{name}" - -export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed" - -%if %{?ASAN_BUILD:1}0 - %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TV:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif -%else - %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TV:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif - %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0 - cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="itc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix} - %endif -%endif - -make %{?jobs:-j%jobs} - -%install -rm -rf %{buildroot} -%make_install -mkdir -p %{buildroot}/usr/share/license -cp LICENSE %{buildroot}/usr/share/license/%{name} - -mkdir -p %{buildroot}/usr/share/packages/ -cp packaging/itc/native-%{MODULE_NAME}-itc.xml %{buildroot}/usr/share/packages/ -mkdir -p %{buildroot}%{APP_PATH}%{name}/bin -#cp templates/external_wrapper.sh %{buildroot}%{APP_PATH}%{name}/bin -%post - -%postun - - -%files -%{APP_PATH}%{name}/* -/usr/share/packages/native-%{MODULE_NAME}-itc.xml -/usr/share/license/%{name} diff --git a/packaging/itc/native-voice-control-elm-itc.xml b/packaging/itc/native-voice-control-elm-itc.xml deleted file mode 100755 index 025899e5a..000000000 --- a/packaging/itc/native-voice-control-elm-itc.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - test - Native API test Application - - - - - - - - - - http://tizen.org/privilege/recorder - - diff --git a/src/itc/voice-control-elm/CMakeLists.txt b/src/itc/voice-control-elm/CMakeLists.txt deleted file mode 100755 index 3e2be8adb..000000000 --- a/src/itc/voice-control-elm/CMakeLists.txt +++ /dev/null @@ -1,60 +0,0 @@ -SET(PKG_NAME "voice-control-elm") - -SET(EXEC_NAME "tct-${PKG_NAME}-native") -SET(RPM_NAME "native-${PKG_NAME}-itc") - -SET(CAPI_LIB "voice-control-elm capi-appfw-application bundle capi-system-info bundle appcore-efl capi-base-common evas eina ecore voice-control-widget dlog edje libxml-2.0 aul capi-base-common capi-media-audio-io capi-media-sound-manager capi-network-bluetooth dbus-1 dlog ecore glib-2.0 libxml-2.0 vconf") -SET(TC_SOURCES - ITs-voice-control-elm-common.c - ITs-voice-control-elm.c -) - -PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED - ${CAPI_LIB} - capi-appfw-application - bundle - capi-system-info - bundle - appcore-efl - capi-base-common - evas - eina - ecore - voice-control-widget - dlog - edje - libxml-2.0 - aul - capi-base-common - capi-media-audio-io - capi-media-sound-manager - capi-network-bluetooth - dbus-1 - dlog - ecore - glib-2.0 - libxml-2.0 - vconf -) - -INCLUDE_DIRECTORIES( - ${${CAPI_LIB}_INCLUDE_DIRS} -) - -ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.c ${TC_SOURCES} ${COMMON_FILE}) -TARGET_LINK_LIBRARIES(${EXEC_NAME} - ${${CAPI_LIB}_LIBRARIES} - bundle -) - -INSTALL(PROGRAMS ${EXEC_NAME} - DESTINATION ${BIN_DIR}/${RPM_NAME}/bin -) - -IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") -ELSE() -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -pie") -ENDIF() diff --git a/src/itc/voice-control-elm/ITs-voice-control-elm-common.c b/src/itc/voice-control-elm/ITs-voice-control-elm-common.c deleted file mode 100755 index b1b887f41..000000000 --- a/src/itc/voice-control-elm/ITs-voice-control-elm-common.c +++ /dev/null @@ -1,326 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#include "ITs-voice-control-elm-common.h" - -/** @addtogroup itc-voice-control-elm -* @ingroup itc -* @{ -*/ - -//Add helper function definitions here - -/** -* @function IterateEcoreLoop -* @description Called to wait -* @parameter NA -* @return NA -*/ -void IterateEcoreLoop(void) -{ - while(g_CallBackHit != true) - { - ecore_main_loop_iterate(); - } -} - -/** -* @function VoiceControlElmGetError -* @description Maps error enums to string values -* @parameter nRet : error code returned -* @return error string -*/ -char* VoiceControlElmGetError(int nRet) -{ - char *szErrorVal = NULL; - switch ( nRet ) - { - case VC_ELM_ERROR_NONE: szErrorVal = "VC_ELM_ERROR_NONE"; break; - case VC_ELM_ERROR_OUT_OF_MEMORY: szErrorVal = "VC_ELM_ERROR_OUT_OF_MEMORY"; break; - case VC_ELM_ERROR_IO_ERROR: szErrorVal = "VC_ELM_ERROR_IO_ERROR"; break; - case VC_ELM_ERROR_INVALID_PARAMETER: szErrorVal = "VC_ELM_ERROR_INVALID_PARAMETER"; break; - case VC_ELM_ERROR_PERMISSION_DENIED: szErrorVal = "VC_ELM_ERROR_PERMISSION_DENIED"; break; - case VC_ELM_ERROR_NOT_SUPPORTED: szErrorVal = "VC_ELM_ERROR_NOT_SUPPORTED"; break; - case VC_ELM_ERROR_INVALID_STATE: szErrorVal = "VC_ELM_ERROR_INVALID_STATE"; break; - case VC_ELM_ERROR_INVALID_LANGUAGE: szErrorVal = "VC_ELM_ERROR_INVALID_LANGUAGE"; break; - case VC_ELM_ERROR_OPERATION_FAILED: szErrorVal = "VC_ELM_ERROR_OPERATION_FAILED"; break; - case VC_ELM_ERROR_OPERATION_REJECTED: szErrorVal = "VC_ELM_ERROR_OPERATION_REJECTED"; break; - default: szErrorVal = "VC_ELM_ERROR_UNKNOWN"; break; - } - return szErrorVal; -} - -/** -* @function WinDel -* @description Callback function registered by evas_object_smart_callback_add API -* @parameter[IN] void*, Evas_Object*, void* -* @return NA. -*/ -void WinDel(void *data, Evas_Object *obj, void *event) -{ - elm_exit(); -} - -/** -* @function CreateEvasWindow -* @description Creates an Evas window object -* @parameter[IN] NA -* @return Evas_Object if successful, otherwise NULL. -*/ -bool CreateEvasWindow(void) -{ - elm_config_accel_preference_set("3d"); - - g_pEvasWindow = elm_win_util_standard_add(PACKAGE, PACKAGE); - CHECK_HANDLE(g_pEvasWindow, "elm_win_util_standard_add"); - elm_win_borderless_set(g_pEvasWindow, EINA_TRUE); - evas_object_smart_callback_add(g_pEvasWindow, "delete,request",WinDel, NULL); - elm_win_autodel_set(g_pEvasWindow, EINA_TRUE); - elm_win_activate(g_pEvasWindow); - evas_object_show(g_pEvasWindow); - - g_pEvasButton = elm_button_add(g_pEvasWindow); - CHECK_HANDLE_CLEANUP(g_pEvasButton, "elm_layout_add", DeleteEvasWindow()); - evas_object_show(g_pEvasButton); - - Elm_Genlist_Item_Class *pListClass = NULL; - pListClass = elm_genlist_item_class_new(); - pListClass->item_style = "default"; - pListClass->func.text_get = NULL; - pListClass->func.content_get = NULL; - pListClass->func.state_get = NULL; - pListClass->func.del = NULL; - - g_pGenList = elm_list_add(g_pEvasWindow); - CHECK_HANDLE_CLEANUP(g_pGenList, "elm_list_add", DeleteEvasWindow()); - evas_object_show(g_pGenList); - - g_pEvasItem = elm_list_item_append(g_pGenList, TESTSTRING, NULL, NULL, NULL, NULL); - CHECK_HANDLE_CLEANUP(g_pEvasItem, "elm_list_item_append", DeleteEvasWindow()); - - return 0; -} - -/** -* @function DeleteEvasWindow -* @description Delete Evas window object -* @parameter[IN] NA -* @return NA -*/ -void DeleteEvasWindow(void) -{ - if ( g_pEvasItem ) - { - elm_object_item_del(g_pEvasItem); - g_pEvasItem = NULL; - } - if ( g_pGenList ) - { - evas_object_del(g_pGenList); - g_pGenList = NULL; - } - if ( g_pEvasButton ) - { - evas_object_del(g_pEvasButton); - g_pEvasButton = NULL; - } - if ( g_pEvasWindow ) - { - evas_object_del(g_pEvasWindow); - g_pEvasWindow = NULL; - } -} - -/** -* @function GetWidgetName -* @description Get Widget Name -* @parameter NA -* @return NA -*/ -bool GetWidgetName(void) -{ - int nRet = -1; - - g_CallBackHit = false; - nRet = vc_elm_foreach_supported_widgets(WidgetSupportedCallback, NULL); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_foreach_supported_widgets", VoiceControlElmGetError(nRet)); - IterateEcoreLoop(); - PRINT_RESULT(true, g_CallBackHit, "vc_elm_foreach_supported_widgets", "CallBack Not Invoked"); - - return 0; -} - -/** -* @function GetActionName -* @description Get Action Name -* @parameter NA -* @return NA -*/ -bool GetActionName(void) -{ - int nRet = -1; - - nRet = GetWidgetName(); - PRINT_RESULT(0, nRet, "GetWidgetName", "Return Value Not Correct"); - - g_CallBackHit = false; - nRet = vc_elm_foreach_supported_actions(g_szWidget, ActionSupportedCallback, NULL); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_foreach_supported_actions", VoiceControlElmGetError(nRet)); - IterateEcoreLoop(); - PRINT_RESULT(true, g_CallBackHit, "vc_elm_foreach_supported_actions", "CallBack Not Invoked"); - - return 0; -} - -/** -* @function GetCommandName -* @description Get Command Name -* @parameter NA -* @return NA -*/ -bool GetCommandName(void) -{ - int nRet = -1; - char *pszCommand = NULL; - - nRet = GetActionName(); - PRINT_RESULT(0, nRet, "GetActionName", "Return Value Not Correct"); - - nRet = vc_elm_get_action_command(g_szAction, &pszCommand); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_get_action_command", VoiceControlElmGetError(nRet)); - CHECK_HANDLE(pszCommand, "vc_elm_get_action_command"); - strncpy(g_szCommand, pszCommand, PATH_LEN); - FREE_MEMORY(pszCommand); - - return 0; -} - -/** -* @function CreateVcElmObject -* @description create a vc elm object -* @parameter NA -* @return NA -*/ -bool CreateVcElmObject(void) -{ - int nRet = -1; - nRet = CreateEvasWindow(); - PRINT_RESULT(0, nRet, "CreateEvasWindow", "Return Value Not Correct"); - - nRet = vc_elm_create_object(g_pEvasButton, &g_hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_create_object", VoiceControlElmGetError(nRet), DeleteVcElmObject()); - - return 0; -} - -/** -* @function DeleteVcElmObject -* @description delete a vc elm object -* @parameter NA -* @return NA -*/ -bool DeleteVcElmObject(void) -{ - int nRet = -1; - if ( g_hVcElm ) - { - nRet = vc_elm_destroy(g_hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_destroy", VoiceControlElmGetError(nRet), DeleteEvasWindow()); - g_hVcElm = NULL; - } - - DeleteEvasWindow(); - - return 0; -} - -/** -* @function CreateVcElmObjectWithCommand -* @description create a vc elm object with command -* @parameter NA -* @return NA -*/ -bool CreateVcElmObjectWithCommand(void) -{ - int nRet = -1; - - nRet = GetCommandName(); - PRINT_RESULT(0, nRet, "GetCommandName", "Return Value Not Correct"); - - nRet = CreateVcElmObject(); - PRINT_RESULT(0, nRet, "CreateVcElmObject", "Return Value Not Correct"); - - nRet = vc_elm_set_command(g_hVcElm, g_szCommand); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_command", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommand()); - - return 0; -} - -/** -* @function DeleteVcElmObjectWithCommand -* @description delete a vc elm object with command -* @parameter NA -* @return NA -*/ -bool DeleteVcElmObjectWithCommand(void) -{ - int nRet = -1; - - nRet = vc_elm_unset_command(g_hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_unset_command", VoiceControlElmGetError(nRet), DeleteVcElmObject()); - - DeleteVcElmObject(); - - return 0; -} - -/** -* @function CreateVcElmObjectWithCommandHint -* @description create a vc elm object with command hint -* @parameter NA -* @return NA -*/ -bool CreateVcElmObjectWithCommandHint(void) -{ - int nRet = -1; - - nRet = CreateVcElmObjectWithCommand(); - PRINT_RESULT(0, nRet, "CreateVcElmObjectWithCommand", "Return Value Not Correct"); - - nRet = vc_elm_set_command_hint(g_hVcElm, COMMANDHINT); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_command_hint", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommandHint()); - - return 0; -} - -/** -* @function DeleteVcElmObjectWithCommandHint -* @description delete a vc elm object with command -* @parameter NA -* @return NA -*/ -bool DeleteVcElmObjectWithCommandHint(void) -{ - int nRet = -1; - - nRet = vc_elm_unset_command_hint(g_hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_unset_command_hint", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommand()); - - DeleteVcElmObjectWithCommand(); - - return 0; -} - -/** @} */ \ No newline at end of file diff --git a/src/itc/voice-control-elm/ITs-voice-control-elm-common.h b/src/itc/voice-control-elm/ITs-voice-control-elm-common.h deleted file mode 100755 index a4ed1de83..000000000 --- a/src/itc/voice-control-elm/ITs-voice-control-elm-common.h +++ /dev/null @@ -1,127 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#ifndef _ITS_VOICE_CONTROL_ELM_COMMON_H_ -#define _ITS_VOICE_CONTROL_ELM_COMMON_H_ - -//Add test package related includes here -#include "tct_common.h" -#include -#include -#include - -/** @addtogroup itc-voice-control-elm -* @ingroup itc -* @{ -*/ - -//Add test package related defines here -#define API_NAMESPACE "VOICE_CONTROL_ELM_ITC" -#define MICROPHONEFEATURE "http://tizen.org/feature/microphone" -#define SPEECHCONTROLFEATURE "http://tizen.org/feature/speech.control" -#define TESTSTRING "test" -#define PACKAGE "VOICE_CONTROL_ELM_ITC" -#define PATH_LEN 1024 -#define COMMANDHINT "TestHint" - -#define START_TEST {\ - FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\ - if ( !g_bVoiceControlStartup )\ - {\ - FPRINTF("[Line : %d][%s] Precondition of voice-control-elm failed so leaving test\\n", __LINE__, API_NAMESPACE);\ - return 1;\ - }\ - else if ( g_bVoiceControlStartup == true && g_bIsVcFeatureSupported == false )\ - {\ - FPRINTF("[Line : %d][%s] Microphone/SpeechControl feature is not supported and api also returned not supported so leaving test\\n", __LINE__, API_NAMESPACE);\ - return 0;\ - }\ -} - -#define CHECK_HANDLE_CLEANUP(Handle, API, FreeResource) {\ - if ( Handle == NULL )\ - {\ - FPRINTF("[Line : %d][%s] %s failed, error returned = Handle returned is NULL\\n", __LINE__, API_NAMESPACE, API);\ - FreeResource;\ - return 1;\ - }\ -} - -#define PRINT_RESULTNONE_CLEANUP(eCompare, eRetVal, API, Error, FreeResource) {\ - if ( eRetVal == eCompare )\ - {\ - if ( DEBUG )\ - {\ - FPRINTF("[Line : %d][%s] %s passed\\n", __LINE__, API_NAMESPACE, API);\ - }\ - }\ - else \ - {\ - FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, API, Error, eRetVal);\ - FreeResource;\ - return;\ - }\ -} - -#define PRINT_RESULTNONE(eCompare, eRetVal, API, Error) {\ - if ( eRetVal == eCompare )\ - {\ - if ( DEBUG )\ - {\ - FPRINTF("[Line : %d][%s] %s passed\\n", __LINE__, API_NAMESPACE, API);\ - }\ - }\ - else \ - {\ - FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, API, Error, eRetVal);\ - return;\ - }\ -} - -//Add test package related global variables here -bool g_bVoiceControlStartup; -bool g_bIsVcFeatureSupported; -bool g_CallBackHit; -Evas_Object *g_pEvasWindow; -Evas_Object *g_pEvasButton; -Evas_Object *g_pGenList; -Elm_Object_Item *g_pEvasItem; -char g_szWidget[PATH_LEN]; -char g_szAction[PATH_LEN]; -char g_szCommand[PATH_LEN]; -vc_elm_h g_hVcElm; - -//Add callback function declarations here -bool WidgetSupportedCallback(const char* widget, void* user_data); -bool ActionSupportedCallback(const char* action, void* user_data); - -//Add test package function declarations here -void IterateEcoreLoop(void); -char* VoiceControlElmGetError(int nRet); -void WinDel(void *data, Evas_Object *obj, void *event); -bool CreateEvasWindow(void); -void DeleteEvasWindow(void); -bool GetWidgetName(void); -bool GetActionName(void); -bool GetCommandName(void); -bool CreateVcElmObject(void); -bool DeleteVcElmObject(void); -bool CreateVcElmObjectWithCommand(void); -bool DeleteVcElmObjectWithCommand(void); -bool CreateVcElmObjectWithCommandHint(void); -bool DeleteVcElmObjectWithCommandHint(void); - -/** @} */ -#endif //_ITS_VOICE_CONTROL_ELM_COMMON_H_ diff --git a/src/itc/voice-control-elm/ITs-voice-control-elm.c b/src/itc/voice-control-elm/ITs-voice-control-elm.c deleted file mode 100755 index 3c214f07c..000000000 --- a/src/itc/voice-control-elm/ITs-voice-control-elm.c +++ /dev/null @@ -1,630 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#include "ITs-voice-control-elm-common.h" - -//& set: VoiceControl-elm - -/** @addtogroup itc-voice-control-elm -* @ingroup itc -* @{ -*/ - -/****************************************************Callback Start****************************************************/ - -/** - * @function LanguageChangedCallBack - * @description Callback Function - * @parameter const char* previous, const char* current, void* user_data - * @return NA - */ -static void LanguageChangedCallBack(const char* previous, const char* current, void* user_data) -{ - if ( previous == NULL || current == NULL ) - { - FPRINTF("[Line : %d][%s] Invalid parameter in callback LanguageChangedCallBack\\n", __LINE__, API_NAMESPACE); - return; - } -#if DEBUG - FPRINTF("[Line : %d][%s] %s Callback Invoked\\n", __LINE__, API_NAMESPACE, "LanguageChangedCallBack"); -#endif - - g_CallBackHit = true; - return; -} - -/** - * @function LanguageSupportedCallback - * @description Callback Function - * @parameter const char* language, void* user_data - * @return NA - */ -static bool LanguageSupportedCallback(const char* language, void* user_data) -{ - if ( language == NULL ) - { - FPRINTF("[Line : %d][%s] Invalid parameter in callback LanguageSupportedCallback\\n", __LINE__, API_NAMESPACE); - return false; - } -#if DEBUG - FPRINTF("[Line : %d][%s] %s Callback Invoked\\n", __LINE__, API_NAMESPACE, "LanguageSupportedCallback"); -#endif - - g_CallBackHit = true; - return false; -} - -/** - * @function WidgetSupportedCallback - * @description Callback Function - * @parameter const char* widget, void* user_data - * @return NA - */ -bool WidgetSupportedCallback(const char* widget, void* user_data) -{ - if ( widget == NULL ) - { - FPRINTF("[Line : %d][%s] Invalid parameter in callback WidgetSupportedCallback\\n", __LINE__, API_NAMESPACE); - return false; - } -#if DEBUG - FPRINTF("[Line : %d][%s] %s Callback Invoked\\n", __LINE__, API_NAMESPACE, "WidgetSupportedCallback"); -#endif - - g_CallBackHit = true; - strncpy(g_szWidget, widget, PATH_LEN - 1 ); - return false; -} - -/** - * @function ActionSupportedCallback - * @description Callback Function - * @parameter const char* action, void* user_data - * @return NA - */ -bool ActionSupportedCallback(const char* action, void* user_data) -{ - if ( action == NULL ) - { - FPRINTF("[Line : %d][%s] Invalid parameter in callback ActionSupportedCallback\\n", __LINE__, API_NAMESPACE); - return false; - } -#if DEBUG - FPRINTF("[Line : %d][%s] %s Callback Invoked\\n", __LINE__, API_NAMESPACE, "ActionSupportedCallback"); -#endif - - g_CallBackHit = true; - strncpy(g_szAction, action, PATH_LEN - 1); - return false; -} - -/*****************************************************Callback End*****************************************************/ - -/** - * @function ITs_voice_control_elm_startup - * @description Called before each test - * @parameter NA - * @return NA - */ -void ITs_voice_control_elm_startup(void) -{ - struct stat stBuff; - if ( stat(ERR_LOG, &stBuff) == 0 ) - { - remove(ERR_LOG); - } - - g_bVoiceControlStartup = false; - g_bIsVcFeatureSupported = TCTCheckSystemInfoFeatureSupported(MICROPHONEFEATURE, API_NAMESPACE) && TCTCheckSystemInfoFeatureSupported(SPEECHCONTROLFEATURE, API_NAMESPACE); - int nRet = vc_elm_initialize(); - if ( !g_bIsVcFeatureSupported) - { - FPRINTF("[Line : %d][%s] Microphone/SpeechControl feature not supported\\n", __LINE__, API_NAMESPACE); - PRINT_RESULTNONE_CLEANUP(VC_ELM_ERROR_NOT_SUPPORTED, nRet, "vc_elm_initialize", VoiceControlElmGetError(nRet), vc_elm_deinitialize()); - } - else - { - PRINT_RESULTNONE(VC_ELM_ERROR_NONE, nRet, "vc_elm_initialize", VoiceControlElmGetError(nRet)); - } - - g_bVoiceControlStartup = true; - return; -} - - -/** - * @function ITs_voice_control_elm_cleanup - * @description Called after each test - * @parameter NA - * @return NA - */ -void ITs_voice_control_elm_cleanup(void) -{ - if ( g_bVoiceControlStartup == true && g_bIsVcFeatureSupported == true ) - { - vc_elm_deinitialize(); - } - return; -} - -/** @addtogroup itc-voice-control-elm-testcases -* @brief Integration testcases for module voice-control-elm -* @ingroup itc-voice-control-elm -* @{ -*/ - -/** - * @testcase ITc_vc_elm_initialize_deinitialize_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_initialize and vc_elm_deinitialize - * @scenario Call vc_elm_initialize, vc_elm_deinitialize - * @apicovered vc_elm_initialize, vc_elm_deinitialize - * @passcase If vc_elm_initialize and vc_elm_deinitialize returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_initialize and vc_elm_deinitialize -int ITc_vc_elm_initialize_deinitialize_p(void) -{ - START_TEST; - int nRet = -1; - - nRet = vc_elm_deinitialize(); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_deinitialize", VoiceControlElmGetError(nRet)); - - nRet = vc_elm_initialize(); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_initialize", VoiceControlElmGetError(nRet)); - - nRet = vc_elm_deinitialize(); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_deinitialize", VoiceControlElmGetError(nRet)); - - nRet = vc_elm_initialize(); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_initialize", VoiceControlElmGetError(nRet)); - - return 0; -} - -/** - * @testcase ITc_vc_elm_get_current_language_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_get_current_language - * @scenario Call vc_elm_get_current_language - * @apicovered vc_elm_get_current_language - * @passcase If vc_elm_get_current_language returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_get_current_language -int ITc_vc_elm_get_current_language_p(void) -{ - START_TEST; - int nRet = -1; - char *szLanguage = NULL; - - nRet = vc_elm_get_current_language(&szLanguage); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_get_current_language", VoiceControlElmGetError(nRet)); - - if ( szLanguage == NULL ) - { - FPRINTF("[Line : %d][%s] vc_elm_get_current_language failed. szLanguage is NULL\\n", __LINE__, API_NAMESPACE); - return 1; - } - FREE_MEMORY(szLanguage); - - return 0; -} - -/** - * @testcase ITc_vc_elm_set_unset_current_language_changed_cb_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_set_current_language_changed_cb and vc_elm_unset_current_language_changed_cb - * @scenario Call vc_elm_set_current_language_changed_cb, vc_elm_unset_current_language_changed_cb - * @apicovered vc_elm_set_current_language_changed_cb, vc_elm_unset_current_language_changed_cb - * @passcase If vc_elm_set_current_language_changed_cb and vc_elm_unset_current_language_changed_cb returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_set_current_language_changed_cb and vc_elm_unset_current_language_changed_cb -int ITc_vc_elm_set_unset_current_language_changed_cb_p(void) -{ - START_TEST; - int nRet = -1; - - nRet = vc_elm_set_current_language_changed_cb(LanguageChangedCallBack, NULL); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_current_language_changed_cb", VoiceControlElmGetError(nRet)); - - nRet = vc_elm_unset_current_language_changed_cb(); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_unset_current_language_changed_cb", VoiceControlElmGetError(nRet)); - - return 0; -} - -/** - * @testcase ITc_vc_elm_foreach_supported_languages_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_foreach_supported_languages - * @scenario Call vc_elm_foreach_supported_languages - * @apicovered vc_elm_foreach_supported_languages - * @passcase If vc_elm_foreach_supported_languages returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_foreach_supported_languages -int ITc_vc_elm_foreach_supported_languages_p(void) -{ - START_TEST; - int nRet = -1; - - g_CallBackHit = false; - nRet = vc_elm_foreach_supported_languages(LanguageSupportedCallback, NULL); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_foreach_supported_languages", VoiceControlElmGetError(nRet)); - IterateEcoreLoop(); - PRINT_RESULT(true, g_CallBackHit, "vc_elm_foreach_supported_languages", "CallBack Not Invoked"); - - return 0; -} - -/** - * @testcase ITc_vc_elm_foreach_supported_widgets_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_foreach_supported_widgets - * @scenario Call vc_elm_foreach_supported_widgets - * @apicovered vc_elm_foreach_supported_widgets - * @passcase If vc_elm_foreach_supported_widgets returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_foreach_supported_widgets -int ITc_vc_elm_foreach_supported_widgets_p(void) -{ - START_TEST; - int nRet = -1; - - g_CallBackHit = false; - nRet = vc_elm_foreach_supported_widgets(WidgetSupportedCallback, NULL); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_foreach_supported_widgets", VoiceControlElmGetError(nRet)); - IterateEcoreLoop(); - PRINT_RESULT(true, g_CallBackHit, "vc_elm_foreach_supported_widgets", "CallBack Not Invoked"); - - return 0; -} - -/** - * @testcase ITc_vc_elm_create_destroy_object_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_create_object and vc_elm_destroy - * @scenario Call vc_elm_create_object, vc_elm_destroy - * @apicovered vc_elm_create_object, vc_elm_destroy - * @passcase If vc_elm_create_object and vc_elm_destroy returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_create_object and vc_elm_destroy -int ITc_vc_elm_create_destroy_object_p(void) -{ - START_TEST; - int nRet = -1; - vc_elm_h hVcElm = NULL; - - nRet = CreateEvasWindow(); - PRINT_RESULT(0, nRet, "CreateEvasWindow", "Return Value Not Correct"); - - nRet = vc_elm_create_object(g_pEvasButton, &hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_create_object", VoiceControlElmGetError(nRet), DeleteEvasWindow()); - - if ( hVcElm == NULL ) - { - FPRINTF("[Line : %d][%s] vc_elm_create_object failed. hVcElm is NULL\\n", __LINE__, API_NAMESPACE); - DeleteEvasWindow(); - return 1; - } - - nRet = vc_elm_destroy(hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_destroy", VoiceControlElmGetError(nRet), DeleteEvasWindow()); - - DeleteEvasWindow(); - - return 0; -} - -/** - * @testcase ITc_vc_elm_create_destroy_item_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_create_item and vc_elm_destroy - * @scenario Call vc_elm_create_item, vc_elm_destroy - * @apicovered vc_elm_create_item, vc_elm_destroy - * @passcase If vc_elm_create_item and vc_elm_destroy returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_create_item and vc_elm_destroy -int ITc_vc_elm_create_destroy_item_p(void) -{ - START_TEST; - int nRet = -1; - vc_elm_h hVcElm = NULL; - - nRet = CreateEvasWindow(); - PRINT_RESULT(0, nRet, "CreateEvasWindow", "Return Value Not Correct"); - - nRet = vc_elm_create_item(g_pEvasItem, &hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_create_item", VoiceControlElmGetError(nRet), DeleteEvasWindow()); - - if ( hVcElm == NULL ) - { - FPRINTF("[Line : %d][%s] vc_elm_create_item failed. hVcElm is NULL\\n", __LINE__, API_NAMESPACE); - DeleteEvasWindow(); - return 1; - } - - nRet = vc_elm_destroy(hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_destroy", VoiceControlElmGetError(nRet), DeleteEvasWindow()); - - DeleteEvasWindow(); - - return 0; -} - -/** - * @testcase ITc_vc_elm_foreach_supported_actions_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_foreach_supported_actions - * @scenario Call vc_elm_foreach_supported_actions - * @apicovered vc_elm_foreach_supported_actions - * @passcase If vc_elm_foreach_supported_actions returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_foreach_supported_actions -int ITc_vc_elm_foreach_supported_actions_p(void) -{ - START_TEST; - int nRet = -1; - - nRet = GetWidgetName(); - PRINT_RESULT(0, nRet, "GetWidgetName", "Return Value Not Correct"); - - g_CallBackHit = false; - nRet = vc_elm_foreach_supported_actions(g_szWidget, ActionSupportedCallback, NULL); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_foreach_supported_actions", VoiceControlElmGetError(nRet)); - IterateEcoreLoop(); - PRINT_RESULT(true, g_CallBackHit, "vc_elm_foreach_supported_actions", "CallBack Not Invoked"); - - return 0; -} - -/** - * @testcase ITc_vc_elm_get_action_command_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_get_action_command - * @scenario Call vc_elm_get_action_command - * @apicovered vc_elm_get_action_command - * @passcase If vc_elm_get_action_command returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_get_action_command -int ITc_vc_elm_get_action_command_p(void) -{ - START_TEST; - int nRet = -1; - char *pszCommand = NULL; - - nRet = GetActionName(); - PRINT_RESULT(0, nRet, "GetActionName", "Return Value Not Correct"); - - nRet = vc_elm_get_action_command(g_szAction, &pszCommand); - PRINT_RESULT(VC_ELM_ERROR_NONE, nRet, "vc_elm_get_action_command", VoiceControlElmGetError(nRet)); - CHECK_HANDLE(pszCommand, "vc_elm_get_action_command"); - FREE_MEMORY(pszCommand); - - return 0; -} - -/** - * @testcase ITc_vc_elm_set_unset_command_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_set_command and vc_elm_unset_command - * @scenario Call vc_elm_set_command, vc_elm_unset_command - * @apicovered vc_elm_set_command, vc_elm_unset_command - * @passcase If vc_elm_set_command and vc_elm_unset_command returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_set_command and vc_elm_unset_command -int ITc_vc_elm_set_unset_command_p(void) -{ - START_TEST; - int nRet = -1; - - nRet = GetCommandName(); - PRINT_RESULT(0, nRet, "GetCommandName", "Return Value Not Correct"); - - nRet = CreateVcElmObject(); - PRINT_RESULT(0, nRet, "CreateVcElmObject", "Return Value Not Correct"); - - nRet = vc_elm_set_command(g_hVcElm, g_szCommand); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_command", VoiceControlElmGetError(nRet), DeleteVcElmObject()); - - nRet = vc_elm_unset_command(g_hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_unset_command", VoiceControlElmGetError(nRet), DeleteVcElmObject()); - - DeleteVcElmObject(); - - return 0; -} - -/** - * @testcase ITc_vc_elm_set_unset_command_hint_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_set_command_hint and vc_elm_unset_command_hint - * @scenario Call vc_elm_set_command_hint, vc_elm_unset_command_hint - * @apicovered vc_elm_set_command_hint, vc_elm_unset_command_hint - * @passcase If vc_elm_set_command_hint and vc_elm_unset_command_hint returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_set_command_hint and vc_elm_unset_command_hint -int ITc_vc_elm_set_unset_command_hint_p(void) -{ - START_TEST; - int nRet = -1; - - nRet = CreateVcElmObjectWithCommand(); - PRINT_RESULT(0, nRet, "CreateVcElmObjectWithCommand", "Return Value Not Correct"); - - nRet = vc_elm_set_command_hint(g_hVcElm, COMMANDHINT); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_command_hint", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommand()); - - nRet = vc_elm_unset_command_hint(g_hVcElm); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_unset_command_hint", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommand()); - - DeleteVcElmObjectWithCommand(); - - return 0; -} - -/** - * @testcase ITc_vc_elm_set_get_command_hint_direction_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_set_command_hint_direction and vc_elm_get_command_hint_direction - * @scenario Call vc_elm_set_command_hint_direction, vc_elm_get_command_hint_direction - * @apicovered vc_elm_set_command_hint_direction, vc_elm_get_command_hint_direction - * @passcase If vc_elm_set_command_hint_direction and vc_elm_get_command_hint_direction returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_set_command_hint_direction and vc_elm_get_command_hint_direction -int ITc_vc_elm_set_get_command_hint_direction_p(void) -{ - START_TEST; - int nRet = -1; - vc_elm_direction_e eDirection = VC_ELM_DIRECTION_RIGHT; - - nRet = CreateVcElmObjectWithCommandHint(); - PRINT_RESULT(0, nRet, "CreateVcElmObjectWithCommandHint", "Return Value Not Correct"); - - nRet = vc_elm_set_command_hint_direction(g_hVcElm, VC_ELM_DIRECTION_CENTER); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_command_hint_direction", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommandHint()); - - nRet = vc_elm_get_command_hint_direction(g_hVcElm, &eDirection); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_get_command_hint_direction", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommandHint()); - PRINT_RESULT_CLEANUP(VC_ELM_DIRECTION_CENTER, eDirection, "vc_elm_get_command_hint_direction", "Direction Mismatch", DeleteVcElmObjectWithCommandHint()); - - DeleteVcElmObjectWithCommandHint(); - - return 0; -} - -/** - * @testcase ITc_vc_elm_set_get_command_hint_offset_p - * @author SRID(abhishek1.g) - * @reviewer SRID(gupta.sanjay) - * @type auto - * @since_tizen 2.4 - * @description To test vc_elm_set_command_hint_offset and vc_elm_get_command_hint_offset - * @scenario Call vc_elm_set_command_hint_offset, vc_elm_get_command_hint_offset - * @apicovered vc_elm_set_command_hint_offset, vc_elm_get_command_hint_offset - * @passcase If vc_elm_set_command_hint_offset and vc_elm_get_command_hint_offset returns VC_ELM_ERROR_NONE - * @failcase If Precondition API or Target API Fails - * @precondition NA - * @postcondition NA - * */ -//& type: auto -//& purpose: To test vc_elm_set_command_hint_offset and vc_elm_get_command_hint_offset -int ITc_vc_elm_set_get_command_hint_offset_p(void) -{ - START_TEST; - int nRet = -1; - int nXoffset = 1, nYoffset = 1; - - nRet = CreateVcElmObjectWithCommandHint(); - PRINT_RESULT(0, nRet, "CreateVcElmObjectWithCommandHint", "Return Value Not Correct"); - - nRet = vc_elm_set_command_hint_offset(g_hVcElm, 0, 0); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_set_command_hint_offset", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommandHint()); - - nRet = vc_elm_get_command_hint_offset(g_hVcElm, &nXoffset, &nYoffset); - PRINT_RESULT_CLEANUP(VC_ELM_ERROR_NONE, nRet, "vc_elm_get_command_hint_offset", VoiceControlElmGetError(nRet), DeleteVcElmObjectWithCommandHint()); - PRINT_RESULT_CLEANUP(0, nXoffset, "vc_elm_get_command_hint_offset", "X Offset Mismatch", DeleteVcElmObjectWithCommandHint()); - PRINT_RESULT_CLEANUP(0, nYoffset, "vc_elm_get_command_hint_offset", "Y Offset Mismatch", DeleteVcElmObjectWithCommandHint()); - - DeleteVcElmObjectWithCommandHint(); - - return 0; -} - -/** @} */ -/** @} */ \ No newline at end of file diff --git a/src/itc/voice-control-elm/tct-voice-control-elm-native.c b/src/itc/voice-control-elm/tct-voice-control-elm-native.c deleted file mode 100755 index dfd5aba35..000000000 --- a/src/itc/voice-control-elm/tct-voice-control-elm-native.c +++ /dev/null @@ -1,150 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#include -#include -#include "tct_common.h" - -#ifdef MOBILE //Starts MOBILE -#include "tct-voice-control-elm-native_mobile.h" -#endif //MOBILE //End MOBILE - -#ifdef WEARABLE //Starts WEARABLE -#include "tct-voice-control-elm-native_wearable.h" -#endif //WEARABLE //End WEARABLE - -#ifdef TV //Starts TV -#include "tct-voice-control-elm-native_tv.h" -#endif //TV //End TV - -#ifdef TIZENIOT //Starts TIZENIOT -#include "tct-voice-control-elm-native_tizeniot.h" -#endif //TIZENIOT //End TIZENIOT - - -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#include -#include -#include -#include - -static char* key; -static char* fname; -static int nNum; -int run_testcases() -{ - int result = -1; - int i; - gsize byte_size; - const gchar* encoded_byte; - guchar* byte = NULL; - - static const size_t sz_byte_len = sizeof(size_t); - static const size_t sz_type = sizeof(int); - static const size_t sz_keysize = sizeof(size_t); - static const size_t sz_size = sizeof(size_t); - - char* func_name = fname;//argv[1]; - if (nNum > 2) - { - encoded_byte = key;//argv[3]; - byte = g_base64_decode(encoded_byte,&byte_size); - byte += sz_byte_len; byte += sz_type; - size_t keysize = *((size_t *)byte); byte += sz_keysize; - byte += keysize; - size_t size = *((size_t *)byte); byte += sz_size; - void *val = (void *)byte; byte += size; - func_name = strdup((char *)val); - } - - dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Executing TC Name = %s", __FUNCTION__, __LINE__, func_name); - - for (i = 0; tc_array[i].name; i++) { - if (!strncmp(func_name, tc_array[i].name, strlen(func_name))) { - dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup begin", func_name); - if ( tc_array[i].startup ) - { - tc_array[i].startup(); - } - dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup end", func_name); - - dlog_print(DLOG_INFO, "NativeTCT", "%s : Body begin", func_name); - result = tc_array[i].function(); - dlog_print(DLOG_INFO, "NativeTCT", "%s : Body end", func_name); - - dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup begin", func_name); - if ( tc_array[i].cleanup ) - { - tc_array[i].cleanup(); - } - dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup end", func_name); - FILE *fres = fopen("/tmp/tcresult","w"); - if(!fres) - { - free(func_name); - printf("Unable to open tcresult file.\n"); - return 2; - } - fprintf(fres, "%d", result); - fclose(fres); - free(func_name); - return result; - } - } - - dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__, func_name); - - printf("Unknown testcase name: \"%s\"\n", func_name); - return 2; -} - - -static bool app_create(void *data) -{ - run_testcases(); - return false; // quit app -} - -int main(int argc, char *argv[]) -{ - int ret = 0; - fname = argv[1]; - key = argv[3]; - nNum = argc; - ui_app_lifecycle_callback_s event_callback = {0,}; - event_callback.create = app_create; - - //setting gcda file location for coverage - setenv("GCOV_PREFIX","/tmp",1); - dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Coverage *.gcda File location set to /tmp/home/abuild/rpmbuild/BUILD/ ", __FUNCTION__, __LINE__); - - dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Main Function is Invoked", __FUNCTION__, __LINE__); - ret = ui_app_main(argc, argv, &event_callback, NULL); - if (ret != APP_ERROR_NONE) - { - FPRINTF("\\n[Line No : %d]Unable to execute test cases: ui_app_main API call gets failed\n", __LINE__); - } - return ret; -} diff --git a/src/itc/voice-control-elm/tct-voice-control-elm-native_mobile.h b/src/itc/voice-control-elm/tct-voice-control-elm-native_mobile.h deleted file mode 100755 index 6a6ddf127..000000000 --- a/src/itc/voice-control-elm/tct-voice-control-elm-native_mobile.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#ifndef __TCT_VOICE-CONTROL-ELM-NATIVE_H__ -#define __TCT_VOICE-CONTROL-ELM-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void ITs_voice_control_elm_startup(void); -extern void ITs_voice_control_elm_cleanup(void); - -extern int ITc_vc_elm_initialize_deinitialize_p(void); -extern int ITc_vc_elm_get_current_language_p(void); -extern int ITc_vc_elm_set_unset_current_language_changed_cb_p(void); -extern int ITc_vc_elm_foreach_supported_languages_p(void); -extern int ITc_vc_elm_foreach_supported_widgets_p(void); -extern int ITc_vc_elm_create_destroy_object_p(void); -extern int ITc_vc_elm_create_destroy_item_p(void); -extern int ITc_vc_elm_foreach_supported_actions_p(void); -extern int ITc_vc_elm_get_action_command_p(void); -extern int ITc_vc_elm_set_unset_command_p(void); -extern int ITc_vc_elm_set_unset_command_hint_p(void); -extern int ITc_vc_elm_set_get_command_hint_direction_p(void); -extern int ITc_vc_elm_set_get_command_hint_offset_p(void); - -testcase tc_array[] = { - {"ITc_vc_elm_initialize_deinitialize_p",ITc_vc_elm_initialize_deinitialize_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_current_language_p",ITc_vc_elm_get_current_language_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_current_language_changed_cb_p",ITc_vc_elm_set_unset_current_language_changed_cb_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_languages_p",ITc_vc_elm_foreach_supported_languages_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_widgets_p",ITc_vc_elm_foreach_supported_widgets_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_object_p",ITc_vc_elm_create_destroy_object_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_item_p",ITc_vc_elm_create_destroy_item_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_actions_p",ITc_vc_elm_foreach_supported_actions_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_action_command_p",ITc_vc_elm_get_action_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_p",ITc_vc_elm_set_unset_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_hint_p",ITc_vc_elm_set_unset_command_hint_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_direction_p",ITc_vc_elm_set_get_command_hint_direction_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_offset_p",ITc_vc_elm_set_get_command_hint_offset_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_VOICE-CONTROL-ELM-NATIVE_H__ diff --git a/src/itc/voice-control-elm/tct-voice-control-elm-native_tizeniot.h b/src/itc/voice-control-elm/tct-voice-control-elm-native_tizeniot.h deleted file mode 100755 index 6a6ddf127..000000000 --- a/src/itc/voice-control-elm/tct-voice-control-elm-native_tizeniot.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#ifndef __TCT_VOICE-CONTROL-ELM-NATIVE_H__ -#define __TCT_VOICE-CONTROL-ELM-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void ITs_voice_control_elm_startup(void); -extern void ITs_voice_control_elm_cleanup(void); - -extern int ITc_vc_elm_initialize_deinitialize_p(void); -extern int ITc_vc_elm_get_current_language_p(void); -extern int ITc_vc_elm_set_unset_current_language_changed_cb_p(void); -extern int ITc_vc_elm_foreach_supported_languages_p(void); -extern int ITc_vc_elm_foreach_supported_widgets_p(void); -extern int ITc_vc_elm_create_destroy_object_p(void); -extern int ITc_vc_elm_create_destroy_item_p(void); -extern int ITc_vc_elm_foreach_supported_actions_p(void); -extern int ITc_vc_elm_get_action_command_p(void); -extern int ITc_vc_elm_set_unset_command_p(void); -extern int ITc_vc_elm_set_unset_command_hint_p(void); -extern int ITc_vc_elm_set_get_command_hint_direction_p(void); -extern int ITc_vc_elm_set_get_command_hint_offset_p(void); - -testcase tc_array[] = { - {"ITc_vc_elm_initialize_deinitialize_p",ITc_vc_elm_initialize_deinitialize_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_current_language_p",ITc_vc_elm_get_current_language_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_current_language_changed_cb_p",ITc_vc_elm_set_unset_current_language_changed_cb_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_languages_p",ITc_vc_elm_foreach_supported_languages_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_widgets_p",ITc_vc_elm_foreach_supported_widgets_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_object_p",ITc_vc_elm_create_destroy_object_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_item_p",ITc_vc_elm_create_destroy_item_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_actions_p",ITc_vc_elm_foreach_supported_actions_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_action_command_p",ITc_vc_elm_get_action_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_p",ITc_vc_elm_set_unset_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_hint_p",ITc_vc_elm_set_unset_command_hint_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_direction_p",ITc_vc_elm_set_get_command_hint_direction_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_offset_p",ITc_vc_elm_set_get_command_hint_offset_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_VOICE-CONTROL-ELM-NATIVE_H__ diff --git a/src/itc/voice-control-elm/tct-voice-control-elm-native_tv.h b/src/itc/voice-control-elm/tct-voice-control-elm-native_tv.h deleted file mode 100755 index 6a6ddf127..000000000 --- a/src/itc/voice-control-elm/tct-voice-control-elm-native_tv.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#ifndef __TCT_VOICE-CONTROL-ELM-NATIVE_H__ -#define __TCT_VOICE-CONTROL-ELM-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void ITs_voice_control_elm_startup(void); -extern void ITs_voice_control_elm_cleanup(void); - -extern int ITc_vc_elm_initialize_deinitialize_p(void); -extern int ITc_vc_elm_get_current_language_p(void); -extern int ITc_vc_elm_set_unset_current_language_changed_cb_p(void); -extern int ITc_vc_elm_foreach_supported_languages_p(void); -extern int ITc_vc_elm_foreach_supported_widgets_p(void); -extern int ITc_vc_elm_create_destroy_object_p(void); -extern int ITc_vc_elm_create_destroy_item_p(void); -extern int ITc_vc_elm_foreach_supported_actions_p(void); -extern int ITc_vc_elm_get_action_command_p(void); -extern int ITc_vc_elm_set_unset_command_p(void); -extern int ITc_vc_elm_set_unset_command_hint_p(void); -extern int ITc_vc_elm_set_get_command_hint_direction_p(void); -extern int ITc_vc_elm_set_get_command_hint_offset_p(void); - -testcase tc_array[] = { - {"ITc_vc_elm_initialize_deinitialize_p",ITc_vc_elm_initialize_deinitialize_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_current_language_p",ITc_vc_elm_get_current_language_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_current_language_changed_cb_p",ITc_vc_elm_set_unset_current_language_changed_cb_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_languages_p",ITc_vc_elm_foreach_supported_languages_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_widgets_p",ITc_vc_elm_foreach_supported_widgets_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_object_p",ITc_vc_elm_create_destroy_object_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_item_p",ITc_vc_elm_create_destroy_item_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_actions_p",ITc_vc_elm_foreach_supported_actions_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_action_command_p",ITc_vc_elm_get_action_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_p",ITc_vc_elm_set_unset_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_hint_p",ITc_vc_elm_set_unset_command_hint_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_direction_p",ITc_vc_elm_set_get_command_hint_direction_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_offset_p",ITc_vc_elm_set_get_command_hint_offset_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_VOICE-CONTROL-ELM-NATIVE_H__ diff --git a/src/itc/voice-control-elm/tct-voice-control-elm-native_wearable.h b/src/itc/voice-control-elm/tct-voice-control-elm-native_wearable.h deleted file mode 100755 index 6a6ddf127..000000000 --- a/src/itc/voice-control-elm/tct-voice-control-elm-native_wearable.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#ifndef __TCT_VOICE-CONTROL-ELM-NATIVE_H__ -#define __TCT_VOICE-CONTROL-ELM-NATIVE_H__ - -#include "testcase.h" -#include "tct_common.h" - -extern void ITs_voice_control_elm_startup(void); -extern void ITs_voice_control_elm_cleanup(void); - -extern int ITc_vc_elm_initialize_deinitialize_p(void); -extern int ITc_vc_elm_get_current_language_p(void); -extern int ITc_vc_elm_set_unset_current_language_changed_cb_p(void); -extern int ITc_vc_elm_foreach_supported_languages_p(void); -extern int ITc_vc_elm_foreach_supported_widgets_p(void); -extern int ITc_vc_elm_create_destroy_object_p(void); -extern int ITc_vc_elm_create_destroy_item_p(void); -extern int ITc_vc_elm_foreach_supported_actions_p(void); -extern int ITc_vc_elm_get_action_command_p(void); -extern int ITc_vc_elm_set_unset_command_p(void); -extern int ITc_vc_elm_set_unset_command_hint_p(void); -extern int ITc_vc_elm_set_get_command_hint_direction_p(void); -extern int ITc_vc_elm_set_get_command_hint_offset_p(void); - -testcase tc_array[] = { - {"ITc_vc_elm_initialize_deinitialize_p",ITc_vc_elm_initialize_deinitialize_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_current_language_p",ITc_vc_elm_get_current_language_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_current_language_changed_cb_p",ITc_vc_elm_set_unset_current_language_changed_cb_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_languages_p",ITc_vc_elm_foreach_supported_languages_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_widgets_p",ITc_vc_elm_foreach_supported_widgets_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_object_p",ITc_vc_elm_create_destroy_object_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_create_destroy_item_p",ITc_vc_elm_create_destroy_item_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_foreach_supported_actions_p",ITc_vc_elm_foreach_supported_actions_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_get_action_command_p",ITc_vc_elm_get_action_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_p",ITc_vc_elm_set_unset_command_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_unset_command_hint_p",ITc_vc_elm_set_unset_command_hint_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_direction_p",ITc_vc_elm_set_get_command_hint_direction_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {"ITc_vc_elm_set_get_command_hint_offset_p",ITc_vc_elm_set_get_command_hint_offset_p,ITs_voice_control_elm_startup,ITs_voice_control_elm_cleanup}, - {NULL, NULL} -}; - -#endif // __TCT_VOICE-CONTROL-ELM-NATIVE_H__