Home
last modified time | relevance | path

Searched refs:mCurrentCacheSize (Results 1 – 1 of 1) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCache.java74 private long mCurrentCacheSize = 0; field in FileDownloadCache
136 mCurrentCacheSize += cacheEntry.mFile.length(); in FileDownloadCache()
139 if (mCurrentCacheSize > getMaxFileCacheSize()) { in FileDownloadCache()
463 mCurrentCacheSize += length; in incrementAndAdjustCache()
465 while (mCurrentCacheSize > getMaxFileCacheSize() && keyIterator.hasNext()) { in incrementAndAdjustCache()
471 mCurrentCacheSize -= file.length(); in incrementAndAdjustCache()
485 if (mCurrentCacheSize < 0) { in incrementAndAdjustCache()
489 } else if (mCurrentCacheSize > getMaxFileCacheSize()) { in incrementAndAdjustCache()