static int __vc_elm_get_feature_enabled()
{
if (0 == g_feature_enabled) {
- VC_ELM_LOG_DBG("[ERROR] Voice control feature NOT supported");
+ VC_ELM_LOG_DBG("[ERROR] Voice control feature NOT supported"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_NOT_SUPPORTED;
} else if (-1 == g_feature_enabled) {
bool vc_supported = false;
if (0 == system_info_get_platform_bool(VC_ELM_FEATURE_PATH, &vc_supported)) {
if (0 == system_info_get_platform_bool(VC_ELM_MIC_FEATURE_PATH, &mic_supported)) {
if (false == vc_supported || false == mic_supported) {
- VC_ELM_LOG_DBG("[ERROR] Voice control feature NOT supported");
+ VC_ELM_LOG_DBG("[ERROR] Voice control feature NOT supported"); //LCOV_EXCL_LINE
g_feature_enabled = 0;
return VC_ELM_ERROR_NOT_SUPPORTED;
}
g_feature_enabled = 1;
} else {
- VC_ELM_LOG_DBG("[ERROR] Fail to get feature value");
+ VC_ELM_LOG_DBG("[ERROR] Fail to get feature value"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_NOT_SUPPORTED;
}
} else {
- VC_ELM_LOG_DBG("[ERROR] Fail to get feature value");
+ VC_ELM_LOG_DBG("[ERROR] Fail to get feature value"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_NOT_SUPPORTED;
}
}
{
int ret = cynara_initialize(&p_cynara, NULL);
if (CYNARA_API_SUCCESS != ret)
- VC_ELM_LOG_ERR("[ERROR] fail to initialize");
+ VC_ELM_LOG_ERR("[ERROR] fail to initialize"); //LCOV_EXCL_LINE
return ret == CYNARA_API_SUCCESS;
}
fp = fopen(label_path, "r");
if (fp != NULL) {
if (0 >= fread(smack_label, 1, sizeof(smack_label), fp))
- VC_ELM_LOG_ERR("[ERROR] fail to fread");
+ VC_ELM_LOG_ERR("[ERROR] fail to fread"); //LCOV_EXCL_LINE
fclose(fp);
}
char uid[16];
if (0 == g_privilege_allowed) {
- VC_ELM_LOG_ERR("[ERROR] Permission is denied");
+ VC_ELM_LOG_ERR("[ERROR] Permission is denied"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_PERMISSION_DENIED;
} else if (-1 == g_privilege_allowed) {
if (false == __check_privilege_initialize()) {
- VC_ELM_LOG_ERR("[ERROR] privilege initialize is failed");
+ VC_ELM_LOG_ERR("[ERROR] privilege initialize is failed"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_PERMISSION_DENIED;
}
snprintf(uid, 16, "%d", getuid());
if (false == __check_privilege(uid, VC_ELM_PRIVILEGE)) {
- VC_ELM_LOG_ERR("[ERROR] Permission is denied");
+ VC_ELM_LOG_ERR("[ERROR] Permission is denied"); //LCOV_EXCL_LINE
g_privilege_allowed = 0;
__check_privilege_deinitialize();
return VC_ELM_ERROR_PERMISSION_DENIED;
(void)data; //unused parameter
int ret = vconf_get_bool(VCONFKEY_VC_VOICE_TOUCH_AUTOMODE, &g_is_vt_automode);
if (0 != ret) {
- VC_ELM_LOG_ERR("Fail to get vconfkey(%s), current voice touch mode(%d)", key, g_is_vt_automode);
+ VC_ELM_LOG_ERR("Fail to get vconfkey(%s), current voice touch mode(%d)", key, g_is_vt_automode); //LCOV_EXCL_LINE
}
return;
}
if (true == is_vc_elm_initialized) {
- VC_ELM_LOG_DBG("vc elm is already initialized");
+ VC_ELM_LOG_DBG("vc elm is already initialized"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_DBG("vc elm is already deinitialized");
+ VC_ELM_LOG_DBG("vc elm is already deinitialized"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
}
if (NULL == callback) {
- VC_ELM_LOG_ERR("Invalid parameters detected!");
+ VC_ELM_LOG_ERR("Invalid parameters detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
data.callback = callback;
data.data = user_data;
hash = _vc_elm_core_get_config_widget_map();
if (NULL == hash) {
- VC_ELM_LOG_ERR("Config widget map is NULL!");
+ VC_ELM_LOG_ERR("Config widget map is NULL!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OPERATION_FAILED;
}
eina_hash_foreach(hash, __hash_fn, &data);
}
if ((NULL == widget) || (NULL == callback)) {
- VC_ELM_LOG_ERR("Invalid parameters detected!");
+ VC_ELM_LOG_ERR("Invalid parameters detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
hash = _vc_elm_core_get_config_widget_map();
if (NULL == hash) {
- VC_ELM_LOG_ERR("Config widget map is NULL!");
+ VC_ELM_LOG_ERR("Config widget map is NULL!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OPERATION_FAILED;
}
actions_list = (Eina_List *)eina_hash_find(hash, widget);
if (NULL == actions_list) {
- VC_ELM_LOG_ERR("Action list is NULL!");
+ VC_ELM_LOG_ERR("Action list is NULL!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OPERATION_FAILED;
}
EINA_LIST_FOREACH(actions_list, l, action_tag) {
}
if ((NULL == action) || (NULL == command)) {
- VC_ELM_LOG_ERR("Invalid parameters detected!");
+ VC_ELM_LOG_ERR("Invalid parameters detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
hash = _vc_elm_core_get_config_action_map();
if (NULL == hash) {
- VC_ELM_LOG_ERR("Config action map is NULL!");
+ VC_ELM_LOG_ERR("Config action map is NULL!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OPERATION_FAILED;
}
command_name = eina_hash_find(_vc_elm_core_get_config_action_map(), action);
if (NULL == command_name) {
- VC_ELM_LOG_ERR("No command for given action name!");
+ VC_ELM_LOG_ERR("No command for given action name!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OPERATION_FAILED;
}
len = strlen(command_name) + 1;
*command = (char *)calloc(len, sizeof(char));
if (NULL == *command) {
- VC_ELM_LOG_ERR("Can not allocate memory!");
+ VC_ELM_LOG_ERR("Can not allocate memory!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OPERATION_FAILED;
}
memcpy(*command, command_name, len);
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid parameters detected! (vc_elm_h *) poiter is NULL");
+ VC_ELM_LOG_ERR("Invalid parameters detected! (vc_elm_h *) poiter is NULL"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if ((NULL == object) || (!elm_object_widget_check(object))) {
- VC_ELM_LOG_ERR("Invalid parameters detected! Incorrect (Evas_Object *)");
+ VC_ELM_LOG_ERR("Invalid parameters detected! Incorrect (Evas_Object *)"); //LCOV_EXCL_LINE
*vc_elm = NULL;
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
if (!_vc_elm_core_register_default_widget(_get_ui_object_name(object), EINA_FALSE, NULL) || (NULL == eina_hash_find(_vc_elm_core_get_config_widget_map(), elm_widget_type_get(object)))) {
- VC_ELM_LOG_ERR("Not supported widget");
+ VC_ELM_LOG_ERR("Not supported widget"); //LCOV_EXCL_LINE
*vc_elm = NULL;
return VC_ELM_ERROR_NOT_SUPPORTED;
}
handler = (vc_elm_s *)calloc(1, sizeof(vc_elm_s));
if (NULL == handler) {
- VC_ELM_LOG_ERR("Calloc function returned NULL");
+ VC_ELM_LOG_ERR("Calloc function returned NULL"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_OUT_OF_MEMORY;
}
handler->type = VC_ELM_TYPE_EVAS_OBJECT;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid parameters detected! (vc_elm_h *) poiter is NULL");
+ VC_ELM_LOG_ERR("Invalid parameters detected! (vc_elm_h *) poiter is NULL"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if (NULL == item) {
- VC_ELM_LOG_ERR("Invalid parameters detected! (Elm_Object_Item *) poiter is NULL");
+ VC_ELM_LOG_ERR("Invalid parameters detected! (Elm_Object_Item *) poiter is NULL"); //LCOV_EXCL_LINE
*vc_elm = NULL;
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
handler = (vc_elm_s *)calloc(1, sizeof(vc_elm_s));
if (NULL == handler) {
- VC_ELM_LOG_ERR("Calloc function returned NULL");
+ VC_ELM_LOG_ERR("Calloc function returned NULL"); //LCOV_EXCL_LINE
*vc_elm = NULL;
return VC_ELM_ERROR_OUT_OF_MEMORY;
}
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
handler = (vc_elm_s *)vc_elm;
type = handler->type;
if (!((VC_ELM_TYPE_EVAS_OBJECT == type) || (VC_ELM_TYPE_ITEM == type))) {
- VC_ELM_LOG_ERR("Invalid type detected!");
+ VC_ELM_LOG_ERR("Invalid type detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
list = eina_list_data_find_list(g_handlers_list, handler);
if (NULL == list) {
- VC_ELM_LOG_ERR("Bad handler pointer detected!");
+ VC_ELM_LOG_ERR("Bad handler pointer detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
g_handlers_list = eina_list_remove_list(g_handlers_list, list);
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (NULL == vc_elm) {
- VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!");
+ VC_ELM_LOG_ERR("Invalid vc_elm parameter detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
if ((NULL == pos_x) || (NULL == pos_y)) {
- VC_ELM_LOG_ERR("Invalid position poiters detected!");
+ VC_ELM_LOG_ERR("Invalid position poiters detected!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_PARAMETER;
}
type = handler->type;
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}
}
if (false == is_vc_elm_initialized) {
- VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!");
+ VC_ELM_LOG_ERR("Invalid state detected! Library not initialized!"); //LCOV_EXCL_LINE
return VC_ELM_ERROR_INVALID_STATE;
}