Home
last modified time | relevance | path

Searched refs:NullReusableBitmap (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/bitmap/src/com/android/bitmap/
DUnrefedBitmapCache.java22 import com.android.bitmap.ReusableBitmap.NullReusableBitmap;
40 private LruCache<RequestKey, NullReusableBitmap> mNullRequests;
50 mNullRequests = new LruCache<RequestKey, NullReusableBitmap>(nullCapacity); in UnrefedBitmapCache()
122 return NullReusableBitmap.getInstance(); in get()
132 if (mNullRequests != null && (value == null || value == NullReusableBitmap.getInstance())) { in put()
133 mNullRequests.put(key, NullReusableBitmap.getInstance()); in put()
DReusableBitmap.java123 public final static class NullReusableBitmap extends ReusableBitmap { class in ReusableBitmap
124 private static NullReusableBitmap sInstance;
129 public static NullReusableBitmap getInstance() { in getInstance()
131 sInstance = new NullReusableBitmap(); in getInstance()
136 private NullReusableBitmap() { in NullReusableBitmap() method in ReusableBitmap.NullReusableBitmap