Searched refs:getBrightness (Results 1 – 3 of 3) sorted by relevance
304 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()
299 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()
90 public static int getBrightness(int rgb) { in getBrightness() method in ImageUtils