/frameworks/native/libs/ui/tests/ |
D | GraphicBufferOverBinder_test.cpp | 114 sp<GraphicBuffer> gb; in TEST_F() local 115 EXPECT_EQ(GetGraphicBuffer(&gb, GRAPHIC_BUFFER), OK); in TEST_F() 116 EXPECT_NE(gb, nullptr); in TEST_F() 118 EXPECT_EQ(gb->lock(kTestUsage, &vaddr), OK); in TEST_F() 119 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, fence) in createTransaction() 302 sp<GraphicBuffer> gb; in TEST_F() local 304 int err = IPCTestUtils::getBuffer(&gb, &fence); in TEST_F() 306 TransactionUtils::fillGraphicBufferColor(gb, in TEST_F() 314 .setBuffer(sc, gb, fence) 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 | 435 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs() local 436 uint64_t bufferId = gb->getId(); in attachBufferToOutputs() 439 auto tracker = std::make_unique<BufferTracker>(gb, surface_ids); in attachBufferToOutputs() 447 int slot = getSlotForOutputLocked(gbp, gb); in attachBufferToOutputs() 457 res = gbp->attachBuffer(&slot, gb); in attachBufferToOutputs() 485 SP_LOGV("%s: Attached buffer %p to slot %d on output %p.",__FUNCTION__, gb.get(), in attachBufferToOutputs() 487 outputSlots[slot] = gb; in attachBufferToOutputs() 760 const sp<GraphicBuffer>& gb) { in getSlotForOutputLocked() argument 764 if (outputSlots[i] == gb) { in getSlotForOutputLocked() 769 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(), in getSlotForOutputLocked()
|
D | Camera3InputStream.cpp | 309 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument 310 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
|
D | Camera3OutputStream.cpp | 815 sp<GraphicBuffer> gb; in getBufferLockedCommon() local 817 isMultiResolution(), &gb, fenceFd); in getBufferLockedCommon() 821 *anb = gb.get(); in getBufferLockedCommon() 908 sp<GraphicBuffer> gb; in getBufferLockedCommon() local 911 &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon() 916 *anb = gb.get(); in getBufferLockedCommon() 1187 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() local 1188 callback->onBufferFreed(mId, gb->handle); in onBuffersRemovedLocked()
|
D | Camera3StreamSplitter.h | 229 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 | 305 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame() local 306 GraphicBufferLocker gbLocker(gb); in processInputFrame() 315 if ((gb->getWidth() < finalJpegBufferSize) || (gb->getHeight() != 1)) { in processInputFrame() 317 gb->getWidth(), gb->getHeight(), finalJpegBufferSize, 1U); in processInputFrame() 392 (gb->getWidth() - sizeof(CameraBlob)); in processInputFrame()
|
D | HeicCompositeStream.cpp | 1136 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local 1138 GraphicBufferLocker gbLocker(gb); in processCompletedInputFrame()
|
/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 | 722 sp<Surface> surface, sp<GraphicBuffer> gb, jlong timestampNs, jint dataSpace, in attachAndQeueuGraphicBuffer() argument 726 res = surface->attachBuffer(gb.get()); in attachAndQeueuGraphicBuffer() 788 res = anw->queueBuffer(anw.get(), gb.get(), /*fenceFd*/ in attachAndQeueuGraphicBuffer() 877 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext() local 879 *buffer = gb; in Image_getNativeContext()
|
/frameworks/base/media/java/android/media/ |
D | ImageWriter.java | 785 GraphicBuffer gb = GraphicBuffer.createFromHardwareBuffer(image.getHardwareBuffer()); in attachAndQueueInputImage() local 786 nativeAttachAndQueueGraphicBuffer(mNativeContext, gb, image.getFormat(), in attachAndQueueInputImage() 789 gb.destroy(); in attachAndQueueInputImage()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 407 const GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_getId() local 408 if (!gb) return BAD_VALUE; in AHardwareBuffer_getId() 410 *outId = gb->getId(); in AHardwareBuffer_getId()
|
/frameworks/native/libs/gui/ |
D | BufferQueueProducer.cpp | 661 auto gb = mSlots[slot].mGraphicBuffer; in detachBuffer() local 662 if (listener != nullptr && gb != nullptr) { in detachBuffer() 663 listener->onFrameDetached(gb->getId()); in detachBuffer() 1127 auto gb = mSlots[slot].mGraphicBuffer; in cancelBuffer() local 1128 if (mCore->mConsumerListener != nullptr && gb != nullptr) { in cancelBuffer() 1129 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.
|