Searched refs:rgb (Results 1 – 3 of 3) sorted by relevance
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/ |
D | HumanEyeMatcherTest.kt | 5 import android.graphics.Color.rgb in <lambda>() 17 val expected = rgb(5, 200, 200) in <lambda>() 18 val test = rgb(5, 200, 200) in <lambda>() 34 val expected = rgb(5, 200, 200) in <lambda>() 35 val test = rgb(6, 200, 201) in <lambda>() 51 val expected = rgb(200, 200, 200) in <lambda>() 52 val test = rgb(200, 201, 199) in <lambda>() 68 val expected = rgb(200, 200, 200) in <lambda>() 69 val test = rgb(203, 212, 194) in <lambda>() 130 second[4] = rgb(0, 21, 0) in <lambda>() [all …]
|
D | AlmostPerfectMatcherTest.kt | 19 import android.graphics.Color.rgb 31 val expected = rgb(200, 200, 5) in diffColor_exactMatch() 32 val test = rgb(200, 200, 5) in diffColor_exactMatch() 49 val expected = rgb(200, 200, 5) in diffColor_almostMatchLowRed() 50 val test = rgb(200, 201, 6) in diffColor_almostMatchLowRed() 67 val expected = rgb(200, 200, 200) in diffColor_almostMatchHighRed() 68 val test = rgb(201, 199, 200) in diffColor_almostMatchHighRed() 85 val expected = rgb(200, 200, 200) in diffColor_notMatch() 86 val test = rgb(212, 194, 203) in diffColor_notMatch()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 108 int rgb = image.getRGB(x, y); in assertImageSimilar() local 109 if (goldenRgb == rgb) { in assertImageSimilar() 115 if (((goldenRgb & 0xFF000000) == 0) && (rgb & 0xFF000000) == 0) { in assertImageSimilar() 120 int deltaR = ((rgb & 0xFF0000) >>> 16) - ((goldenRgb & 0xFF0000) >>> 16); in assertImageSimilar() 122 int deltaG = ((rgb & 0x00FF00) >>> 8) - ((goldenRgb & 0x00FF00) >>> 8); in assertImageSimilar() 124 int deltaB = (rgb & 0x0000FF) - (goldenRgb & 0x0000FF); in assertImageSimilar() 128 + ((rgb & 0xFF000000) >>> 24)) / 2) << 24; in assertImageSimilar()
|