Lines Matching refs:Bitmap
39 import android.graphics.Bitmap;
112 private final static Map<Object, Map<String, SoftReference<Bitmap>>> sProjectBitmapCache =
113 new HashMap<Object, Map<String, SoftReference<Bitmap>>>();
117 private final static Map<String, SoftReference<Bitmap>> sFrameworkBitmapCache =
118 new HashMap<String, SoftReference<Bitmap>>();
646 * @return the cached Bitmap or null if not found.
648 public static Bitmap getCachedBitmap(String value, Object projectKey) {
650 Map<String, SoftReference<Bitmap>> map = sProjectBitmapCache.get(projectKey);
652 SoftReference<Bitmap> ref = map.get(value);
658 SoftReference<Bitmap> ref = sFrameworkBitmapCache.get(value);
670 * @param bmp the Bitmap object
673 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) {
675 Map<String, SoftReference<Bitmap>> map = sProjectBitmapCache.get(projectKey);
678 map = new HashMap<String, SoftReference<Bitmap>>();
682 map.put(value, new SoftReference<Bitmap>(bmp));
684 sFrameworkBitmapCache.put(value, new SoftReference<Bitmap>(bmp));