/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/ |
D | HotwordAudioStreamTest.java | 56 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 …]
|
D | HotwordDetectedResultTest.java | 200 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/ |
D | AudioStreamHelper.java | 58 public static void assertAudioStream(ParcelFileDescriptor audioStream, byte[] expected) in assertAudioStream() argument 60 try (InputStream audioSource = new ParcelFileDescriptor.AutoCloseInputStream(audioStream)) { in assertAudioStream()
|
D | Utils.java | 317 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/ |
D | NoOpHotwordDetectionService.java | 46 @NonNull ParcelFileDescriptor audioStream, in onDetect() 50 super.onDetect(audioStream, audioFormat, options, callback); in onDetect()
|
D | TestPermissionHotwordDetectionService.java | 77 @NonNull ParcelFileDescriptor audioStream, in onDetect()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/ |
D | Helper.java | 303 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/ |
D | OboeRecorder.h | 33 onAudioReady(oboe::AudioStream *audioStream,void *audioData, int numFrames) override;
|
D | OboeRecorder.cpp | 100 oboe::AudioStream *audioStream, void *audioData, int numFrames) { in onAudioReady() argument
|
/cts/tests/tests/voiceinteraction/service/aidl/android/voiceinteraction/service/ |
D | IProxyAlwaysOnHotwordDetector.aidl | 31 inout ParcelFileDescriptor audioStream, in startRecognitionWithAudioStream() argument
|
/cts/hostsidetests/voiceinteraction/app/aidl/com/android/cts/voiceinteraction/ |
D | IProxyAlwaysOnHotwordDetector.aidl | 31 inout ParcelFileDescriptor audioStream, in startRecognitionWithAudioStream() argument
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainHotwordDetectionService.java | 206 @NonNull ParcelFileDescriptor audioStream, in onDetect() 216 if (audioStream == null) { in onDetect() 234 InputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(audioStream); in onDetect()
|
D | ProxyVoiceInteractionService.java | 330 public boolean startRecognitionWithAudioStream(ParcelFileDescriptor audioStream, 332 return mAlwaysOnHotwordDetector.startRecognition(audioStream,
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | HotwordDetectionServiceProximityTest.java | 292 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity() local 294 alwaysOnHotwordDetector.startRecognition(audioStream, in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity()
|
D | HotwordDetectionServiceStressTest.java | 238 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testHotwordDetectionService_onDetectFromExternalSource_success() local 241 alwaysOnHotwordDetector.startRecognition(audioStream, in testHotwordDetectionService_onDetectFromExternalSource_success()
|
D | HotwordDetectionServiceBasicTest.java | 963 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/ |
D | ProxyVoiceInteractionService.java | 330 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/ |
D | MediaCodecTest.java | 2215 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()
|