/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureGL_test.cpp | 63 EXPECT_TRUE(checkPixel( 0, 0, 255, 127, 255, 255, 3)); in TEST_F() 64 EXPECT_TRUE(checkPixel(63, 0, 0, 133, 0, 255, 3)); in TEST_F() 65 EXPECT_TRUE(checkPixel(63, 65, 0, 133, 0, 255, 3)); in TEST_F() 66 EXPECT_TRUE(checkPixel( 0, 65, 255, 127, 255, 255, 3)); in TEST_F() 68 EXPECT_TRUE(checkPixel(22, 44, 255, 127, 255, 255, 3)); in TEST_F() 69 EXPECT_TRUE(checkPixel(45, 52, 255, 127, 255, 255, 3)); in TEST_F() 70 EXPECT_TRUE(checkPixel(52, 51, 98, 255, 73, 255, 3)); in TEST_F() 71 EXPECT_TRUE(checkPixel( 7, 31, 155, 0, 118, 255, 3)); in TEST_F() 72 EXPECT_TRUE(checkPixel(31, 9, 107, 24, 87, 255, 3)); in TEST_F() 73 EXPECT_TRUE(checkPixel(29, 35, 255, 127, 255, 255, 3)); in TEST_F() [all …]
|
D | SurfaceTextureGLToGL_test.cpp | 135 EXPECT_TRUE(checkPixel( 0, 0, 153, 153, 153, 153)); in TEST_F() 136 EXPECT_TRUE(checkPixel(63, 0, 153, 153, 153, 153)); in TEST_F() 137 EXPECT_TRUE(checkPixel(63, 63, 153, 153, 153, 153)); in TEST_F() 138 EXPECT_TRUE(checkPixel( 0, 63, 153, 153, 153, 153)); in TEST_F() 140 EXPECT_TRUE(checkPixel( 4, 7, 255, 0, 0, 255)); in TEST_F() 141 EXPECT_TRUE(checkPixel(25, 51, 0, 255, 0, 255)); in TEST_F() 142 EXPECT_TRUE(checkPixel(40, 19, 0, 0, 255, 255)); in TEST_F() 143 EXPECT_TRUE(checkPixel(29, 51, 153, 153, 153, 153)); in TEST_F() 144 EXPECT_TRUE(checkPixel( 5, 32, 153, 153, 153, 153)); in TEST_F() 145 EXPECT_TRUE(checkPixel(13, 8, 153, 153, 153, 153)); in TEST_F() [all …]
|
D | CpuConsumer_test.cpp | 167 void checkPixel(const CpuConsumer::LockedBuffer &buf, in checkPixel() function 316 checkPixel(buf, 0, 0, 191); in checkGreyscaleBuffer() 317 checkPixel(buf, 1, 0, 191); in checkGreyscaleBuffer() 318 checkPixel(buf, 0, 1, 191); in checkGreyscaleBuffer() 319 checkPixel(buf, 1, 1, 191); in checkGreyscaleBuffer() 322 checkPixel(buf, blockWidth, 0, 63); in checkGreyscaleBuffer() 323 checkPixel(buf, blockWidth + 1, 0, 63); in checkGreyscaleBuffer() 324 checkPixel(buf, blockWidth, 1, 63); in checkGreyscaleBuffer() 325 checkPixel(buf, blockWidth + 1, 1, 63); in checkGreyscaleBuffer() 328 checkPixel(buf, 0, blockHeight, 63); in checkGreyscaleBuffer() [all …]
|
D | SurfaceTextureFBO_test.cpp | 83 EXPECT_TRUE(checkPixel( 24, 39, 255, 0, 0, 255)); in TEST_F() 88 EXPECT_TRUE(checkPixel( 24, 39, 0, 255, 0, 255)); in TEST_F()
|
D | SurfaceTextureMultiContextGL_test.cpp | 175 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F() 208 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F() 240 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F() 337 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F() 376 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
|
D | GLTest.h | 55 ::testing::AssertionResult checkPixel(int x, int y,
|
D | MultiTextureConsumer_test.cpp | 122 EXPECT_TRUE(checkPixel(i*16 + 8, 8, i*16, i*16, i*16, i*16, 0)); in TEST_F()
|
D | GLTest.cpp | 169 ::testing::AssertionResult GLTest::checkPixel(int x, int y, in checkPixel() function in android::GLTest
|
/frameworks/native/services/surfaceflinger/tests/ |
D | RelativeZ_test.cpp | 80 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F() 95 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 129 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 147 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 172 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F() 185 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 195 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 206 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
|
D | LayerUpdate_test.cpp | 384 mCapture->checkPixel(0, 0, 0, 254, 0); in TEST_F() 412 mCapture->checkPixel(64, 64, 111, 111, 111); in TEST_F() 429 mCapture->checkPixel(64, 64, 111, 111, 111); in TEST_F() 444 mCapture->checkPixel(64, 64, 200, 200, 200); in TEST_F() 455 mCapture->checkPixel(64, 64, 195, 63, 63); in TEST_F() 535 mCapture->checkPixel(10, 10, 63, 195, 63); in TEST_F() 545 mCapture->checkPixel(74, 74, 63, 195, 63); in TEST_F() 559 mCapture->checkPixel(64, 64, 50, 50, 50); in TEST_F() 579 mCapture->checkPixel(10, 10, 255, 255, 255); in TEST_F()
|
D | ScreenCapture_test.cpp | 339 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F() 366 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F() 367 mCapture->checkPixel(0, 0, 200, 200, 200); in TEST_F() 406 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F() 407 mCapture->checkPixel(0, 0, 200, 200, 200); in TEST_F() 557 mCapture->checkPixel(5, 5, 50, 50, 50); in TEST_F() 595 mCapture->checkPixel(0, 0, 50, 50, 50); in TEST_F() 596 mCapture->checkPixel(4, 4, 50, 50, 50); in TEST_F() 631 mCapture->checkPixel(30, 30, 0, 0, 0); in TEST_F() 672 mCapture->checkPixel(30, 30, 0, 0, 0); in TEST_F() [all …]
|
D | EffectLayer_test.cpp | 173 shot->checkPixel(0, y, /* r = */ 0, /* g = */ 0, /* b = */ 255); in TEST_F() 181 shot->checkPixel(canvasSize - 1, y, 255, 0, 0); in TEST_F()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 647 shot->checkPixel(0, y, /* r = */ 0, /* g = */ 0, /* b = */ 255); in TEST_P() 655 shot->checkPixel(canvasSize - 1, y, 255, 0, 0); in TEST_P()
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ScreenshotUtils.h | 165 void checkPixel(uint32_t x, uint32_t y, uint8_t r, uint8_t g, uint8_t b) { in checkPixel() function 186 void expectFGColor(uint32_t x, uint32_t y) { checkPixel(x, y, 195, 63, 63); } in expectFGColor() 188 void expectBGColor(uint32_t x, uint32_t y) { checkPixel(x, y, 63, 63, 195); } in expectBGColor() 190 void expectChildColor(uint32_t x, uint32_t y) { checkPixel(x, y, 200, 200, 200); } in expectChildColor()
|