Home
last modified time | relevance | path

Searched refs:audioStream (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/
DHotwordAudioStreamTest.java56 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testHotwordAudioStreamDefaultAndUpdateValue() local
62 assertThat(audioStream.getTimestamp()).isNull(); in testHotwordAudioStreamDefaultAndUpdateValue()
63 assertThat(audioStream.getMetadata().size()).isEqualTo(0); in testHotwordAudioStreamDefaultAndUpdateValue()
64 assertThat(audioStream.getInitialAudio()).isNotNull(); in testHotwordAudioStreamDefaultAndUpdateValue()
65 assertThat(audioStream.getInitialAudio()).isEmpty(); in testHotwordAudioStreamDefaultAndUpdateValue()
67 assertThat(audioStream.getAudioFormat()).isNotNull(); in testHotwordAudioStreamDefaultAndUpdateValue()
68 assertThat(audioStream.getAudioStreamParcelFileDescriptor()).isNotNull(); in testHotwordAudioStreamDefaultAndUpdateValue()
69 assertThat(audioStream.getAudioFormat()).isEqualTo(newAudioFormat); in testHotwordAudioStreamDefaultAndUpdateValue()
70 assertAudioStream(audioStream.getAudioStreamParcelFileDescriptor(), testAudioData); in testHotwordAudioStreamDefaultAndUpdateValue()
90 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testHotwordAudioStreamParcelizeDeparcelize() local
[all …]
DHotwordDetectedResultTest.java200 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testHotwordDetectedResultBuilder() local
202 audioStreams.add(audioStream); in testHotwordDetectedResultBuilder()
235 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testHotwordDetectedResultParcelizeDeparcelize() local
237 audioStreams.add(audioStream); in testHotwordDetectedResultParcelizeDeparcelize()
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DAudioStreamHelper.java58 public static void assertAudioStream(ParcelFileDescriptor audioStream, byte[] expected) in assertAudioStream() argument
60 try (InputStream audioSource = new ParcelFileDescriptor.AutoCloseInputStream(audioStream)) { in assertAudioStream()
DUtils.java317 public static HotwordAudioStream createNewHotwordAudioStream(ParcelFileDescriptor audioStream) { in createNewHotwordAudioStream() argument
318 return new HotwordAudioStream.Builder(createFakeAudioFormat(), audioStream) in createNewHotwordAudioStream()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/
DNoOpHotwordDetectionService.java46 @NonNull ParcelFileDescriptor audioStream, in onDetect()
50 super.onDetect(audioStream, audioFormat, options, callback); in onDetect()
DTestPermissionHotwordDetectionService.java77 @NonNull ParcelFileDescriptor audioStream, in onDetect()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DHelper.java303 ParcelFileDescriptor audioStream = detectedResult.getAudioStream();
304 assertThat(audioStream).isNull();
344 ParcelFileDescriptor audioStream = detectedResult.getAudioStream();
345 assertThat(audioStream).isNull();
369 private static void assertAudioStream(ParcelFileDescriptor audioStream, byte[] expected)
371 try (InputStream audioSource = new ParcelFileDescriptor.AutoCloseInputStream(audioStream)) {
382 audioStream)) {
/cts/apps/CtsVerifier/jni/megaaudio/recorder/
DOboeRecorder.h33 onAudioReady(oboe::AudioStream *audioStream,void *audioData, int numFrames) override;
DOboeRecorder.cpp100 oboe::AudioStream *audioStream, void *audioData, int numFrames) { in onAudioReady() argument
/cts/tests/tests/voiceinteraction/service/aidl/android/voiceinteraction/service/
DIProxyAlwaysOnHotwordDetector.aidl31 inout ParcelFileDescriptor audioStream, in startRecognitionWithAudioStream() argument
/cts/hostsidetests/voiceinteraction/app/aidl/com/android/cts/voiceinteraction/
DIProxyAlwaysOnHotwordDetector.aidl31 inout ParcelFileDescriptor audioStream, in startRecognitionWithAudioStream() argument
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java206 @NonNull ParcelFileDescriptor audioStream, in onDetect()
216 if (audioStream == null) { in onDetect()
234 InputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(audioStream); in onDetect()
DProxyVoiceInteractionService.java330 public boolean startRecognitionWithAudioStream(ParcelFileDescriptor audioStream,
332 return mAlwaysOnHotwordDetector.startRecognition(audioStream,
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectionServiceProximityTest.java292 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity() local
294 alwaysOnHotwordDetector.startRecognition(audioStream, in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity()
DHotwordDetectionServiceStressTest.java238 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testHotwordDetectionService_onDetectFromExternalSource_success() local
241 alwaysOnHotwordDetector.startRecognition(audioStream, in testHotwordDetectionService_onDetectFromExternalSource_success()
DHotwordDetectionServiceBasicTest.java963 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testHotwordDetectionService_onDetectFromExternalSourceWithAudioEgress() local
965 alwaysOnHotwordDetector.startRecognition(audioStream, in testHotwordDetectionService_onDetectFromExternalSourceWithAudioEgress()
1323 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testHotwordDetectionService_externalSourceWithAudioEgressWrongCopyBufferSize() local
1325 alwaysOnHotwordDetector.startRecognition(audioStream, in testHotwordDetectionService_externalSourceWithAudioEgressWrongCopyBufferSize()
1482 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testHotwordDetectionService_onDetectFromExternalSource_success() local
1484 alwaysOnHotwordDetector.startRecognition(audioStream, in testHotwordDetectionService_onDetectFromExternalSource_success()
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DProxyVoiceInteractionService.java330 public boolean startRecognitionWithAudioStream(ParcelFileDescriptor audioStream, in startRecognitionWithAudioStream() argument
332 return mAlwaysOnHotwordDetector.startRecognition(audioStream, in startRecognitionWithAudioStream()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecTest.java2215 final StreamUtils.PcmAudioBufferStream audioStream = in testFlacIdentity() local
2225 new StreamUtils.ByteBufferInputStream(audioStream), format, true /* encode */); in testFlacIdentity()
2240 audioStream.sizeInBytes(), in testFlacIdentity()
2243 new StreamUtils.PcmAudioBufferStream(audioStream)))); in testFlacIdentity()