Home
last modified time | relevance | path

Searched refs:gb (Results 1 – 20 of 20) sorted by relevance

/frameworks/native/libs/ui/tests/
DGraphicBufferOverBinder_test.cpp114 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()
DGraphicBuffer_test.cpp38 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/
DIPC_test.cpp153 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/
DCamera3BufferManager.h130 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()
DCamera3StreamSplitter.cpp435 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()
DCamera3InputStream.cpp309 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument
310 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
DCamera3OutputStream.cpp815 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()
DCamera3StreamSplitter.h229 const sp<GraphicBuffer>& gb);
DCamera3BufferManager.cpp246 bool isMultiRes, sp<GraphicBuffer>* gb, int* fenceFd, bool noFreeBufferAtConsumer) { in getBufferForStream() argument
314 *gb = buffer.graphicBuffer; in getBufferForStream()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp305 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()
DHeicCompositeStream.cpp1136 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local
1138 GraphicBufferLocker gbLocker(gb); in processCompletedInputFrame()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DZslProcessor.cpp391 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/
Dandroid_media_ImageWriter.cpp722 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/
DImageWriter.java785 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/
DAHardwareBuffer.cpp407 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/
DBufferQueueProducer.cpp661 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/
Dandroid_view_Surface.cpp420 GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(ahb); in nativeAttachAndQueueBufferWithColorSpace() local
421 int err = Surface::attachAndQueueBufferWithDataspace(surface, gb, in nativeAttachAndQueueBufferWithColorSpace()
/frameworks/rs/script_api/
Drs_value_types.spec57 <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/
DAdaptiveIconDrawableTest.java230 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() local
/frameworks/rs/script_api/include/
Drs_value_types.rsh59 * myVar.yz, myVar.gb, myVar.s12, and myVar.S12.