Home
last modified time | relevance | path

Searched refs:aaudioStream (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libaaudio/tests/
Dtest_various.cpp59 AAudioStream* aaudioStream = nullptr; in checkReleaseThenClose() local
75 AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkReleaseThenClose()
78 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkReleaseThenClose()
82 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in checkReleaseThenClose()
84 EXPECT_EQ(AAUDIO_OK, AAudioStream_release(aaudioStream)); in checkReleaseThenClose()
85 EXPECT_EQ(AAUDIO_STREAM_STATE_CLOSING, AAudioStream_getState(aaudioStream)); in checkReleaseThenClose()
88 EXPECT_EQ(AAUDIO_OK, AAudioStream_release(aaudioStream)); in checkReleaseThenClose()
89 EXPECT_EQ(AAUDIO_STREAM_STATE_CLOSING, AAudioStream_getState(aaudioStream)); in checkReleaseThenClose()
92 AAudioStream_setBufferSizeInFrames(aaudioStream, 0); in checkReleaseThenClose()
93 AAudioStream_setBufferSizeInFrames(aaudioStream, 99999999); in checkReleaseThenClose()
[all …]
Dtest_recovery.cpp42 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 …]
Dtest_timestamps.cpp168 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 …]
Dtest_open_params.cpp58 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()
Dtest_attributes.cpp42 AAudioStream *aaudioStream = nullptr; in checkAttributes() local
69 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
77 EXPECT_EQ(expectedUsage, AAudioStream_getUsage(aaudioStream)); in checkAttributes()
83 EXPECT_EQ(expectedContentType, AAudioStream_getContentType(aaudioStream)); in checkAttributes()
89 EXPECT_EQ(expectedPreset, AAudioStream_getInputPreset(aaudioStream)); in checkAttributes()
95 EXPECT_EQ(expectedCapturePolicy, AAudioStream_getAllowedCapturePolicy(aaudioStream)); in checkAttributes()
102 EXPECT_EQ(expectedPrivacyMode, AAudioStream_isPrivacySensitive(aaudioStream)); in checkAttributes()
104 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkAttributes()
108 AAudioStream_read(aaudioStream, buffer, kNumFrames, kNanosPerSecond)); in checkAttributes()
111 AAudioStream_write(aaudioStream, buffer, kNumFrames, kNanosPerSecond)); in checkAttributes()
[all …]
Dtest_full_queue.cpp47 AAudioStream *aaudioStream = nullptr; in checkFullQueue() local
49 &aaudioStream)); in checkFullQueue()
52 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkFullQueue()
58 const aaudio_result_t result = AAudioStream_write(aaudioStream, in checkFullQueue()
66 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in checkFullQueue()
68 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in checkFullQueue()
Dtest_no_close.cpp31 AAudioStream *aaudioStream = nullptr; in main() local
39 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in main()
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor.cpp37 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 …]
Dinput_monitor_callback.cpp34 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/
Dwrite_sine.cpp44 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 …]