Home
last modified time | relevance | path

Searched refs:fenceFd (Results 1 – 25 of 97) sorted by relevance

1234

/frameworks/base/libs/hwui/renderthread/
DReliableSurface.cpp97 int fenceFd = -1; in reserveNext() local
101 int result = ANativeWindow_dequeueBuffer(mWindow, &buffer, &fenceFd); in reserveNext()
107 mReservedFenceFd.reset(fenceFd); in reserveNext()
177 ANativeWindowBuffer** buffer, int* fenceFd) { in hook_dequeueBuffer() argument
183 *fenceFd = rs->mReservedFenceFd.release(); in hook_dequeueBuffer()
189 int result = dequeueBuffer(window, buffer, fenceFd); in hook_dequeueBuffer()
193 *fenceFd = -1; in hook_dequeueBuffer()
204 ANativeWindowBuffer* buffer, int fenceFd) { in hook_cancelBuffer() argument
208 if (fenceFd > 0) { in hook_cancelBuffer()
209 close(fenceFd); in hook_cancelBuffer()
[all …]
DReliableSurface.h83 void* data, ANativeWindowBuffer* buffer, int fenceFd);
86 ANativeWindowBuffer** buffer, int* fenceFd);
88 void* data, ANativeWindowBuffer* buffer, int fenceFd);
/frameworks/native/libs/nativewindow/include/apex/
Dwindow.h47 int fenceFd);
58 int fenceFd);
65 int* fenceFd);
76 int* fenceFd);
99 int fenceFd);
110 int fenceFd);
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
DMockNativeWindow.cpp57 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/
DNativeWindow.cpp27 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/native/libs/ui/
DGraphicBufferMapper.cpp152 int32_t fenceFd = -1; in unlock() local
153 status_t error = unlockAsync(handle, &fenceFd); in unlock()
154 if (error == NO_ERROR && fenceFd >= 0) { in unlock()
155 sync_wait(fenceFd, -1); in unlock()
156 close(fenceFd); in unlock()
162 void** vaddr, int fenceFd, int32_t* outBytesPerPixel, in lockAsync() argument
164 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd, outBytesPerPixel, in lockAsync()
170 int fenceFd, int32_t* outBytesPerPixel, in lockAsync() argument
176 return mMapper->lock(handle, usage, bounds, fenceFd, vaddr, outBytesPerPixel, in lockAsync()
181 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
[all …]
DGraphicBuffer.cpp291 status_t GraphicBuffer::lockAsync(uint32_t inUsage, void** vaddr, int fenceFd, in lockAsync() argument
295 lockAsync(inUsage, lockBounds, vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync()
299 status_t GraphicBuffer::lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd, in lockAsync() argument
301 return lockAsync(inUsage, inUsage, rect, vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync()
305 const Rect& rect, void** vaddr, int fenceFd, in lockAsync() argument
316 vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync()
322 int fenceFd) in lockAsyncYCbCr() argument
325 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr()
330 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument
339 status_t res = getBufferMapper().lockAsyncYCbCr(handle, inUsage, rect, ycbcr, fenceFd); in lockAsyncYCbCr()
[all …]
DFence.cpp40 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/libs/gui/
DCpuConsumer.cpp97 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem() local
99 item.mCrop, &ycbcr, fenceFd); in lockBufferItem()
121 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem() local
123 item.mCrop, &bufferPointer, fenceFd); in lockBufferItem()
212 int fenceFd = -1; in unlockBuffer() local
213 status_t err = ab.mGraphicBuffer->unlockAsync(&fenceFd); in unlockBuffer()
220 sp<Fence> fence(fenceFd >= 0 ? new Fence(fenceFd) : Fence::NO_FENCE); in unlockBuffer()
DSurface.cpp386 ANativeWindowBuffer** buffer, int* fenceFd) { in hook_dequeueBuffer() argument
393 return interceptor(window, Surface::dequeueBufferInternal, data, buffer, fenceFd); in hook_dequeueBuffer()
396 return c->dequeueBuffer(buffer, fenceFd); in hook_dequeueBuffer()
400 int* fenceFd) { in dequeueBufferInternal() argument
402 return c->dequeueBuffer(buffer, fenceFd); in dequeueBufferInternal()
406 ANativeWindowBuffer* buffer, int fenceFd) { in hook_cancelBuffer() argument
413 return interceptor(window, Surface::cancelBufferInternal, data, buffer, fenceFd); in hook_cancelBuffer()
416 return c->cancelBuffer(buffer, fenceFd); in hook_cancelBuffer()
419 int Surface::cancelBufferInternal(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in cancelBufferInternal() argument
421 return c->cancelBuffer(buffer, fenceFd); in cancelBufferInternal()
[all …]
/frameworks/av/media/libmedia/
DIOMX.cpp294 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer() argument
302 data.writeInt32(fenceFd >= 0); in fillBuffer()
303 if (fenceFd >= 0) { in fillBuffer()
304 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in fillBuffer()
313 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument
323 data.writeInt32(fenceFd >= 0); in emptyBuffer()
324 if (fenceFd >= 0) { in emptyBuffer()
325 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in emptyBuffer()
354 data.writeInt32(msg.fenceFd >= 0); in dispatchMessage()
355 if (msg.fenceFd >= 0) { in dispatchMessage()
[all …]
/frameworks/av/media/libstagefright/omx/
DOMXNodeInstance.cpp91 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument
92 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd)
93 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument
95 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd)
1768 IOMX::buffer_id buffer, const OMXBuffer &omxBuffer, int fenceFd) { in fillBuffer() argument
1786 (intptr_t)header->pBuffer, header, fenceFd)); in fillBuffer()
1798 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput); in fillBuffer()
1800 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer()
1807 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd))); in fillBuffer()
1812 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer()
[all …]
/frameworks/base/libs/hostgraphics/ui/
DGraphicBuffer.h46 android_ycbcr *ycbcr, int fenceFd) { return OK; } in lockAsyncYCbCr() argument
48 status_t lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd,
54 status_t unlockAsync(int *fenceFd) { return OK; } in unlockAsync() argument
/frameworks/av/media/codec2/vndk/
DC2Fence.cpp237 SyncFenceImpl(int fenceFd) : in SyncFenceImpl() argument
238 mFence(sp<Fence>::make(fenceFd)) {} in SyncFenceImpl()
258 C2Fence _C2FenceFactory::CreateSyncFence(int fenceFd) { in CreateSyncFence() argument
260 if (fenceFd >= 0) { in CreateSyncFence()
261 p = std::make_shared<_C2FenceFactory::SyncFenceImpl>(fenceFd); in CreateSyncFence()
264 close(fenceFd); in CreateSyncFence()
/frameworks/native/libs/gui/include/gui/
DSurface.h233 ANativeWindowBuffer* buffer, int fenceFd);
235 ANativeWindowBuffer** buffer, int* fenceFd);
239 ANativeWindowBuffer* buffer, int fenceFd);
243 int fenceFd);
245 int* fenceFd);
247 static int queueBufferInternal(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
311 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);
312 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd);
313 virtual int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd);
383 int fenceFd = -1; member
[all …]
/frameworks/native/libs/nativewindow/include/vndk/
Dwindow.h199 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/base/media/jni/
Dandroid_media_ImageWriter.cpp323 sp<GraphicBuffer> buffer, int fenceFd, int dataSpace);
325 GraphicBuffer** buffer, int* fenceFd);
552 int fenceFd = -1; in ImageWriter_dequeueImage() local
553 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
578 Image_setNativeContext(env, image, buffer, fenceFd, ctx->getBufferDataSpace()); in ImageWriter_dequeueImage()
627 int fenceFd = -1; in ImageWriter_cancelImage() local
628 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_cancelImage()
637 anw->cancelBuffer(anw.get(), buffer, fenceFd); in ImageWriter_cancelImage()
657 int fenceFd = -1; in ImageWriter_queueImage() local
658 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_queueImage()
[all …]
Dandroid_media_Utils.h44 const Rect& rect, int fenceFd, LockedImage* outputImage);
47 int fenceFd, LockedImage* outputImage);
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DOMXNodeInstance.h87 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/media/codec2/sfplugin/
DC2OMXNode.cpp66 int fenceFd, in queue() argument
73 std::move(work), fenceFd, std::move(fd0), std::move(fd1)); in queue()
124 fenceFds.push_back(queue.workList.front().fenceFd); in threadLoop()
134 for (int fenceFd : fenceFds) { in threadLoop() local
135 sp<Fence> fence(new Fence(fenceFd)); in threadLoop()
161 WorkFence(std::unique_ptr<C2Work> &&w, int fd) : work(std::move(w)), fenceFd(fd) {} in WorkFence()
169 fenceFd(fd), in WorkFence()
174 int fenceFd; member
398 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer() argument
401 (void)fenceFd; in fillBuffer()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3BufferManager.h131 int* fenceFd, bool noFreeBufferAtConsumer = false);
210 int fenceFd; member
213 fenceFd(fd) {} in graphicBuffer()
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h185 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd,
187 status_t lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd,
190 void** vaddr, int fenceFd, int32_t* outBytesPerPixel = nullptr,
193 int fenceFd);
195 android_ycbcr *ycbcr, int fenceFd);
196 status_t unlockAsync(int *fenceFd);
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h185 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd,
187 status_t lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd,
190 void** vaddr, int fenceFd, int32_t* outBytesPerPixel = nullptr,
193 int fenceFd);
195 android_ycbcr *ycbcr, int fenceFd);
196 status_t unlockAsync(int *fenceFd);
/frameworks/base/tests/SurfaceViewBufferTests/cpp/
DSurfaceProxy.cpp127 int fenceFd; in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer() local
128 int result = sAnw->dequeueBuffer(sAnw, &anb, &fenceFd); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
136 android::sp<android::Fence> fence(new android::Fence(fenceFd)); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
171 int fenceFd = -1; in Java_com_android_test_SurfaceProxy_drawBuffer() local
173 newDirtyRegion.bounds(), &vaddr, fenceFd); in Java_com_android_test_SurfaceProxy_drawBuffer()
185 graphicBuffer->unlockAsync(&fenceFd); in Java_com_android_test_SurfaceProxy_drawBuffer()
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp317 void SkiaGLRenderEngine::waitFence(GrDirectContext*, base::borrowed_fd fenceFd) { in waitFence() argument
318 if (fenceFd.get() >= 0 && !waitGpuFence(fenceFd)) { in waitFence()
320 sync_wait(fenceFd.get(), -1); in waitFence()
345 bool SkiaGLRenderEngine::waitGpuFence(base::borrowed_fd fenceFd) { in waitGpuFence() argument
352 base::unique_fd fenceDup(dup(fenceFd.get())); in waitGpuFence()
396 base::unique_fd fenceFd(eglDupNativeFenceFDANDROID(mEGLDisplay, sync)); in flush() local
398 if (fenceFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) { in flush()
402 return fenceFd; in flush()

1234