static gint __bluetooth_pb_person_id_from_phonelog_id(gint phonelog_id);
-
+/* LCOV_EXCL_START */
static gchar *__bluetooth_pb_vcard_escape(const gchar *str)
{
FN_START;
FN_END;
return g_string_free(string, FALSE);
}
+/* LCOV_EXCL_STOP */
static gboolean __bluetooth_pb_vcard_qp_encode_check(const gchar *str)
{
return FALSE;
}
+/* LCOV_EXCL_START */
/* get string length, which convert to quoted-printable encoding */
static gint __bluetooth_pb_vcard_qp_encode_strlen(const gchar *str,
gint len)
FN_END;
return g_string_free(enc, FALSE);
}
+/* LCOV_EXCL_STOP */
static void __bluetooth_pb_vcard_append_param_v21(GString *string,
const gchar *param)
__bluetooth_pb_vcard_append_param_v21(property, param);
if (__bluetooth_pb_vcard_qp_encode_check(value)) {
+ /* LCOV_EXCL_START */
gchar *enc = NULL;
__bluetooth_pb_vcard_append_param_v21(property,
g_string_append(property, enc);
g_free(enc);
}
+ /* LCOV_EXCL_STOP */
} else {
g_string_append(property, ":");
if (value)
FN_END;
}
-
+/* LCOV_EXCL_START */
static void __bluetooth_pb_vcard_append_base64_encode_v21(GString *string,
const gchar *name,
const gchar *param,
g_free(fn);
}
+/* LCOV_EXCL_STOP */
/* image util APIs will be deprecated in Tizen 5.0. So we should replace it to new API
https://developer.tizen.org/development/guides/native-application/media-and-camera/image-editing#decode
}
#endif
+/* LCOV_EXCL_START */
static void __bluetooth_pb_vcard_append_photo_v21(GString *string,
contacts_record_h person)
{
g_free(escaped);
FN_END;
}
+/* LCOV_EXCL_STOP */
static void __bluetooth_pb_vcard_append_v30(GString *string,
const gchar *name,
FN_END;
}
+/* LCOV_EXCL_START */
static void __bluetooth_pb_vcard_remove_v30(GString *string,
const gchar *property_name)
{
FN_END;
return g_string_free(str, FALSE);
}
-
+/* LCOV_EXCL_STOP */
static gchar *__bluetooth_pb_vcard_real_contact_valist_v30(gint person_id,
gint phonelog_id,
if (status != CONTACTS_ERROR_NONE)
return NULL;
+ /* LCOV_EXCL_START */
status = contacts_vcard_make_from_person(person, &vcard);
if (status != CONTACTS_ERROR_NONE)
FN_END;
return vcard;
+ /* LCOV_EXCL_STOP */
}
__bluetooth_pb_vcard_append_qp_encode_v21(str, "TEL", "X-0", number);
g_free(number);
+ /* LCOV_EXCL_START */
if (((filter == 0) || (filter & VCARD_X_IRMC_CALL_DATETIME))
&& attr) {
gchar *datetime = NULL;
attr, datetime);
g_free(datetime);
}
+ /* LCOV_EXCL_STOP */
g_string_append(str, "END:VCARD\r\n");
return g_string_free(str, FALSE);
}
+/* LCOV_EXCL_START */
static gchar *__bluetooth_pb_vcard_real_call_v30(gint phonelog_id,
guint filter,
const gchar *attr)
FN_END;
return g_string_free(str, FALSE);
}
+/* LCOV_EXCL_STOP */
static gchar *__bluetooth_pb_vcard_real_call(gint phonelog_id,
guint filter,
return vcard;
}
+/* LCOV_EXCL_START */
static gchar **__bluetooth_pb_contact_add_field_str(contacts_record_h record,
int *field,
gint field_size)
FN_END;
return str;
}
+/* LCOV_EXCL_STOP */
static gint __bluetooth_pb_person_id_from_phonelog_id(gint phonelog_id)
{
if (status != CONTACTS_ERROR_NONE)
return 0;
+ /* LCOV_EXCL_START */
status = contacts_record_get_int(phone_log,
_contacts_phone_log.person_id,
&person_id);
FN_END;
return person_id;
+ /* LCOV_EXCL_STOP */
}
int _bluetooth_get_contact_addressbook(gint person_id)
if (status != CONTACTS_ERROR_NONE)
return PBAP_ADDRESSBOOK_PHONE; /* Default*/
+ /* LCOV_EXCL_START */
status = contacts_record_get_int(person,
_contacts_person.display_contact_id,
&contact_id);
return PBAP_ADDRESSBOOK_PHONE;
return PBAP_ADDRESSBOOK_SIM;
+ /* LCOV_EXCL_STOP */
}
/* API for vcard */
gchar *_bluetooth_pb_vcard_contact(gint person_id,
DBG("person_id %d\n", person_id);
if (person_id) {
+ /* LCOV_EXCL_START */
if (filter == 0 || (filter & VCARD_X_IRMC_CALL_DATETIME)) {
gchar *datetime = NULL;
filter, format,
NULL);
}
+ /* LCOV_EXCL_STOP */
} else
str = __bluetooth_pb_vcard_real_call(phonelog_id, filter,
format, attr);
if (status != CONTACTS_ERROR_NONE)
return NULL;
+ /* LCOV_EXCL_START */
status = contacts_record_get_str(person,
_contacts_person.display_name,
&str);
FN_END;
return str;
+ /* LCOV_EXCL_STOP */
}
gchar *_bluetooth_pb_name_from_person_id(gint person_id)
if (status != CONTACTS_ERROR_NONE)
return NULL;
+ /* LCOV_EXCL_START */
status = contacts_record_get_int(person,
_contacts_person.display_contact_id,
&contact_id);
contacts_record_destroy(contact, TRUE);
contacts_record_destroy(person, TRUE);
+ /* LCOV_EXCL_STOP */
FN_END;
return str;
if (status != CONTACTS_ERROR_NONE)
return NULL;
-
+ /* LCOV_EXCL_START */
status = contacts_record_get_int(person,
_contacts_person.display_contact_id,
&contact_id);
contacts_record_destroy(contact, TRUE);
contacts_record_destroy(person, TRUE);
+ /* LCOV_EXCL_STOP */
FN_END;
return str;
if (status != CONTACTS_ERROR_NONE)
return NULL;
+ /* LCOV_EXCL_START */
status = contacts_record_get_str_p(phone_log,
_contacts_phone_log.address,
&tmp);
str = g_strdup(tmp);
contacts_record_destroy(phone_log, TRUE);
+ /* LCOV_EXCL_STOP */
FN_END;
return str;
name = vconf_get_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR);
if (name == NULL)
- name = g_strdup("My Name");
+ name = g_strdup("My Name"); /* LCOV_EXCL_LINE */
FN_END;
return name;