/frameworks/ml/nn/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 35 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 …]
|
D | BlobCache.cpp | 60 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 …]
|
D | BlobCache.h | 36 class BlobCache { 71 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize, 162 BlobCache(const BlobCache&); 163 void operator=(const BlobCache&);
|
D | Android.bp | 24 "BlobCache.cpp", 32 srcs: ["BlobCache.cpp"],
|
/frameworks/native/opengl/libs/EGL/ |
D | BlobCache.cpp | 39 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 …]
|
D | BlobCache.h | 34 class BlobCache { 40 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize); 114 BlobCache(const BlobCache&); 115 void operator=(const BlobCache&);
|
D | egl_cache.cpp | 135 BlobCache* bc = getBlobCacheLocked(); in setBlob() 163 BlobCache* bc = getBlobCacheLocked(); in getBlob() 174 BlobCache* egl_cache_t::getBlobCacheLocked() { in getBlobCacheLocked()
|
D | FileBlobCache.h | 25 class FileBlobCache : public BlobCache {
|
D | BlobCache_test.cpp | 45 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;
|
D | egl_cache.h | 83 BlobCache* getBlobCacheLocked();
|
D | FileBlobCache.cpp | 52 : BlobCache(maxKeySize, maxValueSize, maxTotalSize) in FileBlobCache()
|
/frameworks/ml/nn/driver/cache/nnCache/ |
D | nnCache.h | 33 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;
|
D | nnCache.cpp | 85 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/ |
D | ShaderCache.h | 28 class BlobCache; variable 99 BlobCache* getBlobCacheLocked();
|
D | ShaderCache.cpp | 97 BlobCache* ShaderCache::getBlobCacheLocked() { in getBlobCacheLocked() 116 BlobCache* bc = getBlobCacheLocked(); in load() 171 BlobCache* bc = getBlobCacheLocked(); in store()
|
/frameworks/native/opengl/libs/ |
D | Android.bp | 127 "EGL/BlobCache.cpp", 174 "EGL/BlobCache.cpp",
|