Searched refs:rgbToInt (Results 1 – 3 of 3) sorted by relevance
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | PreviewIconFactory.java | 221 overrideBgColor = Integer.valueOf(ImageUtils.rgbToInt(bg, 0xFF)); in render() 299 if (ImageUtils.getBrightness(ImageUtils.rgbToInt(bg, 255)) < 128) { in render() 407 int bgRgb = ImageUtils.rgbToInt(background, 0xFF); in getColorsFromTheme() 416 int fgRgb = ImageUtils.rgbToInt(foreground, 0xFF); in getColorsFromTheme()
|
D | ImageUtils.java | 123 public static int rgbToInt(RGB rgb, int alpha) { in rgbToInt() method in ImageUtils
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | ImageUtilsTest.java | 315 assertEquals(0, ImageUtils.rgbToInt(ImageUtils.intToRgb(0), 0)); in testColorConversion() 316 assertEquals(0xFFFFFFFF, ImageUtils.rgbToInt(ImageUtils.intToRgb(0xFFFFFF), 0xFF)); in testColorConversion() 317 assertEquals(0x12345678, ImageUtils.rgbToInt(ImageUtils.intToRgb(0x345678), 0x12)); in testColorConversion()
|