Home
last modified time | relevance | path

Searched refs:recognitionEvent (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DAidlUtil.java58 RecognitionEvent recognitionEvent = newEmptyRecognitionEvent(); in newAbortEvent() local
59 recognitionEvent.type = SoundModelType.GENERIC; in newAbortEvent()
60 recognitionEvent.status = RecognitionStatus.ABORTED; in newAbortEvent()
62 recognitionEventSys.recognitionEvent = recognitionEvent; in newAbortEvent()
72 PhraseRecognitionEvent recognitionEvent = newEmptyPhraseRecognitionEvent(); in newAbortPhraseEvent() local
73 recognitionEvent.common.type = SoundModelType.KEYPHRASE; in newAbortPhraseEvent()
74 recognitionEvent.common.status = RecognitionStatus.ABORTED; in newAbortPhraseEvent()
76 phraseRecognitionEventSys.phraseRecognitionEvent = recognitionEvent; in newAbortPhraseEvent()
DSoundTriggerHalEnforcer.java264 if (event.recognitionEvent.recognitionStillActive in recognitionCallback()
265 && event.recognitionEvent.status != RecognitionStatus.SUCCESS in recognitionCallback()
266 && event.recognitionEvent.status != RecognitionStatus.FORCED) { in recognitionCallback()
273 if (!event.recognitionEvent.recognitionStillActive) { in recognitionCallback()
DSoundTriggerHw3Compat.java261 recognitionEventSys.recognitionEvent = event; in recognitionCallback()
DSoundTriggerHalConcurrentCaptureHandler.java247 if (!event.recognitionEvent.recognitionStillActive) { in recognitionCallback()
DSoundTriggerModule.java500 if (!event.recognitionEvent.recognitionStillActive) { in recognitionCallback()
DSoundTriggerMiddlewareValidation.java695 if (!event.recognitionEvent.recognitionStillActive) { in onRecognition()
DSoundTriggerHw2Compat.java577 eventSys.recognitionEvent = ConversionUtil.hidl2aidlRecognitionEvent(event); in recognitionCallback_2_1()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java226 RecognitionEvent recognitionEvent = aidlEvent.recognitionEvent; in aidl2apiRecognitionEvent() local
229 AudioFormat audioFormat = aidl2apiAudioFormatWithDefault(recognitionEvent.audioConfig, in aidl2apiRecognitionEvent()
231 return new SoundTrigger.GenericRecognitionEvent(recognitionEvent.status, modelHandle, in aidl2apiRecognitionEvent()
232 recognitionEvent.captureAvailable, captureSession, recognitionEvent.captureDelayMs, in aidl2apiRecognitionEvent()
233 recognitionEvent.capturePreambleMs, recognitionEvent.triggerInData, audioFormat, in aidl2apiRecognitionEvent()
234 recognitionEvent.data, in aidl2apiRecognitionEvent()
235 recognitionEvent.recognitionStillActive, aidlEvent.halEventReceivedMillis, in aidl2apiRecognitionEvent()
241 PhraseRecognitionEvent recognitionEvent = aidlEvent.phraseRecognitionEvent; in aidl2apiPhraseRecognitionEvent() local
243 new SoundTrigger.KeyphraseRecognitionExtra[recognitionEvent.phraseExtras.length]; in aidl2apiPhraseRecognitionEvent()
244 for (int i = 0; i < recognitionEvent.phraseExtras.length; ++i) { in aidl2apiPhraseRecognitionEvent()
[all …]
DIRecognitionStatusCallback.aidl32 void onKeyphraseDetected(in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent); in onKeyphraseDetected() argument
42 void onGenericSoundTriggerDetected(in SoundTrigger.GenericRecognitionEvent recognitionEvent); in onGenericSoundTriggerDetected() argument
/frameworks/base/core/java/com/android/internal/app/
DIHotwordRecognitionStatusCallback.aidl40 in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in onKeyphraseDetected() argument
57 void onGenericSoundTriggerDetected(in SoundTrigger.GenericRecognitionEvent recognitionEvent); in onGenericSoundTriggerDetected() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDspTrustedHotwordDetectorSession.java97 void detectFromDspSourceLocked(SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in detectFromDspSourceLocked() argument
134 enforceExtraKeyphraseIdNotLeaked(result, recognitionEvent); in detectFromDspSourceLocked()
174 externalCallback.onKeyphraseDetected(recognitionEvent, newResult); in detectFromDspSourceLocked()
266 recognitionEvent, in detectFromDspSourceLocked()
267 recognitionEvent.getCaptureFormat(), in detectFromDspSourceLocked()
DHotwordDetectionConnection.java522 private void detectFromDspSource(SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in detectFromDspSource() argument
536 session.detectFromDspSourceLocked(recognitionEvent, externalCallback); in detectFromDspSource()
694 public void onKeyphraseDetected(SoundTrigger.KeyphraseRecognitionEvent recognitionEvent) in onKeyphraseDetected() argument
697 Slog.d(TAG, "onKeyphraseDetected recognitionEvent : " + recognitionEvent); in onKeyphraseDetected()
706 recognitionEvent, mExternalCallback); in onKeyphraseDetected()
726 mExternalCallback.onKeyphraseDetected(recognitionEvent, null); in onKeyphraseDetected()
733 SoundTrigger.GenericRecognitionEvent recognitionEvent) in onGenericSoundTriggerDetected() argument
735 mExternalCallback.onGenericSoundTriggerDetected(recognitionEvent); in onGenericSoundTriggerDetected()
DDetectorSession.java943 SoundTrigger.KeyphraseRecognitionEvent recognitionEvent) { in enforceExtraKeyphraseIdNotLeaked() argument
950 for (SoundTrigger.KeyphraseRecognitionExtra keyphrase : recognitionEvent.keyphraseExtras) { in enforceExtraKeyphraseIdNotLeaked()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerHalConcurrentCaptureHandlerTest.java77 assertEquals(event.recognitionEvent.status, RecognitionStatus.ABORTED); in testBasic()
78 assertFalse(event.recognitionEvent.recognitionStillActive); in testBasic()
141 recognitionEventSys.recognitionEvent = TestUtil.createRecognitionEvent( in testAbortWhileStop()
172 recognitionEventSys.recognitionEvent = TestUtil.createRecognitionEvent( in testActiveWhileStop()
208 recognitionEventSys.recognitionEvent = TestUtil.createRecognitionEvent( in testStopWhileActive()
241 recognitionEventSys.recognitionEvent = TestUtil.createRecognitionEvent( in testEventWhileActive()
273 recognitionEventSys.recognitionEvent = TestUtil.createRecognitionEvent( in testNonFinalEventWhileActive()
DSoundHw2CompatTest.java630 TestUtil.validateRecognitionEvent(lastEvent.recognitionEvent, in validateCallback_2_0()
671 TestUtil.validateRecognitionEvent(lastEvent.recognitionEvent, in validateCallback_2_1()
688 TestUtil.validateRecognitionEvent(lastEvent.recognitionEvent, in validateCallback_2_1()
DSoundTriggerMiddlewareImplTest.java513 assertEquals(RecognitionStatus.ABORTED, lastEvent.recognitionEvent.status); in testAbortRecognition()
632 event.recognitionEvent = TestUtil.createRecognitionEvent(status, in sendRecognitionEvent()
/frameworks/base/media/aidl/android/media/soundtrigger_middleware/
DRecognitionEventSys.aidl27 RecognitionEvent recognitionEvent;
/frameworks/base/core/java/android/service/voice/
DSoftwareHotwordDetector.java218 SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in onKeyphraseDetected() argument
234 SoundTrigger.GenericRecognitionEvent recognitionEvent) throws RemoteException { in onGenericSoundTriggerDetected() argument
DVisualQueryDetector.java521 SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in onKeyphraseDetected() argument
537 SoundTrigger.GenericRecognitionEvent recognitionEvent) throws RemoteException { in onGenericSoundTriggerDetected() argument