Lines Matching refs:mCache

150     } mCache;  member in aidl::android::hardware::media::bufferpool2::implementation::BufferPoolClient::Impl
193 std::weak_ptr<BufferPoolData> mCache; member
229 std::shared_ptr<BufferPoolData> cache = mCache.lock(); in fetchCache()
248 mCache = cache; in createCache()
320 std::lock_guard<std::mutex> lock(mCache.mLock); in isActive()
323 *lastTransactionMs = mCache.mLastChangeMs; in isActive()
324 active = mCache.mActive > 0; in isActive()
334 std::lock_guard<std::mutex> lock(mCache.mLock); in receiveInvalidation()
344 std::unique_lock<std::mutex> lock(mCache.mLock); in flush()
364 std::unique_lock<std::mutex> lock(mCache.mLock); in allocate()
367 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
368 if (cacheIt != mCache.mBuffers.end()) { in allocate()
370 mCache.mBuffers.erase(cacheIt); in allocate()
375 auto result = mCache.mBuffers.insert(std::make_pair( in allocate()
381 mCache.incActive_l(); in allocate()
412 std::unique_lock<std::mutex> lock(mCache.mLock); in receive()
415 auto cacheIt = mCache.mBuffers.find(bufferId); in receive()
416 if (cacheIt != mCache.mBuffers.end()) { in receive()
430 mCache.incActive_l(); in receive()
436 if (!mCache.mCreating) { in receive()
437 mCache.mCreating = true; in receive()
447 auto result = mCache.mBuffers.insert( in receive()
454 mCache.incActive_l(); in receive()
463 mCache.mCreating = false; in receive()
465 mCache.mCreateCv.notify_all(); in receive()
468 mCache.mCreateCv.wait(lock); in receive()
506 std::lock_guard<std::mutex> lock(mCache.mLock); in postSend()
599 auto found = mCache.mBuffers.find(id); in syncReleased()
600 if (found != mCache.mBuffers.end()) { in syncReleased()
602 mCache.decActive_l(); in syncReleased()
664 clearCache || mCache.cachedBufferCount() > kMaxCachedBufferCount) { in evictCaches()
666 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in evictCaches()
668 clearCache || mCache.cachedBufferCount() > kCachedBufferCountTarget)) { in evictCaches()
669 it = mCache.mBuffers.erase(it); in evictCaches()
676 (long long)mConnectionId, mCache.mBuffers.size(), mCache.mActive, evicted); in evictCaches()
683 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end(); ++it) { in invalidateBuffer()
686 mCache.mBuffers.erase(it); in invalidateBuffer()
701 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in invalidateRange()
707 it = mCache.mBuffers.erase(it); in invalidateRange()
713 it = mCache.mBuffers.erase(it); in invalidateRange()