Searched refs:BlobCache (Results 1 - 10 of 10) sorted by relevance

/frameworks/ml/nn/driver/cache/nnCache/
H A DnnCache.h20 #include "BlobCache.h"
34 typedef BlobCache::Select Select;
35 typedef BlobCache::Capacity Capacity;
36 typedef BlobCache::Policy Policy;
38 static Policy defaultPolicy() { return BlobCache::defaultPolicy(); }
93 // getBlobCacheLocked returns the BlobCache object being used to store the
94 // key/value blob pairs. If the BlobCache object has not yet been created,
97 BlobCache* getBlobCacheLocked();
131 std::unique_ptr<BlobCache> mBlobCache;
H A DnnCache.cpp85 BlobCache* bc = getBlobCacheLocked();
113 BlobCache* bc = getBlobCacheLocked();
129 BlobCache* bc = getBlobCacheLocked();
140 BlobCache* NNCache::getBlobCacheLocked() {
142 mBlobCache.reset(new BlobCache(mMaxKeySize, mMaxValueSize, mMaxTotalSize, mPolicy));
/frameworks/native/opengl/libs/EGL/
H A DBlobCache.cpp19 #include "BlobCache.h"
29 // BlobCache::Header::mMagicNumber value
32 // BlobCache::Header::mBlobCacheVersion value
35 // BlobCache::Header::mDeviceVersion value
38 BlobCache::BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize): function in class:android::BlobCache
54 void BlobCache::set(const void* key, size_t keySize, const void* value,
133 size_t BlobCache::get(const void* key, size_t keySize, void* value,
166 size_t BlobCache::getFlattenedSize() const {
176 int BlobCache
[all...]
H A DBlobCache.h27 // A BlobCache is an in-memory cache for binary key/value pairs. A BlobCache
34 class BlobCache { class in namespace:android
40 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize);
48 // values specified to the BlobCache constructor), then the key/value pair
85 // loaded into a BlobCache object using the unflatten method. The contents
86 // of the BlobCache object will not be modified.
94 // the BlobCache will be evicted from the cache. If an error occurs while
95 // unflattening the serialized cache contents then the BlobCache will be
102 BlobCache(cons
[all...]
H A Degl_cache.h23 #include "BlobCache.h"
79 // getBlobCacheLocked returns the BlobCache object being used to store the
80 // key/value blob pairs. If the BlobCache object has not yet been created,
83 BlobCache* getBlobCacheLocked();
104 std::unique_ptr<BlobCache> mBlobCache;
H A Degl_cache.cpp141 BlobCache* bc = getBlobCacheLocked();
169 BlobCache* bc = getBlobCacheLocked();
180 BlobCache* egl_cache_t::getBlobCacheLocked() {
182 mBlobCache.reset(new BlobCache(maxKeySize, maxValueSize, maxTotalSize));
H A DBlobCache_test.cpp24 #include "BlobCache.h"
45 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE));
52 std::unique_ptr<BlobCache> mBC;
274 mBC2.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE));
290 sp<BlobCache> mBC2;
/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.cpp19 #include "BlobCache.h"
51 // BlobCache::Header::mMagicNumber value
54 // BlobCache::Header::mBlobCacheVersion value
57 // BlobCache::Header::mDeviceVersion value
60 BlobCache::BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize, Policy policy): function in class:android::BlobCache
79 void BlobCache::set(const void* key, size_t keySize, const void* value,
175 size_t BlobCache::get(const void* key, size_t keySize, void* value,
184 size_t BlobCache::get(const void* key, size_t keySize, void** value,
221 size_t BlobCache
[all...]
H A DBlobCache_test.cpp28 #include "BlobCache.h"
34 class BlobCacheTest : public ::testing::TestWithParam<BlobCache::Policy> {
49 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam()));
56 std::unique_ptr<BlobCache> mBC;
60 ::testing::Values(BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::HALVE),
61 BlobCache::Policy(BlobCache::Select::LRU, BlobCache
[all...]
H A DBlobCache.h29 // A BlobCache is an in-memory cache for binary key/value pairs. A BlobCache
36 class BlobCache { class in namespace:android
71 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize,
80 // values specified to the BlobCache constructor), then the key/value pair
146 // loaded into a BlobCache object using the unflatten method. The contents
147 // of the BlobCache object will not be modified.
155 // the BlobCache will be evicted from the cache. If an error occurs while
156 // unflattening the serialized cache contents then the BlobCache will be
163 BlobCache(cons
[all...]

Completed in 367 milliseconds