Home
last modified time | relevance | path

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

12

/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()
304 sp<GraphicBuffer> gb; in TEST_F() local
306 int err = IPCTestUtils::getBuffer(&gb, &fence); in TEST_F()
308 TransactionUtils::fillGraphicBufferColor(gb, in TEST_F()
316 .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.cpp441 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs() local
442 uint64_t bufferId = gb->getId(); in attachBufferToOutputs()
445 auto tracker = std::make_unique<BufferTracker>(gb, surface_ids); in attachBufferToOutputs()
453 int slot = getSlotForOutputLocked(gbp, gb); in attachBufferToOutputs()
463 res = gbp->attachBuffer(&slot, gb); in attachBufferToOutputs()
491 SP_LOGV("%s: Attached buffer %p to slot %d on output %p.",__FUNCTION__, gb.get(), in attachBufferToOutputs()
493 outputSlots[slot] = gb; in attachBufferToOutputs()
766 const sp<GraphicBuffer>& gb) { in getSlotForOutputLocked() argument
770 if (outputSlots[i] == gb) { in getSlotForOutputLocked()
775 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(), in getSlotForOutputLocked()
DCamera3InputStream.cpp306 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument
307 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
DCamera3OutputStream.cpp758 sp<GraphicBuffer> gb; in getBufferLockedCommon() local
760 isMultiResolution(), &gb, fenceFd); in getBufferLockedCommon()
764 *anb = gb.get(); in getBufferLockedCommon()
851 sp<GraphicBuffer> gb; in getBufferLockedCommon() local
854 &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon()
859 *anb = gb.get(); in getBufferLockedCommon()
1137 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() local
1138 callback->onBufferFreed(mId, gb->handle); in onBuffersRemovedLocked()
DCamera3StreamSplitter.h231 const sp<GraphicBuffer>& gb);
DCamera3BufferManager.cpp249 bool isMultiRes, sp<GraphicBuffer>* gb, int* fenceFd, bool noFreeBufferAtConsumer) { in getBufferForStream() argument
317 *gb = buffer.graphicBuffer; in getBufferForStream()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp505 const GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_getId() local
506 if (!gb) return BAD_VALUE; in AHardwareBuffer_getId()
508 *outId = gb->getId(); in AHardwareBuffer_getId()
526 const GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_writeToParcel() local
527 if (!gb) return STATUS_BAD_VALUE; in AHardwareBuffer_writeToParcel()
529 return AParcel_viewPlatformParcel(parcel)->write(*gb); in AHardwareBuffer_writeToParcel()
533 const GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_getDataSpace() local
534 if (!gb) return ADATASPACE_UNKNOWN; in AHardwareBuffer_getDataSpace()
536 status_t status = gb->getDataspace(&dataspace); in AHardwareBuffer_getDataSpace()
545 GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_setDataSpace() local
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp306 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame() local
307 GraphicBufferLocker gbLocker(gb); in processInputFrame()
316 if ((gb->getWidth() < finalJpegBufferSize) || (gb->getHeight() != 1)) { in processInputFrame()
318 gb->getWidth(), gb->getHeight(), finalJpegBufferSize, 1U); in processInputFrame()
393 (gb->getWidth() - sizeof(CameraBlob)); in processInputFrame()
DJpegRCompositeStream.cpp277 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame() local
278 GraphicBufferLocker gbLocker(gb); in processInputFrame()
287 if ((gb->getWidth() < maxJpegRBufferSize) || (gb->getHeight() != 1)) { in processInputFrame()
289 maxJpegRBufferSize, 1, gb->getWidth(), gb->getHeight()); in processInputFrame()
384 (gb->getWidth() - sizeof(CameraBlob)); in processInputFrame()
DHeicCompositeStream.cpp1168 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local
1170 GraphicBufferLocker gbLocker(gb); in processCompletedInputFrame()
/frameworks/av/media/codec2/hal/client/
DGraphicsTracker.cpp135 GraphicBuffer *gb = ::android::AHardwareBuffer_to_GraphicBuffer(mBuf); in getGraphicBuffer() local
136 if (!gb) { in getGraphicBuffer()
139 gb->setGenerationNumber(mGeneration); in getGraphicBuffer()
140 return gb; in getGraphicBuffer()
954 sp<GraphicBuffer> gb = newBuffer ? newBuffer->getGraphicBuffer() : nullptr; in render() local
956 if (!gb) { in render()
965 if (cache->mIgbp->attachBuffer(&(newBuffer->mSlot), gb) != ::android::OK) { in render()
/frameworks/minikin/fuzz/hyphenator_fuzzer/
Dhyphenator.dict37 "en-gb"
/frameworks/av/services/camera/libcameraservice/api1/client2/
DZslProcessor.cpp392 sp<GraphicBuffer> gb; in doNotifyInputReleasedLocked() local
394 auto rc = mInputProducer->detachNextBuffer(&gb, &fence); in doNotifyInputReleasedLocked()
403 if (gb->handle != inputBuffer->handle) { in doNotifyInputReleasedLocked()
405 inputBuffer->handle, gb->handle); in doNotifyInputReleasedLocked()
/frameworks/minikin/fuzz/locale_fuzzer/
Dlocale.dict27 "en-gb"
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp736 sp<Surface> surface, sp<GraphicBuffer> gb, jlong timestampNs, jint dataSpace, in attachAndQeueuGraphicBuffer() argument
740 res = surface->attachBuffer(gb.get()); in attachAndQeueuGraphicBuffer()
802 res = anw->queueBuffer(anw.get(), gb.get(), /*fenceFd*/ in attachAndQeueuGraphicBuffer()
891 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext() local
893 *buffer = gb; in Image_getNativeContext()
/frameworks/base/media/java/android/media/
DImageWriter.java766 GraphicBuffer gb = GraphicBuffer.createFromHardwareBuffer(image.getHardwareBuffer()); in attachAndQueueInputImage() local
767 nativeAttachAndQueueGraphicBuffer(mNativeContext, gb, hardwareBufferFormat, in attachAndQueueInputImage()
770 gb.destroy(); in attachAndQueueInputImage()
/frameworks/native/libs/gui/
DBufferQueueProducer.cpp732 auto gb = mSlots[slot].mGraphicBuffer; in detachBuffer() local
733 if (gb != nullptr) { in detachBuffer()
735 bufferId = gb->getId(); in detachBuffer()
1208 auto gb = mSlots[slot].mGraphicBuffer; in cancelBuffer() local
1209 if (gb != nullptr) { in cancelBuffer()
1211 bufferId = gb->getId(); in cancelBuffer()
/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/jni/
Dandroid_view_Surface.cpp430 GraphicBuffer* gb = AHardwareBuffer_to_GraphicBuffer(ahb); in nativeAttachAndQueueBufferWithColorSpace() local
431 int err = Surface::attachAndQueueBufferWithDataspace(surface, gb, in nativeAttachAndQueueBufferWithColorSpace()
/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.
/frameworks/av/media/libstagefright/httplive/fuzzer/corpus/
Dindex17662 ������6�Ũ%��gb�>�U����vF�����g LhO�;�):U�R��h�6�t���`�e�?6��b����f����6g��L�fa�\�@��)NK…
690 ��>�gb���Q�B�d�Q=��̤�]���~��;��sdy�GA1��'~��������

12