Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSplashscreenTests.java152 private void testSplashScreenColor(ComponentName name, int primaryColor, int secondaryColor) { in testSplashScreenColor() argument
193 assertColors(image, appBounds, primaryColor, 0.99f, secondaryColor, 0.02f, ignoreRect); in testSplashScreenColor()
194 assertColors(image, topInsetsBounds, primaryColor, 0.80f, secondaryColor, 0.10f, null); in testSplashScreenColor()
195 assertColors(image, bottomInsetsBounds, primaryColor, 0.80f, secondaryColor, 0.10f, null); in testSplashScreenColor()
210 private void assertColors(Bitmap img, Rect bounds, int primaryColor, float expectedPrimaryRatio, in assertColors() argument
228 if (isSimilarColor(primaryColor, color)) { in assertColors()
245 generateFailureImage(img, bounds, primaryColor, secondaryColor, ignoreRect); in assertColors()
254 generateFailureImage(img, bounds, primaryColor, secondaryColor, ignoreRect); in assertColors()
262 private void generateFailureImage(Bitmap img, Rect bounds, int primaryColor, in generateFailureImage() argument
282 if (isSimilarColor(primaryColor, pixel)) { in generateFailureImage()