Lines Matching refs:result

67     std::stringstream result;  in dump()  local
69 result << " 0x" << std::setfill('0') << std::setw(8) << std::hex << mHandle in dump()
71 result << std::setw(6) << mMmapClient.clientUid; in dump()
72 result << std::setw(7) << mClientHandle; in dump()
73 result << std::setw(4) << (isRunning() ? "yes" : " no"); in dump()
74 result << std::setw(6) << getState(); in dump()
75 result << std::setw(7) << getFormat(); in dump()
76 result << std::setw(6) << mFramesPerBurst; in dump()
77 result << std::setw(5) << getSamplesPerFrame(); in dump()
78 result << std::setw(9) << getBufferCapacity(); in dump()
80 return result.str(); in dump()
85 aaudio_result_t result = AAUDIO_OK; in open() local
100 result = mUpMessageQueue->allocate(sizeof(AAudioServiceMessage), in open()
102 if (result != AAUDIO_OK) { in open()
112 result = AAUDIO_ERROR_UNAVAILABLE; in open()
121 return result; in open()
125 return result; in open()
129 aaudio_result_t result = AAUDIO_OK; in close() local
138 result = AAUDIO_ERROR_INVALID_STATE; in close()
156 return result; in close()
175 aaudio_result_t result = AAUDIO_OK; in start() local
188 result = startDevice(); in start()
189 if (result != AAUDIO_OK) goto error; in start()
195 result = mTimestampThread.start(this); in start()
196 if (result != AAUDIO_OK) goto error; in start()
198 return result; in start()
202 return result; in start()
206 aaudio_result_t result = AAUDIO_OK; in pause() local
208 return result; in pause()
215 result = stopTimestampThread(); in pause()
216 if (result != AAUDIO_OK) { in pause()
218 return result; in pause()
226 result = endpoint->stopStream(this, mClientHandle); in pause()
227 if (result != AAUDIO_OK) { in pause()
228 ALOGE("%s() mServiceEndpoint returned %d, %s", __func__, result, getTypeText()); in pause()
234 return result; in pause()
238 aaudio_result_t result = AAUDIO_OK; in stop() local
240 return result; in stop()
248 result = stopTimestampThread(); in stop()
249 if (result != AAUDIO_OK) { in stop()
251 return result; in stop()
260 result = endpoint->stopStream(this, mClientHandle); in stop()
261 if (result != AAUDIO_OK) { in stop()
262 ALOGE("%s() stopStream returned %d, %s", __func__, result, getTypeText()); in stop()
269 return result; in stop()
273 aaudio_result_t result = AAUDIO_OK; in stopTimestampThread() local
276 result = mTimestampThread.stop(); in stopTimestampThread()
278 return result; in stopTimestampThread()
282 aaudio_result_t result = AAudio_isFlushAllowed(getState()); in flush() local
283 if (result != AAUDIO_OK) { in flush()
284 return result; in flush()
305 aaudio_result_t result = sendCurrentTimestamp(); in run() local
306 if (result != AAUDIO_OK) { in run()
307 ALOGE("%s() timestamp thread got result = %d", __func__, result); in run()
391 aaudio_result_t result = getFreeRunningPosition(&command.timestamp.position, in sendCurrentTimestamp() local
393 if (result == AAUDIO_OK) { in sendCurrentTimestamp()
398 result = writeUpMessageQueue(&command); in sendCurrentTimestamp()
400 if (result == AAUDIO_OK) { in sendCurrentTimestamp()
402 result = getHardwareTimestamp(&command.timestamp.position, in sendCurrentTimestamp()
404 if (result == AAUDIO_OK) { in sendCurrentTimestamp()
409 result = writeUpMessageQueue(&command); in sendCurrentTimestamp()
414 if (result == AAUDIO_ERROR_UNAVAILABLE) { // TODO review best error code in sendCurrentTimestamp()
415 result = AAUDIO_OK; // just not available yet, try again later in sendCurrentTimestamp()
417 return result; in sendCurrentTimestamp()