Home
last modified time | relevance | path

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

/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java286 int fgAlpha = Color.alpha(foreground); in mixSrcOver() local
291 return Color.argb(fgAlpha + (255 - fgAlpha) * bgAlpha / 255, in mixSrcOver()
292 fgRed + (255 - fgAlpha) * bgRed / 255, in mixSrcOver()
293 fgGreen + (255 - fgAlpha) * bgGreen / 255, in mixSrcOver()
294 fgBlue + (255 - fgAlpha) * bgBlue / 255); in mixSrcOver()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java318 int fgAlpha = Color.alpha(foreground); in compositeColors() local
319 int a = compositeAlpha(fgAlpha, bgAlpha); in compositeColors()
321 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
323 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
325 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()