Home
last modified time | relevance | path

Searched refs:AAUDIO_OK (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/av/media/libaaudio/tests/
Dtest_various.cpp64 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkReleaseThenClose()
76 ASSERT_EQ(AAUDIO_OK, 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()
90 EXPECT_EQ(AAUDIO_OK, AAudioStream_release(aaudioStream)); in checkReleaseThenClose()
125 EXPECT_EQ(AAUDIO_OK, AAudioStream_waitForStateChange(aaudioStream, in checkReleaseThenClose()
130 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in checkReleaseThenClose()
184 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkStateTransition()
192 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkStateTransition()
[all …]
Dtest_session_id.cpp40 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdNone()
46 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdNone()
52 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream1)); in checkSessionIdNone()
56 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream1)); in checkSessionIdNone()
58 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream1)); in checkSessionIdNone()
85 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdAllocate()
96 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdAllocate()
105 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream1)); in checkSessionIdAllocate()
115 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream1)); in checkSessionIdAllocate()
127 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream2)); in checkSessionIdAllocate()
[all …]
Dtest_n_streams.cpp32 aaudio_result_t result = AAUDIO_OK; in testMaxStreams()
38 if (result != AAUDIO_OK) { in testMaxStreams()
47 if (result != AAUDIO_OK) { in testMaxStreams()
63 if (result != AAUDIO_OK) { in testMaxStreams()
92 if (result == AAUDIO_OK) { in main()
97 return (result != AAUDIO_OK) ? EXIT_FAILURE : EXIT_SUCCESS; in main()
Dtest_bad_disconnect.cpp65 if (result != AAUDIO_OK) { in s_StartAudio()
79 if (result != AAUDIO_OK) { in s_StartAudio()
86 if (result != AAUDIO_OK) { in s_StartAudio()
101 aaudio_result_t result = AAUDIO_OK; in s_StopAudio()
104 if (result != AAUDIO_OK) { in s_StopAudio()
109 if (result != AAUDIO_OK) { in s_StopAudio()
142 aaudio_result_t result = AAUDIO_OK; in main()
158 if (result == AAUDIO_OK) { in main()
Dtest_callback_race.cpp60 ASSERT_EQ(AAUDIO_OK, result); in checkCloseJoins()
63 ASSERT_EQ(AAUDIO_OK, mError.load()); in checkCloseJoins()
65 ASSERT_NE(AAUDIO_OK, mStopResult.load()); in checkCloseJoins()
72 aaudio_result_t result = AAUDIO_OK; in startStreamForStall()
76 ASSERT_EQ(AAUDIO_OK, result); in startStreamForStall()
87 ASSERT_EQ(AAUDIO_OK, result); in startStreamForStall()
99 ASSERT_EQ(AAUDIO_OK, result); in startStreamForStall()
142 std::atomic<aaudio_result_t> mError{AAUDIO_OK}; // written by error callback
146 std::atomic<aaudio_result_t> mStopResult{AAUDIO_OK};
Dtest_disconnect_race.cpp74 MY_ASSERT_EQ(AAUDIO_OK, result); in checkCloseJoins()
80 MY_ASSERT_NE(AAUDIO_OK, mStopResult.load()); in checkCloseJoins()
90 aaudio_result_t result = AAUDIO_OK; in startStreamForStall()
94 MY_ASSERT_EQ(AAUDIO_OK, result); in startStreamForStall()
105 MY_ASSERT_EQ(AAUDIO_OK, result); in startStreamForStall()
117 MY_ASSERT_EQ(AAUDIO_OK, result); in startStreamForStall()
165 std::atomic<aaudio_result_t> mError{AAUDIO_OK}; // written by error callback
169 std::atomic<aaudio_result_t> mStopResult{AAUDIO_OK};
Dtest_recovery.cpp30 aaudio_result_t result = AAUDIO_OK; in main()
52 if (result != AAUDIO_OK) { in main()
64 if (result != AAUDIO_OK) { in main()
89 if (result != AAUDIO_OK) { in main()
99 while (result == AAUDIO_OK && framesTotal < framesMax) { in main()
120 if (result != AAUDIO_OK) { in main()
125 if (result != AAUDIO_OK) { in main()
Dtest_no_close.cpp29 aaudio_result_t result = AAUDIO_OK; in main()
34 if (result != AAUDIO_OK) { in main()
40 if (result != AAUDIO_OK) { in main()
50 return (result != AAUDIO_OK) ? EXIT_FAILURE : EXIT_SUCCESS; in main()
Dtest_steal_exclusive.cpp132 } while (retriesLeft-- > 0 && result != AAUDIO_OK); in restartStream()
154 if (result != AAUDIO_OK) { in openAudioStream()
172 if (result != AAUDIO_OK) { in openAudioStream()
195 aaudio_result_t result = AAUDIO_OK; in closeAudioStream()
287 return errorCount ? AAUDIO_ERROR_INVALID_FORMAT : AAUDIO_OK; in verify()
349 aaudio_result_t result = AAUDIO_OK; in main()
407 if (result != AAUDIO_OK) { in main()
431 if (result != AAUDIO_OK) { in main()
435 if (result == AAUDIO_OK) { in main()
451 if (result != AAUDIO_OK) { in main()
[all …]
Dtest_full_queue.cpp39 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkFullQueue()
48 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, in checkFullQueue()
52 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkFullQueue()
66 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in checkFullQueue()
68 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in checkFullQueue()
Dtest_interference.cpp56 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in TEST()
64 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in TEST()
66 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream1)); in TEST()
75 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream2)); in TEST()
76 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream2)); in TEST()
Dtest_marshalling.cpp79 EXPECT_EQ(AAUDIO_OK, sharedMemoryA.resolve(0, 16, &region1)); // fits in region in TEST()
80 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(-2, 16, &region1)); // offset is negative in TEST()
81 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(0, memSizeBytes + 8, &region1)); // size too big in TEST()
82 … EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(memSizeBytes - 8, 16, &region1)); // goes past the end in TEST()
96 EXPECT_EQ(AAUDIO_OK, sharedMemoryB.resolve(0, 16, &region2)); in TEST()
115 EXPECT_EQ(AAUDIO_OK, sharedRegionA.resolve(sharedMemories, &region1)); in TEST()
128 EXPECT_EQ(AAUDIO_OK, sharedRegionB.resolve(sharedMemories, &region2)); in TEST()
161 EXPECT_EQ(AAUDIO_OK, ringBufferA.resolve(sharedMemories, &descriptorA)); in TEST()
177 EXPECT_EQ(AAUDIO_OK, ringBufferB.resolve(sharedMemories, &descriptorB)); in TEST()
Dtest_return_stop.cpp96 if (result != AAUDIO_OK) { in s_OpenAudioStream()
112 if (result != AAUDIO_OK) { in s_OpenAudioStream()
122 aaudio_result_t result = AAUDIO_OK; in s_CloseAudioStream()
125 if (result != AAUDIO_OK) { in s_CloseAudioStream()
180 aaudio_result_t result = AAUDIO_OK; in main()
225 if (result != AAUDIO_OK) { in main()
254 for (int loops = 0; loops < 2 && result == AAUDIO_OK; loops++) { in main()
260 if (result != AAUDIO_OK) { in main()
265 if (result == AAUDIO_OK) { in main()
290 if (result != AAUDIO_OK) { in main()
Dtest_timestamps.cpp154 aaudio_result_t result = AAUDIO_OK; in testTimeStamps()
183 if (result != AAUDIO_OK) { in testTimeStamps()
198 if (result != AAUDIO_OK) { in testTimeStamps()
213 result = AAUDIO_OK; in testTimeStamps()
220 result = AAUDIO_OK; in testTimeStamps()
259 if (result != AAUDIO_OK) { in testTimeStamps()
277 if (result != AAUDIO_OK) { in testTimeStamps()
287 if (timestamp->result != AAUDIO_OK) { in testTimeStamps()
366 aaudio_result_t result = AAUDIO_OK; in main()
414 return (result == AAUDIO_OK) ? EXIT_SUCCESS : EXIT_FAILURE; in main()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp65 if (result != AAUDIO_OK) { in open()
76 if (result != AAUDIO_OK) { in open()
82 return AAUDIO_OK; in open()
88 if (!mInService && result == AAUDIO_OK) { in startDevice()
98 return AAUDIO_OK; in pause_l()
110 return AAUDIO_OK; in stop_l()
127 if (result == AAUDIO_OK) { in standby_l()
140 if (result == AAUDIO_OK) { in exitStandby_l()
184 if (result == AAUDIO_OK) { in getFreeRunningPosition_l()
209 if (result == AAUDIO_OK) { in getHardwareTimestamp_l()
[all …]
DAAudioServiceEndpointShared.cpp63 aaudio_result_t result = AAUDIO_OK; in open()
132 if (result != AAUDIO_OK) { in startSharingThread_l()
147 aaudio_result_t result = AAUDIO_OK; in startStream()
153 if (result != AAUDIO_OK) { in startStream()
157 if (result != AAUDIO_OK) { in startStream()
165 if (result == AAUDIO_OK) { in startStream()
169 if (result != AAUDIO_OK) { in startStream()
189 return AAUDIO_OK; in stopStream()
199 return AAUDIO_OK; in getFreeRunningPosition()
DAAudioServiceStreamBase.cpp140 aaudio_result_t result = AAUDIO_OK; in open()
160 if (result != AAUDIO_OK) { in open()
186 if (result != AAUDIO_OK) { in open()
213 return AAUDIO_OK; in close_l()
243 aaudio_result_t result = AAUDIO_OK; in start_l()
278 if (result != AAUDIO_OK) goto error; in start_l()
296 aaudio_result_t result = AAUDIO_OK; in pause_l()
317 if (result != AAUDIO_OK) { in pause_l()
332 aaudio_result_t result = AAUDIO_OK; in stop_l()
348 if (result != AAUDIO_OK) { in stop_l()
[all …]
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimpleRecorder.h104 aaudio_result_t result = AAUDIO_OK;
109 if (result != AAUDIO_OK) return result;
124 if (result != AAUDIO_OK) {
129 if (result == AAUDIO_OK) {
148 aaudio_result_t result = AAUDIO_OK; in open()
153 if (result != AAUDIO_OK) return result; in open()
170 if (result != AAUDIO_OK) { in open()
184 return AAUDIO_OK; in close()
203 if (result != AAUDIO_OK) { in start()
215 if (result != AAUDIO_OK) { in stop()
[all …]
DAAudioSimplePlayer.h123 aaudio_result_t result = AAUDIO_OK;
128 if (result != AAUDIO_OK) return result;
146 if (result == AAUDIO_OK) {
161 aaudio_result_t result = AAUDIO_OK; in open()
166 if (result != AAUDIO_OK) return result; in open()
198 return AAUDIO_OK; in close()
217 if (result != AAUDIO_OK) { in start()
227 if (result != AAUDIO_OK) { in stop()
239 if (result != AAUDIO_OK) { in pause()
249 aaudio_result_t result = AAUDIO_OK; in waitUntilPaused()
[all …]
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp83 aaudio_result_t result = AAUDIO_OK; in open()
171 if (result != AAUDIO_OK) { in open()
196 if (result != AAUDIO_OK) { in open()
202 if (result != AAUDIO_OK) { in open()
209 if (result != AAUDIO_OK) { in open()
213 if ((result = configureDataInformation(builder.getFramesPerDataCallback())) != AAUDIO_OK) { in open()
310 return AAUDIO_OK; in configureDataInformation()
315 aaudio_result_t result = AAUDIO_OK; in release_l()
341 return (result != AAUDIO_OK) ? result : result2; in release_l()
375 if (result != AAUDIO_OK) { in exitStandby_l()
[all …]
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor_callback.cpp54 if (result != AAUDIO_OK) { in main()
66 if (result != AAUDIO_OK) { in main()
86 if (result != AAUDIO_OK) { in main()
98 if (result != AAUDIO_OK) { in main()
103 if (result != AAUDIO_OK) { in main()
128 if (result != AAUDIO_OK) { in main()
132 if (result != AAUDIO_OK) { in main()
/frameworks/av/media/libaaudio/src/core/
DAudioStream.cpp72 if (result != AAUDIO_OK) { in open()
118 return AAUDIO_OK; in open()
188 if (result == AAUDIO_OK) { in systemStart()
219 return AAUDIO_OK; in systemPause()
224 return AAUDIO_OK; in systemPause()
238 if (result == AAUDIO_OK) { in systemPause()
258 if (result != AAUDIO_OK) { in safeFlush()
268 if (result == AAUDIO_OK) { in systemStopInternal()
298 return AAUDIO_OK; in safeStop_l()
303 return AAUDIO_OK; in safeStop_l()
[all …]
DAudioStreamBuilder.cpp69 aaudio_result_t result = AAUDIO_OK; in builder_createStream()
143 if (result != AAUDIO_OK) { in build()
215 if (result == AAUDIO_OK) { in build()
218 if (result != AAUDIO_OK) { in build()
225 if (result == AAUDIO_OK) { in build()
230 if (result == AAUDIO_OK) { in build()
261 if (result != AAUDIO_OK) { in validate()
285 return AAUDIO_OK; in validate()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp55 aaudio_result_t result = AAUDIO_OK; in testOpenPlayClose()
70 if (result != AAUDIO_OK) { in testOpenPlayClose()
89 if (result != AAUDIO_OK) { in testOpenPlayClose()
113 if (result != AAUDIO_OK) { in testOpenPlayClose()
124 myData.waker.wait(AAUDIO_OK, NANOS_PER_SECOND); in testOpenPlayClose()
143 if (result != AAUDIO_OK) { in testOpenPlayClose()
159 if (result != AAUDIO_OK) { in testOpenPlayClose()
163 if (result != AAUDIO_OK) { in testOpenPlayClose()
168 if (result != AAUDIO_OK) { in testOpenPlayClose()
197 if (result != AAUDIO_OK) { in testOpenPlayClose()
/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.cpp80 return AAUDIO_OK; in close()
85 if (result == AAUDIO_OK) { in closeAndReleaseFd()
99 return AAUDIO_OK; in resolveSharedMemory()
114 aaudio_result_t result = AAUDIO_OK; in resolve()
125 if (result == AAUDIO_OK && mResolvedAddress != MMAP_UNRESOLVED_ADDRESS) { in resolve()
146 return AAUDIO_OK; in validate()

123