#include "ITapiCall.h"
#include "tapi_private.h"
+/* LCOV_EXCL_START */
static void on_response_call_dial(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
GError *error = 0;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_call_status_all(TapiHandle *handle, TelCallStatusCallback cb, void *user_data)
{
g_variant_get(gv, "(aa{sv})", &iter);
while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+ /* LCOV_EXCL_START */
while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
if (!g_strcmp0(key, "call_id"))
data.CallHandle = g_variant_get_int32(value);
else if (!g_strcmp0(key, "is_volte_call"))
data.bVolteCall = (int)g_variant_get_boolean(value);
}
+ /* LCOV_EXCL_STOP */
+
g_variant_iter_free(iter_row);
cb(&data, user_data);
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_START */
EXPORT_API int tel_get_call_privacy_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data)
{
struct tapi_resp_data *evt_cb_data = 0;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_call_preferred_voice_subscription(TapiHandle *handle, TelCallPreferredVoiceSubs_t *preferred_subscription)
{
if (cp_name) {
handle->cp_name = g_strdup(cp_name);
} else {
+ /* LCOV_EXCL_START */
char **list = NULL;
int i = 0;
g_free(list[i++]);
g_free(list);
+ /* LCOV_EXCL_STOP */
}
handle->evt_list = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
return handle;
}
+/* LCOV_EXCL_START */
static gboolean _unregister_noti(gpointer key, gpointer value, gpointer user_data)
{
struct tapi_evt_cb *evt_cb_data = value;
return TRUE;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_deinit(TapiHandle *handle)
{
#include "tapi_log.h"
#include "tapi_private.h"
+/* LCOV_EXCL_START */
static void on_response_default_set(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
GError *error = NULL;
return data;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_check_modem_power_status(TapiHandle *handle, int *result)
{
return ret;
}
+
+/* LCOV_EXCL_START */
EXPORT_API int tel_get_device_info(TapiHandle *handle, tapi_response_cb callback, void *user_data)
{
struct tapi_resp_data *evt_cb_data = NULL;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
#include "ITapiNetwork.h"
#include "tapi_private.h"
+/* LCOV_EXCL_START */
static int _convert_systemtype_to_act(int type)
{
switch (type) {
return TAPI_NETWORK_SYSTEM_NO_SRV;
}
-/* LCOV_EXCL_START */
static void on_signal_registration_status(TapiHandle *handle, GVariant *param,
char *noti_id, struct tapi_evt_cb *evt_cb_data)
{
TAPI_INVOKE_NOTI_CALLBACK(¬i);
}
-/* LCOV_EXCL_STOP */
static struct signal_map signals[] = {
{ "RegistrationStatus", on_signal_registration_status },
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_network_default_data_subscription(TapiHandle *handle, TelNetworkDefaultDataSubs_t *default_subscription)
{
return ret;
}
+/* LCOV_EXCL_START */
EXPORT_API int tel_set_network_default_subscription(TapiHandle *handle, tapi_response_cb callback, void *user_data)
{
struct tapi_resp_data *evt_cb_data = NULL;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_network_default_subscription(TapiHandle *handle, TelNetworkDefaultSubs_t *default_subscription)
{
#include "ITapiPhonebook.h"
#include "tapi_private.h"
+/* LCOV_EXCL_START */
static void move_str(char *dest, unsigned int len, gchar *src)
{
if (!dest || !src)
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
g_variant_unref(dbus_result);
g_free(evt_cb_data);
}
-/* LCOV_EXCL_STOP */
/**
*
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pMenuSelect, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
item_id = pMenuSelect->itemIdentifier;
handle->ca, on_response_menu_selection_envelop, evt_cb_data);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pEventData, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
for (g_index = 0; g_event_list[g_index] > 0; g_index++) {
if (pEventData->eventDownloadType == TAPI_EVENT_SAT_DW_TYPE_BROWSER_TERMINATION
|| pEventData->eventDownloadType == TAPI_EVENT_SAT_DW_TYPE_DATA_AVAILABLE
handle->ca, on_response_download_event_envelop, evt_cb_data);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pMainMenu, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
memset(pMainMenu, 0, sizeof(TelSatSetupMenuInfo_t));
error = NULL;
dbg("menu updated (%d)", pMainMenu->bIsUpdatedSatMainMenu);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
command_id = commandId;
display_status = ((status == TAPI_SAT_DISPLAY_SUCCESS) ? TRUE : FALSE);
dbg("command id(%d) display status(%d)", command_id, display_status);
dbg("result (%d)", result);
return result;
- /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pUserConfirmData, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
command_id = pUserConfirmData->commandId;
command_type = pUserConfirmData->commandType;
key_type = pUserConfirmData->keyType;
dbg("result (%d)", result);
return result;
- /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pAppRetInfo, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
command_id = pAppRetInfo->commandId;
command_type = pAppRetInfo->commandType;
app_exec_result = _tapi_sat_gen_app_exec_result_data(pAppRetInfo);
dbg("result (%d)", result);
return result;
- /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_STOP */
return; \
} while (0)
+/* LCOV_EXCL_START */
static TapiResult_t __check_err_msg(gchar *err_msg)
{
TapiResult_t ret = TAPI_API_OPERATION_FAILED;
g_variant_unref(dbus_result);
}
-/* LCOV_EXCL_START */
static void on_response_verify_sim_pins(GObject *source_object, GAsyncResult *res,
gpointer user_data)
{
g_free(evt_cb_data);
g_variant_unref(dbus_result);
}
-/* LCOV_EXCL_STOP */
static void on_response_get_sim_facility(GObject *source_object, GAsyncResult *res,
gpointer user_data)
g_free(evt_cb_data);
g_variant_unref(dbus_result);
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_sim_init_info(TapiHandle *handle,
TelSimCardStatus_t *sim_status, int *card_changed)
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_START */
EXPORT_API int tel_get_sim_type(TapiHandle *handle, TelSimCardType_t *card_type)
{
GError *gerr = NULL;
}
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_sim_imsi(TapiHandle *handle, TelSimImsiInfo_t *imsi)
{
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_START */
EXPORT_API int tel_get_sim_ecc(TapiHandle *handle, TelSimEccList_t *ecc)
{
GError *gerr = NULL;
TAPI_RET_ERR_NUM_IF_FAIL(pin_data, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pin_data->pw, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("pin type[%d]", pin_data->type);
free(gpw);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_verify_sim_puks(TapiHandle *handle, const TelSimSecPw_t *puk_data,
TAPI_RET_ERR_NUM_IF_FAIL((puk_data != NULL && new_pin_data != NULL), TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL((puk_data->pw != NULL && new_pin_data->pw != NULL), TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("puk type[%d] pin type[%d]", puk_data->type, new_pin_data->type);
free(gpuk);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_pin,
TAPI_RET_ERR_NUM_IF_FAIL((old_pin != NULL && new_pin != NULL), TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL((old_pin->pw != NULL && new_pin->pw != NULL), TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("old_pin type[%d], new_pin type[%d]", old_pin->type, new_pin->type);
free(gpin_n);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw,
TAPI_RET_ERR_NUM_IF_FAIL(pw, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pw->pw, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
dbg("facility type[%d]", pw->lock_type);
free(gpw);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw,
TAPI_RET_ERR_NUM_IF_FAIL(pw, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pw->pw, TAPI_API_INVALID_PTR);
- /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("facility type[%d]", pw->lock_type);
free(gpw);
return TAPI_API_SUCCESS;
- /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type,
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_get_sim_application_list(TapiHandle *handle, unsigned char *app_list)
{
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_START */
EXPORT_API int tel_get_sim_isim_service_table(TapiHandle *handle,
tapi_response_cb callback, void *user_data)
{
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
+
#include "ITapiNetText.h"
#include "tapi_private.h"
+/* LCOV_EXCL_START */
static void on_response_default(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
GError *error = NULL;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
#include "ITapiSs.h"
#include "tapi_private.h"
+/* LCOV_EXCL_START */
static void on_response_get_ss_barring_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
GError *error = 0;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */