Searched refs:totalPixels (Results 1 – 4 of 4) sorted by relevance
340 int totalPixels = a.getWidth() * a.getHeight(); in getNonMatching() local341 for (int i = 0; i < totalPixels; i++) { in getNonMatching()347 return ((float) badPixels) / totalPixels; in getNonMatching()
287 int totalPixels = bounds.width() * bounds.height(); in assertColors() local289 totalPixels -= ignoreRect.width() * ignoreRect.height(); in assertColors()292 final float primaryRatio = (float) primaryPixels / totalPixels; in assertColors()301 final float wrongRatio = (float) wrongPixels / totalPixels; in assertColors()
320 assumeNavigationBarChangesColor(s.backgroundPixels, s.totalPixels()); in assertStats()367 int totalPixels() { in totalPixels() method in LightBarTests.Stats
1008 final int totalPixels = bitmap.getWidth() * bitmap.getHeight(); in assertFourQuadrants() local1026 assertTrue(1.0f * (totalPixels - quadrantsTotal) / totalPixels <= 0.1f); in assertFourQuadrants()