for (cursor = result->values; cursor; cursor = cursor->next) {
ctsvc_result_value_s *data = cursor->data;
if (data->type == CTSVC_VIEW_DATA_TYPE_STR)
+ /* LCOV_EXCL_START */
free(data->value.s);
+ /* LCOV_EXCL_STOP */
free(data);
}
g_slist_free(result->values);
ctsvc_result_value_s *data;
if (CTSVC_VIEW_DATA_TYPE_INT != (CTSVC_VIEW_DATA_TYPE_INT & property_id)) {
+ /* LCOV_EXCL_START */
ERR("property_id is not int type.");
return CONTACTS_ERROR_INVALID_PARAMETER;
+ /* LCOV_EXCL_STOP */
}
for (cursor = result->values; cursor; cursor = cursor->next) {
data = cursor->data;
if (data->property_id == property_id) {
#ifdef _CONTACTS_IPC_SERVER
+ /* LCOV_EXCL_START */
if (CTSVC_PROPERTY_PHONELOG_SIM_SLOT_NO == property_id
|| CTSVC_PROPERTY_PHONELOG_STAT_SIM_SLOT_NO == property_id) {
CHECK_DIRTY_VAL(data->value.i, value, is_dirty);
data->value.i = value;
}
return CONTACTS_ERROR_NONE;
+ /* LCOV_EXCL_STOP */
}
}
data->value.b = value;
return CONTACTS_ERROR_NONE;
} else {
- /* LCOV_EXCL_START */
ERR("use another get_type API, (type : %d)", data->type);
return CONTACTS_ERROR_INVALID_PARAMETER;
- /* LCOV_EXCL_STOP */
}
}
}
data = calloc(1, sizeof(ctsvc_result_value_s));
if (NULL == data) {
- /* LCOV_EXCL_START */
ERR("calloc() Fail");
return CONTACTS_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
data->property_id = property_id;
data->type = CTSVC_VIEW_DATA_TYPE_BOOL;
str_len = strlen(CTSVC_CONTACT_IMG_FULL_LOCATION) + strlen(str) + 2;
full_path = calloc(1, str_len);
if (NULL == full_path) {
- /* LCOV_EXCL_START */
ERR("calloc() Fail");
return CONTACTS_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
snprintf(full_path, str_len, "%s/%s", CTSVC_CONTACT_IMG_FULL_LOCATION, str);
}
data = calloc(1, sizeof(ctsvc_result_value_s));
if (NULL == data) {
- /* LCOV_EXCL_START */
ERR("calloc() Fail");
return CONTACTS_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
data->property_id = property_id;
data->type = CTSVC_VIEW_DATA_TYPE_STR;
str_len = strlen(CTSVC_CONTACT_IMG_FULL_LOCATION) + strlen(str) + 2;
full_path = calloc(1, str_len);
if (NULL == full_path) {
- /* LCOV_EXCL_START */
ERR("calloc() Fail");
free(data);
return CONTACTS_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
snprintf(full_path, str_len, "%s/%s", CTSVC_CONTACT_IMG_FULL_LOCATION, str);
}
*out_value = data->value.b;
return CONTACTS_ERROR_NONE;
} else {
- /* LCOV_EXCL_START */
ERR("use another get_type API, (type : %d)", data->type);
return CONTACTS_ERROR_INVALID_PARAMETER;
- /* LCOV_EXCL_STOP */
}
}
}