Home
last modified time | relevance | path

Searched refs:expectedColor (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java51 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateUnavailable_ReturnUnavailableColor() local
54 assertEquals(expectedColor, color); in testGetColor_StateUnavailable_ReturnUnavailableColor()
60 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateInactive_ReturnInactiveColor() local
63 assertEquals(expectedColor, color); in testGetColor_StateInactive_ReturnInactiveColor()
69 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateActive_ReturnActiveColor() local
72 assertEquals(expectedColor, color); in testGetColor_StateActive_ReturnActiveColor()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenshotTests.java166 static boolean matchesColor(PixelColor expectedColor, int color) { in matchesColor() argument
172 return alpha <= expectedColor.mMaxAlpha in matchesColor()
173 && alpha >= expectedColor.mMinAlpha in matchesColor()
174 && red <= expectedColor.mMaxRed in matchesColor()
175 && red >= expectedColor.mMinRed in matchesColor()
176 && green <= expectedColor.mMaxGreen in matchesColor()
177 && green >= expectedColor.mMinGreen in matchesColor()
178 && blue <= expectedColor.mMaxBlue in matchesColor()
179 && blue >= expectedColor.mMinBlue; in matchesColor()
/frameworks/native/services/surfaceflinger/tests/
DScreenCapture_test.cpp815 uint8_t expectedColor = luminance.r * 255; in TEST_F() local
817 Color{expectedColor, expectedColor, expectedColor, 255}, tolerance); in TEST_F()
822 expectedColor = luminance.b * 255; in TEST_F()
824 Color{expectedColor, expectedColor, expectedColor, 255}, tolerance); in TEST_F()
DLayerRenderTypeTransaction_test.cpp498 Color expectedColor = Color::BLACK; in setBackgroundColorHelper() local
506 expectedColor = fillColor; in setBackgroundColorHelper()
512 expectedColor = fillColor; in setBackgroundColorHelper()
520 expectedColor = fillColor; in setBackgroundColorHelper()
534 expectedColor = priorBgColor; in setBackgroundColorHelper()
540 screenshot()->expectColor(Rect(0, 0, width, height), expectedColor); in setBackgroundColorHelper()
1491 const Color expectedColor = {uint8_t(expected.r * 255), uint8_t(expected.g * 255), in TEST_P() local
1501 getScreenCapture()->expectColor(Rect(0, 0, 32, 32), expectedColor, tolerance); in TEST_P()
1549 const Color expectedColor = {uint8_t(expected.r * 255), uint8_t(expected.g * 255), in TEST_P() local
1562 getScreenCapture()->expectColor(Rect(0, 0, 32, 32), expectedColor, tolerance); in TEST_P()
[all …]