Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapColorSpaceTest.java418 private static int convertPremulColorToColorInt(int premulColor, ColorSpace premulCS) { in convertPremulColorToColorInt() argument
419 float alpha = (premulColor & 0xff) / 255.0f; in convertPremulColorToColorInt()
420 return Color.toArgb(Color.convert((premulColor >>> 24) / 255.0f / alpha, in convertPremulColorToColorInt()
421 ((premulColor >> 16) & 0xff) / 255.0f / alpha, in convertPremulColorToColorInt()
422 ((premulColor >> 8) & 0xff) / 255.0f / alpha, in convertPremulColorToColorInt()