Home
last modified time | relevance | path

Searched refs:mComposerClient (Results 1 – 13 of 13) sorted by relevance

/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2TargetTest.cpp48 ASSERT_NO_FATAL_FAILURE(mComposerClient = mComposer->createClient()); in SetUp()
51 mComposerClient->registerCallback(mComposerCallback); in SetUp()
56 Config config = mComposerClient->getActiveConfig(mPrimaryDisplay); in SetUp()
57 mDisplayWidth = mComposerClient->getDisplayAttribute(mPrimaryDisplay, config, in SetUp()
59 mDisplayHeight = mComposerClient->getDisplayAttribute(mPrimaryDisplay, config, in SetUp()
63 mComposerClient->setVsyncEnabled(mPrimaryDisplay, false); in SetUp()
66 mComposerClient->getRaw()->getReadbackBufferAttributes( in SetUp()
109 std::unique_ptr<ComposerClient> mComposerClient; member in android::hardware::graphics::composer::V2_2::vts::__anon46fb56f10111::GraphicsComposerHidlTest
151 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
163 mComposerClient->createLayer(mPrimaryDisplay, kBufferSlotCount)); in TEST_P()
[all …]
DVtsHalGraphicsComposerV2_2ReadbackTest.cpp55 ASSERT_NO_FATAL_FAILURE(mComposerClient = mComposer->createClient()); in SetUpBase()
57 mComposerClient->registerCallback(mComposerCallback); in SetUpBase()
62 ASSERT_NO_FATAL_FAILURE(activeConfig = mComposerClient->getActiveConfig(mPrimaryDisplay)); in SetUpBase()
64 mDisplayWidth = mComposerClient->getDisplayAttribute( in SetUpBase()
67 mDisplayHeight = mComposerClient->getDisplayAttribute( in SetUpBase()
73 ASSERT_NO_FATAL_FAILURE(mComposerClient->setVsyncEnabled(mPrimaryDisplay, false)); in SetUpBase()
80 ASSERT_NO_FATAL_FAILURE(mComposerClient->setPowerMode(mPrimaryDisplay, PowerMode::ON)); in SetUpBase()
105 ASSERT_NO_FATAL_FAILURE(mComposerClient->setPowerMode(mPrimaryDisplay, PowerMode::OFF)); in TearDown()
128 ASSERT_NO_FATAL_FAILURE(mComposerClient->execute(mReader.get(), mWriter.get())); in execute()
132 std::shared_ptr<ComposerClient> mComposerClient; member in android::hardware::graphics::composer::V2_2::vts::__anon8cadd1370111::GraphicsCompositionTestBase
[all …]
/hardware/interfaces/graphics/composer/2.1/vts/functional/
DVtsHalGraphicsComposerV2_1TargetTest.cpp59 ASSERT_NO_FATAL_FAILURE(mComposerClient = mComposer->createClient()); in SetUp()
62 mComposerClient->registerCallback(mComposerCallback); in SetUp()
68 mComposerClient->setVsyncEnabled(mPrimaryDisplay, false); in SetUp()
108 std::unique_ptr<ComposerClient> mComposerClient; member in android::hardware::graphics::composer::V2_1::vts::__anon71d7d22f0111::GraphicsComposerHidlTest
163 if (mComposerClient->getMaxVirtualDisplayCount() == 0) { in TEST_P()
171 display = mComposerClient->createVirtualDisplay(64, 64, PixelFormat::IMPLEMENTATION_DEFINED, in TEST_P()
175 IComposerClient::DisplayType type = mComposerClient->getDisplayType(display); in TEST_P()
178 mComposerClient->destroyVirtualDisplay(display); in TEST_P()
188 if (mComposerClient->getMaxVirtualDisplayCount() == 0) { in TEST_P()
193 Error error = mComposerClient->getRaw()->destroyVirtualDisplay(mInvalidDisplayId); in TEST_P()
[all …]
/hardware/interfaces/graphics/composer/2.3/vts/functional/
DVtsHalGraphicsComposerV2_3TargetTest.cpp50 ASSERT_NO_FATAL_FAILURE(mComposerClient = mComposer->createClient()); in SetUp()
53 mComposerClient->registerCallback(mComposerCallback); in SetUp()
61 mComposerClient->setVsyncEnabled(mPrimaryDisplay, false); in SetUp()
94 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
100 std::unique_ptr<ComposerClient> mComposerClient; member in android::hardware::graphics::composer::V2_3::vts::__anon1c1edbb30111::GraphicsComposerHidlTest
137 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
152 if (!mComposerClient->getDisplayIdentificationData(mPrimaryDisplay, &port0, &data0)) { in TEST_P()
170 ASSERT_TRUE(mComposerClient->getDisplayIdentificationData(mPrimaryDisplay, &port1, &data1)); in TEST_P()
184 mComposerClient->createLayer(mPrimaryDisplay, kBufferSlotCount)); in TEST_P()
222 ASSERT_NO_FATAL_FAILURE(mComposerClient->destroyLayer(mPrimaryDisplay, layer)); in TEST_P()
[all …]
/hardware/interfaces/graphics/composer/aidl/vts/
DVtsHalGraphicsComposer3_TargetTest.cpp58 mComposerClient = std::make_unique<VtsComposerClient>(GetParam()); in SetUp()
59 ASSERT_TRUE(mComposerClient->createClient().isOk()); in SetUp()
61 const auto& [status, displays] = mComposerClient->getDisplays(); in SetUp()
67 EXPECT_TRUE(mComposerClient->setVsync(display.getDisplayId(), false).isOk()); in SetUp()
69 mComposerClient->setVsyncAllowed(false); in SetUp()
73 ASSERT_TRUE(mComposerClient->tearDown(nullptr)); in TearDown()
74 mComposerClient.reset(); in TearDown()
90 const auto& status = mComposerClient->setContentType(display, contentType); in Test_setContentTypeForDisplay()
99 EXPECT_TRUE(mComposerClient->setContentType(display, contentType).isOk()); in Test_setContentTypeForDisplay()
100 EXPECT_TRUE(mComposerClient->setContentType(display, ContentType::NONE).isOk()); in Test_setContentTypeForDisplay()
[all …]
DVtsComposerClient.cpp51 auto status = mComposer->createClient(&mComposerClient); in createClient()
52 if (!status.isOk() || mComposerClient == nullptr) { in createClient()
62 return mComposerClient->registerCallback(mComposerCallback); in createClient()
71 if (!mComposerClient) { in getInterfaceVersion()
74 auto status = mComposerClient->getInterfaceVersion(&version); in getInterfaceVersion()
81 auto status = mComposerClient->createVirtualDisplay(width, height, pixelFormat, bufferSlotCount, in createVirtualDisplay()
91 auto status = mComposerClient->destroyVirtualDisplay(display); in destroyVirtualDisplay()
111 auto status = mComposerClient->createLayer(display, bufferSlotCount, &outLayer); in createLayer()
125 auto status = mComposerClient->destroyLayer(display, layer); in destroyLayer()
137 return {mComposerClient->getActiveConfig(display, &outConfig), outConfig}; in getActiveConfig()
[all …]
DVtsHalGraphicsComposer3_ReadbackTest.cpp44 mComposerClient = std::make_shared<VtsComposerClient>(name); in SetUpBase()
45 ASSERT_TRUE(mComposerClient->createClient().isOk()); in SetUpBase()
47 const auto& [status, displays] = mComposerClient->getDisplays(); in SetUpBase()
56 EXPECT_TRUE(mComposerClient->setVsync(display.getDisplayId(), /*enable*/ false).isOk()); in SetUpBase()
58 mComposerClient->setVsyncAllowed(/*isAllowed*/ false); in SetUpBase()
60 EXPECT_TRUE(mComposerClient->setPowerMode(getPrimaryDisplayId(), PowerMode::ON).isOk()); in SetUpBase()
91 ASSERT_TRUE(mComposerClient->setPowerMode(getPrimaryDisplayId(), PowerMode::OFF).isOk()); in TearDown()
92 ASSERT_TRUE(mComposerClient->tearDown(mWriter.get())); in TearDown()
93 mComposerClient.reset(); in TearDown()
103 int64_t getInvalidDisplayId() const { return mComposerClient->getInvalidDisplayId(); } in getInvalidDisplayId()
[all …]
DReadbackVts.cpp215 : mComposerClient(client) { in ReadbackBuffer()
245 EXPECT_TRUE(mComposerClient->setReadbackBuffer(mDisplay, bufferHandle, fence).isOk()); in setReadbackBuffer()
251 const auto& [fenceStatus, bufferFence] = mComposerClient->getReadbackBufferFence(mDisplay); in checkReadbackBuffer()
272 const auto& [fenceStatus, bufferFence] = mComposerClient->getReadbackBufferFence(mDisplay); in getBuffer()
DReadbackVts.h219 std::shared_ptr<VtsComposerClient> mComposerClient; variable
DVtsComposerClient.h231 std::shared_ptr<IComposerClient> mComposerClient; variable
/hardware/interfaces/graphics/composer/2.4/vts/functional/
DVtsHalGraphicsComposerV2_4TargetTest.cpp85 ASSERT_NO_FATAL_FAILURE(mComposerClient = mComposer->createClient()); in SetUp()
88 mComposerClient->registerCallback_2_4(mComposerCallback); in SetUp()
97 mComposerClient->setVsyncEnabled(display.get(), false); in SetUp()
139 std::vector<Config> validConfigs = mComposerClient->getDisplayConfigs(display); in GetInvalidConfigId()
151 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
177 std::unique_ptr<ComposerClient> mComposerClient; member in android::hardware::graphics::composer::V2_4::vts::__anonf14260750111::GraphicsComposerHidlTest
182 const auto displayConfigs = mComposerClient->getDisplayConfigs(display); in forEachTwoConfigs()
201 const auto error = mComposerClient->setActiveConfigWithConstraints(display.get(), config, in setActiveConfigWithConstraints()
204 const int32_t displayWidth = mComposerClient->getDisplayAttribute_2_4( in setActiveConfigWithConstraints()
206 const int32_t displayHeight = mComposerClient->getDisplayAttribute_2_4( in setActiveConfigWithConstraints()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
DReadbackVts.h56 : mLayer(client->createLayer(display, kBufferSlotCount)), mComposerClient(client) {} in TestLayer()
91 std::shared_ptr<ComposerClient> const mComposerClient;
190 std::shared_ptr<ComposerClient> mComposerClient; variable
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DReadbackVts.cpp194 mComposerClient = client; in ReadbackBuffer()
209 ASSERT_NO_FATAL_FAILURE(mComposerClient->setReadbackBuffer(mDisplay, mBuffer->handle, -1)); in setReadbackBuffer()
215 ASSERT_NO_FATAL_FAILURE(mComposerClient->getReadbackBufferFence(mDisplay, &fenceHandle)); in checkReadbackBuffer()