Lines Matching refs:res

115     status_t res;  in getBufferLocked()  local
117 if ((res = getBufferPreconditionCheckLocked()) != OK) { in getBufferLocked()
118 return res; in getBufferLocked()
127 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, &fenceFd); in getBufferLocked()
128 if (res == OK) { in getBufferLocked()
132 res = mConsumer->attachBuffer(anb); in getBufferLocked()
133 if (res != OK) { in getBufferLocked()
135 __FUNCTION__, mId, strerror(-res), res); in getBufferLocked()
136 return res; in getBufferLocked()
140 } else if (res == ALREADY_EXISTS) { in getBufferLocked()
145 } else if (res != OK) { in getBufferLocked()
147 __FUNCTION__, mId, strerror(-res), res); in getBufferLocked()
148 return res; in getBufferLocked()
166 res = currentConsumer->dequeueBuffer(currentConsumer.get(), &anb, &fenceFd); in getBufferLocked()
168 if (res != OK) { in getBufferLocked()
170 __FUNCTION__, mId, strerror(-res), res); in getBufferLocked()
174 if (res == NO_INIT && mState == STATE_CONFIGURED) { in getBufferLocked()
178 return res; in getBufferLocked()
197 status_t res = returnAnyBufferLocked(buffer, timestamp, /*output*/true); in returnBufferLocked() local
199 if (res != OK) { in returnBufferLocked()
200 return res; in returnBufferLocked()
218 status_t res; in returnBufferCheckedLocked() local
238 res = currentConsumer->cancelBuffer(currentConsumer.get(), in returnBufferCheckedLocked()
241 if (res != OK) { in returnBufferCheckedLocked()
243 " %s (%d)", __FUNCTION__, mId, strerror(-res), res); in returnBufferCheckedLocked()
263 res = native_window_set_buffers_timestamp(mConsumer.get(), in returnBufferCheckedLocked()
265 if (res != OK) { in returnBufferCheckedLocked()
267 __FUNCTION__, mId, strerror(-res), res); in returnBufferCheckedLocked()
268 return res; in returnBufferCheckedLocked()
271 res = currentConsumer->queueBuffer(currentConsumer.get(), in returnBufferCheckedLocked()
274 if (res != OK) { in returnBufferCheckedLocked()
276 "%s (%d)", __FUNCTION__, mId, strerror(-res), res); in returnBufferCheckedLocked()
287 if (res != OK) { in returnBufferCheckedLocked()
293 return res; in returnBufferCheckedLocked()
313 status_t res = OK; in setTransformLocked() local
321 res = native_window_set_buffers_transform(mConsumer.get(), in setTransformLocked()
323 if (res != OK) { in setTransformLocked()
325 __FUNCTION__, transform, strerror(-res), res); in setTransformLocked()
328 return res; in setTransformLocked()
332 status_t res; in configureQueueLocked() local
335 if ((res = Camera3IOStreamBase::configureQueueLocked()) != OK) { in configureQueueLocked()
336 return res; in configureQueueLocked()
343 res = mConsumer->connect(NATIVE_WINDOW_API_CAMERA, /*listener*/mBufferReleasedListener); in configureQueueLocked()
344 if (res != OK) { in configureQueueLocked()
347 return res; in configureQueueLocked()
352 res = native_window_set_usage(mConsumer.get(), camera3_stream::usage); in configureQueueLocked()
353 if (res != OK) { in configureQueueLocked()
356 return res; in configureQueueLocked()
359 res = native_window_set_scaling_mode(mConsumer.get(), in configureQueueLocked()
361 if (res != OK) { in configureQueueLocked()
363 __FUNCTION__, strerror(-res), res); in configureQueueLocked()
364 return res; in configureQueueLocked()
369 res = native_window_set_buffers_dimensions(mConsumer.get(), in configureQueueLocked()
373 res = native_window_set_buffers_dimensions(mConsumer.get(), in configureQueueLocked()
376 if (res != OK) { in configureQueueLocked()
381 return res; in configureQueueLocked()
383 res = native_window_set_buffers_format(mConsumer.get(), in configureQueueLocked()
385 if (res != OK) { in configureQueueLocked()
388 return res; in configureQueueLocked()
391 res = native_window_set_buffers_data_space(mConsumer.get(), in configureQueueLocked()
393 if (res != OK) { in configureQueueLocked()
396 return res; in configureQueueLocked()
400 res = static_cast<ANativeWindow*>(mConsumer.get())->query( in configureQueueLocked()
403 if (res != OK) { in configureQueueLocked()
406 return res; in configureQueueLocked()
423 res = native_window_set_buffer_count(mConsumer.get(), in configureQueueLocked()
425 if (res != OK) { in configureQueueLocked()
428 return res; in configureQueueLocked()
431 res = native_window_set_buffers_transform(mConsumer.get(), in configureQueueLocked()
433 if (res != OK) { in configureQueueLocked()
435 __FUNCTION__, mTransform, strerror(-res), res); in configureQueueLocked()
454 res = mBufferManager->registerStream(weakThis, in configureQueueLocked()
456 if (res == OK) { in configureQueueLocked()
464 __FUNCTION__, mId, res, strerror(-res)); in configureQueueLocked()
472 status_t res; in disconnectLocked() local
474 if ((res = Camera3IOStreamBase::disconnectLocked()) != OK) { in disconnectLocked()
475 return res; in disconnectLocked()
480 res = native_window_api_disconnect(mConsumer.get(), in disconnectLocked()
488 if (res == DEAD_OBJECT) { in disconnectLocked()
492 else if (res != OK) { in disconnectLocked()
495 __FUNCTION__, mId, res, strerror(-res)); in disconnectLocked()
497 return res; in disconnectLocked()
503 res = mBufferManager->unregisterStream(getId(), getStreamSetId()); in disconnectLocked()
504 if (res != OK) { in disconnectLocked()
506 "(error %d %s)", __FUNCTION__, mId, res, strerror(-res)); in disconnectLocked()
508 return res; in disconnectLocked()
522 status_t res; in getEndpointUsage() local
524 res = static_cast<ANativeWindow*>(mConsumer.get())->query(mConsumer.get(), in getEndpointUsage()
542 return res; in getEndpointUsage()
547 status_t res = getEndpointUsage(&usage); in isVideoStream() local
548 if (res != OK) { in isVideoStream()
549 ALOGE("%s: getting end point usage failed: %s (%d).", __FUNCTION__, strerror(-res), res); in isVideoStream()
581 status_t res = stream->mBufferManager->onBufferReleased( in onBufferReleased() local
583 if (res != OK) { in onBufferReleased()
585 strerror(-res), res); in onBufferReleased()
599 status_t res = mConsumer->detachNextBuffer(buffer, &fence); in detachBuffer() local
600 if (res == NO_MEMORY) { in detachBuffer()
607 } else if (res != OK) { in detachBuffer()
609 ALOGE("%s: detach next buffer failed: %s (%d).", __FUNCTION__, strerror(-res), res); in detachBuffer()
611 return res; in detachBuffer()
627 status_t res = getEndpointUsage(&usage); in isConsumedByHWComposer() local
628 if (res != OK) { in isConsumedByHWComposer()
629 ALOGE("%s: getting end point usage failed: %s (%d).", __FUNCTION__, strerror(-res), res); in isConsumedByHWComposer()