Home
last modified time | relevance | path

Searched refs:mPool (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Camera2/src/android/util/
DPools.java78 private final Object[] mPool; field in Pools.SimplePool
93 mPool = new Object[maxPoolSize]; in SimplePool()
101 T instance = (T) mPool[lastPooledIndex]; in acquire()
102 mPool[lastPooledIndex] = null; in acquire()
114 if (mPoolSize < mPool.length) { in release()
115 mPool[mPoolSize] = instance; in release()
124 if (mPool[i] == instance) { in isInPool()
/packages/apps/Gallery2/src/android/util/
DPools.java78 private final Object[] mPool; field in Pools.SimplePool
93 mPool = new Object[maxPoolSize]; in SimplePool()
101 T instance = (T) mPool[lastPooledIndex]; in acquire()
102 mPool[lastPooledIndex] = null; in acquire()
114 if (mPoolSize < mPool.length) { in release()
115 mPool[mPoolSize] = instance; in release()
124 if (mPool[i] == instance) { in isInPool()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBitmapPool.java58 private final SparseArray<SingleSizePool> mPool; field in BitmapPool
90 mPool = new SparseArray<SingleSizePool>(); in BitmapPool()
96 for (int p = 0; p < mPool.size(); p++) { in reclaim()
97 final SingleSizePool singleSizePool = mPool.valueAt(p); in reclaim()
104 mPool.clear(); in reclaim()
144 final SingleSizePool singlePool = mPool.get(poolKey); in findPoolBitmap()
336 SingleSizePool singleSizePool = mPool.get(poolKey); in reclaimBitmap()
339 mPool.append(poolKey, singleSizePool); in reclaimBitmap()
356 final SingleSizePool singleSizePool = mPool.get(poolKey); in isFull()
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DSimpleLruResourcePool.java86 private final SimpleLruResourcePool<TKey, TValue> mPool; field in SimpleLruResourcePool.SynchronizedResource
96 mPool = pool; in SynchronizedResource()
118 mPool.release(mKey, mValue); in close()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java38 private final ThreadPool mPool; field in JobLimiter
132 mPool = Utils.checkNotNull(pool); in JobLimiter()
149 wrapper.setFuture(mPool.submit(wrapper, this)); in submitTasksIfAllowed()