Home
last modified time | relevance | path

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

12

/frameworks/av/services/oboeservice/
DAAudioServiceStreamBase.cpp86 aaudio_result_t result = AAUDIO_OK; in open()
103 if (result != AAUDIO_OK) { in open()
132 aaudio_result_t result = AAUDIO_OK; in close()
134 return AAUDIO_OK; in close()
179 aaudio_result_t result = AAUDIO_OK; in start()
182 return AAUDIO_OK; in start()
190 if (result != AAUDIO_OK) goto error; in start()
197 if (result != AAUDIO_OK) goto error; in start()
207 aaudio_result_t result = AAUDIO_OK; in pause()
217 if (result != AAUDIO_OK) { in pause()
[all …]
DAAudioServiceStreamMMAP.cpp54 return AAUDIO_OK; in close()
69 if (result != AAUDIO_OK) { in open()
80 if (result != AAUDIO_OK) { in open()
86 return AAUDIO_OK; in open()
94 if (!mInService && result == AAUDIO_OK) { in startDevice()
106 return AAUDIO_OK; in pause()
118 return AAUDIO_OK; in stop()
162 if (result == AAUDIO_OK) { in getFreeRunningPosition()
190 return AAUDIO_OK; in getHardwareTimestamp()
DAAudioServiceEndpointShared.cpp59 aaudio_result_t result = AAUDIO_OK; in open()
117 aaudio_result_t result = AAUDIO_OK; in startStream()
123 if (result != AAUDIO_OK) { in startStream()
127 if (result != AAUDIO_OK) { in startStream()
135 if (result == AAUDIO_OK) { in startStream()
137 if (result != AAUDIO_OK) { in startStream()
159 return AAUDIO_OK; in stopStream()
169 return AAUDIO_OK; in getFreeRunningPosition()
DAAudioServiceStreamShared.cpp124 if (result != AAUDIO_OK) { in open()
180 if (result != AAUDIO_OK) { in open()
192 if (result != AAUDIO_OK) { in open()
197 return AAUDIO_OK; in open()
232 return AAUDIO_OK; in getAudioDataDescription()
247 return AAUDIO_OK; in getFreeRunningPosition()
265 if (result == AAUDIO_OK) { in getHardwareTimestamp()
DAAudioClientTracker.cpp82 return AAUDIO_OK; // TODO should this be considered an error in registerClient()
105 aaudio_result_t result = AAUDIO_OK; in registerClientStream()
134 return AAUDIO_OK; in unregisterClientStream()
155 return AAUDIO_OK; in registerClientStream()
162 return AAUDIO_OK; in unregisterClientStream()
/frameworks/av/media/libaaudio/src/core/
DAudioStreamBuilder.cpp67 aaudio_result_t result = AAUDIO_OK; in builder_createStream()
108 if (result != AAUDIO_OK) { in build()
148 if (result == AAUDIO_OK) { in build()
151 if (result == AAUDIO_OK) { in build()
163 if (result == AAUDIO_OK) { in build()
165 if (result == AAUDIO_OK) { in build()
183 if (result != AAUDIO_OK) { in validate()
207 return AAUDIO_OK; in validate()
DAudioStream.cpp72 if (result != AAUDIO_OK) { in open()
103 return AAUDIO_OK; in open()
112 if (result != AAUDIO_OK) { in waitForStateChange()
126 if (result != AAUDIO_OK) { in waitForStateChange()
135 return (state == currentState) ? AAUDIO_ERROR_TIMEOUT : AAUDIO_OK; in waitForStateChange()
144 if (mThreadRegistrationResult == AAUDIO_OK) { in wrapUserThread()
181 return AAUDIO_OK; in createThread()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp80 aaudio_result_t result = AAUDIO_OK; in open()
125 if (result != AAUDIO_OK) { in open()
138 if (result != AAUDIO_OK) { in open()
144 if (result != AAUDIO_OK) { in open()
150 if (result != AAUDIO_OK) { in open()
206 aaudio_result_t result = AAUDIO_OK; in close()
218 if (result != AAUDIO_OK) { in close()
234 return (result != AAUDIO_OK) ? result : result2; in close()
291 if (result == AAUDIO_OK && getDataCallbackProc() != nullptr) { in requestStart()
299 if (result != AAUDIO_OK) { in requestStart()
[all …]
/frameworks/av/media/libaaudio/tests/
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()
93 if (result == AAUDIO_OK) { in main()
98 return (result != AAUDIO_OK) ? EXIT_FAILURE : EXIT_SUCCESS; in main()
Dtest_recovery.cpp45 aaudio_result_t result = AAUDIO_OK; in main()
68 if (result != AAUDIO_OK) { in main()
80 if (result != AAUDIO_OK) { in main()
105 if (result != AAUDIO_OK) { in main()
115 while (result == AAUDIO_OK && framesTotal < framesMax) { in main()
136 if (result != AAUDIO_OK) { in main()
141 if (result != AAUDIO_OK) { in main()
Dtest_marshalling.cpp57 EXPECT_EQ(AAUDIO_OK, sharedMemoryA.resolve(0, 16, &region1)); // fits in region in TEST()
58 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(-2, 16, &region1)); // offset is negative in TEST()
59 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(0, memSizeBytes + 8, &region1)); // size too big in TEST()
60 … EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(memSizeBytes - 8, 16, &region1)); // goes past the end in TEST()
74 EXPECT_EQ(AAUDIO_OK, sharedMemoryB.resolve(0, 16, &region2)); in TEST()
94 EXPECT_EQ(AAUDIO_OK, sharedRegionA.resolve(sharedMemories, &region1)); in TEST()
107 EXPECT_EQ(AAUDIO_OK, sharedRegionB.resolve(sharedMemories, &region2)); in TEST()
141 EXPECT_EQ(AAUDIO_OK, ringBufferA.resolve(sharedMemories, &descriptorA)); in TEST()
157 EXPECT_EQ(AAUDIO_OK, ringBufferB.resolve(sharedMemories, &descriptorB)); in TEST()
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_timestamps.cpp111 aaudio_result_t result = AAUDIO_OK; in testTimeStamps()
140 if (result != AAUDIO_OK) { in testTimeStamps()
155 if (result != AAUDIO_OK) { in testTimeStamps()
170 result = AAUDIO_OK; in testTimeStamps()
177 result = AAUDIO_OK; in testTimeStamps()
216 if (result != AAUDIO_OK) { in testTimeStamps()
234 if (result != AAUDIO_OK) { in testTimeStamps()
249 if (timestamp->result != AAUDIO_OK) { in testTimeStamps()
292 aaudio_result_t result = AAUDIO_OK; in main()
338 return (result == AAUDIO_OK) ? EXIT_SUCCESS : EXIT_FAILURE; in main()
/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()
185 return AAUDIO_OK; in close()
204 if (result != AAUDIO_OK) { in start()
214 if (result != AAUDIO_OK) { in stop()
[all …]
DAAudioSimplePlayer.h108 aaudio_result_t result = AAUDIO_OK;
113 if (result != AAUDIO_OK) return result;
131 if (result == AAUDIO_OK) {
147 aaudio_result_t result = AAUDIO_OK; in open()
152 if (result != AAUDIO_OK) return result; in open()
184 return AAUDIO_OK; in close()
203 if (result != AAUDIO_OK) { in start()
213 if (result != AAUDIO_OK) { in stop()
250 WakeUp waker{AAUDIO_OK};
289 if (result == AAUDIO_OK && // valid? in SimplePlayerDataCallbackProc()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp43 aaudio_result_t result = AAUDIO_OK; in testOpenPlayClose()
54 if (result != AAUDIO_OK) { in testOpenPlayClose()
75 if (result != AAUDIO_OK) { in testOpenPlayClose()
82 if (result != AAUDIO_OK) { in testOpenPlayClose()
94 long ret = myData.waker.wait(AAUDIO_OK, NANOS_PER_SECOND); in testOpenPlayClose()
103 if (result != AAUDIO_OK) { in testOpenPlayClose()
114 if (result != AAUDIO_OK) { in testOpenPlayClose()
119 if (result != AAUDIO_OK) { in testOpenPlayClose()
Dwrite_sine.cpp38 aaudio_result_t result = AAUDIO_OK; in main()
67 if (result != AAUDIO_OK) { in main()
109 if (result != AAUDIO_OK) { in main()
182 if (result != AAUDIO_OK) { in main()
201 return (result != AAUDIO_OK) ? EXIT_FAILURE : EXIT_SUCCESS; in main()
/frameworks/av/media/libaaudio/src/binding/
DAudioEndpointParcelable.cpp93 if (result != AAUDIO_OK) return result; in resolve()
96 if (result != AAUDIO_OK) return result; in resolve()
120 if (result != AAUDIO_OK) { in validate()
125 if ((result = mUpMessageQueueParcelable.validate()) != AAUDIO_OK) { in validate()
129 if ((result = mDownMessageQueueParcelable.validate()) != AAUDIO_OK) { in validate()
133 if ((result = mUpDataQueueParcelable.validate()) != AAUDIO_OK) { in validate()
137 if ((result = mDownDataQueueParcelable.validate()) != AAUDIO_OK) { in validate()
141 return AAUDIO_OK; in validate()
DRingBufferParcelable.cpp132 if (result != AAUDIO_OK) { in resolve()
138 if (result != AAUDIO_OK) { in resolve()
143 if (result != AAUDIO_OK) { in resolve()
151 return AAUDIO_OK; in resolve()
168 if ((result = mReadCounterParcelable.validate()) != AAUDIO_OK) { in validate()
172 if ((result = mWriteCounterParcelable.validate()) != AAUDIO_OK) { in validate()
176 if ((result = mDataParcelable.validate()) != AAUDIO_OK) { in validate()
180 return AAUDIO_OK; in validate()
DSharedMemoryParcelable.cpp93 return AAUDIO_OK; in close()
104 return AAUDIO_OK; in resolveSharedMemory()
119 aaudio_result_t result = AAUDIO_OK; in resolve()
130 if (result == AAUDIO_OK && mResolvedAddress != MMAP_UNRESOLVED_ADDRESS) { in resolve()
148 return AAUDIO_OK; in validate()
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor_callback.cpp48 if (result != AAUDIO_OK) { in main()
56 if (result != AAUDIO_OK) { in main()
74 if (result != AAUDIO_OK) { in main()
86 if (result != AAUDIO_OK) { in main()
91 if (result != AAUDIO_OK) { in main()
114 if (result != AAUDIO_OK) { in main()
118 if (result != AAUDIO_OK) { in main()
Dinput_monitor.cpp72 if (result != AAUDIO_OK) { in main()
116 if (result != AAUDIO_OK) { in main()
165 if (timeResult == AAUDIO_OK) { in main()
189 if (result != AAUDIO_OK) { in main()
199 return (result != AAUDIO_OK) ? EXIT_FAILURE : EXIT_SUCCESS; in main()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp54 aaudio_result_t result = AAUDIO_OK; in open()
195 return AAUDIO_OK; in open()
205 return AAUDIO_OK; in close()
246 return AAUDIO_OK; in requestStart()
269 return AAUDIO_OK; in requestPause()
287 return AAUDIO_OK; in requestFlush()
305 return AAUDIO_OK; in requestStop()
350 return AAUDIO_OK; in updateStateMachine()
360 if (result != AAUDIO_OK) { in write()
387 if (result != AAUDIO_OK) { in write()
[all …]
DAudioStreamRecord.cpp49 aaudio_result_t result = AAUDIO_OK; in open()
52 if (result != AAUDIO_OK) { in open()
177 return AAUDIO_OK; in open()
227 return AAUDIO_OK; in requestStart()
242 return AAUDIO_OK; in requestStop()
247 aaudio_result_t result = AAUDIO_OK; in updateStateMachine()
278 if (result != AAUDIO_OK) { in read()
304 if (result != AAUDIO_OK) { in read()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp56 aaudio_result_t inputError = AAUDIO_OK;
57 aaudio_result_t outputError = AAUDIO_OK;
254 aaudio_result_t result = AAUDIO_OK; in main()
343 if (result != AAUDIO_OK) { in main()
361 if (result != AAUDIO_OK) { in main()
391 if (result != AAUDIO_OK) { in main()
398 if (result != AAUDIO_OK) { in main()
407 if (loopbackData.inputError != AAUDIO_OK) { in main()
410 } else if (loopbackData.outputError != AAUDIO_OK) { in main()
446 if (loopbackData.inputError == AAUDIO_OK) { in main()
[all …]

12