return ret;
}
-/* LCOV_EXCL_START */
int telephony_network_get_selection_mode(telephony_h handle, telephony_network_selection_mode_e *mode)
{
int ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_PERMISSION_DENIED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
g_variant_get(dbus_result, "(i)", tac);
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
g_variant_get(dbus_result, "(i)", sid);
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
g_variant_get(dbus_result, "(i)", nid);
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
g_variant_get(dbus_result, "(i)", bs_id);
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
g_variant_get(dbus_result, "(i)", bs_latitude);
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
g_variant_get(dbus_result, "(i)", bs_longitude);
g_variant_unref(dbus_result);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
if (strstr(error->message, "AccessDenied")) {
LOGE("PERMISSION_DENIED");
ret = TELEPHONY_ERROR_OPERATION_FAILED;
}
g_error_free(error);
+ /* LCOV_EXCL_STOP */
}
return ret;
}
-/* LCOV_EXCL_STOP */
return error_code;
}
-/* LCOV_EXCL_START */
int telephony_sim_get_lock_state(telephony_h handle, telephony_sim_lock_state_e *lock_state)
{
+ /* LCOV_EXCL_START */
TelSimCardStatus_t sim_card_state;
int error_code = TELEPHONY_ERROR_NONE;
TapiHandle *tapi_h;
}
return error_code;
+ /* LCOV_EXCL_STOP */
}
int telephony_sim_get_group_id1(telephony_h handle, char **gid1)
g_variant_unref(gid_gv);
g_variant_unref(sync_gv);
} else {
+ /* LCOV_EXCL_START */
LOGE("g_dbus_conn failed. error (%s)", gerr->message);
error_code = _convert_dbus_errmsg_to_sim_error(gerr->message);
g_error_free(gerr);
+ /* LCOV_EXCL_STOP */
}
}
if (ret == TAPI_API_SUCCESS) {
*state = (bool)tel_state;
LOGI("Call forwarding indicator state: [%s]", *state ? "ON" : "OFF");
+ /* LCOV_EXCL_START */
} else if (ret == TAPI_API_ACCESS_DENIED) {
LOGE("PERMISSION_DENIED");
error_code = TELEPHONY_ERROR_PERMISSION_DENIED;
LOGE("OPERATION_FAILED");
error_code = TELEPHONY_ERROR_OPERATION_FAILED;
}
+ /* LCOV_EXCL_STOP */
}
return error_code;
}
-/* LCOV_EXCL_STOP */