{
if (0 == g_feature_enabled) {
//LCOV_EXCL_START
- MA_SLOGE("[ERROR] Multi-assistant feature NOT supported"); //LCOV_EXCL_LINE
+ MA_SLOGE("[ERROR] Multi-assistant feature NOT supported");
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"); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START
+ MA_SLOGE("[ERROR] Multi-assistant feature NOT supported");
g_feature_enabled = 0;
return MA_ERROR_NOT_SUPPORTED;
+ //LCOV_EXCL_STOP
}
g_feature_enabled = 1;
} else {
- MA_SLOGE("[ERROR] Fail to get feature value"); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START
+ MA_SLOGE("[ERROR] Fail to get feature value");
return MA_ERROR_NOT_SUPPORTED;
+ //LCOV_EXCL_STOP
}
} else {
- MA_SLOGE("[ERROR] Fail to get feature value"); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START
+ MA_SLOGE("[ERROR] Fail to get feature value");
return MA_ERROR_NOT_SUPPORTED;
+ //LCOV_EXCL_STOP
}
}
return 0;
}
snprintf(uid, 16, "%d", getuid());
if (false == __check_privilege(uid, MA_RECORDER_PRIVILEGE)) {
- MA_SLOGE("[ERROR] Permission for recording is denied"); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START
+ MA_SLOGE("[ERROR] Permission for recording is denied");
g_recorder_privilege_allowed = 0;
__check_privilege_deinitialize();
return MA_ERROR_PERMISSION_DENIED;
+ //LCOV_EXCL_STOP
}
__check_privilege_deinitialize();
}
}
snprintf(uid, 16, "%d", getuid());
if (false == __check_privilege(uid, MA_VOLUME_SET_PRIVILEGE)) {
- MA_SLOGE("[ERROR] Permission for volume set is denied"); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START
+ MA_SLOGE("[ERROR] Permission for volume set is denied");
g_volume_set_privilege_allowed = 0;
__check_privilege_deinitialize();
return MA_ERROR_PERMISSION_DENIED;
+ //LCOV_EXCL_STOP
}
__check_privilege_deinitialize();
}
}
}
+//LCOV_EXCL_START
static void add_retry_connection_timer(void* data)
{
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); //LCOV_EXCL_LINE
}
+//LCOV_EXCL_STOP
static void __start_prepare_func()
{
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()) {
MA_SLOGD("[Manager] Set assistant language"); //LCOV_EXCL_LINE
return ma_set_assistant_wakeup_language(language);
}
+//LCOV_EXCL_STOP
int ma_set_assistant_wakeup_language(const char* language)
{
static void __ma_ap_notify_error(void* data);
+//LCOV_EXCL_START
static int __ma_ap_get_feature_enabled()
{
if (0 == g_feature_enabled) {
- //LCOV_EXCL_START
MAAP_SLOGE("[ERROR] Multi-assistant feature NOT supported");
return MA_ERROR_NOT_SUPPORTED;
- //LCOV_EXCL_STOP
} else if (-1 == g_feature_enabled) {
bool ma_supported = false;
bool mic_supported = false;
char uid[16];
if (0 == g_recorder_privilege_allowed) {
- //LCOV_EXCL_START
MAAP_SLOGE("[ERROR] Permission for recording is denied");
return MA_ERROR_PERMISSION_DENIED;
- //LCOV_EXCL_STOP
} else if (-1 == g_recorder_privilege_allowed) {
if (false == __check_privilege_initialize()) {
MAAP_SLOGE("[ERROR] privilege initialize is failed"); //LCOV_EXCL_LINE