Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/tests/
DGraphicBuffer_test.cpp45 sp<GraphicBuffer> gb(new GraphicBuffer(std::move(b1))); in TEST_F() local
46 EXPECT_TRUE(gb->isBufferHubBuffer()); in TEST_F()
48 EXPECT_EQ(gb->getWidth(), kTestWidth); in TEST_F()
49 EXPECT_EQ(gb->getHeight(), kTestHeight); in TEST_F()
50 EXPECT_EQ(static_cast<uint32_t>(gb->getPixelFormat()), kTestFormat); in TEST_F()
51 EXPECT_EQ(gb->getUsage(), kTestUsage); in TEST_F()
52 EXPECT_EQ(gb->getLayerCount(), kTestLayerCount); in TEST_F()
56 sp<GraphicBuffer> gb( in TEST_F() local
58 EXPECT_FALSE(gb->isBufferHubBuffer()); in TEST_F()
59 EXPECT_EQ(gb->getBufferId(), -1); in TEST_F()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3BufferManager.h130 int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd,
210 explicit GraphicBufferEntry(const sp<GraphicBuffer>& gb = 0, int fd = -1) :
211 graphicBuffer(gb), in graphicBuffer()
DCamera3StreamSplitter.cpp418 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs() local
419 uint64_t bufferId = gb->getId(); in attachBufferToOutputs()
422 auto tracker = std::make_unique<BufferTracker>(gb, surface_ids); in attachBufferToOutputs()
430 int slot = getSlotForOutputLocked(gbp, gb); in attachBufferToOutputs()
440 res = gbp->attachBuffer(&slot, gb); in attachBufferToOutputs()
468 SP_LOGV("%s: Attached buffer %p to slot %d on output %p.",__FUNCTION__, gb.get(), in attachBufferToOutputs()
470 outputSlots[slot] = gb; in attachBufferToOutputs()
738 const sp<GraphicBuffer>& gb) { in getSlotForOutputLocked() argument
742 if (outputSlots[i] == gb) { in getSlotForOutputLocked()
747 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(), in getSlotForOutputLocked()
DCamera3OutputStream.cpp534 sp<GraphicBuffer> gb; in getBufferLockedCommon() local
535 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, fenceFd); in getBufferLockedCommon()
539 *anb = gb.get(); in getBufferLockedCommon()
587 sp<GraphicBuffer> gb; in getBufferLockedCommon() local
589 getId(), getStreamSetId(), &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon()
594 *anb = gb.get(); in getBufferLockedCommon()
830 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() local
831 callback->onBufferFreed(mId, gb->handle); in onBuffersRemovedLocked()
DCamera3InputStream.cpp297 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument
298 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
DCamera3BufferManager.cpp240 sp<GraphicBuffer>* gb, int* fenceFd, bool noFreeBufferAtConsumer) { in getBufferForStream() argument
306 *gb = buffer.graphicBuffer; in getBufferForStream()
DCamera3StreamSplitter.h219 const sp<GraphicBuffer>& gb);
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp296 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame() local
297 res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, fenceFd); in processInputFrame()
305 if ((gb->getWidth() < finalJpegBufferSize) || (gb->getHeight() != 1)) { in processInputFrame()
307 gb->getWidth(), gb->getHeight(), finalJpegBufferSize, 1U); in processInputFrame()
375 (gb->getWidth() - sizeof(struct camera3_jpeg_blob)); in processInputFrame()
DHeicCompositeStream.cpp1002 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local
1004 auto res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, inputFrame.fenceFd); in processCompletedInputFrame()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DZslProcessor.cpp388 sp<GraphicBuffer> gb; in doNotifyInputReleasedLocked() local
390 auto rc = mInputProducer->detachNextBuffer(&gb, &fence); in doNotifyInputReleasedLocked()
399 if (gb->handle != inputBuffer->handle) { in doNotifyInputReleasedLocked()
401 inputBuffer->handle, gb->handle); in doNotifyInputReleasedLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java278 SurfaceControl.ScreenshotGraphicBuffer gb = in ScreenRotationAnimation() local
280 if (gb != null) { in ScreenRotationAnimation()
282 surface.attachAndQueueBuffer(gb.getGraphicBuffer()); in ScreenRotationAnimation()
289 if (gb.containsSecureLayers()) { in ScreenRotationAnimation()
/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.java236 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() local
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp730 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext() local
732 *buffer = gb; in Image_getNativeContext()
/frameworks/rs/script_api/include/
Drs_value_types.rsh59 * myVar.yz, myVar.gb, myVar.s12, and myVar.S12.