Searched refs:SparseArrayBitmapPool (Results 1 – 2 of 2) sorted by relevance
24 import com.android.photos.data.SparseArrayBitmapPool.Node;54 private SparseArrayBitmapPool [] mPools;58 mPools = new SparseArrayBitmapPool[3]; in GalleryBitmapPool()59 mPools[POOL_INDEX_SQUARE] = new SparseArrayBitmapPool(capacityBytes / 3, mSharedNodePool); in GalleryBitmapPool()60 mPools[POOL_INDEX_PHOTO] = new SparseArrayBitmapPool(capacityBytes / 3, mSharedNodePool); in GalleryBitmapPool()61 mPools[POOL_INDEX_MISC] = new SparseArrayBitmapPool(capacityBytes / 3, mSharedNodePool); in GalleryBitmapPool()71 private SparseArrayBitmapPool getPoolForDimensions(int width, int height) { in getPoolForDimensions()118 for (SparseArrayBitmapPool p : mPools) { in getSize()128 SparseArrayBitmapPool pool = getPoolForDimensions(width, height); in get()144 SparseArrayBitmapPool pool = getPoolForDimensions(b.getWidth(), b.getHeight()); in put()[all …]
30 public class SparseArrayBitmapPool { class58 public SparseArrayBitmapPool(int capacityBytes, Pool<Node> nodePool) { in SparseArrayBitmapPool() method in SparseArrayBitmapPool