int ma_initialize(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
MA_SLOGI("[Client DEBUG] Initialize"); //LCOV_EXCL_LINE
int ma_deinitialize(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
MA_SLOGI("[Client DEBUG] Deinitialize"); //LCOV_EXCL_LINE
int ma_prepare(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
MA_SLOGI("[Client DEBUG] Prepare"); //LCOV_EXCL_LINE
int ma_unprepare(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
MA_SLOGI("[Client DEBUG] Unprepare"); //LCOV_EXCL_LINE
int ma_get_state(ma_state_e* state)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Get current state"); //LCOV_EXCL_LINE
int ma_get_current_language(char** language)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Get current language"); //LCOV_EXCL_LINE
int ma_get_recording_audio_format(int *rate, ma_audio_channel_e *channel, ma_audio_type_e *audio_type)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
if (NULL == rate || NULL == channel || NULL == audio_type) {
int ma_set_state_changed_cb(ma_state_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant client state changed cb"); //LCOV_EXCL_LINE
int ma_unset_state_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant client state changed cb"); //LCOV_EXCL_LINE
int ma_set_error_cb(ma_error_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant client error cb"); //LCOV_EXCL_LINE
int ma_unset_error_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant client error cb"); //LCOV_EXCL_LINE
int ma_set_language_changed_cb(ma_language_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant language changed cb"); //LCOV_EXCL_LINE
int ma_unset_language_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant language changed cb"); //LCOV_EXCL_LINE
int ma_set_audio_streaming_cb(ma_audio_streaming_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming cb"); //LCOV_EXCL_LINE
int ma_unset_audio_streaming_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming cb"); //LCOV_EXCL_LINE
int ma_send_asr_result(ma_asr_result_event_e event, const char* asr_result)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
if (event < MA_ASR_RESULT_EVENT_PARTIAL_RESULT || event > MA_ASR_RESULT_EVENT_ERROR) {
int ma_send_result(const char* display_text, const char* utterance_text, const char* result_json)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_send_recognition_result(ma_recognition_result_event_e result)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_set_active_state_changed_cb(ma_active_state_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant active state changed cb"); //LCOV_EXCL_LINE
int ma_unset_active_state_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant active state changed cb"); //LCOV_EXCL_LINE
int ma_start_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_stop_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_update_voice_feedback_state(ma_voice_feedback_state_e feedback_state)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_send_assistant_specific_command(const char* command)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_set_wakeup_engine_command_cb(ma_wakeup_engine_command_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant wakeup engine command cb"); //LCOV_EXCL_LINE
int ma_unset_wakeup_engine_command_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant wakeup engine command cb"); //LCOV_EXCL_LINE
int ma_assistant_info_foreach_assistants(ma_assistant_info_list_cb callback, void* user_data) {
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
int res;
int ma_assistant_info_get_app_id(ma_assistant_info_h handle, char** app_id) {
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (NULL == handle || NULL == app_id)
int ma_assistant_info_get_enabled_status(ma_assistant_info_h handle, bool* status) {
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (NULL == handle || NULL == status)
int ma_get_recording_audio_source_type(char** type) {
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (NULL == type) {
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_volume_set_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_set_preprocessing_information_changed_cb(ma_preprocessing_information_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing information changed cb"); //LCOV_EXCL_LINE
int ma_unset_preprocessing_information_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing information changed cb"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (0 != __ma_check_recorder_privilege()) {
- return MA_ERROR_PERMISSION_DENIED;
+ return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
}
ma_state_e state;
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
ma_state_e state;
int ma_set_audio_streaming_data_section_changed_cb(ma_audio_streaming_data_section_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming data section changed cb"); //LCOV_EXCL_LINE
int ma_unset_audio_streaming_data_section_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming data section changed cb"); //LCOV_EXCL_LINE
int ma_set_preprocessing_result_received_cb(ma_preprocessing_result_received_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing result received cb"); //LCOV_EXCL_LINE
int ma_unset_preprocessing_result_received_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing result received cb"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (NULL == language) {
int ma_set_service_state_changed_cb(ma_service_state_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant service state changed cb"); //LCOV_EXCL_LINE
int ma_unset_service_state_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant service state changed cb"); //LCOV_EXCL_LINE
int ma_set_voice_key_status_changed_cb(ma_voice_key_status_changed_cb callback, void* user_data)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Set Multi-assistant voice key status changed cb"); //LCOV_EXCL_LINE
int ma_unset_voice_key_status_changed_cb(void)
{
if (0 != __ma_get_feature_enabled()) {
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
MA_SLOGD("[Client DEBUG] Unset Multi-assistant voice key status changed cb"); //LCOV_EXCL_LINE
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (NULL == wake_word || NULL == language) {
if (0 != __ma_get_feature_enabled()) {
MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
- return MA_ERROR_NOT_SUPPORTED;
+ return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
if (NULL == wake_word || NULL == language) {