Home
last modified time | relevance | path

Searched refs:phraseEvent (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp789 struct sound_trigger_phrase_recognition_event phraseEvent; in setCaptureState_l() local
790 memset(&phraseEvent, 0, sizeof(struct sound_trigger_phrase_recognition_event)); in setCaptureState_l()
793 phraseEvent.num_phrases = model->mConfig.num_phrases; in setCaptureState_l()
794 for (size_t i = 0; i < phraseEvent.num_phrases; i++) { in setCaptureState_l()
795 phraseEvent.phrase_extras[i] = model->mConfig.phrases[i]; in setCaptureState_l()
802 phraseEvent.common.status = RECOGNITION_STATUS_ABORT; in setCaptureState_l()
803 phraseEvent.common.type = model->mType; in setCaptureState_l()
804 phraseEvent.common.model = model->mHandle; in setCaptureState_l()
805 phraseEvent.common.data_size = 0; in setCaptureState_l()
806 sp<IMemory> eventMemory = service->prepareRecognitionEvent_l(&phraseEvent.common); in setCaptureState_l()
/frameworks/base/core/jni/
Dandroid_hardware_SoundTrigger.cpp223 struct sound_trigger_phrase_recognition_event *phraseEvent = in onRecognitionEvent() local
226 jobjectArray jExtras = env->NewObjectArray(phraseEvent->num_phrases, in onRecognitionEvent()
232 for (size_t i = 0; i < phraseEvent->num_phrases; i++) { in onRecognitionEvent()
234 phraseEvent->phrase_extras[i].num_levels, in onRecognitionEvent()
240 for (size_t j = 0; j < phraseEvent->phrase_extras[i].num_levels; j++) { in onRecognitionEvent()
243 phraseEvent->phrase_extras[i].levels[j].user_id, in onRecognitionEvent()
244 phraseEvent->phrase_extras[i].levels[j].level); in onRecognitionEvent()
251 phraseEvent->phrase_extras[i].id, in onRecognitionEvent()
252 phraseEvent->phrase_extras[i].recognition_modes, in onRecognitionEvent()
253 phraseEvent->phrase_extras[i].confidence_level, in onRecognitionEvent()