Home
last modified time | relevance | path

Searched refs:mGralloc (Results 1 – 11 of 11) sorted by relevance

/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp44 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>(std::get<0>(GetParam()), in SetUp()
57 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::mapper::V2_0::vts::__anonce2976670111::GraphicsMapperHidlTest
65 mGralloc->dumpDebugInfo(); in TEST_P()
73 ASSERT_NO_FATAL_FAILURE(descriptor = mGralloc->createDescriptor(mDummyDescriptorInfo)); in TEST_P()
79 mGralloc->allocate(descriptor, count, false, &stride)); in TEST_P()
86 mGralloc->freeBuffer(bufferHandle); in TEST_P()
97 mGralloc->getAllocator()->allocate(descriptor, 1, in TEST_P()
112 auto bufferHandle = mGralloc->allocate(info, false); in TEST_P()
113 mGralloc->freeBuffer(bufferHandle); in TEST_P()
122 ASSERT_NO_FATAL_FAILURE(descriptor = mGralloc->createDescriptor(mDummyDescriptorInfo)); in TEST_P()
[all …]
/hardware/interfaces/graphics/mapper/3.0/vts/functional/
DVtsHalGraphicsMapperV3_0TargetTest.cpp44 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>(std::get<0>(GetParam()), in SetUp()
57 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::mapper::V3_0::vts::__anon92df6f690111::GraphicsMapperHidlTest
65 mGralloc->dumpDebugInfo(); in TEST_P()
73 ASSERT_NO_FATAL_FAILURE(descriptor = mGralloc->createDescriptor(mDummyDescriptorInfo)); in TEST_P()
79 mGralloc->allocate(descriptor, count, false, &stride)); in TEST_P()
86 mGralloc->freeBuffer(bufferHandle); in TEST_P()
97 mGralloc->getAllocator()->allocate(descriptor, 1, in TEST_P()
112 auto bufferHandle = mGralloc->allocate(info, false); in TEST_P()
113 mGralloc->freeBuffer(bufferHandle); in TEST_P()
122 ASSERT_NO_FATAL_FAILURE(descriptor = mGralloc->createDescriptor(mDummyDescriptorInfo)); in TEST_P()
[all …]
/hardware/interfaces/graphics/mapper/2.1/vts/functional/
DVtsHalGraphicsMapperV2_1TargetTest.cpp43 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>(std::get<0>(GetParam()), in SetUp()
56 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::mapper::V2_1::vts::__anon33a946e90111::GraphicsMapperHidlTest
66 ASSERT_NO_FATAL_FAILURE(bufferHandle = mGralloc->allocate(mDummyDescriptorInfo, true, &stride)); in TEST_P()
68 ASSERT_TRUE(mGralloc->validateBufferSize(bufferHandle, mDummyDescriptorInfo, stride)); in TEST_P()
70 ASSERT_NO_FATAL_FAILURE(mGralloc->freeBuffer(bufferHandle)); in TEST_P()
78 Error ret = mGralloc->getMapper()->validateBufferSize(invalidHandle, mDummyDescriptorInfo, in TEST_P()
84 ret = mGralloc->getMapper()->validateBufferSize(invalidHandle, mDummyDescriptorInfo, in TEST_P()
92 mGralloc->allocate(mDummyDescriptorInfo, false))); in TEST_P()
93 ret = mGralloc->getMapper()->validateBufferSize(rawBufferHandle, mDummyDescriptorInfo, in TEST_P()
97 ASSERT_NO_FATAL_FAILURE(mGralloc->freeBuffer(rawBufferHandle)); in TEST_P()
[all …]
/hardware/interfaces/graphics/mapper/4.0/vts/functional/
DVtsHalGraphicsMapperV4_0TargetTest.cpp66 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>(std::get<0>(GetParam()), in SetUp()
68 ASSERT_NE(nullptr, mGralloc->getAllocator().get()); in SetUp()
69 ASSERT_NE(nullptr, mGralloc->getMapper().get()); in SetUp()
86 ASSERT_NO_FATAL_FAILURE(bufferHandle = mGralloc->allocate(descriptorInfo, true)); in testGet()
89 ASSERT_EQ(Error::NONE, mGralloc->get(bufferHandle, metadataType, &vec)); in testGet()
98 ASSERT_NO_FATAL_FAILURE(bufferHandle = mGralloc->allocate(descriptorInfo, true)); in testSet()
100 Error err = mGralloc->set(bufferHandle, metadataType, metadata); in testSet()
108 ASSERT_EQ(Error::NONE, mGralloc->get(bufferHandle, metadataType, &vec)); in testSet()
188 ASSERT_EQ(Error::NONE, mGralloc->get(bufferHandle, metadataType, &metadataFromGet)); in verifyBufferDump()
200 mGralloc->get(bufferHandle, gralloc4::MetadataType_PlaneLayouts, &vec)); in getAndroidYCbCr()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DReadbackVts.cpp192 mGralloc = gralloc; in ReadbackBuffer()
211 mGralloc->freeBuffer(mBufferHandle); in ~ReadbackBuffer()
217 mGralloc->freeBuffer(mBufferHandle); in setReadbackBuffer()
220 mBufferHandle = mGralloc->allocate(mWidth, mHeight, mLayerCount, mFormat, mUsage, in setReadbackBuffer()
222 ASSERT_NE(false, mGralloc->validateBufferSize(mBufferHandle, mWidth, mHeight, mLayerCount, in setReadbackBuffer()
232 void* bufData = mGralloc->lock(mBufferHandle, mUsage, mAccessRegion, fenceHandle); in checkReadbackBuffer()
236 int32_t unlockFence = mGralloc->unlock(mBufferHandle); in checkReadbackBuffer()
264 mGralloc = gralloc;
283 mGralloc->freeBuffer(mBufferHandle); in ~TestBufferLayer()
316 void* bufData = mGralloc->lock(mBufferHandle, mUsage, mAccessRegion, -1); in fillBuffer()
[all …]
/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2ReadbackTest.cpp84 mGralloc = std::make_shared<Gralloc>(); in SetUpBase()
148 std::shared_ptr<Gralloc> mGralloc; member in android::hardware::graphics::composer::V2_2::vts::__anon8cadd1370111::GraphicsCompositionTestBase
225 ReadbackBuffer readbackBuffer(mPrimaryDisplay, mComposerClient, mGralloc, mDisplayWidth, in TEST_P()
277 ReadbackBuffer readbackBuffer(mPrimaryDisplay, mComposerClient, mGralloc, mDisplayWidth, in TEST_P()
290 auto layer = std::make_shared<TestBufferLayer>(mComposerClient, mGralloc, mPrimaryDisplay, in TEST_P()
358 mGralloc->allocate(mDisplayWidth, mDisplayHeight, 1, PixelFormat::RGBA_8888, usage); in TEST_P()
365 ReadbackBuffer readbackBuffer(mPrimaryDisplay, mComposerClient, mGralloc, mDisplayWidth, in TEST_P()
424 auto layer = std::make_shared<TestBufferLayer>(mComposerClient, mGralloc, mPrimaryDisplay, in TEST_P()
433 ReadbackBuffer readbackBuffer(mPrimaryDisplay, mComposerClient, mGralloc, mDisplayWidth, in TEST_P()
468 mGralloc->allocate(layer->mWidth, layer->mHeight, layer->mLayerCount, in TEST_P()
[all …]
DVtsHalGraphicsComposerV2_2TargetTest.cpp145 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>()); in SetUp()
159 return mGralloc->allocate(/*width*/ 64, /*height*/ 64, /*layerCount*/ 1, in allocate()
169 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::composer::V2_2::vts::__anon46fb56f10111::GraphicsComposerHidlCommandTest
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
DReadbackVts.h140 std::shared_ptr<Gralloc> mGralloc; variable
199 std::shared_ptr<Gralloc> mGralloc; variable
/hardware/interfaces/graphics/composer/2.3/vts/functional/
DVtsHalGraphicsComposerV2_3TargetTest.cpp131 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>()); in SetUp()
143 return mGralloc->allocate( in allocate()
154 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::composer::V2_3::vts::__anon1c1edbb30111::GraphicsComposerHidlCommandTest
/hardware/interfaces/graphics/composer/2.4/vts/functional/
DVtsHalGraphicsComposerV2_4TargetTest.cpp178 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>()); in SetUp()
196 return mGralloc->allocate( in allocate()
223 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::composer::V2_4::vts::__anonf14260750111::GraphicsComposerHidlCommandTest
/hardware/interfaces/graphics/composer/2.1/vts/functional/
DVtsHalGraphicsComposerV2_1TargetTest.cpp653 ASSERT_NO_FATAL_FAILURE(mGralloc = std::make_unique<Gralloc>()); in SetUp()
672 return mGralloc->allocate(mDisplayWidth, mDisplayHeight, 1, PixelFormat::RGBA_8888, usage); in allocate()
683 std::unique_ptr<Gralloc> mGralloc; member in android::hardware::graphics::composer::V2_1::vts::__anon71d7d22f0111::GraphicsComposerHidlCommandTest