Lines Matching refs:mCache
189 mCache(new PageCache(kPageSize)), in NuCachedSource2()
235 delete mCache; in ~NuCachedSource2()
236 mCache = NULL; in ~NuCachedSource2()
343 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize()); in fetchInternal()
364 PageCache::Page *page = mCache->acquirePage(); in fetchInternal()
367 mCacheOffset + mCache->totalSize(), page->mData, kPageSize); in fetchInternal()
377 mCache->releasePage(page); in fetchInternal()
387 mCache->releasePage(page); in fetchInternal()
396 mCache->appendPage(page); in fetchInternal()
423 if (mFetching && mCache->totalSize() >= mHighwaterThresholdBytes) { in onFetch()
496 && mCacheOffset + mCache->totalSize() - mLastAccessPos in restartPrefetcherIfNecessary_l()
511 size_t actualBytes = mCache->releaseFromStart(maxBytes); in restartPrefetcherIfNecessary_l()
514 ALOGI("restarting prefetcher, totalSize = %zu", mCache->totalSize()); in restartPrefetcherIfNecessary_l()
531 && offset + size <= mCacheOffset + mCache->totalSize()) { in readAt()
533 mCache->copy(delta, data, size); in readAt()
571 return mCacheOffset + mCache->totalSize(); in cachedSize()
595 off64_t lastBytePosCached = mCacheOffset + mCache->totalSize(); in approxDataRemaining_l()
624 || offset >= (off64_t)(mCacheOffset + mCache->totalSize())) { in readInternal()
639 if (delta >= mCache->totalSize()) { in readInternal()
643 size_t avail = mCache->totalSize() - delta; in readInternal()
649 mCache->copy(delta, data, avail); in readInternal()
654 if (offset + size <= mCacheOffset + mCache->totalSize()) { in readInternal()
655 mCache->copy(delta, data, size); in readInternal()
669 && offset <= (off64_t)(mCacheOffset + mCache->totalSize())) { in seekInternal_l()
677 size_t totalSize = mCache->totalSize(); in seekInternal_l()
678 CHECK_EQ(mCache->releaseFromStart(totalSize), totalSize); in seekInternal_l()