/frameworks/native/libs/ui/ |
D | GraphicBufferMapper.cpp | 124 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) in lockAsync() argument 132 vaddr, fenceFd); in lockAsync() 134 if (fenceFd >= 0) { in lockAsync() 135 sync_wait(fenceFd, -1); in lockAsync() 136 close(fenceFd); in lockAsync() 148 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument 157 bounds.width(), bounds.height(), ycbcr, fenceFd); in lockAsyncYCbCr() 159 if (fenceFd >= 0) { in lockAsyncYCbCr() 160 sync_wait(fenceFd, -1); in lockAsyncYCbCr() 161 close(fenceFd); in lockAsyncYCbCr() [all …]
|
D | GraphicBuffer.cpp | 229 status_t GraphicBuffer::lockAsync(uint32_t inUsage, void** vaddr, int fenceFd) in lockAsync() argument 232 status_t res = lockAsync(inUsage, lockBounds, vaddr, fenceFd); in lockAsync() 237 void** vaddr, int fenceFd) in lockAsync() argument 247 fenceFd); in lockAsync() 252 int fenceFd) in lockAsyncYCbCr() argument 255 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr() 260 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument 270 ycbcr, fenceFd); in lockAsyncYCbCr() 274 status_t GraphicBuffer::unlockAsync(int *fenceFd) in unlockAsync() argument 276 status_t res = getBufferMapper().unlockAsync(handle, fenceFd); in unlockAsync()
|
D | FramebufferNativeWindow.cpp | 224 int fenceFd = -1; in dequeueBuffer_DEPRECATED() local 225 int result = dequeueBuffer(window, buffer, &fenceFd); in dequeueBuffer_DEPRECATED() 226 sp<Fence> fence(new Fence(fenceFd)); in dequeueBuffer_DEPRECATED() 237 ANativeWindowBuffer** buffer, int* fenceFd) in dequeueBuffer() argument 257 *fenceFd = -1; in dequeueBuffer() 275 ANativeWindowBuffer* buffer, int fenceFd) in queueBuffer() argument 282 sp<Fence> fence(new Fence(fenceFd)); in queueBuffer()
|
D | Fence.cpp | 41 Fence::Fence(int fenceFd) : in Fence() argument 42 mFenceFd(fenceFd) { in Fence()
|
/frameworks/native/libs/gui/ |
D | Surface.cpp | 124 ANativeWindowBuffer** buffer, int* fenceFd) { in hook_dequeueBuffer() argument 126 return c->dequeueBuffer(buffer, fenceFd); in hook_dequeueBuffer() 130 ANativeWindowBuffer* buffer, int fenceFd) { in hook_cancelBuffer() argument 132 return c->cancelBuffer(buffer, fenceFd); in hook_cancelBuffer() 136 ANativeWindowBuffer* buffer, int fenceFd) { in hook_queueBuffer() argument 138 return c->queueBuffer(buffer, fenceFd); in hook_queueBuffer() 145 int fenceFd = -1; in hook_dequeueBuffer_DEPRECATED() local 146 int result = c->dequeueBuffer(&buf, &fenceFd); in hook_dequeueBuffer_DEPRECATED() 147 sp<Fence> fence(new Fence(fenceFd)); in hook_dequeueBuffer_DEPRECATED() 207 int Surface::dequeueBuffer(android_native_buffer_t** buffer, int* fenceFd) { in dequeueBuffer() argument [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXNodeInstance.cpp | 79 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument 80 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd) 81 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument 83 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd) 1070 status_t OMXNodeInstance::fillBuffer(OMX::buffer_id buffer, int fenceFd) { in fillBuffer() argument 1079 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput); in fillBuffer() 1081 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer() 1088 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd))); in fillBuffer() 1093 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer() 1103 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument [all …]
|
D | OMX.cpp | 424 status_t OMX::fillBuffer(node_id node, buffer_id buffer, int fenceFd) { in fillBuffer() argument 425 return findInstance(node)->fillBuffer(buffer, fenceFd); in fillBuffer() 432 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument 434 buffer, range_offset, range_length, flags, timestamp, fenceFd); in emptyBuffer() 479 msg.fenceFd = -1; in OnEvent() 491 msg.fenceFd = -1; in OnEvent() 502 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) { in OnEmptyBufferDone() argument 508 msg.fenceFd = fenceFd; in OnEmptyBufferDone() 517 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) { in OnFillBufferDone() argument 523 msg.fenceFd = fenceFd; in OnFillBufferDone()
|
D | GraphicBufferSource.cpp | 316 void GraphicBufferSource::codecBufferEmptied(OMX_BUFFERHEADERTYPE* header, int fenceFd) { in codecBufferEmptied() argument 326 if (fenceFd >= 0) { in codecBufferEmptied() 327 ::close(fenceFd); in codecBufferEmptied() 350 if (fenceFd >= 0) { in codecBufferEmptied() 351 ::close(fenceFd); in codecBufferEmptied() 386 sp<Fence> fence = new Fence(fenceFd); in codecBufferEmptied()
|
/frameworks/native/include/gui/ |
D | Surface.h | 122 ANativeWindowBuffer* buffer, int fenceFd); 124 ANativeWindowBuffer** buffer, int* fenceFd); 128 ANativeWindowBuffer* buffer, int fenceFd); 161 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd); 162 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd); 163 virtual int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd);
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 186 sp<GraphicBuffer> buffer, int fenceFd); 188 GraphicBuffer** buffer, int* fenceFd); 338 int fenceFd = -1; in ImageWriter_dequeueImage() local 339 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage() 364 Image_setNativeContext(env, image, buffer, fenceFd); in ImageWriter_dequeueImage() 414 int fenceFd = -1; in ImageWriter_cancelImage() local 415 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_cancelImage() 425 anw->cancelBuffer(anw.get(), buffer, fenceFd); in ImageWriter_cancelImage() 444 int fenceFd = -1; in ImageWriter_queueImage() local 445 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_queueImage() [all …]
|
/frameworks/native/include/ui/ |
D | GraphicBufferMapper.h | 54 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 58 int fenceFd); 60 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
|
D | GraphicBuffer.h | 115 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd); 117 int fenceFd); 119 int fenceFd); 121 android_ycbcr *ycbcr, int fenceFd); 122 status_t unlockAsync(int *fenceFd);
|
D | FramebufferNativeWindow.h | 73 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd); 74 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
|
/frameworks/av/media/libstagefright/include/ |
D | OMXNodeInstance.h | 108 status_t fillBuffer(OMX::buffer_id buffer, int fenceFd); 113 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 117 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 216 OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex); 224 OMX_U32 flags, OMX_TICKS timestamp, intptr_t debugAddr, int fenceFd);
|
D | OMX.h | 121 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd); 127 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 151 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd); 154 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd);
|
/frameworks/av/media/libmedia/ |
D | IOMX.cpp | 514 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd) { in fillBuffer() argument 519 data.writeInt32(fenceFd >= 0); in fillBuffer() 520 if (fenceFd >= 0) { in fillBuffer() 521 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in fillBuffer() 532 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument 541 data.writeInt32(fenceFd >= 0); in emptyBuffer() 542 if (fenceFd >= 0) { in emptyBuffer() 543 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in emptyBuffer() 1024 int fenceFd = haveFence ? ::dup(data.readFileDescriptor()) : -1; in onTransact() local 1025 reply->writeInt32(fillBuffer(node, buffer, fenceFd)); in onTransact() [all …]
|
/frameworks/av/media/libstagefright/ |
D | FrameRenderTracker.cpp | 51 ANativeWindowBuffer *buf, int fenceFd, int index) { in updateInfoForDequeuedBuffer() argument 77 if (fenceFd < 0) { in updateInfoForDequeuedBuffer() 84 renderInfo->mFence = new Fence(::dup(fenceFd)); in updateInfoForDequeuedBuffer()
|
D | OMXClient.cpp | 128 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd); 134 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 388 status_t MuxOMX::fillBuffer(node_id node, buffer_id buffer, int fenceFd) { in fillBuffer() argument 389 return getOMX(node)->fillBuffer(node, buffer, fenceFd); in fillBuffer() 396 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument 398 node, buffer, range_offset, range_length, flags, timestamp, fenceFd); in emptyBuffer()
|
D | ACodec.cpp | 160 msg->setInt32("fence_fd", omx_msg.fenceFd); in onMessages() 181 "fence_fd", omx_msg.fenceFd); in onMessages() 248 bool onOMXEmptyBufferDone(IOMX::buffer_id bufferID, int fenceFd); 255 int fenceFd); 461 void ACodec::BufferInfo::setWriteFence(int fenceFd, const char *dbg) { in setWriteFence() argument 464 mIsReadFence ? "read" : "write", mFenceFd, fenceFd, dbg); in setWriteFence() 466 mFenceFd = fenceFd; in setWriteFence() 470 void ACodec::BufferInfo::setReadFence(int fenceFd, const char *dbg) { in setReadFence() argument 473 mIsReadFence ? "read" : "write", mFenceFd, fenceFd, dbg); in setReadFence() 475 mFenceFd = fenceFd; in setReadFence() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | Surface_test.cpp | 192 int fenceFd; in TEST_F() local 193 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd)); in TEST_F() 194 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffer, fenceFd)); in TEST_F() 210 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd)); in TEST_F()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | SoftwareRenderer.cpp | 212 int fenceFd = -1; in render() local 213 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd); in render() 214 if (err == 0 && fenceFd >= 0) { in render() 215 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0); in render() 216 sp<Fence> fence = new Fence(fenceFd); in render()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3InputStream.cpp | 63 int fenceFd; in getInputBufferLocked() local 78 fenceFd = bufferItem.mFence->dup(); in getInputBufferLocked() 84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getInputBufferLocked()
|
D | Camera3ZslStream.cpp | 152 int fenceFd; in getInputBufferLocked() local 174 fenceFd = bufferItem->getBufferItem().mFence->dup(); in getInputBufferLocked() 180 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getInputBufferLocked()
|
D | Camera3OutputStream.cpp | 99 int fenceFd; in getBufferLocked() local 115 res = currentConsumer->dequeueBuffer(currentConsumer.get(), &anb, &fenceFd); in getBufferLocked() 127 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
|
/frameworks/av/include/media/ |
D | IOMX.h | 163 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd = -1) = 0; 173 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1) = 0; 205 int fenceFd; // used for EMPTY_BUFFER_DONE and FILL_BUFFER_DONE; client must close this member
|