Home
last modified time | relevance | path

Searched refs:aidlEvent (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java295 RecognitionEvent aidlEvent = new RecognitionEvent(); in hidl2aidlRecognitionEvent() local
296 aidlEvent.status = hidl2aidlRecognitionStatus(hidlEvent.status); in hidl2aidlRecognitionEvent()
297 aidlEvent.type = hidl2aidlSoundModelType(hidlEvent.type); in hidl2aidlRecognitionEvent()
298 aidlEvent.captureAvailable = hidlEvent.captureAvailable; in hidl2aidlRecognitionEvent()
300 aidlEvent.captureSession = -1; in hidl2aidlRecognitionEvent()
301 aidlEvent.captureDelayMs = hidlEvent.captureDelayMs; in hidl2aidlRecognitionEvent()
302 aidlEvent.capturePreambleMs = hidlEvent.capturePreambleMs; in hidl2aidlRecognitionEvent()
303 aidlEvent.triggerInData = hidlEvent.triggerInData; in hidl2aidlRecognitionEvent()
304 aidlEvent.audioConfig = hidl2aidlAudioConfig(hidlEvent.audioConfig); in hidl2aidlRecognitionEvent()
305 aidlEvent.data = new byte[hidlEvent.data.size()]; in hidl2aidlRecognitionEvent()
[all …]
DSoundTriggerModule.java607 RecognitionEvent aidlEvent = in recognitionCallback() local
609 aidlEvent.captureSession = mSession.mSessionHandle; in recognitionCallback()
611 if (aidlEvent.status != RecognitionStatus.FORCED) { in recognitionCallback()
617 mCallback.onRecognition(mHandle, aidlEvent); in recognitionCallback()
628 PhraseRecognitionEvent aidlEvent = in phraseRecognitionCallback() local
630 aidlEvent.common.captureSession = mSession.mSessionHandle; in phraseRecognitionCallback()
633 if (aidlEvent.common.status != RecognitionStatus.FORCED) { in phraseRecognitionCallback()
640 mCallback.onPhraseRecognition(mHandle, aidlEvent); in phraseRecognitionCallback()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java197 int modelHandle, RecognitionEvent aidlEvent) { in aidl2apiRecognitionEvent() argument
200 AudioFormat audioFormat = aidl2apiAudioFormatWithDefault(aidlEvent.audioConfig); in aidl2apiRecognitionEvent()
202 aidlEvent.status, in aidl2apiRecognitionEvent()
203 modelHandle, aidlEvent.captureAvailable, aidlEvent.captureSession, in aidl2apiRecognitionEvent()
204 aidlEvent.captureDelayMs, aidlEvent.capturePreambleMs, aidlEvent.triggerInData, in aidl2apiRecognitionEvent()
205 audioFormat, aidlEvent.data); in aidl2apiRecognitionEvent()
210 PhraseRecognitionEvent aidlEvent) { in aidl2apiPhraseRecognitionEvent() argument
212 new SoundTrigger.KeyphraseRecognitionExtra[aidlEvent.phraseExtras.length]; in aidl2apiPhraseRecognitionEvent()
213 for (int i = 0; i < aidlEvent.phraseExtras.length; ++i) { in aidl2apiPhraseRecognitionEvent()
214 apiExtras[i] = aidl2apiPhraseRecognitionExtra(aidlEvent.phraseExtras[i]); in aidl2apiPhraseRecognitionEvent()
[all …]