Lines Matching refs:mCache
145 } mCache; member in android::hardware::media::bufferpool::V2_0::implementation::BufferPoolClient::Impl
189 std::weak_ptr<BufferPoolData> mCache; member
225 std::shared_ptr<BufferPoolData> cache = mCache.lock(); in fetchCache()
244 mCache = cache; in createCache()
325 std::lock_guard<std::mutex> lock(mCache.mLock); in isActive()
328 *lastTransactionUs = mCache.mLastChangeUs; in isActive()
329 active = mCache.mActive > 0; in isActive()
339 std::lock_guard<std::mutex> lock(mCache.mLock); in receiveInvalidation()
349 std::unique_lock<std::mutex> lock(mCache.mLock); in flush()
369 std::unique_lock<std::mutex> lock(mCache.mLock); in allocate()
372 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
373 if (cacheIt != mCache.mBuffers.end()) { in allocate()
375 mCache.mBuffers.erase(cacheIt); in allocate()
380 auto result = mCache.mBuffers.insert(std::make_pair( in allocate()
386 mCache.incActive_l(); in allocate()
417 std::unique_lock<std::mutex> lock(mCache.mLock); in receive()
420 auto cacheIt = mCache.mBuffers.find(bufferId); in receive()
421 if (cacheIt != mCache.mBuffers.end()) { in receive()
435 mCache.incActive_l(); in receive()
441 if (!mCache.mCreating) { in receive()
442 mCache.mCreating = true; in receive()
452 auto result = mCache.mBuffers.insert( in receive()
459 mCache.incActive_l(); in receive()
468 mCache.mCreating = false; in receive()
470 mCache.mCreateCv.notify_all(); in receive()
473 mCache.mCreateCv.wait(lock); in receive()
511 std::lock_guard<std::mutex> lock(mCache.mLock); in postSend()
613 auto found = mCache.mBuffers.find(id); in syncReleased()
614 if (found != mCache.mBuffers.end()) { in syncReleased()
616 mCache.decActive_l(); in syncReleased()
678 clearCache || mCache.cachedBufferCount() > kMaxCachedBufferCount) { in evictCaches()
680 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in evictCaches()
682 clearCache || mCache.cachedBufferCount() > kCachedBufferCountTarget)) { in evictCaches()
683 it = mCache.mBuffers.erase(it); in evictCaches()
690 (long long)mConnectionId, mCache.mBuffers.size(), mCache.mActive, evicted); in evictCaches()
697 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end(); ++it) { in invalidateBuffer()
700 mCache.mBuffers.erase(it); in invalidateBuffer()
715 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in invalidateRange()
721 it = mCache.mBuffers.erase(it); in invalidateRange()
727 it = mCache.mBuffers.erase(it); in invalidateRange()