/frameworks/av/media/libaaudio/tests/ |
D | test_various.cpp | 61 AAudioStream* aaudioStream = nullptr; in checkReleaseThenClose() local 77 AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkReleaseThenClose() 80 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkReleaseThenClose() 84 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in checkReleaseThenClose() 86 EXPECT_EQ(AAUDIO_OK, AAudioStream_release(aaudioStream)); in checkReleaseThenClose() 87 EXPECT_EQ(AAUDIO_STREAM_STATE_CLOSING, AAudioStream_getState(aaudioStream)); in checkReleaseThenClose() 90 EXPECT_EQ(AAUDIO_OK, AAudioStream_release(aaudioStream)); in checkReleaseThenClose() 91 EXPECT_EQ(AAUDIO_STREAM_STATE_CLOSING, AAudioStream_getState(aaudioStream)); in checkReleaseThenClose() 94 AAudioStream_setBufferSizeInFrames(aaudioStream, 0); in checkReleaseThenClose() 95 AAudioStream_setBufferSizeInFrames(aaudioStream, 99999999); in checkReleaseThenClose() [all …]
|
D | test_recovery.cpp | 42 AAudioStream *aaudioStream = nullptr; in main() local 63 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in main() 71 actualSampleRate = AAudioStream_getSampleRate(aaudioStream); in main() 72 actualChannelCount = AAudioStream_getChannelCount(aaudioStream); in main() 73 actualDataFormat = AAudioStream_getFormat(aaudioStream); in main() 80 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main() 81 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in main() 88 result = AAudioStream_requestStart(aaudioStream); in main() 100 int32_t framesWritten = AAudioStream_write(aaudioStream, in main() 119 result = AAudioStream_requestStop(aaudioStream); in main() [all …]
|
D | test_full_queue.cpp | 59 AAudioStream *aaudioStream = nullptr; in checkFullQueue() local 61 &aaudioStream)); in checkFullQueue() 65 2 * AAudioStream_getFramesPerBurst(aaudioStream), in checkFullQueue() 68 AAudioStream_setBufferSizeInFrames(aaudioStream, bufferSize); in checkFullQueue() 70 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkFullQueue() 73 int32_t capacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in checkFullQueue() 77 int32_t sampleRate = AAudioStream_getSampleRate(aaudioStream); in checkFullQueue() 83 result = AAudioStream_write(aaudioStream, in checkFullQueue() 97 int64_t framesRead = AAudioStream_getFramesRead(aaudioStream); in checkFullQueue() 98 int64_t framesWritten = AAudioStream_getFramesWritten(aaudioStream); in checkFullQueue() [all …]
|
D | test_timestamps.cpp | 168 AAudioStream *aaudioStream = nullptr; in testTimeStamps() local 197 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in testTimeStamps() 205 actualSampleRate = AAudioStream_getSampleRate(aaudioStream); in testTimeStamps() 206 actualChannelCount = AAudioStream_getChannelCount(aaudioStream); in testTimeStamps() 207 actualDataFormat = AAudioStream_getFormat(aaudioStream); in testTimeStamps() 209 actualSharingMode = AAudioStream_getSharingMode(aaudioStream); in testTimeStamps() 216 actualPerformanceMode = AAudioStream_getPerformanceMode(aaudioStream); in testTimeStamps() 226 isMmap = AAudioStream_isMMapUsed(aaudioStream); in testTimeStamps() 231 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in testTimeStamps() 234 originalBufferSize = AAudioStream_getBufferSizeInFrames(aaudioStream); in testTimeStamps() [all …]
|
D | test_open_params.cpp | 58 AAudioStream *aaudioStream = nullptr; in testOpenOptions() local 78 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in testOpenOptions() 85 actualSampleRate = AAudioStream_getSampleRate(aaudioStream); in testOpenOptions() 86 actualChannelCount = AAudioStream_getChannelCount(aaudioStream); in testOpenOptions() 87 actualDataFormat = AAudioStream_getFormat(aaudioStream); in testOpenOptions() 88 actualDirection = AAudioStream_getDirection(aaudioStream); in testOpenOptions() 107 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in testOpenOptions() 108 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in testOpenOptions() 113 AAudioStream_close(aaudioStream); in testOpenOptions()
|
D | test_attributes.cpp | 47 AAudioStream *aaudioStream = nullptr; in checkAttributes() local 74 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes() 82 EXPECT_EQ(expectedUsage, AAudioStream_getUsage(aaudioStream)); in checkAttributes() 88 EXPECT_EQ(expectedContentType, AAudioStream_getContentType(aaudioStream)); in checkAttributes() 94 EXPECT_EQ(expectedPreset, AAudioStream_getInputPreset(aaudioStream)); in checkAttributes() 100 EXPECT_EQ(expectedCapturePolicy, AAudioStream_getAllowedCapturePolicy(aaudioStream)); in checkAttributes() 107 EXPECT_EQ(expectedPrivacyMode, AAudioStream_isPrivacySensitive(aaudioStream)); in checkAttributes() 109 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkAttributes() 113 AAudioStream_read(aaudioStream, buffer.get(), kNumFrames, kNanosPerSecond)); in checkAttributes() 116 AAudioStream_write(aaudioStream, buffer.get(), kNumFrames, kNanosPerSecond)); in checkAttributes() [all …]
|
D | test_mmap_path.cpp | 55 AAudioStream *aaudioStream = nullptr; in openStreamAndVerify() local 62 EXPECT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in openStreamAndVerify() 63 EXPECT_EQ(AAUDIO_PERFORMANCE_MODE_LOW_LATENCY, AAudioStream_getPerformanceMode(aaudioStream)); in openStreamAndVerify() 64 EXPECT_TRUE(AAudioStream_isMMapUsed(aaudioStream)); in openStreamAndVerify() 66 AAudioStream_close(aaudioStream); in openStreamAndVerify()
|
D | test_idle_disconnected_shared_stream.cpp | 41 AAudioStream* aaudioStream; in openStream() local 42 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in openStream() 48 return aaudioStream; in openStream()
|
D | test_no_close.cpp | 31 AAudioStream *aaudioStream = nullptr; in main() local 39 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in main()
|
/frameworks/av/media/libaaudio/examples/input_monitor/src/ |
D | input_monitor.cpp | 37 AAudioStream *aaudioStream = nullptr; in main() local 74 aaudioStream = recorder.getStream(); in main() 75 argParser.compareWithStream(aaudioStream); in main() 77 deviceId = AAudioStream_getDeviceId(aaudioStream); in main() 80 actualSamplesPerFrame = AAudioStream_getChannelCount(aaudioStream); in main() 82 actualSampleRate = AAudioStream_getSampleRate(aaudioStream); in main() 87 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main() 98 actualDataFormat = AAudioStream_getFormat(aaudioStream); in main() 120 state = AAudioStream_getState(aaudioStream); in main() 132 actual = AAudioStream_read(aaudioStream, shortData, minFrames, timeoutNanos); in main() [all …]
|
D | input_monitor_callback.cpp | 34 AAudioStream *aaudioStream = nullptr; in main() local 59 aaudioStream = recorder.getStream(); in main() 60 argParser.compareWithStream(aaudioStream); in main() 82 result = AAudioStream_waitForStateChange(aaudioStream, in main() 118 state = AAudioStream_getState(aaudioStream); in main() 125 argParser.compareWithStream(aaudioStream); in main()
|
/frameworks/av/media/libaaudio/examples/write_sine/src/ |
D | write_sine.cpp | 44 AAudioStream *aaudioStream = nullptr; in main() local 74 aaudioStream = player.getStream(); in main() 76 argParser.compareWithStream(aaudioStream); in main() 78 actualChannelCount = AAudioStream_getChannelCount(aaudioStream); in main() 79 actualSampleRate = AAudioStream_getSampleRate(aaudioStream); in main() 80 actualDataFormat = AAudioStream_getFormat(aaudioStream); in main() 87 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main() 127 AAudio_convertStreamStateToText(AAudioStream_getState(aaudioStream))); in main() 171 actual = AAudioStream_write(aaudioStream, floatData, minFrames, timeoutNanos); in main() 174 actual = AAudioStream_write(aaudioStream, shortData, minFrames, timeoutNanos); in main() [all …]
|