Home
last modified time | relevance | path

Searched refs:GraphicBuffer (Results 1 – 25 of 194) sorted by relevance

12345678

/frameworks/native/libs/ui/
DGraphicBuffer.cpp42 sp<GraphicBuffer> GraphicBuffer::from(ANativeWindowBuffer* anwb) { in from()
43 return static_cast<GraphicBuffer *>(anwb); in from()
46 GraphicBuffer::GraphicBuffer() in GraphicBuffer() function in android::GraphicBuffer
60 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() function in android::GraphicBuffer
62 : GraphicBuffer(inWidth, inHeight, inFormat, 1, static_cast<uint64_t>(inUsage), in GraphicBuffer()
67 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() function in android::GraphicBuffer
70 : GraphicBuffer() in GraphicBuffer()
77 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() function in android::GraphicBuffer
80 : GraphicBuffer(inHandle, keepOwnership ? TAKE_HANDLE : WRAP_HANDLE, in GraphicBuffer()
86 GraphicBuffer::GraphicBuffer(const native_handle_t* handle, in GraphicBuffer() function in android::GraphicBuffer
[all …]
/frameworks/native/include/ui/
DGraphicBuffer.h43 class GraphicBuffer
44 : public ANativeObjectBase< ANativeWindowBuffer, GraphicBuffer, RefBase >,
45 public Flattenable<GraphicBuffer>
47 friend class Flattenable<GraphicBuffer>;
75 static sp<GraphicBuffer> from(ANativeWindowBuffer *);
79 GraphicBuffer();
83 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
120 GraphicBuffer(const native_handle_t* handle, HandleWrapMethod method,
126 GraphicBuffer(const native_handle_t* handle, HandleWrapMethod method, in GraphicBuffer() function
130 : GraphicBuffer(handle, method, width, height, format, layerCount, in GraphicBuffer()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp62 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer) in GraphicBufferWrapper()
65 sp<GraphicBuffer> buffer;
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create()
111 static inline GraphicBuffer* GraphicBufferWrapper_to_GraphicBuffer( in GraphicBufferWrapper_to_GraphicBuffer()
118 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getWidth()
124 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getHeight()
130 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getFormat()
137 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getLayers()
143 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getUsage()
153 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_write()
[all …]
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java28 public class GraphicBuffer implements Parcelable { class
76 public static GraphicBuffer create(int width, int height, int format, int usage) { in create()
79 return new GraphicBuffer(width, height, format, usage, nativeObject); in create()
87 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() method in GraphicBuffer
99 public static GraphicBuffer createFromExisting(int width, int height, in createFromExisting()
103 return new GraphicBuffer(width, height, format, usage, nativeObject); in createFromExisting()
277 public static final Parcelable.Creator<GraphicBuffer> CREATOR =
278 new Parcelable.Creator<GraphicBuffer>() {
279 public GraphicBuffer createFromParcel(Parcel in) {
286 return new GraphicBuffer(width, height, format, usage, nativeObject);
[all …]
/frameworks/webview/chromium/plat_support/
Dgraphic_buffer_impl.cpp27 : mBuffer(new android::GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888, in GraphicBufferImpl()
28 android::GraphicBuffer::USAGE_HW_TEXTURE | in GraphicBufferImpl()
29 android::GraphicBuffer::USAGE_SW_READ_OFTEN | in GraphicBufferImpl()
30 android::GraphicBuffer::USAGE_SW_WRITE_OFTEN)) { in GraphicBufferImpl()
81 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN; in Map()
84 usage = android::GraphicBuffer::USAGE_SW_WRITE_OFTEN; in Map()
87 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN | in Map()
88 android::GraphicBuffer::USAGE_SW_WRITE_OFTEN; in Map()
/frameworks/native/include/gui/
DGLConsumer.h138 const sp<GraphicBuffer>& buf, const Rect& cropRect,
177 sp<GraphicBuffer> getCurrentBuffer(int* outSlot = nullptr) const;
262 const sp<GraphicBuffer> graphicBuffer,
266 const sp<GraphicBuffer> graphicBuffer, EGLSyncKHR eglFence) { in releaseBufferLocked()
278 sp<GraphicBuffer> graphicBuffer;
314 EglImage(sp<GraphicBuffer> graphicBuffer);
326 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer()
338 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop);
345 sp<GraphicBuffer> mGraphicBuffer;
383 static sp<GraphicBuffer> getDebugTexImageBuffer();
[all …]
DConsumerBase.h36 class GraphicBuffer; variable
189 const sp<GraphicBuffer> graphicBuffer,
193 bool stillTracking(int slot, const sp<GraphicBuffer> graphicBuffer);
201 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
203 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
210 sp<GraphicBuffer> mGraphicBuffer;
DStreamSplitter.h30 class GraphicBuffer; variable
131 BufferTracker(const sp<GraphicBuffer>& buffer);
133 const sp<GraphicBuffer>& getBuffer() const { return mBuffer; } in getBuffer()
151 sp<GraphicBuffer> mBuffer; // One instance that holds this native handle
DSurface.h135 status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer,
271 virtual int detachNextBuffer(sp<GraphicBuffer>* outBuffer,
280 status_t getAndFlushRemovedBuffers(std::vector<sp<GraphicBuffer>>* out);
292 sp<GraphicBuffer> buffer;
394 sp<GraphicBuffer> mLockedBuffer;
395 sp<GraphicBuffer> mPostedBuffer;
444 std::vector<sp<GraphicBuffer>> mRemovedBuffers;
/frameworks/base/core/jni/android/graphics/
DGraphicBuffer.cpp51 #define LOCK_CANVAS_USAGE (GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN)
92 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { in GraphicBufferWrapper()
95 sp<GraphicBuffer> buffer;
104 sp<GraphicBuffer> b(reinterpret_cast<GraphicBuffer*>(unwrapped)); in android_graphics_GraphicBuffer_wrap()
112 sp<GraphicBuffer> buffer = new GraphicBuffer( in android_graphics_GraphicBuffer_create()
162 sp<GraphicBuffer> buffer(wrapper->buffer); in android_graphics_GraphicBuffer_lockCanvas()
246 sp<GraphicBuffer> buffer = new GraphicBuffer(); in android_graphics_GraphicBuffer_read()
258 sp<GraphicBuffer> graphicBufferForJavaObject(JNIEnv* env, jobject obj) { in graphicBufferForJavaObject()
263 sp<GraphicBuffer> buffer(wrapper->buffer); in graphicBufferForJavaObject()
270 jobject createJavaGraphicBuffer(JNIEnv* env, const sp<GraphicBuffer>& buffer) { in createJavaGraphicBuffer()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposerBufferCache.h29 class GraphicBuffer; variable
49 void getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer,
50 uint32_t* outSlot, sp<GraphicBuffer>* outBuffer);
55 std::vector<sp<GraphicBuffer>> mBuffers;
DFramebufferSurface.h72 status_t nextBuffer(uint32_t& outSlot, sp<GraphicBuffer>& outBuffer,
75 status_t nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence);
88 sp<GraphicBuffer> mCurrentBuffer;
102 sp<GraphicBuffer> mPreviousBuffer;
DVirtualDisplaySurface.h104 virtual status_t requestBuffer(int pslot, sp<GraphicBuffer>* outBuf);
111 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer,
113 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer);
130 virtual status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer,
180 sp<GraphicBuffer> mProducerBuffers[BufferQueueDefs::NUM_BUFFER_SLOTS];
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp64 sp<GraphicBuffer> gbuffer(new GraphicBuffer( in AHardwareBuffer_allocate()
71 GraphicBuffer::dumpAllocationsToSystemLog(); in AHardwareBuffer_allocate()
99 const GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_describe()
123 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_lock()
136 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_unlock()
145 const GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_sendHandleToUnixSocket()
258 GraphicBuffer* gBuffer = new GraphicBuffer(); in AHardwareBuffer_recvHandleFromUnixSocket()
278 const GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_getNativeHandle()
423 const GraphicBuffer* AHardwareBuffer_to_GraphicBuffer(const AHardwareBuffer* buffer) { in AHardwareBuffer_to_GraphicBuffer()
424 return reinterpret_cast<const GraphicBuffer*>(buffer); in AHardwareBuffer_to_GraphicBuffer()
[all …]
/frameworks/native/libs/nativewindow/include/private/android/
DAHardwareBufferHelpers.h50 class GraphicBuffer; variable
51 const GraphicBuffer* AHardwareBuffer_to_GraphicBuffer(const AHardwareBuffer* buffer);
52 GraphicBuffer* AHardwareBuffer_to_GraphicBuffer(AHardwareBuffer* buffer);
57 AHardwareBuffer* AHardwareBuffer_from_GraphicBuffer(GraphicBuffer* buffer);
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.h36 class GraphicBuffer; variable
74 status_t notifyBufferReleased(const sp<GraphicBuffer>& buffer);
160 BufferTracker(const sp<GraphicBuffer>& buffer,
164 const sp<GraphicBuffer>& getBuffer() const { return mBuffer; } in getBuffer()
181 sp<GraphicBuffer> mBuffer; // One instance that holds this native handle
207 const sp<GraphicBuffer>& gb);
210 const sp<GraphicBuffer>& gb);
241 typedef std::vector<sp<GraphicBuffer>> OutputSlots;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDrawIntoHwBitmapActivity.java19 import static android.graphics.GraphicBuffer.USAGE_HW_TEXTURE;
20 import static android.graphics.GraphicBuffer.USAGE_SW_READ_NEVER;
21 import static android.graphics.GraphicBuffer.USAGE_SW_WRITE_NEVER;
22 import static android.graphics.GraphicBuffer.USAGE_SW_WRITE_RARELY;
28 import android.graphics.GraphicBuffer;
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java20 import static android.graphics.GraphicBuffer.USAGE_HW_TEXTURE;
21 import static android.graphics.GraphicBuffer.USAGE_SW_READ_RARELY;
26 import android.graphics.GraphicBuffer;
83 final GraphicBuffer buffer = GraphicBuffer.create(100, 100, PixelFormat.RGBA_8888, in createSnapshot()
/frameworks/base/libs/hwui/tests/common/scenes/
DHwBitmapInCompositeShader.cpp38 uint32_t usage = GraphicBuffer::USAGE_HW_TEXTURE in createContent()
39 | GraphicBuffer::USAGE_SW_READ_NEVER in createContent()
42 sp<GraphicBuffer> buffer = new GraphicBuffer(400, 200, PIXEL_FORMAT_RGBA_8888, usage); in createContent()
45 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels)); in createContent()
/frameworks/av/media/libstagefright/include/
DFrameRenderTracker.h33 class GraphicBuffer; variable
60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, in RenderedFrameInfo()
82 sp<GraphicBuffer> mGraphicBuffer;
101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp155 sp<GraphicBuffer> buffer; in onBufferReleased()
177 sp<GraphicBuffer> buffer, int fenceFd);
179 GraphicBuffer** buffer, int* fenceFd);
351 sp<GraphicBuffer> buffer(GraphicBuffer::from(anb)); in ImageWriter_dequeueImage()
408 GraphicBuffer *buffer = NULL; in ImageWriter_cancelImage()
437 GraphicBuffer *buffer = NULL; in ImageWriter_queueImage()
580 GraphicBuffer** buffer, int* fenceFd) { in Image_getNativeContext()
583 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext()
595 sp<GraphicBuffer> buffer, int fenceFd) { in Image_setNativeContext()
597 GraphicBuffer* p = NULL; in Image_setNativeContext()
[all …]
/frameworks/base/core/java/android/view/
DAppTransitionAnimationSpec.java3 import android.graphics.GraphicBuffer;
18 public final GraphicBuffer buffer;
21 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { in AppTransitionAnimationSpec()
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.h39 virtual status_t requestBuffer(int slot, sp<GraphicBuffer>* buf);
46 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer,
49 const sp<GraphicBuffer>& buffer);
64 virtual status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer,
/frameworks/native/libs/gui/tests/
DStreamSplitter_test.cpp81 sp<GraphicBuffer> buffer; in TEST_F()
88 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
106 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
153 sp<GraphicBuffer> buffer; in TEST_F()
160 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
179 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
217 sp<GraphicBuffer> buffer; in TEST_F()
DBufferQueue_test.cpp143 sp<GraphicBuffer> buffer; in TEST_F()
150 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
164 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
181 sp<GraphicBuffer> buf; in TEST_F()
232 sp<GraphicBuffer> buf; in TEST_F()
269 sp<GraphicBuffer> buf; in TEST_F()
334 sp<GraphicBuffer> buffer; in TEST_F()
343 sp<GraphicBuffer> safeToClobberBuffer; in TEST_F()
348 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
367 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
[all …]

12345678