Home
last modified time | relevance | path

Searched refs:expectedColors (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2ReadbackTest.cpp221 std::vector<IComposerClient::Color> expectedColors(mDisplayWidth * mDisplayHeight); in TEST_P() local
222 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, coloredSquare, BLUE); in TEST_P()
244 ASSERT_NO_FATAL_FAILURE(readbackBuffer.checkReadbackBuffer(expectedColors)); in TEST_P()
247 ASSERT_NO_FATAL_FAILURE(mTestRenderEngine->checkColorBuffer(expectedColors)); in TEST_P()
279 std::vector<IComposerClient::Color> expectedColors(mDisplayWidth * mDisplayHeight); in TEST_P() local
280 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, in TEST_P()
282 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, in TEST_P()
285 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, in TEST_P()
295 ASSERT_NO_FATAL_FAILURE(layer->setBuffer(expectedColors)); in TEST_P()
316 ASSERT_NO_FATAL_FAILURE(readbackBuffer.checkReadbackBuffer(expectedColors)); in TEST_P()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DReadbackVts.cpp133 void ReadbackHelper::clearColors(std::vector<IComposerClient::Color>& expectedColors, int32_t width, in clearColors() argument
138 expectedColors[pixel] = BLACK; in clearColors()
143 void ReadbackHelper::fillColorsArea(std::vector<IComposerClient::Color>& expectedColors, in fillColorsArea() argument
149 expectedColors[pixel] = color; in fillColorsArea()
169 void ReadbackHelper::compareColorBuffers(std::vector<IComposerClient::Color>& expectedColors, in compareColorBuffers() argument
181 ASSERT_EQ(expectedColors[pixel].r, pixelColor[0]); in compareColorBuffers()
182 ASSERT_EQ(expectedColors[pixel].g, pixelColor[1]); in compareColorBuffers()
183 ASSERT_EQ(expectedColors[pixel].b, pixelColor[2]); in compareColorBuffers()
220 void ReadbackBuffer::checkReadbackBuffer(std::vector<IComposerClient::Color> expectedColors) { in checkReadbackBuffer() argument
227 ReadbackHelper::compareColorBuffers(expectedColors, bufData, mStride, mWidth, mHeight, in checkReadbackBuffer()
[all …]
DRenderEngineVts.cpp83 void TestRenderEngine::checkColorBuffer(std::vector<V2_2::IComposerClient::Color>& expectedColors) { in checkColorBuffer() argument
86 ReadbackHelper::compareColorBuffers(expectedColors, bufferData, mGraphicBuffer->getStride(), in checkColorBuffer()
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
DReadbackVts.h125 void fillBuffer(std::vector<IComposerClient::Color> expectedColors);
163 static void clearColors(std::vector<IComposerClient::Color>& expectedColors, int32_t width,
166 static void fillColorsArea(std::vector<IComposerClient::Color>& expectedColors, int32_t stride,
175 static void compareColorBuffers(std::vector<IComposerClient::Color>& expectedColors,
188 void checkReadbackBuffer(std::vector<IComposerClient::Color> expectedColors);
DRenderEngineVts.h55 void checkColorBuffer(std::vector<V2_2::IComposerClient::Color>& expectedColors);