/hardware/interfaces/graphics/composer/2.2/vts/functional/ |
D | VtsHalGraphicsComposerV2_2ReadbackTest.cpp | 215 std::vector<IComposerClient::Color> expectedColors(mDisplayWidth * mDisplayHeight); in TEST_P() local 216 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, coloredSquare, BLUE); in TEST_P() 238 ASSERT_NO_FATAL_FAILURE(readbackBuffer.checkReadbackBuffer(expectedColors)); in TEST_P() 241 ASSERT_NO_FATAL_FAILURE(mTestRenderEngine->checkColorBuffer(expectedColors)); in TEST_P() 273 std::vector<IComposerClient::Color> expectedColors(mDisplayWidth * mDisplayHeight); in TEST_P() local 274 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, in TEST_P() 276 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, in TEST_P() 279 ReadbackHelper::fillColorsArea(expectedColors, mDisplayWidth, in TEST_P() 289 ASSERT_NO_FATAL_FAILURE(layer->setBuffer(expectedColors)); in TEST_P() 310 ASSERT_NO_FATAL_FAILURE(readbackBuffer.checkReadbackBuffer(expectedColors)); in TEST_P() [all …]
|
/hardware/interfaces/graphics/composer/aidl/vts/ |
D | VtsHalGraphicsComposer3_ReadbackTest.cpp | 217 std::vector<Color> expectedColors( in TEST_P() local 219 ReadbackHelper::fillColorsArea(expectedColors, getDisplayWidth(), coloredSquare, BLUE); in TEST_P() 241 ASSERT_NO_FATAL_FAILURE(readbackBuffer.checkReadbackBuffer(expectedColors)); in TEST_P() 244 ASSERT_NO_FATAL_FAILURE(mTestRenderEngine->checkColorBuffer(expectedColors)); in TEST_P() 264 std::vector<Color> expectedColors( in TEST_P() local 266 ReadbackHelper::fillColorsArea(expectedColors, getDisplayWidth(), in TEST_P() 269 expectedColors, getDisplayWidth(), in TEST_P() 272 expectedColors, getDisplayWidth(), in TEST_P() 281 ASSERT_NO_FATAL_FAILURE(layer->setBuffer(expectedColors)); in TEST_P() 302 ASSERT_NO_FATAL_FAILURE(readbackBuffer.checkReadbackBuffer(expectedColors)); in TEST_P() [all …]
|
D | ReadbackVts.cpp | 145 void ReadbackHelper::clearColors(std::vector<Color>& expectedColors, int32_t width, int32_t height, in clearColors() argument 150 expectedColors[static_cast<size_t>(pixel)] = BLACK; in clearColors() 155 void ReadbackHelper::fillColorsArea(std::vector<Color>& expectedColors, int32_t stride, Rect area, in fillColorsArea() argument 160 expectedColors[static_cast<size_t>(pixel)] = color; in fillColorsArea() 177 void ReadbackHelper::compareColorBuffers(const std::vector<Color>& expectedColors, void* bufferData, in compareColorBuffers() argument 187 const Color expectedColor = expectedColors[static_cast<size_t>(pixel)]; in compareColorBuffers() 248 void ReadbackBuffer::checkReadbackBuffer(const std::vector<Color>& expectedColors) { in checkReadbackBuffer() argument 265 ReadbackHelper::compareColorBuffers(expectedColors, bufData, stride, mWidth, mHeight, in checkReadbackBuffer() 347 void TestBufferLayer::fillBuffer(std::vector<Color>& expectedColors) { in fillBuffer() argument 357 mPixelFormat, expectedColors)); in fillBuffer()
|
D | ReadbackVts.h | 137 void fillBuffer(std::vector<Color>& expectedColors); 180 static void clearColors(std::vector<Color>& expectedColors, int32_t width, int32_t height, 183 static void fillColorsArea(std::vector<Color>& expectedColors, int32_t stride, Rect area, 191 static void compareColorBuffers(const std::vector<Color>& expectedColors, void* bufferData, 206 void checkReadbackBuffer(const std::vector<Color>& expectedColors);
|
D | RenderEngineVts.cpp | 77 void TestRenderEngine::checkColorBuffer(const std::vector<Color>& expectedColors) { in checkColorBuffer() argument 86 ReadbackHelper::compareColorBuffers(expectedColors, bufferData, stride, in checkColorBuffer()
|
D | RenderEngineVts.h | 47 void checkColorBuffer(const std::vector<Color>& expectedColors);
|
/hardware/interfaces/graphics/composer/2.2/utils/vts/ |
D | ReadbackVts.cpp | 134 void ReadbackHelper::clearColors(std::vector<IComposerClient::Color>& expectedColors, int32_t width, in clearColors() argument 139 expectedColors[pixel] = BLACK; in clearColors() 144 void ReadbackHelper::fillColorsArea(std::vector<IComposerClient::Color>& expectedColors, in fillColorsArea() argument 150 expectedColors[pixel] = color; in fillColorsArea() 170 void ReadbackHelper::compareColorBuffers(std::vector<IComposerClient::Color>& expectedColors, in compareColorBuffers() argument 182 ASSERT_EQ(expectedColors[pixel].r, pixelColor[0]); in compareColorBuffers() 183 ASSERT_EQ(expectedColors[pixel].g, pixelColor[1]); in compareColorBuffers() 184 ASSERT_EQ(expectedColors[pixel].b, pixelColor[2]); in compareColorBuffers() 212 void ReadbackBuffer::checkReadbackBuffer(std::vector<IComposerClient::Color> expectedColors) { in checkReadbackBuffer() argument 222 ReadbackHelper::compareColorBuffers(expectedColors, bufData, stride, mWidth, mHeight, in checkReadbackBuffer() [all …]
|
D | RenderEngineVts.cpp | 82 void TestRenderEngine::checkColorBuffer(std::vector<V2_2::IComposerClient::Color>& expectedColors) { in checkColorBuffer() argument 85 ReadbackHelper::compareColorBuffers(expectedColors, bufferData, mGraphicBuffer->getStride(), in checkColorBuffer()
|
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/ |
D | ReadbackVts.h | 120 void fillBuffer(std::vector<IComposerClient::Color> expectedColors); 154 static void clearColors(std::vector<IComposerClient::Color>& expectedColors, int32_t width, 157 static void fillColorsArea(std::vector<IComposerClient::Color>& expectedColors, int32_t stride, 166 static void compareColorBuffers(std::vector<IComposerClient::Color>& expectedColors, 178 void checkReadbackBuffer(std::vector<IComposerClient::Color> expectedColors);
|
D | RenderEngineVts.h | 52 void checkColorBuffer(std::vector<V2_2::IComposerClient::Color>& expectedColors);
|