/frameworks/native/libs/ui/tests/ |
D | GraphicBufferOverBinder_test.cpp | 117 sp<GraphicBuffer> gb; in TEST_F() local 118 EXPECT_EQ(GetGraphicBuffer(&gb, GRAPHIC_BUFFER), OK); in TEST_F() 119 EXPECT_NE(gb, nullptr); in TEST_F() 121 EXPECT_EQ(gb->lock(kTestUsage, &vaddr), OK); in TEST_F() 122 EXPECT_EQ(gb->unlock(), OK); in TEST_F()
|
D | GraphicBuffer_test.cpp | 38 sp<GraphicBuffer> gb(new GraphicBuffer(kTestWidth, kTestHeight, format, kTestLayerCount, in TEST_F() local 40 ASSERT_EQ(NO_ERROR, gb->initCheck()); in TEST_F() 52 sp<GraphicBuffer> gb(new GraphicBuffer(width, height, format, kTestLayerCount, kTestUsage, in TEST_F() local 54 ASSERT_EQ(BAD_VALUE, gb->initCheck()); in TEST_F()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | IPC_test.cpp | 153 sp<GraphicBuffer> gb; in createTransaction() local 155 int err = IPCTestUtils::getBuffer(&gb, &fence); in createTransaction() 158 TransactionUtils::fillGraphicBufferColor(gb, in createTransaction() 164 .setBuffer(mSurfaceControl, gb) in createTransaction() 303 sp<GraphicBuffer> gb; in TEST_F() local 305 int err = IPCTestUtils::getBuffer(&gb, &fence); in TEST_F() 307 TransactionUtils::fillGraphicBufferColor(gb, in TEST_F() 315 .setBuffer(sc, gb) in TEST_F()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.h | 130 int streamId, int streamSetId, bool isMultiRes, sp<GraphicBuffer>* gb, 211 explicit GraphicBufferEntry(const sp<GraphicBuffer>& gb = 0, int fd = -1) : 212 graphicBuffer(gb), in graphicBuffer()
|
D | Camera3StreamSplitter.cpp | 420 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs() local 421 uint64_t bufferId = gb->getId(); in attachBufferToOutputs() 424 auto tracker = std::make_unique<BufferTracker>(gb, surface_ids); in attachBufferToOutputs() 432 int slot = getSlotForOutputLocked(gbp, gb); in attachBufferToOutputs() 442 res = gbp->attachBuffer(&slot, gb); in attachBufferToOutputs() 470 SP_LOGV("%s: Attached buffer %p to slot %d on output %p.",__FUNCTION__, gb.get(), in attachBufferToOutputs() 472 outputSlots[slot] = gb; in attachBufferToOutputs() 745 const sp<GraphicBuffer>& gb) { in getSlotForOutputLocked() argument 749 if (outputSlots[i] == gb) { in getSlotForOutputLocked() 754 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(), in getSlotForOutputLocked()
|
D | Camera3OutputStream.cpp | 615 sp<GraphicBuffer> gb; in getBufferLockedCommon() local 617 isMultiResolution(), &gb, fenceFd); in getBufferLockedCommon() 621 *anb = gb.get(); in getBufferLockedCommon() 708 sp<GraphicBuffer> gb; in getBufferLockedCommon() local 711 &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon() 716 *anb = gb.get(); in getBufferLockedCommon() 975 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() local 976 callback->onBufferFreed(mId, gb->handle); in onBuffersRemovedLocked()
|
D | Camera3InputStream.cpp | 305 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument 306 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
|
D | Camera3StreamSplitter.h | 226 const sp<GraphicBuffer>& gb);
|
D | Camera3BufferManager.cpp | 246 bool isMultiRes, sp<GraphicBuffer>* gb, int* fenceFd, bool noFreeBufferAtConsumer) { in getBufferForStream() argument 314 *gb = buffer.graphicBuffer; in getBufferForStream()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | DepthCompositeStream.cpp | 299 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame() local 300 res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, fenceFd); in processInputFrame() 308 if ((gb->getWidth() < finalJpegBufferSize) || (gb->getHeight() != 1)) { in processInputFrame() 310 gb->getWidth(), gb->getHeight(), finalJpegBufferSize, 1U); in processInputFrame() 385 (gb->getWidth() - sizeof(struct camera_jpeg_blob)); in processInputFrame()
|
D | HeicCompositeStream.cpp | 1131 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local 1133 auto res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, inputFrame.fenceFd); in processCompletedInputFrame()
|
/frameworks/base/media/java/android/media/ |
D | ImageWriter.java | 648 GraphicBuffer gb = GraphicBuffer.createFromHardwareBuffer(image.getHardwareBuffer()); in attachAndQueueInputImage() local 649 nativeAttachAndQueueGraphicBuffer(mNativeContext, gb, image.getFormat(), in attachAndQueueInputImage() 652 gb.destroy(); in attachAndQueueInputImage()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | ZslProcessor.cpp | 391 sp<GraphicBuffer> gb; in doNotifyInputReleasedLocked() local 393 auto rc = mInputProducer->detachNextBuffer(&gb, &fence); in doNotifyInputReleasedLocked() 402 if (gb->handle != inputBuffer->handle) { in doNotifyInputReleasedLocked() 404 inputBuffer->handle, gb->handle); in doNotifyInputReleasedLocked()
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 696 sp<Surface> surface, sp<GraphicBuffer> gb, jlong timestampNs, jint left, jint top, in attachAndQeueuGraphicBuffer() argument 700 res = surface->attachBuffer(gb.get()); in attachAndQeueuGraphicBuffer() 754 res = anw->queueBuffer(anw.get(), gb.get(), /*fenceFd*/ in attachAndQeueuGraphicBuffer() 844 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext() local 846 *buffer = gb; in Image_getNativeContext()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 403 const GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_getId() local 404 if (!gb) return BAD_VALUE; in AHardwareBuffer_getId() 406 *outId = gb->getId(); in AHardwareBuffer_getId()
|
/frameworks/native/libs/gui/ |
D | BufferQueueProducer.cpp | 658 auto gb = mSlots[slot].mGraphicBuffer; in detachBuffer() local 659 if (listener != nullptr && gb != nullptr) { in detachBuffer() 660 listener->onFrameDetached(gb->getId()); in detachBuffer() 1124 auto gb = mSlots[slot].mGraphicBuffer; in cancelBuffer() local 1125 if (mCore->mConsumerListener != nullptr && gb != nullptr) { in cancelBuffer() 1126 mCore->mConsumerListener->onFrameCancelled(gb->getId()); in cancelBuffer()
|
/frameworks/base/core/jni/ |
D | android_view_Surface.cpp | 420 GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(ahb); in nativeAttachAndQueueBufferWithColorSpace() local 421 int err = Surface::attachAndQueueBufferWithDataspace(surface, gb, in nativeAttachAndQueueBufferWithColorSpace()
|
/frameworks/rs/script_api/ |
D | rs_value_types.spec | 57 <code>myVar.yz</code>, <code>myVar.gb</code>, <code>myVar.s12</code>, and <code>myVar.S12</code>.
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | AdaptiveIconDrawableTest.java | 230 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() local
|
/frameworks/rs/script_api/include/ |
D | rs_value_types.rsh | 59 * myVar.yz, myVar.gb, myVar.s12, and myVar.S12.
|