Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_hardware_SoundTrigger.cpp232 struct sound_trigger_phrase_recognition_event *phraseEvent = in onRecognitionEvent() local
235 jobjectArray jExtras = env->NewObjectArray(phraseEvent->num_phrases, in onRecognitionEvent()
241 for (size_t i = 0; i < phraseEvent->num_phrases; i++) { in onRecognitionEvent()
243 phraseEvent->phrase_extras[i].num_levels, in onRecognitionEvent()
249 for (size_t j = 0; j < phraseEvent->phrase_extras[i].num_levels; j++) { in onRecognitionEvent()
252 phraseEvent->phrase_extras[i].levels[j].user_id, in onRecognitionEvent()
253 phraseEvent->phrase_extras[i].levels[j].level); in onRecognitionEvent()
260 phraseEvent->phrase_extras[i].id, in onRecognitionEvent()
261 phraseEvent->phrase_extras[i].recognition_modes, in onRecognitionEvent()
262 phraseEvent->phrase_extras[i].confidence_level, in onRecognitionEvent()
/frameworks/av/services/soundtrigger/
DSoundTriggerHalHidl.cpp702 struct sound_trigger_phrase_recognition_event *phraseEvent = in convertPhraseRecognitionEventFromHal() local
706 if (phraseEvent == NULL) { in convertPhraseRecognitionEventFromHal()
709 phraseEvent->common.data_offset = sizeof(sound_trigger_phrase_recognition_event); in convertPhraseRecognitionEventFromHal()
712 convertPhraseRecognitionExtraFromHal(&phraseEvent->phrase_extras[i], in convertPhraseRecognitionEventFromHal()
715 phraseEvent->num_phrases = halPhraseEvent->phraseExtras.size(); in convertPhraseRecognitionEventFromHal()
717 fillRecognitionEventFromHal(&phraseEvent->common, &halPhraseEvent->common); in convertPhraseRecognitionEventFromHal()
718 return phraseEvent; in convertPhraseRecognitionEventFromHal()