Home
last modified time | relevance | path

Searched refs:mReader (Results 1 – 10 of 10) sorted by relevance

/hardware/google/aemu/base/
DSharedMemory_unittest.cpp30 base::SharedMemory mReader(unique_name, message.size()); in TEST() local
33 ASSERT_FALSE(mReader.isOpen()); in TEST()
37 err = mReader.open(SharedMemory::AccessMode::READ_ONLY); in TEST()
41 ASSERT_TRUE(mReader.isOpen()); in TEST()
44 std::string read(static_cast<const char*>(*mReader)); in TEST()
48 mReader.close(); in TEST()
50 ASSERT_FALSE(mReader.isOpen()); in TEST()
165 base::SharedMemory mReader(unique_name, message.size()); in TEST() local
168 err = mReader.open(SharedMemory::AccessMode::READ_ONLY); in TEST()
176 err = mReader.open(SharedMemory::AccessMode::READ_ONLY); in TEST()
/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2ReadbackTest.cpp78 mReader = std::make_unique<TestCommandReader>(); in SetUpBase()
106 EXPECT_EQ(0, mReader->mErrors.size()); in TearDown()
107 EXPECT_EQ(0, mReader->mCompositionChanges.size()); in TearDown()
116 mReader->mCompositionChanges.clear(); in clearCommandReaderState()
117 mReader->mErrors.clear(); in clearCommandReaderState()
128 ASSERT_NO_FATAL_FAILURE(mComposerClient->execute(mReader.get(), mWriter.get())); in execute()
141 std::unique_ptr<TestCommandReader> mReader; member in android::hardware::graphics::composer::V2_2::vts::__anon8cadd1370111::GraphicsCompositionTestBase
223 ASSERT_EQ(0, mReader->mErrors.size()); in TEST_P()
228 if (mReader->mCompositionChanges.size() != 0) { in TEST_P()
233 ASSERT_EQ(0, mReader->mErrors.size()); in TEST_P()
[all …]
DVtsHalGraphicsComposerV2_2TargetTest.cpp143 mReader = std::make_unique<V2_1::vts::TestCommandReader>(); in SetUp()
147 ASSERT_EQ(0, mReader->mErrors.size()); in TearDown()
151 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
154 std::unique_ptr<V2_1::vts::TestCommandReader> mReader; member in android::hardware::graphics::composer::V2_2::vts::__anon46fb56f10111::GraphicsComposerHidlCommandTest
197 if (mReader->mErrors.size() == 1 && in TEST_P()
198 static_cast<Error>(mReader->mErrors[0].second) == Error::UNSUPPORTED) { in TEST_P()
199 mReader->mErrors.clear(); in TEST_P()
499 if (mReader->mErrors.size() == 2 && in TEST_P()
500 static_cast<Error>(mReader->mErrors[0].second) == Error::UNSUPPORTED && in TEST_P()
501 static_cast<Error>(mReader->mErrors[1].second) == Error::UNSUPPORTED) { in TEST_P()
[all …]
/hardware/interfaces/graphics/composer/aidl/vts/
DVtsHalGraphicsComposer3_ReadbackTest.cpp94 const auto errors = mReader.takeErrors(); in TearDown()
95 ASSERT_TRUE(mReader.takeErrors().empty()); in TearDown()
96 ASSERT_TRUE(mReader.takeChangedCompositionTypes(getPrimaryDisplayId()).empty()); in TearDown()
144 mReader.parse(std::move(results)); in execute()
165 ComposerClientReader mReader; member in aidl::android::hardware::graphics::composer3::vts::__anon368924b60111::GraphicsCompositionTestBase
226 ASSERT_TRUE(mReader.takeErrors().empty()); in TEST_P()
232 if (!mReader.takeChangedCompositionTypes(getPrimaryDisplayId()).empty()) { in TEST_P()
236 ASSERT_TRUE(mReader.takeErrors().empty()); in TEST_P()
239 ASSERT_TRUE(mReader.takeErrors().empty()); in TEST_P()
286 ASSERT_TRUE(mReader.takeErrors().empty()); in TEST_P()
[all …]
DVtsHalGraphicsComposer3_TargetTest.cpp1396 ASSERT_TRUE(mReader.takeErrors().empty()); in TearDown()
1397 ASSERT_TRUE(mReader.takeChangedCompositionTypes(getPrimaryDisplayId()).empty()); in TearDown()
1408 mReader.parse(std::move(payloads)); in execute()
1506 ASSERT_TRUE(mReader.takeErrors().empty()); in sendRefreshFrame()
1510 ASSERT_TRUE(mReader.takeErrors().empty()); in sendRefreshFrame()
1524 ASSERT_TRUE(mReader.takeErrors().empty()); in sendRefreshFrame()
1541 EXPECT_TRUE(mReader.takeErrors().empty());
1545 EXPECT_TRUE(mReader.takeErrors().empty());
1547 auto presentFence = mReader.takePresentFence(displayId);
1789 ComposerClientReader mReader; member in aidl::android::hardware::graphics::composer3::vts::GraphicsComposerAidlCommandTest
[all …]
/hardware/interfaces/graphics/composer/2.3/vts/functional/
DVtsHalGraphicsComposerV2_3TargetTest.cpp65 mReader = std::make_unique<V2_1::vts::TestCommandReader>(); in SetUp()
69 ASSERT_EQ(0, mReader->mErrors.size()); in TearDown()
70 ASSERT_EQ(0, mReader->mCompositionChanges.size()); in TearDown()
94 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
106 std::unique_ptr<V2_1::vts::TestCommandReader> mReader; member in android::hardware::graphics::composer::V2_3::vts::__anon1c1edbb30111::GraphicsComposerHidlTest
129 mReader = std::make_unique<V2_1::vts::TestCommandReader>(); in SetUp()
133 ASSERT_EQ(0, mReader->mErrors.size()); in TearDown()
137 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
140 std::unique_ptr<V2_1::vts::TestCommandReader> mReader; member in android::hardware::graphics::composer::V2_3::vts::__anon1c1edbb30111::GraphicsComposerHidlCommandTest
218 if (mReader->mErrors.size() == 1 && in TEST_P()
[all …]
/hardware/interfaces/graphics/composer/2.1/vts/functional/
DVtsHalGraphicsComposerV2_1TargetTest.cpp659 mReader = std::make_unique<TestCommandReader>(); in SetUp()
663 ASSERT_EQ(0, mReader->mErrors.size()); in TearDown()
680 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
683 std::unique_ptr<TestCommandReader> mReader; member in android::hardware::graphics::composer::V2_1::vts::__anon71d7d22f0111::GraphicsComposerHidlCommandTest
809 if (mReader->mCompositionChanges.size() != 0) { in TEST_P()
814 ASSERT_EQ(0, mReader->mErrors.size()); in TEST_P()
817 ASSERT_EQ(0, mReader->mErrors.size()); in TEST_P()
856 if (mReader->mCompositionChanges.size() != 0) { in TEST_P()
861 ASSERT_EQ(0, mReader->mErrors.size()); in TEST_P()
911 if (mReader->mCompositionChanges.size() != 0) { in TEST_P()
[all …]
/hardware/interfaces/graphics/composer/2.4/vts/functional/
DVtsHalGraphicsComposerV2_4TargetTest.cpp102 mReader = std::make_unique<TestCommandReader>(); in SetUp()
106 ASSERT_EQ(0, mReader->mErrors.size()); in TearDown()
107 ASSERT_EQ(0, mReader->mCompositionChanges.size()); in TearDown()
151 void execute() { mComposerClient->execute(mReader.get(), mWriter.get()); } in execute()
253 std::unique_ptr<TestCommandReader> mReader; member in android::hardware::graphics::composer::V2_4::vts::__anonf14260750111::GraphicsComposerHidlTest
461 ASSERT_EQ(0, mReader->mErrors.size()); in sendRefreshFrame()
462 mReader->mCompositionChanges.clear(); in sendRefreshFrame()
466 ASSERT_EQ(0, mReader->mErrors.size()); in sendRefreshFrame()
478 ASSERT_EQ(0, mReader->mErrors.size()); in sendRefreshFrame()
479 mReader->mCompositionChanges.clear(); in sendRefreshFrame()
/hardware/qcom/sm7250/display/composer/
DQtiComposerClient.cpp58 QtiComposerClient::QtiComposerClient() : mWriter(kWriterInitialSize), mReader(*this) { in QtiComposerClient()
101 mReader.validateDisplay(dpy.first, changedLayers, compositionTypes, displayRequestMask, in ~QtiComposerClient()
109 mReader.presentDisplay(dpy.first, &presentFence, releasedLayers, releaseFences); in ~QtiComposerClient()
547 return mReader.setMQDescriptor(descriptor) ? Error::NONE : Error::NO_RESOURCES; in setInputCommandQueue()
573 if (!mReader.readQueue(inLength, inHandles)) { in executeCommands()
578 Error err = mReader.parse(); in executeCommands()
586 mReader.reset(); in executeCommands()
783 if (!mReader.readQueue(inLength, inHandles)) { in executeCommands_2_2()
788 Error err = mReader.parse(); in executeCommands_2_2()
796 mReader.reset(); in executeCommands_2_2()
[all …]
DQtiComposerClient.h365 CommandReader mReader; variable