Lines Matching defs:bitmap
80 * @param bitmap The bitmap to test.
81 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
83 public boolean isGrayscaleIcon(Bitmap bitmap) {
85 if (bitmap.getWidth() > mGrayscaleIconMaxSize
86 || bitmap.getHeight() > mGrayscaleIconMaxSize) {
91 Pair<Boolean, Integer> cached = mGrayscaleBitmapCache.get(bitmap);
93 if (cached.second == bitmap.getGenerationId()) {
101 result = mImageUtils.isGrayscale(bitmap);
105 // assume that it doesn't modify the bitmap while we are checking the pixels.
106 generationId = bitmap.getGenerationId();
109 mGrayscaleBitmapCache.put(bitmap, Pair.create(result, generationId));
119 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
158 * @return True if the bitmap is grayscale; false if it is color or too large to examine.