Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache_test.cpp34 class BlobCacheTest : public ::testing::TestWithParam<BlobCache::Policy> {
45 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam())); in SetUp()
50 std::unique_ptr<BlobCache> mBC;
56 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::HALVE),
57 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::HALVE),
59 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::FIT),
60 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::FIT),
62 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::FIT_HALVE),
63 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::FIT_HALVE)));
309 if (GetParam().second == BlobCache::Capacity::FIT) in TEST_P()
[all …]
DBlobCache.cpp63 BlobCache::BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize, Policy policy) in BlobCache() function in android::BlobCache
82 void BlobCache::set(const void* key, size_t keySize, const void* value, size_t valueSize) { in set()
179 size_t BlobCache::get(const void* key, size_t keySize, void* value, size_t valueSize) { in get()
186 size_t BlobCache::get(const void* key, size_t keySize, void** value, in get()
224 size_t BlobCache::getFlattenedSize() const { in getFlattenedSize()
234 int BlobCache::flatten(void* buffer, size_t size) const { in flatten()
284 int BlobCache::unflatten(void const* buffer, size_t size) { in unflatten()
339 long int BlobCache::blob_random() { in blob_random()
347 size_t BlobCache::findVictim() { in findVictim()
363 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.bp31 "BlobCache.cpp",
39 srcs: ["BlobCache.cpp"],
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DCacheManager.java23 import com.android.gallery3d.common.BlobCache;
32 private static HashMap<String, BlobCache> sCacheMap =
33 new HashMap<String, BlobCache>();
39 public static BlobCache getCache(Context context, String filename, in getCache()
46 BlobCache cache = sCacheMap.get(filename); in getCache()
51 cache = new BlobCache(path, maxEntries, maxBytes, false, in getCache()
78 BlobCache.deleteFiles(prefix + "imgcache"); in removeOldFilesIfNecessary()
79 BlobCache.deleteFiles(prefix + "rev_geocoding"); in removeOldFilesIfNecessary()
80 BlobCache.deleteFiles(prefix + "bookmark"); in removeOldFilesIfNecessary()
DReverseGeocoder.java27 import com.android.gallery3d.common.BlobCache;
74 private BlobCache mGeoCache;
/packages/modules/NeuralNetworks/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()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DImageCacheService.java21 import com.android.gallery3d.common.BlobCache;
22 import com.android.gallery3d.common.BlobCache.LookupRequest;
40 private BlobCache mCache;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMoviePlayer.java44 import com.android.gallery3d.common.BlobCache;
500 BlobCache cache = CacheManager.getCache(mContext, in setBookmark()
518 BlobCache cache = CacheManager.getCache(mContext, in getBookmark()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java80 public class BlobCache implements Closeable { class
133 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) in BlobCache() method in BlobCache
138 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset, in BlobCache() method in BlobCache
/packages/apps/Gallery2/
Dproguard.flags76 -keep class com.android.gallery3d.common.BlobCache { *; }