Searched refs:mPool (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ControllerRendererPoolTest.java | 39 private ControllerRendererPool mPool; field in ControllerRendererPoolTest 50 mPool = new ControllerRendererPool(); in setUp() 56 mPool.getController(mContext, mapping.mCardType).getClass()).isEqualTo( in getController_hasSupportedCardType_shouldReturnCorrespondingController() 66 mapping -> mPool.getController(mContext, mapping.mCardType)); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool() 68 assertThat(mPool.getControllers()).hasSize((int) count); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool() 73 final ContextualCardController controller = mPool.getController(mContext, in getController_hasUnsupportedCardType_shouldReturnNullAndPoolIsEmpty() 77 assertThat(mPool.getControllers()).isEmpty(); in getController_hasUnsupportedCardType_shouldReturnNullAndPoolIsEmpty() 83 mPool.getRendererByViewType(mContext, mLifecycleOwner, in getRenderer_hasSupportedViewType_shouldReturnCorrespondingRenderer() 93 mapping -> mPool.getRendererByViewType(mContext, mLifecycleOwner, in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool() 96 assertThat(mPool.getRenderers()).hasSize((int) count); in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool() [all …]
|
/packages/apps/Gallery2/src/android/util/ |
D | Pools.java | 78 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/Camera2/src/android/util/ |
D | Pools.java | 78 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/ |
D | BitmapPool.java | 58 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/Launcher3/src/com/android/launcher3/util/ |
D | ViewPool.java | 36 private final Object[] mPool; field in ViewPool 49 mPool = new Object[maxSize]; in ViewPool() 85 if (mCurrentSize >= mPool.length) { in addToPool() 90 mPool[mCurrentSize] = view; in addToPool() 99 return (T) mPool[mCurrentSize]; in getView()
|
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
D | SimpleLruResourcePool.java | 86 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/ |
D | JobLimiter.java | 38 private final ThreadPool mPool; field in JobLimiter 132 mPool = Utils.checkNotNull(pool); in JobLimiter() 149 wrapper.setFuture(mPool.submit(wrapper, this)); in submitTasksIfAllowed()
|