/frameworks/base/libs/hwui/renderthread/ |
D | ReliableSurface.cpp | 112 int fenceFd = -1; in reserveNext() local 114 int result = callProtected(mSurface, dequeueBuffer, &buffer, &fenceFd); in reserveNext() 120 mReservedFenceFd.reset(fenceFd); in reserveNext() 145 int ReliableSurface::cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in cancelBuffer() argument 148 if (fenceFd > 0) { in cancelBuffer() 149 close(fenceFd); in cancelBuffer() 153 int result = callProtected(mSurface, cancelBuffer, buffer, fenceFd); in cancelBuffer() 157 int ReliableSurface::dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd) { in dequeueBuffer() argument 162 *fenceFd = mReservedFenceFd.release(); in dequeueBuffer() 168 int result = callProtected(mSurface, dequeueBuffer, buffer, fenceFd); in dequeueBuffer() [all …]
|
D | ReliableSurface.h | 65 int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd); 66 int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd); 67 int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd); 72 static int hook_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd); 74 int* fenceFd); 75 static int hook_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
|
D | VulkanManager.cpp | 523 int fenceFd = -1; in swapBuffers() local 537 err = mGetSemaphoreFdKHR(mDevice, &getFdInfo, &fenceFd); in swapBuffers() 544 surface->presentCurrentBuffer(dirtyRect, fenceFd); in swapBuffers() 577 int fenceFd = fence->dup(); in fenceWait() local 578 if (fenceFd == -1) { in fenceWait() 599 importInfo.fd = fenceFd; in fenceWait() 661 int fenceFd = 0; in createReleaseFence() local 663 err = mGetSemaphoreFdKHR(mDevice, &getFdInfo, &fenceFd); in createReleaseFence() 668 nativeFence = new Fence(fenceFd); in createReleaseFence()
|
/frameworks/native/libs/ui/ |
D | GraphicBufferMapper.cpp | 122 int32_t fenceFd = -1; in unlock() local 123 status_t error = unlockAsync(handle, &fenceFd); in unlock() 124 if (error == NO_ERROR && fenceFd >= 0) { in unlock() 125 sync_wait(fenceFd, -1); in unlock() 126 close(fenceFd); in unlock() 132 void** vaddr, int fenceFd, int32_t* outBytesPerPixel, in lockAsync() argument 134 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd, outBytesPerPixel, in lockAsync() 140 int fenceFd, int32_t* outBytesPerPixel, in lockAsync() argument 146 return mMapper->lock(handle, usage, bounds, fenceFd, vaddr, outBytesPerPixel, in lockAsync() 151 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument [all …]
|
D | GraphicBuffer.cpp | 312 status_t GraphicBuffer::lockAsync(uint32_t inUsage, void** vaddr, int fenceFd, in lockAsync() argument 316 lockAsync(inUsage, lockBounds, vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync() 320 status_t GraphicBuffer::lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd, in lockAsync() argument 322 return lockAsync(inUsage, inUsage, rect, vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync() 326 const Rect& rect, void** vaddr, int fenceFd, in lockAsync() argument 337 vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync() 343 int fenceFd) in lockAsyncYCbCr() argument 346 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr() 351 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument 360 status_t res = getBufferMapper().lockAsyncYCbCr(handle, inUsage, rect, ycbcr, fenceFd); in lockAsyncYCbCr() [all …]
|
D | Fence.cpp | 40 Fence::Fence(int fenceFd) : in Fence() argument 41 mFenceFd(fenceFd) { in Fence() 44 Fence::Fence(base::unique_fd fenceFd) : in Fence() argument 45 mFenceFd(std::move(fenceFd)) { in Fence()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/ |
D | MockNativeWindow.cpp | 57 int* fenceFd) { in dispatch_dequeueBuffer() argument 58 return static_cast<NativeWindow*>(window)->dequeueBuffer(buffer, fenceFd); in dispatch_dequeueBuffer() 62 int fenceFd) { in dispatch_queueBuffer() argument 63 return static_cast<NativeWindow*>(window)->queueBuffer(buffer, fenceFd); in dispatch_queueBuffer() 67 int fenceFd) { in dispatch_cancelBuffer() argument 68 return static_cast<NativeWindow*>(window)->cancelBuffer(buffer, fenceFd); in dispatch_cancelBuffer()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/ |
D | NativeWindow.cpp | 27 static int forwardDequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in forwardDequeueBuffer() argument 28 return static_cast<NativeWindow*>(window)->dequeueBuffer(buffer, fenceFd); in forwardDequeueBuffer() 31 static int forwardCancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardCancelBuffer() argument 32 return static_cast<NativeWindow*>(window)->cancelBuffer(buffer, fenceFd); in forwardCancelBuffer() 35 static int forwardQueueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardQueueBuffer() argument 36 return static_cast<NativeWindow*>(window)->queueBuffer(buffer, fenceFd); in forwardQueueBuffer()
|
/frameworks/av/media/libmedia/ |
D | IOMX.cpp | 295 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer() argument 303 data.writeInt32(fenceFd >= 0); in fillBuffer() 304 if (fenceFd >= 0) { in fillBuffer() 305 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in fillBuffer() 314 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument 324 data.writeInt32(fenceFd >= 0); in emptyBuffer() 325 if (fenceFd >= 0) { in emptyBuffer() 326 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in emptyBuffer() 355 data.writeInt32(msg.fenceFd >= 0); in dispatchMessage() 356 if (msg.fenceFd >= 0) { in dispatchMessage() [all …]
|
/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 96 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem() local 98 item.mCrop, &ycbcr, fenceFd); in lockBufferItem() 120 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem() local 122 item.mCrop, &bufferPointer, fenceFd); in lockBufferItem() 211 int fenceFd = -1; in unlockBuffer() local 212 status_t err = ab.mGraphicBuffer->unlockAsync(&fenceFd); in unlockBuffer() 219 sp<Fence> fence(fenceFd >= 0 ? new Fence(fenceFd) : Fence::NO_FENCE); in unlockBuffer()
|
D | Surface.cpp | 366 ANativeWindowBuffer** buffer, int* fenceFd) { in hook_dequeueBuffer() argument 368 return c->dequeueBuffer(buffer, fenceFd); in hook_dequeueBuffer() 372 ANativeWindowBuffer* buffer, int fenceFd) { in hook_cancelBuffer() argument 374 return c->cancelBuffer(buffer, fenceFd); in hook_cancelBuffer() 378 ANativeWindowBuffer* buffer, int fenceFd) { in hook_queueBuffer() argument 380 return c->queueBuffer(buffer, fenceFd); in hook_queueBuffer() 387 int fenceFd = -1; in hook_dequeueBuffer_DEPRECATED() local 388 int result = c->dequeueBuffer(&buf, &fenceFd); in hook_dequeueBuffer_DEPRECATED() 392 sp<Fence> fence(new Fence(fenceFd)); in hook_dequeueBuffer_DEPRECATED() 535 int Surface::dequeueBuffer(android_native_buffer_t** buffer, int* fenceFd) { in dequeueBuffer() argument [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXNodeInstance.cpp | 89 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument 90 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd) 91 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument 93 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd) 1674 IOMX::buffer_id buffer, const OMXBuffer &omxBuffer, int fenceFd) { in fillBuffer() argument 1692 (intptr_t)header->pBuffer, header, fenceFd)); in fillBuffer() 1704 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput); in fillBuffer() 1706 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer() 1713 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd))); in fillBuffer() 1718 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 293 sp<GraphicBuffer> buffer, int fenceFd); 295 GraphicBuffer** buffer, int* fenceFd); 477 int fenceFd = -1; in ImageWriter_dequeueImage() local 478 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage() 503 Image_setNativeContext(env, image, buffer, fenceFd); in ImageWriter_dequeueImage() 552 int fenceFd = -1; in ImageWriter_cancelImage() local 553 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_cancelImage() 562 anw->cancelBuffer(anw.get(), buffer, fenceFd); in ImageWriter_cancelImage() 582 int fenceFd = -1; in ImageWriter_queueImage() local 583 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_queueImage() [all …]
|
D | android_media_Utils.h | 42 const Rect& rect, int fenceFd, LockedImage* outputImage); 45 int fenceFd, LockedImage* outputImage);
|
/frameworks/av/media/codec2/sfplugin/ |
D | C2OMXNode.cpp | 60 int fenceFd, in queue() argument 67 std::move(work), fenceFd, std::move(fd0), std::move(fd1)); in queue() 97 fenceFds.push_back(queue.workList.front().fenceFd); in threadLoop() 104 for (int fenceFd : fenceFds) { in threadLoop() local 105 sp<Fence> fence(new Fence(fenceFd)); in threadLoop() 130 WorkFence(std::unique_ptr<C2Work> &&w, int fd) : work(std::move(w)), fenceFd(fd) {} in WorkFence() 138 fenceFd(fd), in WorkFence() 143 int fenceFd; member 324 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer() argument 327 (void)fenceFd; in fillBuffer() [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | GraphicBufferMapper.h | 72 int fenceFd, int32_t* outBytesPerPixel = nullptr, 76 const Rect& bounds, void** vaddr, int fenceFd, 81 int fenceFd); 83 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
|
D | GraphicBuffer.h | 195 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd, 197 status_t lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd, 200 void** vaddr, int fenceFd, int32_t* outBytesPerPixel = nullptr, 203 int fenceFd); 205 android_ycbcr *ycbcr, int fenceFd); 206 status_t unlockAsync(int *fenceFd);
|
/frameworks/native/libs/ui/include/ui/ |
D | GraphicBufferMapper.h | 72 int fenceFd, int32_t* outBytesPerPixel = nullptr, 76 const Rect& bounds, void** vaddr, int fenceFd, 81 int fenceFd); 83 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
|
D | GraphicBuffer.h | 195 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd, 197 status_t lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd, 200 void** vaddr, int fenceFd, int32_t* outBytesPerPixel = nullptr, 203 int fenceFd); 205 android_ycbcr *ycbcr, int fenceFd); 206 status_t unlockAsync(int *fenceFd);
|
/frameworks/native/libs/nativewindow/ |
D | ANativeWindow.cpp | 226 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in ANativeWindow_dequeueBuffer() argument 227 return window->dequeueBuffer(window, buffer, fenceFd); in ANativeWindow_dequeueBuffer() 230 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_queueBuffer() argument 231 return window->queueBuffer(window, buffer, fenceFd); in ANativeWindow_queueBuffer() 234 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_cancelBuffer() argument 235 return window->cancelBuffer(window, buffer, fenceFd); in ANativeWindow_cancelBuffer()
|
/frameworks/native/libs/nativewindow/include/vndk/ |
D | window.h | 199 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd); 221 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd); 249 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/ |
D | OMXNodeInstance.h | 87 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1); 91 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1); 219 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 223 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 227 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 231 OMX_U32 flags, OMX_TICKS timestamp, intptr_t debugAddr, int fenceFd); 260 OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.h | 130 int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd, 209 int fenceFd; member 212 fenceFd(fd) {} in graphicBuffer()
|
D | Camera3OutputStream.cpp | 166 int fenceFd = -1; in getBufferLocked() local 169 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked() 178 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked() 518 status_t Camera3OutputStream::getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd) { in getBufferLockedCommon() argument 530 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, fenceFd); in getBufferLockedCommon() 573 res = currentConsumer->dequeueBuffer(currentConsumer.get(), anb, fenceFd); in getBufferLockedCommon() 584 getId(), getStreamSetId(), &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon() 850 status_t Camera3OutputStream::detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) { in detachBuffer() argument 852 return detachBufferLocked(buffer, fenceFd); in detachBuffer() 855 status_t Camera3OutputStream::detachBufferLocked(sp<GraphicBuffer>* buffer, int* fenceFd) { in detachBufferLocked() argument [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | Surface.h | 199 ANativeWindowBuffer* buffer, int fenceFd); 201 ANativeWindowBuffer** buffer, int* fenceFd); 205 ANativeWindowBuffer* buffer, int fenceFd); 252 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd); 253 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd); 254 virtual int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd);
|