Searched refs:canvasSize (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/ |
D | EffectLayer_test.cpp | 118 const auto canvasSize = 256; in TEST_F() local 123 const auto leftRect = Rect(0, 0, canvasSize / 2, canvasSize); in TEST_F() 124 const auto rightRect = Rect(canvasSize / 2, 0, canvasSize, canvasSize); in TEST_F() 125 const auto blurRect = Rect(0, 0, canvasSize, canvasSize); in TEST_F() 146 const auto blurRadius = canvasSize / 2; in TEST_F() 161 const auto blurAreaStartX = canvasSize / 2 - blurRadius + blurAreaOffset; in TEST_F() 162 const auto blurAreaEndX = canvasSize / 2 + blurRadius - blurAreaOffset; in TEST_F() 165 for (int y = 0; y < canvasSize; y++) { in TEST_F() 174 shot->checkPixel(canvasSize - 1, y, 0, 255, 0); in TEST_F()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 472 const auto canvasSize = 256; in TEST_P() local 478 const auto leftRect = Rect(0, 0, canvasSize / 2, canvasSize); in TEST_P() 479 const auto rightRect = Rect(canvasSize / 2, 0, canvasSize, canvasSize); in TEST_P() 480 const auto blurRect = Rect(0, 0, canvasSize, canvasSize); in TEST_P() 486 ASSERT_NO_FATAL_FAILURE(greenLayer = createLayer("Green", canvasSize * 2, canvasSize * 2)); in TEST_P() 488 fillLayerColor(greenLayer, Color::GREEN, canvasSize * 2, canvasSize * 2)); in TEST_P() 509 const auto blurRadius = canvasSize / 2; in TEST_P() 522 const auto blurAreaStartX = canvasSize / 2 - blurRadius + blurAreaOffset; in TEST_P() 523 const auto blurAreaEndX = canvasSize / 2 + blurRadius - blurAreaOffset; in TEST_P() 526 for (int y = 0; y < canvasSize; y++) { in TEST_P() [all …]
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | MainActivity.kt | 132 val canvasSize = Rect(0, 0, canvas.width, canvas.height) in drawFrame() constant 136 canvas.drawRect(canvasSize, p) in drawFrame() 138 return canvasSize in drawFrame()
|