Home
last modified time | relevance | path

Searched refs:ANativeWindowBuffer (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
DMockNativeWindow.h34 MOCK_METHOD1(dequeueBuffer_DEPRECATED, int(struct ANativeWindowBuffer**));
35 MOCK_METHOD1(lockBuffer_DEPRECATED, int(struct ANativeWindowBuffer*));
36 MOCK_METHOD1(queueBuffer_DEPRECATED, int(struct ANativeWindowBuffer*));
40 MOCK_METHOD1(cancelBuffer_DEPRECATED, int(struct ANativeWindowBuffer*));
41 MOCK_METHOD2(dequeueBuffer, int(struct ANativeWindowBuffer**, int*));
42 MOCK_METHOD2(queueBuffer, int(struct ANativeWindowBuffer*, int));
43 MOCK_METHOD2(cancelBuffer, int(struct ANativeWindowBuffer*, int));
DMockNativeWindow.cpp28 struct ANativeWindowBuffer** buffer) { in dispatch_dequeueBuffer_DEPRECATED()
33 struct ANativeWindowBuffer* buffer) { in dispatch_lockBuffer_DEPRECATED()
38 struct ANativeWindowBuffer* buffer) { in dispatch_queueBuffer_DEPRECATED()
52 struct ANativeWindowBuffer* buffer) { in dispatch_cancelBuffer_DEPRECATED()
56 int dispatch_dequeueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer** buffer, in dispatch_dequeueBuffer()
61 int dispatch_queueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, in dispatch_queueBuffer()
66 int dispatch_cancelBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, in dispatch_cancelBuffer()
/frameworks/native/libs/nativewindow/include/apex/
Dwindow.h46 typedef int (*ANativeWindow_cancelBufferFn)(ANativeWindow* window, ANativeWindowBuffer* buffer,
57 void* data, ANativeWindowBuffer* buffer,
64 typedef int (*ANativeWindow_dequeueBufferFn)(ANativeWindow* window, ANativeWindowBuffer** buffer,
75 void* data, ANativeWindowBuffer** buffer,
98 typedef int (*ANativeWindow_queueBufferFn)(ANativeWindow* window, ANativeWindowBuffer* buffer,
109 void* data, ANativeWindowBuffer* buffer,
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.h70 ANativeWindowBuffer* mReservedBuffer = nullptr;
78 bool isFallbackBuffer(const ANativeWindowBuffer* windowBuffer) const;
79 ANativeWindowBuffer* acquireFallbackBuffer(int error);
87 void* data, ANativeWindowBuffer* buffer, int fenceFd);
90 ANativeWindowBuffer** buffer, int* fenceFd);
92 void* data, ANativeWindowBuffer* buffer, int fenceFd);
DReliableSurface.cpp98 ANativeWindowBuffer* buffer = nullptr; in reserveNext()
114 ANativeWindowBuffer* buffer = nullptr; in clearReservedBuffer()
135 bool ReliableSurface::isFallbackBuffer(const ANativeWindowBuffer* windowBuffer) const { in isFallbackBuffer()
139 ANativeWindowBuffer* scratchBuffer = in isFallbackBuffer()
144 ANativeWindowBuffer* ReliableSurface::acquireFallbackBuffer(int error) { in acquireFallbackBuffer()
177 ANativeWindowBuffer** buffer, int* fenceFd) { in hook_dequeueBuffer()
204 ANativeWindowBuffer* buffer, int fenceFd) { in hook_cancelBuffer()
218 ANativeWindowBuffer* buffer, int fenceFd) { in hook_queueBuffer()
/frameworks/native/libs/nativebase/include/nativebase/
Dnativebase.h66 typedef struct ANativeWindowBuffer struct
69 ANativeWindowBuffer() { in ANativeWindowBuffer() function
71 common.version = sizeof(ANativeWindowBuffer); in ANativeWindowBuffer()
105 typedef struct ANativeWindowBuffer ANativeWindowBuffer; argument
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DNativeWindow.h39 MOCK_METHOD2(dequeueBuffer, int(struct ANativeWindowBuffer**, int*));
40 MOCK_METHOD2(cancelBuffer, int(struct ANativeWindowBuffer*, int));
41 MOCK_METHOD2(queueBuffer, int(struct ANativeWindowBuffer*, int));
45 MOCK_METHOD1(lockBuffer_DEPRECATED, int(struct ANativeWindowBuffer*));
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/
DNativeWindow.cpp27 static int forwardDequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in forwardDequeueBuffer()
31 static int forwardCancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardCancelBuffer()
35 static int forwardQueueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardQueueBuffer()
89 static int forwardDequeueBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer** buffer) { in forwardDequeueBufferDeprecated()
94 static int forwardCancelBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardCancelBufferDeprecated()
98 static int forwardLockBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardLockBufferDeprecated()
102 static int forwardQueueBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardQueueBufferDeprecated()
/frameworks/native/libs/gui/include/gui/
DSurface.h243 ANativeWindowBuffer* buffer, int fenceFd);
245 ANativeWindowBuffer** buffer, int* fenceFd);
249 ANativeWindowBuffer* buffer, int fenceFd);
252 static int cancelBufferInternal(ANativeWindow* window, ANativeWindowBuffer* buffer,
254 static int dequeueBufferInternal(ANativeWindow* window, ANativeWindowBuffer** buffer,
257 static int queueBufferInternal(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
261 ANativeWindowBuffer* buffer);
263 ANativeWindowBuffer** buffer);
265 ANativeWindowBuffer* buffer);
267 ANativeWindowBuffer* buffer);
[all …]
/frameworks/native/libs/nativewindow/include/vndk/
Dwindow.h31 AHardwareBuffer* ANativeWindowBuffer_getHardwareBuffer(ANativeWindowBuffer* anwb);
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/native/libs/nativewindow/include-private/private/android/
DAHardwareBufferHelpers.h32 struct ANativeWindowBuffer;
59 const ANativeWindowBuffer* AHardwareBuffer_to_ANativeWindowBuffer(const AHardwareBuffer* buffer);
60 ANativeWindowBuffer* AHardwareBuffer_to_ANativeWindowBuffer(AHardwareBuffer* buffer);
/frameworks/base/libs/hostgraphics/gui/
DSurface.h101 static int hook_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, in hook_dequeueBuffer()
107 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd) { in dequeueBuffer()
113 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in cancelBuffer()
117 virtual int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in queueBuffer()
/frameworks/native/opengl/specs/
DEGL_ANDROID_image_native_buffer.txt43 ANativeWindowBuffer) as an EGLImage source.
70 | EGL_NATIVE_BUFFER_ANDROID | Used for ANativeWindowBuffer objects |
78 ANativeWindowBuffer object (cast into the type EGLClientBuffer), and
84 pointer to a valid ANativeWindowBuffer, the error EGL_BAD_PARAMETER
96 1. Should this extension define what combinations of ANativeWindowBuffer
/frameworks/native/libs/nativewindow/tests/
DANativeWindowTest.cpp81 ANativeWindowBuffer* buffer; in TEST_F()
99 ANativeWindowBuffer* buffer; in TEST_F()
111 ANativeWindowBuffer* buffer; in TEST_F()
131 ANativeWindowBuffer* buffer; in TEST_F()
148 ANativeWindowBuffer* buffer; in TEST_F()
/frameworks/av/services/camera/libcameraservice/device3/
DPreviewFrameSpacer.h57 int32_t transform, ANativeWindowBuffer* anwBuffer, int releaseFence);
68 sp<ANativeWindowBuffer> anwBuffer;
71 BufferHolder(nsecs_t t, nsecs_t readoutT, int32_t tr, ANativeWindowBuffer* anwb, int rf) : in BufferHolder()
DCamera3SharedOutputStream.h56 virtual status_t notifyBufferReleased(ANativeWindowBuffer *buffer);
123 status_t attachBufferToSplitterLocked(ANativeWindowBuffer* anb,
133 ANativeWindowBuffer* buffer, int anwReleaseFence,
/frameworks/av/media/libstagefright/renderfright/include/renderengine/
DImage.h19 struct ANativeWindowBuffer;
27 virtual bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) = 0;
DFramebuffer.h21 struct ANativeWindowBuffer;
30 virtual bool setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected,
/frameworks/av/media/libstagefright/renderfright/gl/
DGLImage.h26 struct ANativeWindowBuffer;
39 bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) override;
DGLFramebuffer.h26 struct ANativeWindowBuffer;
40 bool setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected,
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h411 struct ANativeWindowBuffer** buffer);
425 struct ANativeWindowBuffer* buffer);
447 struct ANativeWindowBuffer* buffer);
492 struct ANativeWindowBuffer* buffer);
514 struct ANativeWindowBuffer** buffer, int* fenceFd);
536 struct ANativeWindowBuffer* buffer, int fenceFd);
564 struct ANativeWindowBuffer* buffer, int fenceFd);
886 struct ANativeWindowBuffer** anb) { in native_window_dequeue_buffer_and_wait()
/frameworks/native/headers/media_plugin/media/hardware/
DHardwareAPI.h30 struct ANativeWindowBuffer;
148 struct ANativeWindowBuffer* pBuffer;
200 const sp<ANativeWindowBuffer>& nativeBuffer;
/frameworks/native/libs/ui/
DGraphicBuffer.cpp75 sp<GraphicBuffer> GraphicBuffer::from(ANativeWindowBuffer* anwb) { in from()
192 ANativeWindowBuffer* GraphicBuffer::getNativeBuffer() const in getNativeBuffer()
194 return static_cast<ANativeWindowBuffer*>( in getNativeBuffer()
262 ANativeWindowBuffer::width = static_cast<int>(inWidth); in initWithHandle()
263 ANativeWindowBuffer::height = static_cast<int>(inHeight); in initWithHandle()
264 ANativeWindowBuffer::stride = static_cast<int>(inStride); in initWithHandle()
265 ANativeWindowBuffer::format = inFormat; in initWithHandle()
266 ANativeWindowBuffer::usage = inUsage; in initWithHandle()
267 ANativeWindowBuffer::usage_deprecated = int(inUsage); in initWithHandle()
269 ANativeWindowBuffer::layerCount = inLayerCount; in initWithHandle()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp40 ANativeWindowBuffer* anb; in TEST_F()
90 ANativeWindowBuffer* anb; in TEST_F()
156 ANativeWindowBuffer* anb; in TEST_F()
233 ANativeWindowBuffer* anb; in TEST_F()
448 ANativeWindowBuffer* anb; in TEST_F()
509 ANativeWindowBuffer *anb; in TEST_F()
549 ANativeWindowBuffer *anb; in TEST_F()
580 ANativeWindowBuffer *anb; in TEST_F()
633 ANativeWindowBuffer* anb; in TEST_F()
702 ANativeWindowBuffer* anb; in TEST_F()
/frameworks/av/media/libstagefright/include/media/stagefright/
DFrameRenderTracker.h31 struct ANativeWindowBuffer;
106 Info *updateInfoForDequeuedBuffer(ANativeWindowBuffer *buf, int fenceFd, int index);

123