Home
last modified time | relevance | path

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

123456789

/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
61 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() function in android::GraphicBuffer
63 : GraphicBuffer(inWidth, inHeight, inFormat, 1, static_cast<uint64_t>(inUsage), requestorName) in GraphicBuffer()
67 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() function in android::GraphicBuffer
69 : GraphicBuffer() in GraphicBuffer()
76 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() function in android::GraphicBuffer
79 : GraphicBuffer(inHandle, keepOwnership ? TAKE_HANDLE : WRAP_HANDLE, in GraphicBuffer()
85 GraphicBuffer::GraphicBuffer(const native_handle_t* handle, in GraphicBuffer() function in android::GraphicBuffer
[all …]
/frameworks/native/libs/ui/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/libs/gui/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,
273 virtual int detachNextBuffer(sp<GraphicBuffer>* outBuffer,
282 status_t getAndFlushRemovedBuffers(std::vector<sp<GraphicBuffer>>* out);
294 sp<GraphicBuffer> buffer;
396 sp<GraphicBuffer> mLockedBuffer;
397 sp<GraphicBuffer> mPostedBuffer;
450 std::vector<sp<GraphicBuffer>> mRemovedBuffers;
/frameworks/base/core/jni/android/graphics/
DGraphicBuffer.cpp54 #define LOCK_CANVAS_USAGE (GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN)
95 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { in GraphicBufferWrapper()
98 const sp<GraphicBuffer>& get() const { in get()
104 sp<GraphicBuffer> const buffer;
113 sp<GraphicBuffer> b(reinterpret_cast<GraphicBuffer*>(unwrapped)); in android_graphics_GraphicBuffer_wrap()
123 sp<GraphicBuffer> buffer = new GraphicBuffer( in android_graphics_GraphicBuffer_create()
173 sp<GraphicBuffer> buffer(wrapper->get()); in android_graphics_GraphicBuffer_lockCanvas()
258 sp<GraphicBuffer> buffer = new GraphicBuffer(); in android_graphics_GraphicBuffer_read()
270 sp<GraphicBuffer> graphicBufferForJavaObject(JNIEnv* env, jobject obj) { in graphicBufferForJavaObject()
275 sp<GraphicBuffer> buffer(wrapper->get()); in graphicBufferForJavaObject()
[all …]
/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;
/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/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/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/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;
87 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/base/media/jni/
Dandroid_media_ImageWriter.cpp154 sp<GraphicBuffer> buffer; in onBufferReleased()
176 sp<GraphicBuffer> buffer, int fenceFd);
178 GraphicBuffer** buffer, int* fenceFd);
350 sp<GraphicBuffer> buffer(GraphicBuffer::from(anb)); in ImageWriter_dequeueImage()
407 GraphicBuffer *buffer = NULL; in ImageWriter_cancelImage()
436 GraphicBuffer *buffer = NULL; in ImageWriter_queueImage()
579 GraphicBuffer** buffer, int* fenceFd) { in Image_getNativeContext()
582 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext()
594 sp<GraphicBuffer> buffer, int fenceFd) { in Image_setNativeContext()
596 GraphicBuffer* p = NULL; in Image_setNativeContext()
[all …]
/frameworks/base/libs/hwui/hwui/
DBitmap.h57 static sk_sp<Bitmap> createFrom(sp<GraphicBuffer> graphicBuffer);
66 Bitmap(GraphicBuffer* buffer, const SkImageInfo& info);
97 GraphicBuffer* graphicBuffer();
128 GraphicBuffer* buffer;
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaVulkanPipeline.cpp168 sp<GraphicBuffer> buffer = new GraphicBuffer(skBitmap.info().width(), skBitmap.info().height(), in allocateHardwareBitmap()
170 GraphicBuffer::USAGE_HW_TEXTURE | in allocateHardwareBitmap()
171 GraphicBuffer::USAGE_SW_WRITE_NEVER | in allocateHardwareBitmap()
172 GraphicBuffer::USAGE_SW_READ_NEVER, in allocateHardwareBitmap()
/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/libs/gui/tests/
DBufferQueue_test.cpp145 sp<GraphicBuffer> buffer; in TEST_F()
152 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
166 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
183 sp<GraphicBuffer> buf; in TEST_F()
234 sp<GraphicBuffer> buf; in TEST_F()
271 sp<GraphicBuffer> buf; in TEST_F()
336 sp<GraphicBuffer> buffer; in TEST_F()
345 sp<GraphicBuffer> safeToClobberBuffer; in TEST_F()
350 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
369 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
[all …]
DStreamSplitter_test.cpp83 sp<GraphicBuffer> buffer; in TEST_F()
90 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
108 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
155 sp<GraphicBuffer> buffer; in TEST_F()
162 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
181 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
219 sp<GraphicBuffer> buffer; in TEST_F()
/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,

123456789