Searched refs:primaryColor (Results 1 – 1 of 1) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | SplashscreenTests.java | 167 private void testSplashScreenColor(ComponentName name, int primaryColor, int secondaryColor) { in testSplashScreenColor() argument 208 assertColors(image, appBounds, primaryColor, 0.99f, secondaryColor, 0.02f, ignoreRect); in testSplashScreenColor() 210 assertColors(image, topInsetsBounds, primaryColor, 0.80f, secondaryColor, 0.10f, null); in testSplashScreenColor() 213 assertColors(image, bottomInsetsBounds, primaryColor, 0.80f, secondaryColor, 0.10f, in testSplashScreenColor() 230 private void assertColors(Bitmap img, Rect bounds, int primaryColor, float expectedPrimaryRatio, in assertColors() argument 248 if (isSimilarColor(primaryColor, color)) { in assertColors() 265 generateFailureImage(img, bounds, primaryColor, secondaryColor, ignoreRect); in assertColors() 274 generateFailureImage(img, bounds, primaryColor, secondaryColor, ignoreRect); in assertColors() 282 private void generateFailureImage(Bitmap img, Rect bounds, int primaryColor, in generateFailureImage() argument 302 if (isSimilarColor(primaryColor, pixel)) { in generateFailureImage()
|