Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/apppairs/
H A DAppPairsPool.java42 private final ArrayList<AppPair> mPool = new ArrayList(); field in AppPairsPool
50 final AppPair entry = mPool.remove(mPool.size() - 1); in acquire()
52 entry.getRootTaskId(), entry, mPool.size()); in acquire()
53 if (mPool.size() == 0) { in acquire()
60 mPool.add(entry); in release()
62 entry.getRootTaskId(), entry, mPool.size()); in release()
72 mPool.add(entry); in incrementPool()
77 return mPool.size(); in poolSize()
84 for (int i = mPool.size() - 1; i >= 0; --i) { in dump()
85 mPool.get(i).dump(pw, childPrefix); in dump()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
H A DControllerRendererPoolTest.java51 private ControllerRendererPool mPool; field in ControllerRendererPoolTest
77 mPool = new ControllerRendererPool(); in setUp()
93 mapping -> mPool.getController(mContext, mapping.mCardType)); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
95 assertThat(mPool.getControllers()).hasSize((int) count); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
100 final ContextualCardController controller = mPool.getController(mContext, in getController_hasUnsupportedCardType_shouldReturnNullAndPoolIsEmpty()
104 assertThat(mPool.getControllers()).isEmpty(); in getController_hasUnsupportedCardType_shouldReturnNullAndPoolIsEmpty()
110 mPool.getRendererByViewType(mContext, mLifecycleOwner, in getRenderer_hasSupportedViewType_shouldReturnCorrespondingRenderer()
120 mapping -> mPool.getRendererByViewType(mContext, mLifecycleOwner, in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
123 assertThat(mPool.getRenderers()).hasSize((int) count); in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
128 final ContextualCardRenderer renderer = mPool.getRendererByViewType(mContext, in getRenderer_hasUnsupportedViewType_shouldReturnNullAndPoolIsEmpty()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
H A DTexturePool.cpp28 mPool.clear(); in allocatePool()
30 mPool.resize(kMinPoolSize); in allocatePool()
31 std::generate_n(mPool.begin(), kMinPoolSize, [&]() { in allocatePool()
46 if (mPool.empty()) { in borrowTexture()
50 const auto entry = mPool.front(); in borrowTexture()
51 mPool.pop_front(); in borrowTexture()
73 if (mPool.size() == kMaxPoolSize) { in returnTexture()
79 mPool.push_back({std::move(texture), fence}); in returnTexture()
105 mEnabled ? "enabled" : "disabled", mPool.size(), mSize.width, mSize.height); in dump()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/apppairs/
H A DAppPairsPoolTests.java44 private TestAppPairsPool mPool; field in AppPairsPoolTests
57 mPool = mController.getPool(); in setUp()
66 assertThat(mPool.poolSize()).isGreaterThan(0); in testInitialState()
71 assertThat(mPool.poolSize()).isGreaterThan(0); in testAcquireRelease()
72 final AppPair appPair = mPool.acquire(); in testAcquireRelease()
73 assertThat(mPool.poolSize()).isGreaterThan(0); in testAcquireRelease()
74 mPool.release(appPair); in testAcquireRelease()
75 assertThat(mPool.poolSize()).isGreaterThan(1); in testAcquireRelease()
H A DTestAppPairsController.java29 private TestAppPairsPool mPool; field in TestAppPairsController
35 mPool = new TestAppPairsPool(this); in TestAppPairsController()
36 setPairsPool(mPool); in TestAppPairsController()
40 return mPool; in getPool()
H A DAppPairsControllerTests.java51 private TestAppPairsPool mPool; field in AppPairsControllerTests
66 mPool = mController.getPool(); in setUp()
81 assertThat(mPool.poolSize()).isGreaterThan(0); in testPairUnpair()
86 assertThat(mPool.poolSize()).isGreaterThan(1); in testPairUnpair()
102 assertThat(mPool.poolSize()).isEqualTo(1); in testUnpair_DontReleaseToPool()
/aosp12/packages/apps/Gallery2/src/android/util/
H A 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()
/aosp12/packages/apps/Camera2/src/android/util/
H A 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()
/aosp12/frameworks/base/core/java/android/util/
H A DPools.java83 private final Object[] mPool; field in Pools.SimplePool
99 mPool = new Object[maxPoolSize]; in SimplePool()
108 T instance = (T) mPool[lastPooledIndex]; in acquire()
109 mPool[lastPooledIndex] = null; in acquire()
122 if (mPoolSize < mPool.length) { in release()
123 mPool[mPoolSize] = instance; in release()
132 if (mPool[i] == instance) { in isInPool()
/aosp12/frameworks/base/core/java/android/os/
H A DPooledStringReader.java31 private final String[] mPool; field in PooledStringReader
36 mPool = new String[size]; in PooledStringReader()
40 return mPool.length; in getStringCount()
46 return mPool[idx]; in readString()
50 mPool[idx] = str; in readString()
H A DPooledStringWriter.java37 private final HashMap<String, Integer> mPool; field in PooledStringWriter
53 mPool = new HashMap<>(); in PooledStringWriter()
59 final Integer cur = mPool.get(str); in writeString()
63 mPool.put(str, mNext); in writeString()
71 return mPool.size(); in getStringCount()
/aosp12/frameworks/minikin/libs/minikin/
H A DWordBreaker.cpp48 for (auto i = mPool.begin(); i != mPool.end(); i++) { in acquire()
51 mPool.erase(i); in acquire()
65 if (mPool.size() >= MAX_POOL_SIZE) { in release()
71 mPool.push_front(std::move(slot)); in release()
74 WordBreaker::WordBreaker() : mPool(&ICULineBreakerPoolImpl::getInstance()) {} in WordBreaker()
76 WordBreaker::WordBreaker(ICULineBreakerPool* pool) : mPool(pool) {} in WordBreaker()
79 mIcuBreaker = mPool->acquire(locale); in followingWithLocale()
317 mPool->release(std::move(mIcuBreaker)); in finish()
H A DWordBreaker.h81 return mPool.size(); in getPoolSize()
85 std::list<Slot> mPool GUARDED_BY(mMutex);
136 ICULineBreakerPool* mPool; variable
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DViewPool.java36 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()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A 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()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DStringPool.java28 private final String[] mPool = new String[512]; field in StringPool
66 int index = hashCode & (mPool.length - 1); in get()
68 String pooled = mPool[index]; in get()
74 mPool[index] = result; in get()
/aosp12/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java47 private final LinkedBlockingQueue<V> mPool; field in UnrefedPooledCache
61 mPool = new LinkedBlockingQueue<V>(); in UnrefedPooledCache()
116 mPool.offer(value); in offer()
123 final V pooled = mPool.poll(); in poll()
177 sb.append(mPool.size()); in toDebugString()
185 for (V val : mPool) { in toDebugString()
236 mPool.clear(); in clear()
/aosp12/frameworks/av/media/codec2/sfplugin/
H A DCCodecBuffers.cpp371 mPool.begin(), mPool.end(), in newBuffer()
375 if (it != mPool.end()) { in newBuffer()
377 mPool.erase(it); in newBuffer()
381 while (!mPool.empty()) { in newBuffer()
383 mPool.pop_back(); in newBuffer()
405 mPool(pool) { in VectorBuffer()
772 array->setPool(mPool); in toArrayMode()
848 array->setPool(mPool); in toArrayMode()
853 [pool = mPool, in toArrayMode()
950 array->setPool(mPool); in toArrayMode()
[all …]
H A DCCodecBuffers.h105 void setPool(const std::shared_ptr<C2BlockPool> &pool) { mPool = pool; } in setPool()
156 std::shared_ptr<C2BlockPool> mPool; variable
506 std::weak_ptr<LocalBufferPool> mPool; variable
512 std::list<std::vector<uint8_t>> mPool; variable
/aosp12/packages/apps/Camera2/src/com/android/camera/processing/memory/
H A DSimpleLruResourcePool.java86 private final SimpleLruResourcePool<TKey, TValue> mPool; field in SimpleLruResourcePool.SynchronizedResource
96 mPool = pool; in SynchronizedResource()
118 mPool.release(mKey, mValue); in close()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/tracing/
H A DFrameProtoTracer.java53 private final Queue<T> mPool = new LinkedList<>(); field in FrameProtoTracer
167 mPool.add(proto); in onProtoDequeued()
175 mBuffer.add(mParams.updateBufferProto(mPool.poll(), mTmpTraceables)); in logState()
/aosp12/frameworks/layoutlib/bridge/src/android/util/imagepool/
H A DImagePoolImpl.java43 @VisibleForTesting final Map<String, Bucket> mPool = new HashMap<>(); field in ImagePoolImpl
68 final Bucket existingBucket = ImagePoolHelper.getBucket(mPool, metaData, mPolicy); in acquire()
146 for (Bucket bucket : mPool.values()) { in dispose()
/aosp12/frameworks/av/media/codec2/sfplugin/tests/
H A DFrameReassembler_test.cpp44 mInitStatus = GetCodec2BlockPool(C2BlockPool::BASIC_LINEAR, nullptr, &mPool); in FrameReassemblerTest()
59 mPool, in testPushSameSize()
132 std::shared_ptr<C2BlockPool> mPool; member in android::FrameReassemblerTest
/aosp12/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java106 private final SQLiteConnectionPool mPool; field in SQLiteConnection
174 mPool = pool; in SQLiteConnection()
175 mRecentOperations = new OperationLog(mPool); in SQLiteConnection()
188 if (mPool != null && mConnectionPtr != 0) { in finalize()
189 mPool.onConnectionLeaked(); in finalize()
1460 private final SQLiteConnectionPool mPool; field in SQLiteConnection.OperationLog
1465 mPool = pool; in OperationLog()
1489 operation.mPath = mPool.getPath(); in beginOperation()
1565 mPool.onStatementExecuted(execTime); in endOperationDeferLogLocked()

12