Home
last modified time | relevance | path

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

/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache.cpp114 size_t newEntrySize = keySize + valueSize; in set() local
115 size_t newTotalSize = mTotalSize + newEntrySize; in set()
119 if (!clean(newEntrySize, NoEntry)) { in set()
359 size_t BlobCache::findDownTo(size_t newEntrySize, size_t onBehalfOf) { in findDownTo() argument
369 return mMaxTotalSize - (newEntrySize - oldEntrySize()); in findDownTo()
371 return std::min(mMaxTotalSize - (newEntrySize - oldEntrySize()), mMaxTotalSize / 2); in findDownTo()
391 bool BlobCache::clean(size_t newEntrySize, size_t onBehalfOf) { in clean() argument
394 const size_t downTo = findDownTo(newEntrySize, onBehalfOf); in clean()
DBlobCache.h188 bool clean(size_t newEntrySize, size_t onBehalfOf);
202 size_t findDownTo(size_t newEntrySize, size_t onBehalfOf);