Lines Matching refs:halEvent
47 void soundModelCallback_(struct sound_trigger_model_event* halEvent, void* cookie) { in soundModelCallback_() argument
48 if (halEvent == NULL) { in soundModelCallback_()
60 if (halEvent->model != client->getHalHandle()) { in soundModelCallback_()
62 (int)halEvent->model, (int)client->getHalHandle()); in soundModelCallback_()
66 client->soundModelCallback(halEvent); in soundModelCallback_()
70 void recognitionCallback_(struct sound_trigger_recognition_event* halEvent, void* cookie) { in recognitionCallback_() argument
71 if (halEvent == NULL) { in recognitionCallback_()
84 client->recognitionCallback(halEvent); in recognitionCallback_()
514 const struct sound_trigger_model_event* halEvent) { in convertSoundModelEventFromHal() argument
515 event->status = (V2_0::ISoundTriggerHwCallback::SoundModelStatus)halEvent->status; in convertSoundModelEventFromHal()
517 event->data.setToExternal(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + in convertSoundModelEventFromHal()
518 halEvent->data_offset, in convertSoundModelEventFromHal()
519 halEvent->data_size); in convertSoundModelEventFromHal()
525 const struct sound_trigger_phrase_recognition_event* halEvent) { in convertPhaseRecognitionEventFromHal() argument
526 event->phraseExtras.resize(halEvent->num_phrases); in convertPhaseRecognitionEventFromHal()
527 for (unsigned int i = 0; i < halEvent->num_phrases; i++) { in convertPhaseRecognitionEventFromHal()
528 convertPhraseRecognitionExtraFromHal(&event->phraseExtras[i], &halEvent->phrase_extras[i]); in convertPhaseRecognitionEventFromHal()
530 convertRecognitionEventFromHal(&event->common, &halEvent->common); in convertPhaseRecognitionEventFromHal()
536 const struct sound_trigger_recognition_event* halEvent) { in convertRecognitionEventFromHal() argument
537 event->status = static_cast<V2_0::ISoundTriggerHwCallback::RecognitionStatus>(halEvent->status); in convertRecognitionEventFromHal()
538 event->type = static_cast<V2_0::SoundModelType>(halEvent->type); in convertRecognitionEventFromHal()
540 event->captureAvailable = halEvent->capture_available; in convertRecognitionEventFromHal()
541 event->captureSession = halEvent->capture_session; in convertRecognitionEventFromHal()
542 event->captureDelayMs = halEvent->capture_delay_ms; in convertRecognitionEventFromHal()
543 event->capturePreambleMs = halEvent->capture_preamble_ms; in convertRecognitionEventFromHal()
544 event->triggerInData = halEvent->trigger_in_data; in convertRecognitionEventFromHal()
545 event->audioConfig.sampleRateHz = halEvent->audio_config.sample_rate; in convertRecognitionEventFromHal()
547 (audio::common::V2_0::AudioChannelMask)halEvent->audio_config.channel_mask; in convertRecognitionEventFromHal()
548 event->audioConfig.format = (audio::common::V2_0::AudioFormat)halEvent->audio_config.format; in convertRecognitionEventFromHal()
549 event->data.setToExternal(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + in convertRecognitionEventFromHal()
550 halEvent->data_offset, in convertRecognitionEventFromHal()
551 halEvent->data_size); in convertRecognitionEventFromHal()
570 struct sound_trigger_recognition_event* halEvent) { in recognitionCallback() argument
571 if (halEvent->type == SOUND_MODEL_TYPE_KEYPHRASE) { in recognitionCallback()
574 &event, reinterpret_cast<sound_trigger_phrase_recognition_event*>(halEvent)); in recognitionCallback()
579 convertRecognitionEventFromHal(&event, halEvent); in recognitionCallback()
586 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument
588 convertSoundModelEventFromHal(&event, halEvent); in soundModelCallback()
710 struct sound_trigger_recognition_event* halEvent) { in recognitionCallback() argument
711 if (halEvent->type == SOUND_MODEL_TYPE_KEYPHRASE) { in recognitionCallback()
714 &event_2_0, reinterpret_cast<sound_trigger_phrase_recognition_event*>(halEvent)); in recognitionCallback()
727 convertRecognitionEventFromHal(&event.header, halEvent); in recognitionCallback()
737 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument
739 convertSoundModelEventFromHal(&event.header, halEvent); in soundModelCallback()