Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageProcessHelper.java104 Bitmap grayscale = toGrayscale(bitmap); in compute() local
105 int[] histogram = getHistogram(grayscale); in compute()
106 boolean isSolidColor = isSolidColor(grayscale, histogram); in compute()
112 return algorithm.compute(grayscale, histogram); in compute()
119 Bitmap grayscale = Bitmap.createBitmap(width, height, bitmap.getConfig()); in toGrayscale() local
120 Canvas canvas = new Canvas(grayscale); in toGrayscale()
126 return grayscale; in toGrayscale()
129 private int[] getHistogram(Bitmap grayscale) { in getHistogram() argument
130 int width = grayscale.getWidth(); in getHistogram()
131 int height = grayscale.getHeight(); in getHistogram()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationUtils.java45 boolean grayscale = colorUtil.isGrayscaleIcon(v.getDrawable()); in isGrayscale()
46 v.setTag(R.id.icon_is_grayscale, grayscale); in isGrayscale()
47 return grayscale; in isGrayscale()
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp315 static int PickColorType(int32_t width, int32_t height, bool grayscale, in PickColorType() argument
325 if (grayscale) { in PickColorType()
531 bool grayscale = true; in WritePng() local
563 if (grayscale) { in WritePng()
565 grayscale = false; in WritePng()
582 << " grayScale=" << (grayscale ? "true" : "false"); in WritePng()
589 image->width, image->height, grayscale, convertible_to_grayscale, in WritePng()
683 if (grayscale) { in WritePng()