Home
last modified time | relevance | path

Searched refs:eventPayload (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/
DAlwaysOnHotwordDetectorEventPayloadTest.java47 final AlwaysOnHotwordDetector.EventPayload eventPayload = in testEventPayload_verifyDefaultValues() local
49 assertThat(eventPayload.getCaptureAudioFormat()).isNull(); in testEventPayload_verifyDefaultValues()
50 assertThat(eventPayload.getTriggerAudio()).isNull(); in testEventPayload_verifyDefaultValues()
51 assertThat(eventPayload.getDataFormat()).isEqualTo( in testEventPayload_verifyDefaultValues()
53 assertThat(eventPayload.getData()).isNull(); in testEventPayload_verifyDefaultValues()
54 assertThat(eventPayload.getHotwordDetectedResult()).isNull(); in testEventPayload_verifyDefaultValues()
55 assertThat(eventPayload.getAudioStream()).isNull(); in testEventPayload_verifyDefaultValues()
56 assertThat(eventPayload.getKeyphraseRecognitionExtras()).isEmpty(); in testEventPayload_verifyDefaultValues()
66 final AlwaysOnHotwordDetector.EventPayload eventPayload = in testEventPayload_getCaptureAudioFormat() local
70 assertThat(eventPayload.getCaptureAudioFormat()).isEqualTo(audioFormat); in testEventPayload_getCaptureAudioFormat()
[all …]
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DEventPayloadParcelable.java51 public EventPayloadParcelable(AlwaysOnHotwordDetector.EventPayload eventPayload) { in EventPayloadParcelable() argument
52 if (eventPayload == null) { in EventPayloadParcelable()
57 this.mHotwordDetectedResult = eventPayload.getHotwordDetectedResult(); in EventPayloadParcelable()
58 this.mAudioStream = eventPayload.getAudioStream(); in EventPayloadParcelable()
DControllableHotwordDetectionService.java61 public void onDetect(AlwaysOnHotwordDetector.EventPayload eventPayload, long timeoutMillis, in onDetect() argument
63 Log.d(TAG, "onDetect: eventPayload=" + eventPayload in onDetect()
DVoiceInteractionCompatTests.java175 public void onDetected(EventPayloadParcelable eventPayload) { in createBasicDetectorWithTrustedServiceAndTriggerKeyphrase()
176 Log.i(TAG, "onDetected: eventPayload=" + eventPayload); in createBasicDetectorWithTrustedServiceAndTriggerKeyphrase()
177 onDetectedEventPayload.set(eventPayload); in createBasicDetectorWithTrustedServiceAndTriggerKeyphrase()
DProxyVoiceInteractionService.java502 public void onDetected(EventPayloadParcelable eventPayload) { in onDetected() argument
504 mDelegate.onDetected(eventPayload); in onDetected()
539 AlwaysOnHotwordDetector.EventPayload eventPayload) { in createDetectorCallback() argument
540 Log.i(TAG, "onDetected: eventPayload=" + eventPayload); in createDetectorCallback()
541 callback.onDetected(new EventPayloadParcelable(eventPayload)); in createDetectorCallback()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DEventPayloadParcelable.java38 public EventPayloadParcelable(AlwaysOnHotwordDetector.EventPayload eventPayload) { in EventPayloadParcelable() argument
39 if (eventPayload == null) { in EventPayloadParcelable()
44 this.mHotwordDetectedResult = eventPayload.getHotwordDetectedResult(); in EventPayloadParcelable()
45 this.mAudioStream = eventPayload.getAudioStream(); in EventPayloadParcelable()
DMainHotwordDetectionService.java133 public void onDetect(@NonNull AlwaysOnHotwordDetector.EventPayload eventPayload, in onDetect() argument
148 byte[] data = eventPayload.getData(); in onDetect()
165 .setHotwordPhraseId(eventPayload.getKeyphraseRecognitionExtras().get( in onDetect()
DProxyVoiceInteractionService.java257 AlwaysOnHotwordDetector.EventPayload eventPayload) { in createDetectorCallback()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/
DNoOpHotwordDetectionService.java38 @NonNull AlwaysOnHotwordDetector.EventPayload eventPayload, in onDetect()
41 super.onDetect(eventPayload, timeoutMillis, callback); in onDetect()
DCtsBasicVoiceInteractionService.java208 public void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload) { in createAlwaysOnHotwordDetector()
210 mDetectedResult = eventPayload; in createAlwaysOnHotwordDetector()
366 public void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload) { in createAlwaysOnHotwordDetectorCallbackWithListeners() argument
368 mDetectedResult = eventPayload; in createAlwaysOnHotwordDetectorCallbackWithListeners()
489 public void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload) {
491 mDetectedResult = eventPayload;
566 public void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload) {
568 mDetectedResult = eventPayload;
DTestPermissionHotwordDetectionService.java42 public void onDetect(@NonNull AlwaysOnHotwordDetector.EventPayload eventPayload, in onDetect() argument
DBaseVoiceInteractionService.java95 public void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload) {
139 public void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload) {
/cts/hostsidetests/voiceinteraction/app/aidl/com/android/cts/voiceinteraction/
DIProxyDetectorCallback.aidl23 void onDetected(in EventPayloadParcelable eventPayload); in onDetected() argument
/cts/tests/tests/soundtrigger/src/android/soundtrigger/cts/
DSoundTriggerManagerTest.java171 public void onDetected(EventPayload eventPayload) { in setUpDetector()