Home
last modified time | relevance | path

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

/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache.cpp63 mMaxTotalSize(maxTotalSize), in BlobCache()
90 if (mMaxTotalSize < keySize + valueSize) { in set()
93 keySize + valueSize, mMaxTotalSize); in set()
116 if (mMaxTotalSize < newTotalSize) { in set()
132 keySize + valueSize, mMaxTotalSize); in set()
145 if (mMaxTotalSize < newTotalSize) { in set()
161 keySize + valueSize, mMaxTotalSize); in set()
367 return mMaxTotalSize / 2; in findDownTo()
369 return mMaxTotalSize - (newEntrySize - oldEntrySize()); in findDownTo()
371 return std::min(mMaxTotalSize - (newEntrySize - oldEntrySize()), mMaxTotalSize / 2); in findDownTo()
[all …]
DBlobCache.h323 const size_t mMaxTotalSize; variable
/frameworks/native/opengl/libs/EGL/
DBlobCache.cpp40 mMaxTotalSize(maxTotalSize), in BlobCache()
67 if (mMaxTotalSize < keySize + valueSize) { in set()
69 "large: %zu (limit: %zu)", keySize + valueSize, mMaxTotalSize); in set()
91 if (mMaxTotalSize < newTotalSize) { in set()
100 keySize + valueSize, mMaxTotalSize); in set()
113 if (mMaxTotalSize < newTotalSize) { in set()
121 keySize + valueSize, mMaxTotalSize); in set()
295 while (mTotalSize > mMaxTotalSize / 2) { in clean()
304 return mTotalSize > mMaxTotalSize / 2; in isCleanable()
DBlobCache.h110 const size_t mMaxTotalSize;
DFileBlobCache.cpp75 if (fileSize > mMaxTotalSize * 2) { in FileBlobCache()
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.cpp47 mMaxTotalSize(0), in NNCache()
65 mMaxTotalSize = maxTotalSize; in initialize()
141 mBlobCache.reset(new BlobCache(mMaxKeySize, mMaxValueSize, mMaxTotalSize, mPolicy)); in getBlobCacheLocked()
249 if (fileSize > mMaxTotalSize * 2) { in loadBlobCacheLocked()
DnnCache.h120 size_t mMaxTotalSize; variable