Home
last modified time | relevance | path

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

/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java107 int goldenRgb = goldenImage.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()
127 int avgAlpha = ((((goldenRgb & 0xFF000000) >>> 24) in assertImageSimilar()