/frameworks/native/libs/ui/tests/ |
D | GraphicBuffer_test.cpp | 40 sp<GraphicBuffer> gb(new GraphicBuffer(kTestWidth, kTestHeight, format, kTestLayerCount, in TEST_F() local 42 ASSERT_EQ(NO_ERROR, gb->initCheck()); in TEST_F() 49 sp<GraphicBuffer> gb(new GraphicBuffer(width, height, format, kTestLayerCount, kTestUsage, in TEST_F() local 51 ASSERT_EQ(BAD_VALUE, gb->initCheck()); in TEST_F() 61 sp<GraphicBuffer> gb(new GraphicBuffer(std::move(b1))); in TEST_F() local 62 EXPECT_TRUE(gb->isBufferHubBuffer()); in TEST_F() 64 EXPECT_EQ(gb->getWidth(), kTestWidth); in TEST_F() 65 EXPECT_EQ(gb->getHeight(), kTestHeight); in TEST_F() 66 EXPECT_EQ(static_cast<uint32_t>(gb->getPixelFormat()), kTestFormat); in TEST_F() 67 EXPECT_EQ(gb->getUsage(), kTestUsage); in TEST_F() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.h | 130 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()
|
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() 740 const sp<GraphicBuffer>& gb) { in getSlotForOutputLocked() argument 744 if (outputSlots[i] == gb) { in getSlotForOutputLocked() 749 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(), in getSlotForOutputLocked()
|
D | Camera3OutputStream.cpp | 529 sp<GraphicBuffer> gb; in getBufferLockedCommon() local 530 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, fenceFd); in getBufferLockedCommon() 534 *anb = gb.get(); in getBufferLockedCommon() 582 sp<GraphicBuffer> gb; in getBufferLockedCommon() local 584 getId(), getStreamSetId(), &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon() 589 *anb = gb.get(); in getBufferLockedCommon() 844 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() local 845 callback->onBufferFreed(mId, gb->handle); in onBuffersRemovedLocked()
|
D | Camera3InputStream.cpp | 297 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument 298 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
|
D | Camera3BufferManager.cpp | 240 sp<GraphicBuffer>* gb, int* fenceFd, bool noFreeBufferAtConsumer) { in getBufferForStream() argument 306 *gb = buffer.graphicBuffer; in getBufferForStream()
|
D | Camera3StreamSplitter.h | 219 const sp<GraphicBuffer>& gb);
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | DepthCompositeStream.cpp | 296 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() 382 (gb->getWidth() - sizeof(struct camera3_jpeg_blob)); in processInputFrame()
|
D | HeicCompositeStream.cpp | 1049 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local 1051 auto res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, inputFrame.fenceFd); in processCompletedInputFrame()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | ZslProcessor.cpp | 388 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/ |
D | ScreenRotationAnimation.java | 278 SurfaceControl.ScreenshotGraphicBuffer gb = in ScreenRotationAnimation() local 280 if (gb != null) { in ScreenRotationAnimation() 282 surface.attachAndQueueBufferWithColorSpace(gb.getGraphicBuffer(), in ScreenRotationAnimation() 283 gb.getColorSpace()); in ScreenRotationAnimation() 290 if (gb.containsSecureLayers()) { in ScreenRotationAnimation()
|
/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 | 236 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() local
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 751 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext() local 753 *buffer = gb; in Image_getNativeContext()
|
/frameworks/rs/script_api/include/ |
D | rs_value_types.rsh | 59 * myVar.yz, myVar.gb, myVar.s12, and myVar.S12.
|