Searched refs:fgAlpha (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 286 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/ |
D | TestUtils.java | 318 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()
|