/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
D | AidlUtil.java | 58 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()
|
D | SoundTriggerHalEnforcer.java | 264 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()
|
D | SoundTriggerHw3Compat.java | 261 recognitionEventSys.recognitionEvent = event; in recognitionCallback()
|
D | SoundTriggerHalConcurrentCaptureHandler.java | 247 if (!event.recognitionEvent.recognitionStillActive) { in recognitionCallback()
|
D | SoundTriggerModule.java | 500 if (!event.recognitionEvent.recognitionStillActive) { in recognitionCallback()
|
D | SoundTriggerMiddlewareValidation.java | 695 if (!event.recognitionEvent.recognitionStillActive) { in onRecognition()
|
D | SoundTriggerHw2Compat.java | 577 eventSys.recognitionEvent = ConversionUtil.hidl2aidlRecognitionEvent(event); in recognitionCallback_2_1()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | ConversionUtil.java | 226 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 …]
|
D | IRecognitionStatusCallback.aidl | 32 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/ |
D | IHotwordRecognitionStatusCallback.aidl | 40 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/ |
D | DspTrustedHotwordDetectorSession.java | 97 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()
|
D | HotwordDetectionConnection.java | 522 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()
|
D | DetectorSession.java | 943 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/ |
D | SoundTriggerHalConcurrentCaptureHandlerTest.java | 77 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()
|
D | SoundHw2CompatTest.java | 630 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()
|
D | SoundTriggerMiddlewareImplTest.java | 513 assertEquals(RecognitionStatus.ABORTED, lastEvent.recognitionEvent.status); in testAbortRecognition() 632 event.recognitionEvent = TestUtil.createRecognitionEvent(status, in sendRecognitionEvent()
|
/frameworks/base/media/aidl/android/media/soundtrigger_middleware/ |
D | RecognitionEventSys.aidl | 27 RecognitionEvent recognitionEvent;
|
/frameworks/base/core/java/android/service/voice/ |
D | SoftwareHotwordDetector.java | 218 SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in onKeyphraseDetected() argument 234 SoundTrigger.GenericRecognitionEvent recognitionEvent) throws RemoteException { in onGenericSoundTriggerDetected() argument
|
D | VisualQueryDetector.java | 521 SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in onKeyphraseDetected() argument 537 SoundTrigger.GenericRecognitionEvent recognitionEvent) throws RemoteException { in onGenericSoundTriggerDetected() argument
|