Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp116 size_t newEntrySize = keySize + valueSize; in set() local
117 size_t newTotalSize = mTotalSize + newEntrySize; in set()
121 if (!clean(newEntrySize, NoEntry)) { in set()
362 size_t BlobCache::findDownTo(size_t newEntrySize, size_t onBehalfOf) { in findDownTo() argument
372 return mMaxTotalSize - (newEntrySize - oldEntrySize()); in findDownTo()
374 return std::min(mMaxTotalSize - (newEntrySize - oldEntrySize()), mMaxTotalSize / 2); in findDownTo()
394 bool BlobCache::clean(size_t newEntrySize, size_t onBehalfOf) { in clean() argument
397 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);