{
if (0 == g_feature_enabled) {
//LCOV_EXCL_START
- MA_SLOGE("[ERROR] Multi-assistant feature NOT supported");
+ MA_SLOGE("[ERROR] Multi-assistant feature NOT supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
//LCOV_EXCL_STOP
} else if (-1 == g_feature_enabled) {
if (0 == system_info_get_platform_bool(MA_FEATURE_PATH, &ma_supported)) {
if (0 == system_info_get_platform_bool(MA_MIC_FEATURE_PATH, &mic_supported)) {
if (false == ma_supported || false == mic_supported) {
- MA_SLOGE("[ERROR] Multi-assistant feature NOT supported");
+ MA_SLOGE("[ERROR] Multi-assistant feature NOT supported"); //LCOV_EXCL_LINE
g_feature_enabled = 0;
return MA_ERROR_NOT_SUPPORTED;
}
pid_t pid = getpid();
char *session = cynara_session_from_pid(pid);
int ret = cynara_check(p_cynara, smack_label, session, uid, privilege);
- MA_SLOGD("[Client]cynara_check returned %d(%s)", ret, (CYNARA_API_ACCESS_ALLOWED == ret) ? "Allowed" : "Denied");
+ MA_SLOGD("[Client]cynara_check returned %d(%s)", ret, (CYNARA_API_ACCESS_ALLOWED == ret) ? "Allowed" : "Denied"); //LCOV_EXCL_LINE
if (session)
free(session);
if (0 == g_recorder_privilege_allowed) {
//LCOV_EXCL_START
- MA_SLOGE("[ERROR] Permission for recording is denied");
+ MA_SLOGE("[ERROR] Permission for recording is denied"); //LCOV_EXCL_LINE
return MA_ERROR_PERMISSION_DENIED;
//LCOV_EXCL_STOP
} else if (-1 == g_recorder_privilege_allowed) {
}
snprintf(uid, 16, "%d", getuid());
if (false == __check_privilege(uid, MA_RECORDER_PRIVILEGE)) {
- MA_SLOGE("[ERROR] Permission for recording is denied");
+ MA_SLOGE("[ERROR] Permission for recording is denied"); //LCOV_EXCL_LINE
g_recorder_privilege_allowed = 0;
__check_privilege_deinitialize();
return MA_ERROR_PERMISSION_DENIED;
if (0 == g_volume_set_privilege_allowed) {
//LCOV_EXCL_START
- MA_SLOGE("[ERROR] Permission for volume set is denied");
+ MA_SLOGE("[ERROR] Permission for volume set is denied"); //LCOV_EXCL_LINE
return MA_ERROR_PERMISSION_DENIED;
//LCOV_EXCL_STOP
} else if (-1 == g_volume_set_privilege_allowed) {
}
snprintf(uid, 16, "%d", getuid());
if (false == __check_privilege(uid, MA_VOLUME_SET_PRIVILEGE)) {
- MA_SLOGE("[ERROR] Permission for volume set is denied");
+ MA_SLOGE("[ERROR] Permission for volume set is denied"); //LCOV_EXCL_LINE
g_volume_set_privilege_allowed = 0;
__check_privilege_deinitialize();
return MA_ERROR_PERMISSION_DENIED;
return MA_ERROR_PERMISSION_DENIED;
}
- MA_SLOGI("[Client DEBUG] Initialize");
+ MA_SLOGI("[Client DEBUG] Initialize"); //LCOV_EXCL_LINE
/* check handle */
if (true == ma_client_is_valid(g_ma)) {
return MA_ERROR_PERMISSION_DENIED;
}
- MA_SLOGI("[Client DEBUG] Deinitialize");
+ MA_SLOGI("[Client DEBUG] Deinitialize"); //LCOV_EXCL_LINE
if (false == ma_client_is_valid(g_ma)) {
- MA_SLOGE("[ERROR] NOT initialized");
+ MA_SLOGE("[ERROR] NOT initialized"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
do {
ma_client_pop_preprocessing_audio_data(g_ma, &data);
if (data) {
- MA_SLOGD("[DEBUG] Audio streaming callback is called, event(%d)", data->event);
+ MA_SLOGD("[DEBUG] Audio streaming callback is called, event(%d)", data->event); //LCOV_EXCL_LINE
free(data->buffer);
free(data);
}
} while (data);
#endif
- MA_SLOGD("Success: destroy");
+ MA_SLOGD("Success: destroy"); //LCOV_EXCL_LINE
if (0 != ma_dbus_close_connection()) {
MA_SLOGE("[ERROR] Fail to close connection"); //LCOV_EXCL_LINE
static Eina_Bool __ma_connect_daemon(void *data)
{
- MA_SLOGD("[Client DEBUG] Connect daemon");
+ MA_SLOGD("[Client DEBUG] Connect daemon"); //LCOV_EXCL_LINE
/* request initialization */
int ret = -1;
/* check handle */
if (true == ma_client_is_valid(g_ma)) {
- MA_SLOGD("[DEBUG] g_ma is valid");
+ MA_SLOGD("[DEBUG] g_ma is valid"); //LCOV_EXCL_LINE
ret = ma_dbus_request_initialize(g_ma->handle);
//LCOV_EXCL_START
if (MA_ERROR_ENGINE_NOT_FOUND == ret) {
- MA_SLOGE("[ERROR] Fail to initialize");
+ MA_SLOGE("[ERROR] Fail to initialize"); //LCOV_EXCL_LINE
ma_client_set_error(g_ma, MA_ERROR_ENGINE_NOT_FOUND);
__ma_notify_error(g_ma);
return EINA_TRUE;
} else {
/* Success to connect */
- MA_SLOGI("[Client DEBUG] Success to connect daemon");
+ MA_SLOGI("[Client DEBUG] Success to connect daemon"); //LCOV_EXCL_LINE
}
ma_state_e prev_state;
int ret = MA_ERROR_NONE;
ret = ma_client_get_client_state(g_ma, &prev_state);
if (MA_ERROR_NONE != ret) {
- MA_SLOGE("[ERROR] Fail to get client state : %d", ret);
+ MA_SLOGE("[ERROR] Fail to get client state : %d", ret); //LCOV_EXCL_LINE
}
ret = ma_client_get_client_active_state(g_ma, &active_state);
if (MA_ERROR_NONE != ret) {
- MA_SLOGE("[ERROR] Fail to get client active state : %d", ret);
+ MA_SLOGE("[ERROR] Fail to get client active state : %d", ret); //LCOV_EXCL_LINE
}
ret = ma_client_set_client_state(g_ma, MA_STATE_READY);
if (MA_ERROR_NONE != ret) {
- MA_SLOGE("[ERROR] Fail to set client state : %d", ret);
+ MA_SLOGE("[ERROR] Fail to set client state : %d", ret); //LCOV_EXCL_LINE
}
__ma_notify_state_changed(g_ma);
if (prev_state == MA_STATE_INITIALIZED && active_state == MA_ACTIVE_STATE_ACTIVE) {
/* This app was activated but was not in ready state, meaning we should
start receiving audio stream data */
- MA_SLOGD("[Client DEBUG] Start requesting audio data");
+ MA_SLOGD("[Client DEBUG] Start requesting audio data"); //LCOV_EXCL_LINE
ma_start_receiving_audio_streaming_data(MA_AUDIO_STREAMING_DATA_TYPE_CURRENT_UTTERANCE);
}
} else {
static int g_retry_connection_count = 0;
static Eina_Bool retry_connection(void* data)
{
- MA_SLOGI("[ENTER]");
+ MA_SLOGI("[ENTER]"); //LCOV_EXCL_LINE
int ret = ma_dbus_request_hello();
if (ret == 0) {
- MA_SLOGI("Success to request hello. retry count(%d)", g_retry_connection_count);
+ MA_SLOGI("Success to request hello. retry count(%d)", g_retry_connection_count); //LCOV_EXCL_LINE
g_retry_connection_count = 0;
if (g_retry_connection_timer) ecore_timer_del(g_retry_connection_timer);
g_retry_connection_timer = NULL;
}
ret = __ma_connect_daemon(NULL);
if (ret == 0) {
- MA_SLOGD("Success to connect daemon. retry count(%d)", retry_count);
+ MA_SLOGD("Success to connect daemon. retry count(%d)", retry_count); //LCOV_EXCL_LINE
break;
} else {
usleep(10000);
delete_retry_connection_timer(NULL);
g_retry_connection_timer = ecore_timer_add(1.5f, retry_connection, NULL);
- MA_SLOGI("Added timer for retry_connection : %p", g_retry_connection_timer);
+ MA_SLOGI("Added timer for retry_connection : %p", g_retry_connection_timer); //LCOV_EXCL_LINE
}
static void __start_prepare_func()
static void __end_prepare_func()
{
- MA_SLOGD("[DEBUG] End prepare func");
+ MA_SLOGD("[DEBUG] End prepare func"); //LCOV_EXCL_LINE
}
int ma_prepare(void)
return MA_ERROR_PERMISSION_DENIED;
}
- MA_SLOGI("[Client DEBUG] Prepare");
+ MA_SLOGI("[Client DEBUG] Prepare"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_PERMISSION_DENIED;
}
- MA_SLOGI("[Client DEBUG] Unprepare");
+ MA_SLOGI("[Client DEBUG] Unprepare"); //LCOV_EXCL_LINE
- MA_SLOGD("Deleting timer for retry_connection");
+ MA_SLOGD("Deleting timer for retry_connection"); //LCOV_EXCL_LINE
ecore_main_loop_thread_safe_call_async(delete_retry_connection_timer, NULL);
ma_state_e state;
ma_client_use_callback(ma);
callback(previous_state, current_state, user_data);
ma_client_not_use_callback(ma);
- MA_SLOGD("[DEBUG] State changed callback is called : %d", current_state);
+ MA_SLOGD("[DEBUG] State changed callback is called : %d", current_state); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] State changed callback is NULL");
+ MA_SLOGD("[WARNING] State changed callback is NULL"); //LCOV_EXCL_LINE
}
+ //LCOV_EXCL_START
MA_SLOGI(
"[INFO] previous : %d , current : %d state changed",
previous_state, current_state
);
+ //LCOV_EXCL_STOP
}
//LCOV_EXCL_START
ma_client_use_callback(g_ma);
callback(previous_state, current_state, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] Active state changed callback is called %d", current_state);
+ MA_SLOGD("[DEBUG] Active state changed callback is called %d", current_state); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Active state changed callback is NULL");
+ MA_SLOGD("[WARNING] Active state changed callback is NULL"); //LCOV_EXCL_LINE
}
ma_client_get_previous_active_state(g_ma, ¤t_state, &previous_state);
fclose(g_pFile);
g_pFile = NULL;
} else {
- MA_LOGD("[Recorder Info] File not found!");
+ MA_LOGD("[Recorder Info] File not found!"); //LCOV_EXCL_LINE
}
while (1) {
int ret = access(g_temp_file_name, 0);
if (0 == ret) {
- MA_LOGD("[Recorder ERROR] File is already exist");
+ MA_LOGD("[Recorder ERROR] File is already exist"); //LCOV_EXCL_LINE
if (0 == remove(g_temp_file_name)) {
- MA_LOGD("[Recorder] Remove file");
+ MA_LOGD("[Recorder] Remove file"); //LCOV_EXCL_LINE
break;
} else {
g_count++;
}
}
- MA_LOGD("[Recorder] Temp file name=[%s]", g_temp_file_name);
+ MA_LOGD("[Recorder] Temp file name=[%s]", g_temp_file_name); //LCOV_EXCL_LINE
/* open test file */
g_pFile = fopen(g_temp_file_name, "wb+x");
if (!g_pFile) {
- MA_LOGD("[Recorder ERROR] File not found!");
+ MA_LOGD("[Recorder ERROR] File not found!"); //LCOV_EXCL_LINE
}
g_count++;
}
if (MA_AUDIO_STREAMING_EVENT_FINISH == event) {
if (g_pFile) {
- MA_LOGE("[Recorder SUCCESS] File Close");
+ MA_LOGE("[Recorder SUCCESS] File Close"); //LCOV_EXCL_LINE
fclose(g_pFile);
g_pFile = NULL;
} else {
- MA_LOGE("[Recorder ERROR] File not found!");
+ MA_LOGE("[Recorder ERROR] File not found!"); //LCOV_EXCL_LINE
}
}
#endif
ma_client_not_use_callback(g_ma);
if (last_event != event) {
last_event = event;
- MA_SLOGI("[INFO] Audio streaming callback is called, event(%d)", event);
+ MA_SLOGI("[INFO] Audio streaming callback is called, event(%d)", event); //LCOV_EXCL_LINE
}
} else {
- MA_SLOGD("[WARNING] Audio streaming callback is NULL");
+ MA_SLOGD("[WARNING] Audio streaming callback is NULL"); //LCOV_EXCL_LINE
}
return 0;
{
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] Invalid client");
+ MA_SLOGE("[ERROR] Invalid client"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
if (state != MA_STATE_READY) {
MA_SLOGD("[DEBUG] Current state is not 'READY'"); //LCOV_EXCL_LINE
if (MA_ERROR_SERVICE_RESET != reason) {
- MA_SLOGE("[ERROR] client is not connected yet");
+ MA_SLOGE("[ERROR] client is not connected yet"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
return MA_ERROR_NONE;
}
if (MA_ERROR_SERVICE_RESET == reason) {
- MA_SLOGE("[ERROR] multi-assistant service reset");
+ MA_SLOGE("[ERROR] multi-assistant service reset"); //LCOV_EXCL_LINE
ma_client_set_client_state(g_ma, MA_STATE_INITIALIZED);
__ma_notify_state_changed((void*)g_ma);
}
- MA_SLOGE("[ERROR] Error reason(%d), msg(%s)", reason, msg);
+ MA_SLOGE("[ERROR] Error reason(%d), msg(%s)", reason, msg); //LCOV_EXCL_LINE
ma_client_set_error(g_ma, reason);
__ma_notify_error((void*)g_ma);
if (MA_ERROR_SERVICE_RESET == reason) {
if (0 != ma_prepare()) {
- MA_SLOGE("[ERROR] Fail to prepare");
+ MA_SLOGE("[ERROR] Fail to prepare"); //LCOV_EXCL_LINE
}
}
ma_client_use_callback(ma);
callback(reason, user_data);
ma_client_not_use_callback(ma);
- MA_SLOGD("[DEBUG] Error callback is called");
+ MA_SLOGD("[DEBUG] Error callback is called"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Error callback is NULL");
+ MA_SLOGD("[WARNING] Error callback is NULL"); //LCOV_EXCL_LINE
}
}
ma_client_use_callback(g_ma);
callback(previous_lang, current_lang, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] Language changed callback is called");
+ MA_SLOGD("[DEBUG] Language changed callback is called"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Language changed callback is NULL");
+ MA_SLOGD("[WARNING] Language changed callback is NULL"); //LCOV_EXCL_LINE
}
}
*/
ma_client_use_callback(g_ma);
callback(command, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] Wakeup engine command callback is called, (%s)", (command ? command : "NULL"));
+ MA_SLOGD("[DEBUG] Wakeup engine command callback is called, (%s)", (command ? command : "NULL")); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Wakeup engine command callback is NULL");
+ MA_SLOGD("[WARNING] Wakeup engine command callback is NULL"); //LCOV_EXCL_LINE
}
return 0;
ma_client_use_callback(g_ma);
callback(app_id, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] Preprocessing information changed callback is called, (%s)", app_id);
+ MA_SLOGD("[DEBUG] Preprocessing information changed callback is called, (%s)", app_id); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Preprocessing information changed callback is NULL");
+ MA_SLOGD("[WARNING] Preprocessing information changed callback is NULL"); //LCOV_EXCL_LINE
}
return 0;
ma_client_use_callback(g_ma);
callback(section, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] Audio streaming data section changed callback is called, (%d)", section);
+ MA_SLOGD("[DEBUG] Audio streaming data section changed callback is called, (%d)", section); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Audio streaming data section changed callback is NULL");
+ MA_SLOGD("[WARNING] Audio streaming data section changed callback is NULL"); //LCOV_EXCL_LINE
}
return 0;
if (NULL != callback) {
int event_filter = -1;
- MA_SLOGD("Flush audio data");
+ MA_SLOGD("Flush audio data"); //LCOV_EXCL_LINE
ma_client_use_callback(g_ma);
// Flush audio data
speech_data* data = NULL;
if (data) {
callback((ma_audio_streaming_event_e)data->event, data->buffer, data->len, user_data);
if (event_filter != data->event) {
- MA_SLOGD("[DEBUG] Audio streaming callback is called, event(%d)", data->event);
+ MA_SLOGD("[DEBUG] Audio streaming callback is called, event(%d)", data->event); //LCOV_EXCL_LINE
event_filter = data->event;
}
free(data->buffer);
} while (data);
ma_client_not_use_callback(g_ma);
} else {
- MA_SLOGD("[WARNING] Audio streaming callback is NULL");
+ MA_SLOGD("[WARNING] Audio streaming callback is NULL"); //LCOV_EXCL_LINE
}
return 0;
}
ma_client_use_callback(g_ma);
callback(result, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] Preprocessing result received callback is called, (%d)", result);
+ MA_SLOGD("[DEBUG] Preprocessing result received callback is called, (%d)", result); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] Preprocessing result received callback is NULL");
+ MA_SLOGD("[WARNING] Preprocessing result received callback is NULL"); //LCOV_EXCL_LINE
}
#ifdef MA_PREPROCESSING_SEQUENTIAL_MODE
return 0;
}
+//LCOV_EXCL_STOP
int __ma_cb_service_state_changed(int state)
{
ma_client_use_callback(g_ma);
callback(previous_state, current_state, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGD("[DEBUG] service state changed callback is called %d", current_state);
+ MA_SLOGD("[DEBUG] service state changed callback is called %d", current_state); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[WARNING] service state changed callback is NULL");
+ MA_SLOGD("[WARNING] service state changed callback is NULL"); //LCOV_EXCL_LINE
}
+ //LCOV_EXCL_START
MA_SLOGD(
"[INFO] previous : %d , current : %d service state changed",
previous_state, current_state
);
+ //LCOV_EXCL_STOP
return 0;
}
+//LCOV_EXCL_START
int __ma_cb_voice_key_status_changed(int status)
{
ma_voice_key_status_changed_cb callback = NULL;
ma_client_use_callback(g_ma);
callback(status, user_data);
ma_client_not_use_callback(g_ma);
- MA_SLOGI("[INFO] voice key status changed callback is called %d", status);
+ MA_SLOGI("[INFO] voice key status changed callback is called %d", status); //LCOV_EXCL_LINE
} else {
- MA_SLOGW("[WARNING] voice key status changed callback is NULL");
+ MA_SLOGW("[WARNING] voice key status changed callback is NULL"); //LCOV_EXCL_LINE
}
- MA_SLOGI("[INFO] status : changed %d", status);
+ MA_SLOGI("[INFO] status : changed %d", status); //LCOV_EXCL_LINE
return 0;
}
return MA_ERROR_PERMISSION_DENIED;
}
- MA_SLOGD("[Client DEBUG] Get current state");
+ MA_SLOGD("[Client DEBUG] Get current state"); //LCOV_EXCL_LINE
if (NULL == state) {
- MA_SLOGE("[Client ERROR] Invalid parameter");
+ MA_SLOGE("[Client ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
return MA_ERROR_PERMISSION_DENIED;
}
- MA_SLOGD("[Client DEBUG] Get current language");
+ MA_SLOGD("[Client DEBUG] Get current language"); //LCOV_EXCL_LINE
if (NULL == language) {
- MA_SLOGE("[Client ERROR] Invalid parameter");
+ MA_SLOGE("[Client ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
int ret = -1;
/* ret = ma_config_mgr_get_default_language(language);
if (0 != ret) {
- MA_SLOGE("[Client ERROR] Fail to get current language");
+ MA_SLOGE("[Client ERROR] Fail to get current language"); //LCOV_EXCL_LINE
}
*/
*language = strdup("en-US");
}
if (NULL == rate || NULL == channel || NULL == audio_type) {
- MA_SLOGE("[ERROR] Invalid parameter");
+ MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Get recording audio format");
+ MA_SLOGI("[Client DEBUG] Get recording audio format"); //LCOV_EXCL_LINE
int count = 0;
int ret = -1;
ret = ma_dbus_get_recording_audio_format(pid, rate, channel, audio_type);
if (0 != ret) {
if (MA_ERROR_TIMED_OUT != ret) {
- MA_SLOGE("[ERROR] Fail to get audio format");
+ MA_SLOGE("[ERROR] Fail to get audio format"); //LCOV_EXCL_LINE
break;
} else {
- MA_SLOGW("[WARNING] Retry to get audio format");
+ MA_SLOGW("[WARNING] Retry to get audio format"); //LCOV_EXCL_LINE
usleep(10000);
count++;
if (MA_RETRY_COUNT == count) {
- MA_SLOGE("[ERROR] Fail to get audio format");
+ MA_SLOGE("[ERROR] Fail to get audio format"); //LCOV_EXCL_LINE
break;
}
}
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant client state changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant client state changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant client state changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant client state changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant client error cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant client error cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant client error cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant client error cb"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant language changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant language changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant language changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant language changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming cb"); //LCOV_EXCL_LINE
ma_state_e state;
}
if (event < MA_ASR_RESULT_EVENT_PARTIAL_RESULT || event > MA_ASR_RESULT_EVENT_ERROR) {
- MA_SLOGE("[ERROR] Invalid parameter");
+ MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
}
if (NULL == asr_result) {
- MA_SLOGD("[DEBUG] Input parameter is NULL. (no result)");
+ MA_SLOGD("[DEBUG] Input parameter is NULL. (no result)"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
+ //LCOV_EXCL_START
MA_SLOGI("[Client DEBUG] Send ASR result to the Multi-assistant service : %d %s",
event, asr_result);
+ //LCOV_EXCL_STOP
int ret = -1;
int pid = getpid();
ret = ma_dbus_send_asr_result(pid, event, asr_result);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to send ASR result");
+ MA_SLOGE("[ERROR] Fail to send ASR result"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send ASR result");
+ MA_SLOGD("[DEBUG] Success to send ASR result"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_INVALID_STATE;
}
+ //LCOV_EXCL_START
MA_SLOGI("[Client DEBUG] Send result to the Multi-assistant : %s %s %s",
display_text, utterance_text, result_json);
+ //LCOV_EXCL_STOP
if (NULL == display_text || NULL == utterance_text || NULL == result_json) {
- MA_SLOGD("[Client DEBUG] Input parameter is NULL.");
+ MA_SLOGD("[Client DEBUG] Input parameter is NULL."); //LCOV_EXCL_LINE
}
int ret = -1;
int pid = getpid();
ret = ma_dbus_send_result(pid, display_text, utterance_text, result_json);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to send result");
+ MA_SLOGE("[ERROR] Fail to send result"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send result");
+ MA_SLOGD("[DEBUG] Success to send result"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Send recognition result to the Multi-assistant : %d", result);
+ MA_SLOGI("[Client DEBUG] Send recognition result to the Multi-assistant : %d", result); //LCOV_EXCL_LINE
int ret = -1;
int pid = getpid();
ret = ma_dbus_send_recognition_result(pid, result);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to send result");
+ MA_SLOGE("[ERROR] Fail to send result"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send result");
+ MA_SLOGD("[DEBUG] Success to send result"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant active state changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant active state changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant active state changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant active state changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Send streaming request to the Multi-assistant : %d", type);
+ MA_SLOGI("[Client DEBUG] Send streaming request to the Multi-assistant : %d", type); //LCOV_EXCL_LINE
#ifdef MA_PREPROCESSING_SEQUENTIAL_MODE
ma_client_set_audio_streaming_data_type(g_ma, type);
int pid = getpid();
ret = ma_dbus_start_streaming_audio_data(pid, type);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to send request");
+ MA_SLOGE("[ERROR] Fail to send request"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send request");
+ MA_SLOGD("[DEBUG] Success to send request"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Send streaming stop request to the Multi-assistant : %d", type);
+ MA_SLOGI("[Client DEBUG] Send streaming stop request to the Multi-assistant : %d", type); //LCOV_EXCL_LINE
int ret = -1;
int pid = getpid();
ret = ma_dbus_stop_streaming_audio_data(pid, type);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to send request");
+ MA_SLOGE("[ERROR] Fail to send request"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send request");
+ MA_SLOGD("[DEBUG] Success to send request"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Update voice feedback state to the Multi-assistant : %d", feedback_state);
+ MA_SLOGI("[Client DEBUG] Update voice feedback state to the Multi-assistant : %d", feedback_state); //LCOV_EXCL_LINE
int ret = -1;
int pid = getpid();
ret = ma_dbus_update_voice_feedback_state(pid, feedback_state);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to update voice feedback state");
+ MA_SLOGE("[ERROR] Fail to update voice feedback state"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to update voice feedback state");
+ MA_SLOGD("[DEBUG] Success to update voice feedback state"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Send assistant specific command to the Multi-assistant : %s", command);
+ MA_SLOGI("[Client DEBUG] Send assistant specific command to the Multi-assistant : %s", command); //LCOV_EXCL_LINE
int ret = -1;
int pid = getpid();
ret = ma_dbus_send_assistant_specific_command(pid, command);
if (0 != ret) {
- MA_SLOGE("[ERROR] Fail to send assistant specific command");
+ MA_SLOGE("[ERROR] Fail to send assistant specific command"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send assistant specific command");
+ MA_SLOGD("[DEBUG] Success to send assistant specific command"); //LCOV_EXCL_LINE
}
return ret;
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant wakeup engine command cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant wakeup engine command cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant wakeup engine command cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant wakeup engine command cb"); //LCOV_EXCL_LINE
ma_state_e state;
int __get_assistant_info_cb(const char* app_id, const char* name,
const char* icon_path, const char* wakeup_list[], int cnt_wakeup,
const char* supported_lang[], int cnt_lang, void* user_data) {
- MA_SLOGD("[Client DEBUG] get assistant info cb start");
+ MA_SLOGD("[Client DEBUG] get assistant info cb start"); //LCOV_EXCL_LINE
if (NULL == app_id) {
- MA_SLOGE("[ERROR]app_id NULL, returning");
+ MA_SLOGE("[ERROR]app_id NULL, returning"); //LCOV_EXCL_LINE
return -1;
} else if (0 <= _assistant_info_index && MAX_ASSISTANT_NUM > _assistant_info_index ) {
strncpy(__assistant_info[_assistant_info_index].app_id, app_id, MAX_ASSISTANT_INFO_STR_LEN);
} else {
return -1;
}
- MA_SLOGD("[Client DEBUG] get assistant info cb end");
+ MA_SLOGD("[Client DEBUG] get assistant info cb end"); //LCOV_EXCL_LINE
return 0;
}
//LCOV_EXCL_STOP
}
int res;
- MA_SLOGD("[Client DEBUG] get assistant info start");
+ MA_SLOGD("[Client DEBUG] get assistant info start"); //LCOV_EXCL_LINE
if (NULL != callback) {
_assistant_info_index = 0;
res = ma_config_mgr_get_assistant_info(__get_assistant_info_cb, user_data);
} else {
res = MA_ERROR_INVALID_PARAMETER;
}
- MA_SLOGD("[Client DEBUG] get assistant info end");
+ MA_SLOGD("[Client DEBUG] get assistant info end"); //LCOV_EXCL_LINE
return res;
}
}
if (NULL == type) {
- MA_SLOGE("[ERROR] Invalid parameter");
+ MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_PARAMETER;
}
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Get recording audio source type");
+ MA_SLOGI("[Client DEBUG] Get recording audio source type"); //LCOV_EXCL_LINE
int count = 0;
int ret = -1;
ret = ma_dbus_get_recording_audio_source_type(pid, type);
if (0 != ret) {
if (MA_ERROR_TIMED_OUT != ret) {
- MA_SLOGE("[ERROR] Fail to get audio source type");
+ MA_SLOGE("[ERROR] Fail to get audio source type"); //LCOV_EXCL_LINE
break;
} else {
- MA_SLOGW("[WARNING] Retry to get audio source type");
+ MA_SLOGW("[WARNING] Retry to get audio source type"); //LCOV_EXCL_LINE
usleep(10000);
count++;
if (MA_RETRY_COUNT == count) {
- MA_SLOGE("[ERROR] Fail to get audio source type");
+ MA_SLOGE("[ERROR] Fail to get audio source type"); //LCOV_EXCL_LINE
break;
}
}
int ma_set_background_volume(double ratio)
{
- MA_SLOGD("[Manager] Set background volume");
+ MA_SLOGD("[Manager] Set background volume"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
/* check state */
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Set background volume : %f", ratio);
+ MA_SLOGI("[Client DEBUG] Set background volume : %f", ratio); //LCOV_EXCL_LINE
/* change system volume */
int pid = getpid();
int ret = ma_dbus_set_background_volume(pid, ratio);
if (0 != ret) {
- MA_SLOGW("[WARNING] retry to set background volume");
+ MA_SLOGW("[WARNING] retry to set background volume"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send");
+ MA_SLOGD("[DEBUG] Success to send"); //LCOV_EXCL_LINE
}
return ret;
}
int ma_set_preprocessing_allow_mode(ma_preprocessing_allow_mode_e mode, const char* app_id)
{
- MA_SLOGD("[Manager] Set preprocessing allow mode");
+ MA_SLOGD("[Manager] Set preprocessing allow mode"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
/* check state */
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
#ifdef MA_PREPROCESSING_SEQUENTIAL_MODE
ma_client_set_preprocessing_allow_mode(g_ma, mode);
#endif
- MA_SLOGI("[Client DEBUG] Set preprocessing allow mode : %d %s", mode, app_id);
+ MA_SLOGI("[Client DEBUG] Set preprocessing allow mode : %d %s", mode, app_id); //LCOV_EXCL_LINE
/* change system volume */
int pid = getpid();
int ret = ma_dbus_set_preprocessing_allow_mode(pid, mode, app_id);
if (0 != ret) {
- MA_SLOGW("[WARNING] retry to set preprocessing allow mode");
+ MA_SLOGW("[WARNING] retry to set preprocessing allow mode"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send");
+ MA_SLOGD("[DEBUG] Success to send"); //LCOV_EXCL_LINE
}
return ret;
}
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing information changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing information changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing information changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing information changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
int ma_send_preprocessing_result(bool is_success)
{
- MA_SLOGD("[Manager] Send preprocessing result");
+ MA_SLOGD("[Manager] Send preprocessing result"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Send preprocessing result : %d", is_success);
+ MA_SLOGI("[Client DEBUG] Send preprocessing result : %d", is_success); //LCOV_EXCL_LINE
/* Send preprocessing result */
int pid = getpid();
int ret = ma_dbus_send_preprocessing_result(pid, is_success);
if (0 != ret) {
- MA_SLOGW("[WARNING] retry to send preprocessing result");
+ MA_SLOGW("[WARNING] retry to send preprocessing result"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to send");
+ MA_SLOGD("[DEBUG] Success to send"); //LCOV_EXCL_LINE
}
return ret;
}
int ma_set_wake_word_audio_require_flag(bool require)
{
- MA_SLOGD("[Manager] Set wake word audio require flag");
+ MA_SLOGD("[Manager] Set wake word audio require flag"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Set wake word audio require flag : %d", require);
+ MA_SLOGI("[Client DEBUG] Set wake word audio require flag : %d", require); //LCOV_EXCL_LINE
/* Set wake word audio require flag */
int pid = getpid();
int ret = ma_dbus_set_wake_word_audio_require_flag(pid, require);
if (0 != ret) {
- MA_SLOGW("[WARNING] retry to set wake word audio require flag");
+ MA_SLOGW("[WARNING] retry to set wake word audio require flag"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to set");
+ MA_SLOGD("[DEBUG] Success to set"); //LCOV_EXCL_LINE
}
return ret;
}
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming data section changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming data section changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming data section changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming data section changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_NONE;
}
-//LCOV_EXCL_START
int ma_set_preprocessing_result_received_cb(ma_preprocessing_result_received_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing result received cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing result received cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing result received cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing result received cb"); //LCOV_EXCL_LINE
ma_state_e state;
int ma_set_assistant_language(const char* language)
{
- MA_SLOGD("[Manager] Set assistant language");
+ MA_SLOGD("[Manager] Set assistant language"); //LCOV_EXCL_LINE
return ma_set_assistant_wakeup_language(language);
}
int ma_set_assistant_wakeup_language(const char* language)
{
- MA_SLOGD("[Manager] Set assistant wakeup language");
+ MA_SLOGD("[Manager] Set assistant wakeup language"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Set assistant wakeup language : %s", language);
+ MA_SLOGI("[Client DEBUG] Set assistant wakeup language : %s", language); //LCOV_EXCL_LINE
/* Set assistant language */
int pid = getpid();
int ret = ma_dbus_set_assistant_wakeup_language(pid, language);
if (0 != ret) {
- MA_SLOGW("[WARNING] Failed to set assistant wakeup language");
+ MA_SLOGW("[WARNING] Failed to set assistant wakeup language"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to set");
+ MA_SLOGD("[DEBUG] Success to set"); //LCOV_EXCL_LINE
}
return ret;
}
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant service state changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant service state changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant service state changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant service state changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Set Multi-assistant voice key status changed cb");
+ MA_SLOGD("[Client DEBUG] Set Multi-assistant voice key status changed cb"); //LCOV_EXCL_LINE
if (NULL == callback) {
MA_SLOGE("[ERROR] Invalid parameter"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
- MA_SLOGD("[Client DEBUG] Unset Multi-assistant voice key status changed cb");
+ MA_SLOGD("[Client DEBUG] Unset Multi-assistant voice key status changed cb"); //LCOV_EXCL_LINE
ma_state_e state;
}
int ma_add_wake_word(const char* wake_word, const char *language) {
- MA_SLOGD("[Manager] Add wake word");
+ MA_SLOGD("[Manager] Add wake word"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Add wake word : %s %s", wake_word, language);
+ MA_SLOGI("[Client DEBUG] Add wake word : %s %s", wake_word, language); //LCOV_EXCL_LINE
/* Add wake word */
int pid = getpid();
int ret = ma_dbus_add_wake_word(pid, wake_word, language);
if (0 != ret) {
- MA_SLOGW("[WARNING] Failed to add wake word");
+ MA_SLOGW("[WARNING] Failed to add wake word"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to add");
+ MA_SLOGD("[DEBUG] Success to add"); //LCOV_EXCL_LINE
}
return ret;
}
int ma_remove_wake_word(const char* wake_word, const char *language) {
- MA_SLOGD("[Manager] Remove wake word");
+ MA_SLOGD("[Manager] Remove wake word"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
- MA_SLOGD("@@@ [Manager] not supported");
+ MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
return MA_ERROR_NOT_SUPPORTED;
}
ma_state_e state;
if (0 != ma_client_get_client_state(g_ma, &state)) {
- MA_SLOGE("[ERROR] A handle is not available");
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] A handle is not available"); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
if (state != MA_STATE_READY) {
- MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state);
- MA_SLOGD("@@@");
+ MA_SLOGE("[ERROR] Invalid State: Current state is not 'READY', state(%d)", state); //LCOV_EXCL_LINE
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
return MA_ERROR_INVALID_STATE;
}
- MA_SLOGI("[Client DEBUG] Remove wake word : %s %s", wake_word, language);
+ MA_SLOGI("[Client DEBUG] Remove wake word : %s %s", wake_word, language); //LCOV_EXCL_LINE
/* Remove wake word */
int pid = getpid();
int ret = ma_dbus_remove_wake_word(pid, wake_word, language);
if (0 != ret) {
- MA_SLOGW("[WARNING] Failed to remove wake word");
+ MA_SLOGW("[WARNING] Failed to remove wake word"); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("[DEBUG] Success to remove");
+ MA_SLOGD("[DEBUG] Success to remove"); //LCOV_EXCL_LINE
}
return ret;
}
-
-//LCOV_EXCL_STOP
bundle_get_byte(message, "content", (void**)(&v), &size);
if (size > STREAMING_BUFFER_SIZE) {
- MA_SLOGE("[ERROR] bundle contains data bigger than %d : %zu", STREAMING_BUFFER_SIZE, size);
+ MA_SLOGE("[ERROR] bundle contains data bigger than %d : %zu", STREAMING_BUFFER_SIZE, size); //LCOV_EXCL_LINE
return;
} else {
memcpy(buffer, v, size);
if (pending_buffer_size >= header.streaming_data_size) {
static int last_serial = 0;
if (header.streaming_data_serial != last_serial + 1) {
+ //LCOV_EXCL_START
MA_SLOGE("[ERROR] SERIAL MISMATCH in [%d] : %d => %d",
header.streaming_data_type, last_serial, header.streaming_data_serial);
+ //LCOV_EXCL_STOP
}
last_serial = header.streaming_data_serial;
pending_buffer + sizeof(streaming_data_header) + sizeof(streaming_data_audio_data_header),
audio_data_header.data_size);
if (0 == header.streaming_data_serial % 50) {
- MA_SLOGI("__ma_cb_audio_streaming() called, serial : %d", header.streaming_data_serial);
+ MA_SLOGI("__ma_cb_audio_streaming() called, serial : %d", header.streaming_data_serial); //LCOV_EXCL_LINE
}
}
} else if (streaming_data_type_streaming_section == header.streaming_data_type) {
{
int port_id = message_port_register_local_port(message_port, message_port_cb, NULL);
if (port_id < 0) {
- MA_SLOGD("Port register error: %d", port_id);
+ MA_SLOGD("Port register error: %d", port_id); //LCOV_EXCL_LINE
} else {
- MA_SLOGD("port_id: %d", port_id);
+ MA_SLOGD("port_id: %d", port_id); //LCOV_EXCL_LINE
g_local_port_id = port_id;
}
snprintf(if_name, 64, "%s", MA_CLIENT_SERVICE_INTERFACE);
if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_HELLO)) {
- MA_SLOGD("[DEBUG] Get Hello");
+ MA_SLOGD("[DEBUG] Get Hello"); //LCOV_EXCL_LINE
int pid = 0;
int response = -1;
dbus_message_get_args(msg, &err, DBUS_TYPE_INT32, &pid, DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("[ERROR] Dbus Error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
if (pid > 0) {
- MA_SLOGD("@@ ma client get hello : pid(%d) ", pid);
+ MA_SLOGD("@@ ma client get hello : pid(%d) ", pid); //LCOV_EXCL_LINE
response = 1;
} else {
- MA_SLOGE("@@ ma client get hello : invalid pid ");
+ MA_SLOGE("@@ ma client get hello : invalid pid "); //LCOV_EXCL_LINE
}
DBusMessage* reply = NULL;
dbus_message_append_args(reply, DBUS_TYPE_INT32, &response, DBUS_TYPE_INVALID);
if (!dbus_connection_send(g_conn_listener, reply, NULL))
- MA_SLOGE("@@ multi-assistant get hello : fail to send reply");
+ MA_SLOGE("@@ multi-assistant get hello : fail to send reply"); //LCOV_EXCL_LINE
else
- MA_SLOGD("@@ multi-assistant get hello : result(%d)", response);
+ MA_SLOGD("@@ multi-assistant get hello : result(%d)", response); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_listener);
dbus_message_unref(reply);
} else {
- MA_SLOGE("@@ multi-assistant get hello : fail to create reply message");
+ MA_SLOGE("@@ multi-assistant get hello : fail to create reply message"); //LCOV_EXCL_LINE
}
} /* MAS_METHOD_HELLO */
DBUS_TYPE_INVALID);
/* Just in case CONTINUE is received without START */
- MA_SLOGD("@@@ Send streaming data org event(%d)", event);
+ MA_SLOGD("@@@ Send streaming data org event(%d)", event); //LCOV_EXCL_LINE
if (event == MA_AUDIO_STREAMING_EVENT_CONTINUE && !start_received)
event = MA_AUDIO_STREAMING_EVENT_START;
/* Reset if FINISHED received */
if (event == MA_AUDIO_STREAMING_EVENT_FINISH) start_received = false;
- MA_SLOGD("@@@ Send streaming data event(%d) %d", event, count++);
+ MA_SLOGD("@@@ Send streaming data event(%d) %d", event, count++); //LCOV_EXCL_LINE
__ma_cb_audio_streaming(event, buffer, len);
- MA_SLOGD("@@@");
+ MA_SLOGD("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_SEND_SPEECH_DATA */
DBUS_TYPE_INT32, &state,
DBUS_TYPE_INVALID);
- MA_SLOGI("@@@ Active state : %d", state);
+ MA_SLOGI("@@@ Active state : %d", state); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("@@ state(%d)", state);
+ MA_SLOGD("@@ state(%d)", state); //LCOV_EXCL_LINE
__ma_cb_active_state_changed(state);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_ACTIVE_STATE_CHANGE */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_SERVICE_STATE_CHANGE)) {
DBUS_TYPE_INT32, &state,
DBUS_TYPE_INVALID);
- MA_SLOGI("@@@ Service state : %d", state);
+ MA_SLOGI("@@@ Service state : %d", state); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("@@ state(%d)", state);
+ MA_SLOGD("@@ state(%d)", state); //LCOV_EXCL_LINE
__ma_cb_service_state_changed(state);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_ACTIVE_STATE_CHANGE */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_WAKEUP_ENGINE_COMMAND)) {
DBUS_TYPE_STRING, &command,
DBUS_TYPE_INVALID);
- MA_SLOGI("@@@ Engine Command : %s", command);
+ MA_SLOGI("@@@ Engine Command : %s", command); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("@@ command(%s)", (command ? command : "NULL"));
+ MA_SLOGD("@@ command(%s)", (command ? command : "NULL")); //LCOV_EXCL_LINE
__ma_cb_wakeup_engine_command(command);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_WAKEUP_ENGINE_COMMAND */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_SEND_PREPROCESSING_INFORMATION)) {
DBUS_TYPE_STRING, &app_id,
DBUS_TYPE_INVALID);
- MA_SLOGI("@@@ Preprocessing appid : %s", app_id);
+ MA_SLOGI("@@@ Preprocessing appid : %s", app_id); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
char* temp_app_id = NULL;
if (NULL != app_id && strcmp("#NULL", app_id)) {
free(temp_app_id);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_SEND_PREPROCESSING_INFORMATION */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_AUDIO_STREAMING_DATA_SECTION)) {
DBUS_TYPE_INT32, §ion,
DBUS_TYPE_INVALID);
- MA_SLOGI("@@@ Data Section : %d", section);
+ MA_SLOGI("@@@ Data Section : %d", section); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
__ma_cb_audio_streaming_data_section_changed(section);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_AUDIO_STREAMING_DATA_SECTION */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_SEND_PREPROCESSING_RESULT)) {
DBUS_TYPE_INT32, &result,
DBUS_TYPE_INVALID);
- MA_SLOGI("@@@ Preprocessing Result : %d", result);
+ MA_SLOGI("@@@ Preprocessing Result : %d", result); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
__ma_cb_preprocessing_result_received(result);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_SEND_PREPROCESSING_RESULT */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_SEND_WAKEUP_ENGINE_COMMAND)) {
- MA_SLOGI("@@@ Activate");
+ MA_SLOGI("@@@ Activate"); //LCOV_EXCL_LINE
char* command = NULL;
dbus_message_get_args(msg, &err,
DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
__ma_cb_wakeup_engine_command(command);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_SEND_WAKEUP_ENGINE_COMMAND */
else if (dbus_message_is_method_call(msg, if_name, MAS_METHOD_VOICE_KEY_STATUS_CHANGE)) {
- MA_SLOGI("@@@ Activate");
+ MA_SLOGI("@@@ Activate"); //LCOV_EXCL_LINE
int status = 0;
dbus_message_get_args(msg, &err,
DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
__ma_cb_voice_key_status_changed(status);
}
- MA_SLOGI("@@@");
+ MA_SLOGI("@@@"); //LCOV_EXCL_LINE
} /* MAS_METHOD_VOICE_KEY_STATUS_CHANGE */
else if (dbus_message_is_signal(msg, if_name, MAS_METHOD_ERROR)) {
DBUS_TYPE_STRING, &err_msg,
DBUS_TYPE_INVALID);
- MA_SLOGE("[DEBUG] Get Error : %d %s", reason, err_msg);
+ MA_SLOGE("[DEBUG] Get Error : %d %s", reason, err_msg); //LCOV_EXCL_LINE
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ multi-assistant Get Error message : Get arguments error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("@@ multi-assistant Get Error message : reason(%d), msg(%s)", reason, err_msg);
+ MA_SLOGD("@@ multi-assistant Get Error message : reason(%d), msg(%s)", reason, err_msg); //LCOV_EXCL_LINE
__ma_cb_error(reason, err_msg);
}
} /* MAS_METHOD_ERROR */
else if (dbus_message_is_signal(msg, "org.freedesktop.DBus", "NameOwnerChanged")) {
- MA_SLOGD("[DEBUG] Owner Changed");
+ MA_SLOGD("[DEBUG] Owner Changed"); //LCOV_EXCL_LINE
DBusError err;
dbus_error_init(&err);
/* remove a rule for daemon error */
dbus_connection_flush(g_conn_listener);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Match Error (%s)", err.message);
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
__ma_cb_error(MA_ERROR_SERVICE_RESET, "Daemon Reset");
} /* NameOwnerChanged */
else {
+ //LCOV_EXCL_START
MA_SLOGE("Message is NOT valid");
MA_SLOGE("dbus_message_contains_unix_fds : %d", dbus_message_contains_unix_fds(msg));
MA_SLOGE("dbus_message_get_destination : %s", dbus_message_get_destination(msg));
MA_SLOGE("dbus_message_get_signature : %s", dbus_message_get_signature(msg));
MA_SLOGE("dbus_message_get_path : %s", dbus_message_get_path(msg));
MA_SLOGE("dbus_message_get_serial : %d", dbus_message_get_serial(msg));
+ //LCOV_EXCL_STOP
dbus_message_unref(msg);
break;
}
g_conn_sender = dbus_bus_get_private(DBUS_BUS_SESSION, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Dbus Connection Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
if (NULL == g_conn_sender) {
g_conn_listener = dbus_bus_get_private(DBUS_BUS_SESSION, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Dbus Connection Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
if (NULL == g_conn_listener) {
memset(service_name, '\0', 64);
snprintf(service_name, 64, "%s_%d", MA_CLIENT_SERVICE_NAME, pid);
- MA_SLOGD("service name is %s", service_name);
+ MA_SLOGD("service name is %s", service_name); //LCOV_EXCL_LINE
/* register our name on the bus, and check for errors */
ret = dbus_bus_request_name(g_conn_listener, service_name, DBUS_NAME_FLAG_REPLACE_EXISTING, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Name Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
if (DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER != ret) {
dbus_bus_add_match(g_conn_listener, rule, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Match Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
__ma_dbus_connection_free();
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
}
int fd = 0;
__ma_dbus_connection_free();
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("Get fd from dbus : %d", fd);
+ MA_SLOGD("Get fd from dbus : %d", fd); //LCOV_EXCL_LINE
}
g_fd_handler = ecore_main_fd_handler_add(fd, ECORE_FD_READ, (Ecore_Fd_Cb)listener_event_callback, g_conn_listener, NULL, NULL);
dbus_bus_release_name(g_conn_listener, service_name, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("[ERROR] Dbus Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
}
bool sender_connected = dbus_connection_get_is_connected(g_conn_sender);
bool listener_connected = dbus_connection_get_is_connected(g_conn_listener);
+ //LCOV_EXCL_START
MA_SLOGW("[DBUS] Sender(%s) Listener(%s)",
- sender_connected ? "Connected" : "Not connected", listener_connected ? "Connected" : "Not connected"); //LCOV_EXCL_LINE
+ sender_connected ? "Connected" : "Not connected", listener_connected ? "Connected" : "Not connected");
+ //LCOV_EXCL_STOP
if (false == sender_connected || false == listener_connected) {
ma_dbus_close_connection();
result_msg = dbus_connection_send_with_reply_and_block(g_conn_sender, msg, 1000, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("[ERROR] Dbus Error (%s) %p", err.message, result_msg); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
dbus_message_unref(msg);
MA_SLOGE("@@ Request multi-assistant initialize : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant initialize : pid(%d)", pid);
+ MA_SLOGD("[DEBUG] multi-assistant initialize : pid(%d)", pid); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
dbus_message_set_no_reply(msg, TRUE);
if (1 != dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
dbus_bus_add_match(g_conn_listener, rule, &err);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Match Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
return 0;
dbus_connection_flush(g_conn_listener);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("Match Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
DBusMessage* msg;
MA_SLOGE("@@ Request multi-assistant deinitialize : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant deinitialize : pid(%d)", pid);
+ MA_SLOGD("[DEBUG] multi-assistant deinitialize : pid(%d)", pid); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
dbus_message_unref(msg);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGD("[ERROR] Dbus Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
if (NULL != result_msg) {
DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
result = MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
}
dbus_message_unref(result_msg);
if (0 == result) {
- MA_SLOGD("@@ multi-assistant finalize : result = %d", result);
+ MA_SLOGD("@@ multi-assistant finalize : result = %d", result); //LCOV_EXCL_LINE
} else {
- MA_SLOGE("@@ multi-assistant finalize : result = %d", result);
+ MA_SLOGE("@@ multi-assistant finalize : result = %d", result); //LCOV_EXCL_LINE
}
} else {
MA_SLOGE("@@ Result message is NULL "); //LCOV_EXCL_LINE
MA_SLOGE("@@ Request multi-assistant recording audio format : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant recording audio format");
+ MA_SLOGD("[DEBUG] multi-assistant recording audio format"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
dbus_message_unref(msg);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGD("[ERROR] Dbus Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
int tmp_rate;
DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
result = MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
}
dbus_message_unref(result_msg);
*rate = tmp_rate;
*channel = tmp_channel;
*audio_type = tmp_audio_type;
- MA_SLOGD("@@ multi-assistant get recording audio format : result = %d, rate = %d, channel = %d, audio_type = %d", result, *rate, *channel, *audio_type);
+ MA_SLOGD("@@ multi-assistant get recording audio format : result = %d, rate = %d, channel = %d, audio_type = %d", result, *rate, *channel, *audio_type); //LCOV_EXCL_LINE
} else {
- MA_SLOGE("@@ multi-assistant get recording audio format : result = %d", result);
+ MA_SLOGE("@@ multi-assistant get recording audio format : result = %d", result); //LCOV_EXCL_LINE
}
} else {
- MA_SLOGE("@@ Result message is NULL");
+ MA_SLOGE("@@ Result message is NULL"); //LCOV_EXCL_LINE
ma_dbus_reconnect();
result = MA_ERROR_TIMED_OUT;
}
MA_SLOGE("@@ Request multi-assistant recording audio source type : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant recording audio source type");
+ MA_SLOGD("[DEBUG] multi-assistant recording audio source type"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
dbus_message_unref(msg);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGD("[ERROR] Dbus Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
+ //LCOV_EXCL_STOP
}
char* tmp_type = NULL;
DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
+ //LCOV_EXCL_START
MA_SLOGE("@@ Get arguments error (%s)", err.message);
dbus_error_free(&err);
result = MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
}
dbus_message_unref(result_msg);
if (0 == result && NULL != type) {
*type = strdup(tmp_type);
- MA_SLOGD("@@ multi-assistant get recording audio source type : result = %d, type = %s", result, *type);
+ MA_SLOGD("@@ multi-assistant get recording audio source type : result = %d, type = %s", result, *type); //LCOV_EXCL_LINE
} else {
- MA_SLOGE("@@ multi-assistant get recording audio source type : result = %d, type(%p)", result, type);
+ MA_SLOGE("@@ multi-assistant get recording audio source type : result = %d, type(%p)", result, type); //LCOV_EXCL_LINE
}
} else {
- MA_SLOGE("@@ Result message is NULL");
+ MA_SLOGE("@@ Result message is NULL"); //LCOV_EXCL_LINE
ma_dbus_reconnect();
result = MA_ERROR_TIMED_OUT;
}
MA_SLOGE("@@ Request multi-assistant send ASR result : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant send ASR result");
+ MA_SLOGD("[DEBUG] multi-assistant send ASR result"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
dbus_message_set_no_reply(msg, TRUE);
if (1 != dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant send result : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant send result");
+ MA_SLOGD("[DEBUG] multi-assistant send result"); //LCOV_EXCL_LINE
}
char* tmp_disp_text = NULL;
dbus_message_set_no_reply(msg, TRUE);
if (1 != dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
if (NULL != tmp_disp_text) {
free(tmp_disp_text);
tmp_result_json = NULL;
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant send recognition result : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant send recognition result");
+ MA_SLOGD("[DEBUG] multi-assistant send recognition result"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ multi-assistant send streaming request : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant send streaming request");
+ MA_SLOGD("[DEBUG] multi-assistant send streaming request"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant stop streaming audio data : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant stop streaming audio data");
+ MA_SLOGD("[DEBUG] multi-assistant stop streaming audio data"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant update voice feedback state : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant update voice feedback state");
+ MA_SLOGD("[DEBUG] multi-assistant update voice feedback state"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant send assistant specific command : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant send assistant specific command");
+ MA_SLOGD("[DEBUG] multi-assistant send assistant specific command"); //LCOV_EXCL_LINE
}
char* tmp_command = NULL;
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (NULL != tmp_command) {
free(tmp_command);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant set background system volume : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant set background system volume");
+ MA_SLOGD("[DEBUG] multi-assistant set background system volume"); //LCOV_EXCL_LINE
}
dbus_message_append_args(msg,
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant set preprocessing allow mode : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant set preprocessing allow mode");
+ MA_SLOGD("[DEBUG] multi-assistant set preprocessing allow mode"); //LCOV_EXCL_LINE
}
char* tmp_app_id = NULL;
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
tmp_app_id = NULL;
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant send preprocessing result : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant send preprocessing result");
+ MA_SLOGD("[DEBUG] multi-assistant send preprocessing result"); //LCOV_EXCL_LINE
}
int tmp_result = (result ? 1 : 0);
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant set wake word audio require flag : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant set wake word audio require flag");
+ MA_SLOGD("[DEBUG] multi-assistant set wake word audio require flag"); //LCOV_EXCL_LINE
}
int tmp_require = (require ? 1 : 0);
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
MA_SLOGE("[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant set assistant wakeup language : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant set assistant wakeup language");
+ MA_SLOGD("[DEBUG] multi-assistant set assistant wakeup language"); //LCOV_EXCL_LINE
}
char* tmp_language = NULL;
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
tmp_language = NULL;
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant add wake word : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant add wake word");
+ MA_SLOGD("[DEBUG] multi-assistant add wake word"); //LCOV_EXCL_LINE
}
char* tmp_wake_word = NULL;
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
tmp_language = NULL;
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}
MA_SLOGE("@@ Request multi-assistant remove wake word : Fail to make message"); //LCOV_EXCL_LINE
return MA_ERROR_OPERATION_FAILED;
} else {
- MA_SLOGD("[DEBUG] multi-assistant remove wake word");
+ MA_SLOGD("[DEBUG] multi-assistant remove wake word"); //LCOV_EXCL_LINE
}
char* tmp_wake_word = NULL;
DBusError error;
dbus_error_init (&error);
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
+ //LCOV_EXCL_START
if (dbus_error_is_set (&error)) {
MA_SLOGE("[Dbus ERROR] Fail to Send : %s", error.message); //LCOV_EXCL_LINE
dbus_error_free (&error);
tmp_language = NULL;
}
return MA_ERROR_OPERATION_FAILED;
+ //LCOV_EXCL_STOP
} else {
- MA_SLOGD("[Dbus DEBUG] Success to Send");
+ MA_SLOGD("[Dbus DEBUG] Success to Send"); //LCOV_EXCL_LINE
dbus_connection_flush(g_conn_sender);
}