Searched defs:newEntrySize (Results 1 - 1 of 1) sorted by relevance

/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.cpp114 size_t newEntrySize = keySize + valueSize; local
115 size_t newTotalSize = mTotalSize + newEntrySize;
119 if (!clean(newEntrySize, NoEntry)) {
361 size_t BlobCache::findDownTo(size_t newEntrySize, size_t onBehalfOf) {
372 return mMaxTotalSize - (newEntrySize - oldEntrySize());
374 return std::min(mMaxTotalSize - (newEntrySize - oldEntrySize()), mMaxTotalSize / 2);
394 bool BlobCache::clean(size_t newEntrySize, size_t onBehalfOf) {
397 const size_t downTo = findDownTo(newEntrySize, onBehalfOf);

Completed in 8 milliseconds