Lines Matching refs:halEvent

30 void SoundTriggerHalImpl::soundModelCallback(struct sound_trigger_model_event* halEvent,  in soundModelCallback()  argument
32 if (halEvent == NULL) { in soundModelCallback()
42 if (halEvent->model != client->getHalHandle()) { in soundModelCallback()
44 (int)halEvent->model, (int)client->getHalHandle()); in soundModelCallback()
48 client->soundModelCallback(halEvent); in soundModelCallback()
52 void SoundTriggerHalImpl::recognitionCallback(struct sound_trigger_recognition_event* halEvent, in recognitionCallback() argument
54 if (halEvent == NULL) { in recognitionCallback()
65 client->recognitionCallback(halEvent); in recognitionCallback()
434 ISoundTriggerHwCallback::ModelEvent* event, const struct sound_trigger_model_event* halEvent) { in convertSoundModelEventFromHal() argument
435 event->status = (ISoundTriggerHwCallback::SoundModelStatus)halEvent->status; in convertSoundModelEventFromHal()
438 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + halEvent->data_offset, in convertSoundModelEventFromHal()
439 halEvent->data_size); in convertSoundModelEventFromHal()
445 const struct sound_trigger_phrase_recognition_event* halEvent) { in convertPhaseRecognitionEventFromHal() argument
446 event->phraseExtras.resize(halEvent->num_phrases); in convertPhaseRecognitionEventFromHal()
447 for (unsigned int i = 0; i < halEvent->num_phrases; i++) { in convertPhaseRecognitionEventFromHal()
448 convertPhraseRecognitionExtraFromHal(&event->phraseExtras[i], &halEvent->phrase_extras[i]); in convertPhaseRecognitionEventFromHal()
450 convertRecognitionEventFromHal(&event->common, &halEvent->common); in convertPhaseRecognitionEventFromHal()
456 const struct sound_trigger_recognition_event* halEvent) { in convertRecognitionEventFromHal() argument
457 event->status = static_cast<ISoundTriggerHwCallback::RecognitionStatus>(halEvent->status); in convertRecognitionEventFromHal()
458 event->type = static_cast<SoundModelType>(halEvent->type); in convertRecognitionEventFromHal()
460 event->captureAvailable = halEvent->capture_available; in convertRecognitionEventFromHal()
461 event->captureSession = halEvent->capture_session; in convertRecognitionEventFromHal()
462 event->captureDelayMs = halEvent->capture_delay_ms; in convertRecognitionEventFromHal()
463 event->capturePreambleMs = halEvent->capture_preamble_ms; in convertRecognitionEventFromHal()
464 event->triggerInData = halEvent->trigger_in_data; in convertRecognitionEventFromHal()
465 event->audioConfig.sampleRateHz = halEvent->audio_config.sample_rate; in convertRecognitionEventFromHal()
467 (audio::common::V2_0::AudioChannelMask)halEvent->audio_config.channel_mask; in convertRecognitionEventFromHal()
468 event->audioConfig.format = (audio::common::V2_0::AudioFormat)halEvent->audio_config.format; in convertRecognitionEventFromHal()
470 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + halEvent->data_offset, in convertRecognitionEventFromHal()
471 halEvent->data_size); in convertRecognitionEventFromHal()
489 struct sound_trigger_recognition_event* halEvent) { in recognitionCallback() argument
490 if (halEvent->type == SOUND_MODEL_TYPE_KEYPHRASE) { in recognitionCallback()
493 &event, reinterpret_cast<sound_trigger_phrase_recognition_event*>(halEvent)); in recognitionCallback()
498 convertRecognitionEventFromHal(&event, halEvent); in recognitionCallback()
505 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument
507 convertSoundModelEventFromHal(&event, halEvent); in soundModelCallback()