• Home
  • Raw
  • Download

Lines Matching refs:res

50     status_t res = OK;  in connect()  local
70 res = addOutputLocked(surfaces[i]); in connect()
71 if (res != OK) { in connect()
73 __FUNCTION__, strerror(-res), res); in connect()
74 return res; in connect()
97 res = mConsumer->consumerConnect(this, /* controlledByApp */ false); in connect()
100 return res; in connect()
145 status_t res = addOutputLocked(outputQueue); in addOutput() local
147 if (res != OK) { in addOutput()
148 SP_LOGE("%s: addOutputLocked failed %d", __FUNCTION__, res); in addOutput()
149 return res; in addOutput()
152 res = mConsumer->setMaxAcquiredBufferCount(mMaxConsumerBuffers+1); in addOutput()
154 return res; in addOutput()
168 status_t res = outputQueue->connect(NATIVE_WINDOW_API_CAMERA, listener); in addOutputLocked() local
169 if (res != NO_ERROR) { in addOutputLocked()
170 SP_LOGE("addOutput: failed to connect (%d)", res); in addOutputLocked()
171 return res; in addOutputLocked()
176 res = static_cast<ANativeWindow*>(outputQueue.get())->query( in addOutputLocked()
179 if (res != OK) { in addOutputLocked()
182 return res; in addOutputLocked()
188 res = native_window_set_buffer_count(outputQueue.get(), in addOutputLocked()
190 if (res != OK) { in addOutputLocked()
193 return res; in addOutputLocked()
199 res = native_window_get_consumer_usage(static_cast<ANativeWindow*>(outputQueue.get()), &usage); in addOutputLocked()
204 res = gbp->allowAllocation(false); in addOutputLocked()
205 if (res != OK) { in addOutputLocked()
207 return res; in addOutputLocked()
222 status_t res; in outputBufferLocked() local
240 res = output->queueBuffer(slot, queueInput, &queueOutput); in outputBufferLocked()
244 __FUNCTION__, output.get(), slot, res); in outputBufferLocked()
245 if (res != OK) { in outputBufferLocked()
246 if (res != NO_INIT && res != DEAD_OBJECT) { in outputBufferLocked()
247 SP_LOGE("Queuing buffer to output failed (%d)", res); in outputBufferLocked()
254 return res; in outputBufferLocked()
264 return res; in outputBufferLocked()
274 status_t res = OK; in notifyBufferReleased() local
292 return res; in notifyBufferReleased()
298 status_t res = OK; in attachBufferToOutputs() local
316 res = gbp->attachBuffer(&slot, gb); in attachBufferToOutputs()
318 if (res != OK) { in attachBufferToOutputs()
320 __FUNCTION__, gbp.get(), strerror(-res), res); in attachBufferToOutputs()
321 return res; in attachBufferToOutputs()
337 return res; in attachBufferToOutputs()
346 status_t res = mConsumer->acquireBuffer(&bufferItem, /* presentWhen */ 0); in onFrameAvailable() local
347 if (res != NO_ERROR) { in onFrameAvailable()
348 SP_LOGE("%s: Acquiring buffer from input failed (%d)", __FUNCTION__, res); in onFrameAvailable()
349 mOnFrameAvailableRes.store(res); in onFrameAvailable()
362 res = mConsumer->detachBuffer(bufferItem.mSlot); in onFrameAvailable()
363 if (res != NO_ERROR) { in onFrameAvailable()
364 SP_LOGE("%s: detaching buffer from input failed (%d)", __FUNCTION__, res); in onFrameAvailable()
365 mOnFrameAvailableRes.store(res); in onFrameAvailable()
379 res = outputBufferLocked(mOutputs[id], bufferItem); in onFrameAvailable()
380 if (res != OK) { in onFrameAvailable()
381 SP_LOGE("%s: outputBufferLocked failed %d", __FUNCTION__, res); in onFrameAvailable()
382 mOnFrameAvailableRes.store(res); in onFrameAvailable()
389 mOnFrameAvailableRes.store(res); in onFrameAvailable()
412 status_t res = mConsumer->attachBuffer(&consumerSlot, tracker_ptr->getBuffer()); in decrementBufRefCountLocked() local
413 if (res != NO_ERROR) { in decrementBufRefCountLocked()
414 SP_LOGE("%s: attaching buffer to input failed (%d)", __FUNCTION__, res); in decrementBufRefCountLocked()
428 res = consumer->releaseBuffer(consumerSlot, /* frameNumber */ 0, in decrementBufRefCountLocked()
435 if (res != NO_ERROR) { in decrementBufRefCountLocked()
436 SP_LOGE("%s: releaseBuffer returns %d", __FUNCTION__, res); in decrementBufRefCountLocked()
453 status_t res = from->detachNextBuffer(&buffer, &fence); in onBufferReleasedByOutputLocked() local
454 if (res == NO_INIT) { in onBufferReleasedByOutputLocked()
459 } else if (res == NO_MEMORY) { in onBufferReleasedByOutputLocked()
462 } else if (res != OK) { in onBufferReleasedByOutputLocked()
463 SP_LOGE("%s: detaching buffer from output failed (%d)", __FUNCTION__, res); in onBufferReleasedByOutputLocked()