Lines Matching refs:mCache

130     } mCache;  member in android::hardware::media::bufferpool::V1_0::implementation::BufferPoolClient::Impl
171 std::weak_ptr<BufferPoolData> mCache; member
204 std::shared_ptr<BufferPoolData> cache = mCache.lock(); in fetchCache()
223 mCache = cache; in createCache()
288 std::lock_guard<std::mutex> lock(mCache.mLock); in isActive()
291 *lastTransactionUs = mCache.mLastChangeUs; in isActive()
292 active = mCache.mActive > 0; in isActive()
314 std::unique_lock<std::mutex> lock(mCache.mLock); in allocate()
317 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
318 if (cacheIt != mCache.mBuffers.end()) { in allocate()
320 mCache.mBuffers.erase(cacheIt); in allocate()
325 auto result = mCache.mBuffers.insert(std::make_pair( in allocate()
331 mCache.incActive_l(); in allocate()
362 std::unique_lock<std::mutex> lock(mCache.mLock); in receive()
365 auto cacheIt = mCache.mBuffers.find(bufferId); in receive()
366 if (cacheIt != mCache.mBuffers.end()) { in receive()
380 mCache.incActive_l(); in receive()
386 if (!mCache.mCreating) { in receive()
387 mCache.mCreating = true; in receive()
397 auto result = mCache.mBuffers.insert( in receive()
404 mCache.incActive_l(); in receive()
413 mCache.mCreating = false; in receive()
415 mCache.mCreateCv.notify_all(); in receive()
418 mCache.mCreateCv.wait(lock); in receive()
551 auto found = mCache.mBuffers.find(id); in syncReleased()
552 if (found != mCache.mBuffers.end()) { in syncReleased()
554 mCache.decActive_l(); in syncReleased()
576 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in evictCaches()
578 it = mCache.mBuffers.erase(it); in evictCaches()
585 (long long)mConnectionId, mCache.mBuffers.size(), mCache.mActive, evicted); in evictCaches()