Lines Matching refs:err
40 status_t err = mConsumer->setConsumerUsageBits(consumerUsage); in BufferItemConsumer() local
41 LOG_ALWAYS_FATAL_IF(err != OK, in BufferItemConsumer()
44 err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in BufferItemConsumer()
45 LOG_ALWAYS_FATAL_IF(err != OK, in BufferItemConsumer()
60 status_t err; in acquireBuffer() local
66 err = acquireBufferLocked(item, presentWhen); in acquireBuffer()
67 if (err != OK) { in acquireBuffer()
68 if (err != NO_BUFFER_AVAILABLE) { in acquireBuffer()
69 BI_LOGE("Error acquiring buffer: %s (%d)", strerror(err), err); in acquireBuffer()
71 return err; in acquireBuffer()
75 err = item->mFence->waitForever("BufferItemConsumer::acquireBuffer"); in acquireBuffer()
76 if (err != OK) { in acquireBuffer()
78 strerror(-err), err); in acquireBuffer()
79 return err; in acquireBuffer()
90 status_t err; in releaseBuffer() local
94 err = addReleaseFenceLocked(item.mSlot, item.mGraphicBuffer, releaseFence); in releaseBuffer()
95 if (err != OK) { in releaseBuffer()
99 err = releaseBufferLocked(item.mSlot, item.mGraphicBuffer, EGL_NO_DISPLAY, in releaseBuffer()
101 if (err != OK && err != IGraphicBufferConsumer::STALE_BUFFER_SLOT) { in releaseBuffer()
103 strerror(-err), err); in releaseBuffer()
105 return err; in releaseBuffer()