ret = vc_config_mgr_initialize(g_pid);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to init config manager : %s",
- __vc_get_error_code(__vc_convert_config_error_code(ret))); //LCOV_EXCL_LINE
+ __vc_get_error_code(__vc_convert_config_error_code(ret))); //LCOV_EXCL_LINE
vc_client_destroy(); //LCOV_EXCL_LINE
return __vc_convert_config_error_code(ret); //LCOV_EXCL_LINE
}
vc_state_e state;
if (0 != vc_client_get_client_state(&state)) {
- SLOG(LOG_ERROR, TAG_VCC, "[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ SLOG(LOG_ERROR, TAG_VCC, "[ERROR] A handle is not available");
return VC_ERROR_INVALID_STATE;
}
return VC_ERROR_NONE;
}
-//LCOV_EXCL_START
int vc_prepare_sync(void)
{
int ret;
return VC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
int vc_unprepare(void)
{
return VC_ERROR_OPERATION_FAILED;
}
-
SLOG(LOG_DEBUG, TAG_VCC, "@@@ [Client] Get Service State");
*state = service_state;
switch (*state) {
- //LCOV_EXCL_START
case VC_SERVICE_STATE_NONE: SLOG(LOG_DEBUG, TAG_VCC, "Current service state is 'None'"); break;
case VC_SERVICE_STATE_READY: SLOG(LOG_DEBUG, TAG_VCC, "Current service state is 'Ready'"); break;
case VC_SERVICE_STATE_RECORDING: SLOG(LOG_DEBUG, TAG_VCC, "Current service state is 'Recording'"); break;
case VC_SERVICE_STATE_PROCESSING: SLOG(LOG_DEBUG, TAG_VCC, "Current service state is 'Processing'"); break;
default: SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Invalid state");
- //LCOV_EXCL_STOP
}
SLOG(LOG_DEBUG, TAG_VCC, "@@@ [Client] Get Service State DONE");
return ret;
}
-//LCOV_EXCL_START
int vc_set_command_list_from_file(const char* file_path, int type)
{
int ret;
SLOG(LOG_DEBUG, TAG_VCC, "@@@ [Client] Set Command list from file DONE");
return ret;
}
-//LCOV_EXCL_STOP
#if 0
int vc_get_exclusive_command_option(bool* value)
}
#endif
-//LCOV_EXCL_START
static void __vc_notify_error(void *data)
{
vc_error_cb callback = NULL;
}
}
+//LCOV_EXCL_START
static Eina_Bool __vc_notify_result(void *data)
{
char* temp_text;
return VC_ERROR_NONE;
}
-//LCOV_EXCL_START
int __vc_cb_service_state(int state)
{
vc_service_state_e current_state = (vc_service_state_e)state;
return VC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
int vc_set_service_state_changed_cb(vc_service_state_changed_cb callback, void* user_data)
{
return ret;
}
-//LCOV_EXCL_START
int vc_set_server_dialog(const char* app_id, const char* credential)
{
vc_state_e state;
do {
ret = vc_tidl_request_set_server_dialog(pid, tmp_appid, credential);
if (0 != ret) {
+ //LCOV_EXCL_START
if (VC_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
vc_client_set_client_state(VC_STATE_INITIALIZED);
if (0 == vc_prepare_sync()) {
break;
}
}
+ //LCOV_EXCL_STOP
}
} while (0 != ret);
do {
ret = vc_tidl_request_set_server_dialog(pid, tmp_appid, credential);
if (0 != ret) {
+ //LCOV_EXCL_START
if (VC_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
vc_client_set_client_state(VC_STATE_INITIALIZED);
if (0 == vc_prepare_sync()) {
break;
}
}
+ //LCOV_EXCL_STOP
}
} while (0 != ret);
return ret;
}
-//LCOV_EXCL_STOP
int vc_request_dialog(const char* disp_text, const char* utt_text, bool auto_start)
{
return ret;
}
+//LCOV_EXCL_STOP
int vc_tts_set_streaming_cb(vc_tts_streaming_cb callback, void* user_data)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int __vc_cb_utterance_status(int utt_id, int utt_status)
{
vc_tts_utterance_status_cb callback = NULL;
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_tts_set_utterance_status_cb(vc_tts_utterance_status_cb callback, void* user_data)
{
return VC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
return VC_ERROR_NONE;
}
-//LCOV_EXCL_START
int vc_client_get_service_state_changed_cb(vc_service_state_changed_cb* callback, void** user_data)
{
/* check handle */
return VC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
int vc_client_set_state_changed_cb(vc_state_changed_cb callback, void* user_data)
{
return VC_ERROR_NONE;
}
-//LCOV_EXCL_START
int vc_client_get_state_changed_cb(vc_state_changed_cb* callback, void** user_data)
{
/* check handle */
return VC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
int vc_client_set_current_lang_changed_cb(vc_current_language_changed_cb callback, void* user_data)
{
return VC_ERROR_NONE;
}
-//LCOV_EXCL_START
int vc_client_get_error_cb(vc_error_cb* callback, void** user_data)
{
/* check handle */
return VC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
/* set/get option */
int vc_client_set_service_state(vc_service_state_e state)
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_client_set_is_foreground(bool value)
{
/* check handle */
return VC_ERROR_NONE;
}
-//LCOV_EXCL_START
#if 0
int vc_client_set_exclusive_cmd(vc_h vc, bool value)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_client_get_tts_streaming_cb(vc_tts_streaming_cb* callback, void** user_data)
{
/* check handle */
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_client_set_tts_utterance_status_cb(vc_tts_utterance_status_cb callback, void* user_data)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_client_get_tts_utterance_status_cb(vc_tts_utterance_status_cb* callback, void** user_data)
{
/* check handle */
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_client_set_start_listening(bool is_listening_started)
{
}
}
+//LCOV_EXCL_START
static void __on_rejected(rpc_port_proxy_vc_proxy_vc_h h, void* user_data)
{
unsigned int pid = (uintptr_t)user_data;
SLOG(LOG_INFO, TAG_VCC, "[INFO] Rejected from server(%d)", pid);
}
+//LCOV_EXCL_STOP
static rpc_port_proxy_vc_proxy_vc_h __create_rpc_port(int pid, const char* engine_app_id)
}
+//LCOV_EXCL_START
static void __notify_cb(void* user_data, int pid, bundle* msg)
{
// corresponding to listener_event_callback
}
}
+//LCOV_EXCL_STOP
static int __create_notify_callback_handle(vc_tidl_info_s* info)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
static int __create_feedback_callback_handle(vc_tidl_info_s* info)
{
if (NULL == info) {
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
static int __invoke_register_notify_callback(int pid, vc_tidl_info_s* info)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
static int __invoke_register_feedback_callback(int pid, vc_tidl_info_s* info)
{
if (info->register_feedback_callback_invoked) {
info->register_feedback_callback_invoked = true;
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_tidl_open_connection()
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
static int __convert_unhandled_error(int ret)
{
if (RPC_PORT_ERROR_IO_ERROR == ret || RPC_PORT_ERROR_OUT_OF_MEMORY == ret) {
return ret;
}
+//LCOV_EXCL_STOP
int vc_tidl_request_initialize(int pid, int* mgr_pid, int* service_state, int* daemon_pid)
{
return ret;
}
- SLOG(LOG_DEBUG, TAG_VCC, "@@ vc initialize : mgr = %d service = %d daemon_pid = %d", *mgr_pid, *service_state, *daemon_pid); //LCOV_EXCL_LINE
+ SLOG(LOG_DEBUG, TAG_VCC, "@@ vc initialize : mgr = %d service = %d daemon_pid = %d", *mgr_pid, *service_state, *daemon_pid);
return VC_ERROR_NONE;
}
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_tidl_request_set_foreground(int pid, bool value)
{
// method no reply --> async
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_tidl_request_set_server_dialog(int pid, const char* app_id, const char* credential)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
/* Authority */
int vc_tidl_request_auth_enable(int pid, int mgr_pid)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
+
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_cmd_get_id(vc_cmd_h vc_command, int* id)
{
if (0 != __vc_cmd_get_feature_enabled()) {
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_cmd_set_appid(vc_cmd_h vc_command, const char* appid)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_cmd_set_fixed_command(vc_cmd_h vc_command, const char* fixed)
{
if (0 != __vc_cmd_get_feature_enabled()) {
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_cmd_set_invocation_name(vc_cmd_h vc_command, const char* invocation_name)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
int vc_cmd_get_invocation_name(vc_cmd_h vc_command, char** invocation_name)
{
if (0 != __vc_cmd_get_feature_enabled()) {
SLOG(LOG_DEBUG, TAG_VCCMD, "[Get invocation name][%p] invocation_name(%s)", vc_command, *invocation_name);
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
int vc_cmd_set_type(vc_cmd_h vc_command, int type)
{
return VC_ERROR_NONE;
}
+//LCOV_EXCL_START
/**
* @brief Sets key value of command.
*
return VC_ERROR_NONE;
}
+//LCOV_EXCL_STOP