Lines Matching refs:mCache

139     } mCache;  member in android::hardware::media::bufferpool::V2_0::implementation::BufferPoolClient::Impl
183 std::weak_ptr<BufferPoolData> mCache; member
219 std::shared_ptr<BufferPoolData> cache = mCache.lock(); in fetchCache()
238 mCache = cache; in createCache()
319 std::lock_guard<std::mutex> lock(mCache.mLock); in isActive()
322 *lastTransactionUs = mCache.mLastChangeUs; in isActive()
323 active = mCache.mActive > 0; in isActive()
333 std::lock_guard<std::mutex> lock(mCache.mLock); in receiveInvalidation()
343 std::unique_lock<std::mutex> lock(mCache.mLock); in flush()
363 std::unique_lock<std::mutex> lock(mCache.mLock); in allocate()
366 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
367 if (cacheIt != mCache.mBuffers.end()) { in allocate()
369 mCache.mBuffers.erase(cacheIt); in allocate()
374 auto result = mCache.mBuffers.insert(std::make_pair( in allocate()
380 mCache.incActive_l(); in allocate()
411 std::unique_lock<std::mutex> lock(mCache.mLock); in receive()
414 auto cacheIt = mCache.mBuffers.find(bufferId); in receive()
415 if (cacheIt != mCache.mBuffers.end()) { in receive()
429 mCache.incActive_l(); in receive()
435 if (!mCache.mCreating) { in receive()
436 mCache.mCreating = true; in receive()
446 auto result = mCache.mBuffers.insert( in receive()
453 mCache.incActive_l(); in receive()
462 mCache.mCreating = false; in receive()
464 mCache.mCreateCv.notify_all(); in receive()
467 mCache.mCreateCv.wait(lock); in receive()
505 std::lock_guard<std::mutex> lock(mCache.mLock); in postSend()
607 auto found = mCache.mBuffers.find(id); in syncReleased()
608 if (found != mCache.mBuffers.end()) { in syncReleased()
610 mCache.decActive_l(); in syncReleased()
673 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in evictCaches()
675 it = mCache.mBuffers.erase(it); in evictCaches()
682 (long long)mConnectionId, mCache.mBuffers.size(), mCache.mActive, evicted); in evictCaches()
689 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end(); ++it) { in invalidateBuffer()
692 mCache.mBuffers.erase(it); in invalidateBuffer()
707 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in invalidateRange()
713 it = mCache.mBuffers.erase(it); in invalidateRange()
719 it = mCache.mBuffers.erase(it); in invalidateRange()