Home
last modified time | relevance | path

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

/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache_test.cpp35 class BlobCacheTest : public ::testing::TestWithParam<BlobCache::Policy> {
46 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam())); in SetUp()
51 std::unique_ptr<BlobCache> mBC;
57 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::HALVE),
58 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::HALVE),
60 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::FIT),
61 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::FIT),
63 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::FIT_HALVE),
64 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::FIT_HALVE)));
310 if (GetParam().second == BlobCache::Capacity::FIT) in TEST_P()
[all …]
DBlobCache.cpp60 BlobCache::BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize, Policy policy) in BlobCache() function in android::BlobCache
79 void BlobCache::set(const void* key, size_t keySize, const void* value, size_t valueSize) { in set()
176 size_t BlobCache::get(const void* key, size_t keySize, void* value, size_t valueSize) { in get()
183 size_t BlobCache::get(const void* key, size_t keySize, void** value, in get()
220 size_t BlobCache::getFlattenedSize() const { in getFlattenedSize()
230 int BlobCache::flatten(void* buffer, size_t size) const { in flatten()
280 int BlobCache::unflatten(void const* buffer, size_t size) { in unflatten()
335 long int BlobCache::blob_random() { in blob_random()
343 size_t BlobCache::findVictim() { in findVictim()
359 size_t BlobCache::findDownTo(size_t newEntrySize, size_t onBehalfOf) { in findDownTo()
[all …]
DBlobCache.h36 class BlobCache {
71 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize,
162 BlobCache(const BlobCache&);
163 void operator=(const BlobCache&);
DAndroid.bp24 "BlobCache.cpp",
32 srcs: ["BlobCache.cpp"],
/frameworks/native/opengl/libs/EGL/
DBlobCache.cpp39 BlobCache::BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize): in BlobCache() function in android::BlobCache
55 void BlobCache::set(const void* key, size_t keySize, const void* value, in set()
134 size_t BlobCache::get(const void* key, size_t keySize, void* value, in get()
167 size_t BlobCache::getFlattenedSize() const { in getFlattenedSize()
177 int BlobCache::flatten(void* buffer, size_t size) const { in flatten()
227 int BlobCache::unflatten(void const* buffer, size_t size) { in unflatten()
284 long int BlobCache::blob_random() { in blob_random()
292 void BlobCache::clean() { in clean()
303 bool BlobCache::isCleanable() const { in isCleanable()
307 BlobCache::Blob::Blob(const void* data, size_t size, bool copyData) : in Blob()
[all …]
DBlobCache.h34 class BlobCache {
40 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize);
114 BlobCache(const BlobCache&);
115 void operator=(const BlobCache&);
Degl_cache.cpp135 BlobCache* bc = getBlobCacheLocked(); in setBlob()
163 BlobCache* bc = getBlobCacheLocked(); in getBlob()
174 BlobCache* egl_cache_t::getBlobCacheLocked() { in getBlobCacheLocked()
DFileBlobCache.h25 class FileBlobCache : public BlobCache {
DBlobCache_test.cpp45 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE)); in SetUp()
52 std::unique_ptr<BlobCache> mBC;
274 mBC2.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE)); in SetUp()
290 sp<BlobCache> mBC2;
Degl_cache.h83 BlobCache* getBlobCacheLocked();
DFileBlobCache.cpp52 : BlobCache(maxKeySize, maxValueSize, maxTotalSize) in FileBlobCache()
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.h33 typedef BlobCache::Select Select;
34 typedef BlobCache::Capacity Capacity;
35 typedef BlobCache::Policy Policy;
37 static Policy defaultPolicy() { return BlobCache::defaultPolicy(); } in defaultPolicy()
94 BlobCache* getBlobCacheLocked();
128 std::unique_ptr<BlobCache> mBlobCache;
DnnCache.cpp85 BlobCache* bc = getBlobCacheLocked(); in setBlob()
112 BlobCache* bc = getBlobCacheLocked(); in getBlob()
128 BlobCache* bc = getBlobCacheLocked(); in getBlob()
139 BlobCache* NNCache::getBlobCacheLocked() { in getBlobCacheLocked()
141 mBlobCache.reset(new BlobCache(mMaxKeySize, mMaxValueSize, mMaxTotalSize, mPolicy)); in getBlobCacheLocked()
/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.h28 class BlobCache; variable
99 BlobCache* getBlobCacheLocked();
DShaderCache.cpp97 BlobCache* ShaderCache::getBlobCacheLocked() { in getBlobCacheLocked()
116 BlobCache* bc = getBlobCacheLocked(); in load()
171 BlobCache* bc = getBlobCacheLocked(); in store()
/frameworks/native/opengl/libs/
DAndroid.bp127 "EGL/BlobCache.cpp",
174 "EGL/BlobCache.cpp",