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.cpp559 struct sound_trigger_phrase_recognition_event *phraseEvent = in convertRecognitionEventFromHal() local
563 if (phraseEvent == NULL) { in convertRecognitionEventFromHal()
570 convertPhraseRecognitionExtraFromHal(&phraseEvent->phrase_extras[i], in convertRecognitionEventFromHal()
573 phraseEvent->num_phrases = halPhraseEvent->phraseExtras.size(); in convertRecognitionEventFromHal()
574 event = (struct sound_trigger_recognition_event *)phraseEvent; in convertRecognitionEventFromHal()