Home | History | Annotate | Download | only in default

Lines Matching refs:halEvent

31 void SoundTriggerHalImpl::soundModelCallback(struct sound_trigger_model_event *halEvent,
34 if (halEvent == NULL) {
44 if (halEvent->model != client->mHalHandle) {
46 (int)halEvent->model, (int)client->mHalHandle);
51 convertSoundModelEventFromHal(&event, halEvent);
58 void SoundTriggerHalImpl::recognitionCallback(struct sound_trigger_recognition_event *halEvent,
61 if (halEvent == NULL) {
72 ISoundTriggerHwCallback::RecognitionEvent *event = convertRecognitionEventFromHal(halEvent);
74 if (halEvent->type == SOUND_MODEL_TYPE_KEYPHRASE) {
494 const struct sound_trigger_model_event *halEvent)
496 event->status = (ISoundTriggerHwCallback::SoundModelStatus)halEvent->status;
499 const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(halEvent)) + halEvent->data_offset,
500 halEvent->data_size);
505 const struct sound_trigger_recognition_event *halEvent)
509 if (halEvent->type == SOUND_MODEL_TYPE_KEYPHRASE) {
511 reinterpret_cast<const struct sound_trigger_phrase_recognition_event *>(halEvent);
530 event->status = static_cast<ISoundTriggerHwCallback::RecognitionStatus>(halEvent->status);
531 event->type = static_cast<SoundModelType>(halEvent->type);
533 event->captureAvailable = halEvent->capture_available;
534 event->captureSession = halEvent->capture_session;
535 event->captureDelayMs = halEvent->capture_delay_ms;
536 event->capturePreambleMs = halEvent->capture_preamble_ms;
537 event->triggerInData = halEvent->trigger_in_data;
538 event->audioConfig.sampleRateHz = halEvent->audio_config.sample_rate;
540 (audio::common::V2_0::AudioChannelMask)halEvent->audio_config.channel_mask;
541 event->audioConfig.format = (audio::common::V2_0::AudioFormat)halEvent->audio_config.format;
543 const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(halEvent)) + halEvent->data_offset,
544 halEvent->data_size);