Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageUtilsTest.java304 assertEquals(96, ImageUtils.getBrightness(0x456789)); in testGetBrightness()
305 assertEquals(198, ImageUtils.getBrightness(0xABCDEF)); in testGetBrightness()
307 assertEquals(0, ImageUtils.getBrightness(0x0)); in testGetBrightness()
308 assertEquals(255, ImageUtils.getBrightness(0xFFFFFF)); in testGetBrightness()
309 assertEquals(299*255/1000, ImageUtils.getBrightness(0xFF0000)); in testGetBrightness()
310 assertEquals(587*255/1000, ImageUtils.getBrightness(0x00FF00)); in testGetBrightness()
311 assertEquals(114*255/1000, ImageUtils.getBrightness(0x0000FF)); in testGetBrightness()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DPreviewIconFactory.java299 if (ImageUtils.getBrightness(ImageUtils.rgbToInt(bg, 255)) < 128) { in render()
408 int backgroundBrightness = ImageUtils.getBrightness(bgRgb); in getColorsFromTheme()
417 int foregroundBrightness = ImageUtils.getBrightness(fgRgb); in getColorsFromTheme()
DImageUtils.java90 public static int getBrightness(int rgb) { in getBrightness() method in ImageUtils