Home
last modified time | relevance | path

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

/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 BlobCache::InsertResult BlobCache::set(const void* key, size_t keySize, const void* value, in set()
139 size_t BlobCache::get(const void* key, size_t keySize, void* value, size_t valueSize) { in get()
171 size_t BlobCache::getFlattenedSize() const { in getFlattenedSize()
182 int BlobCache::flatten(void* buffer, size_t size) const { in flatten()
232 int BlobCache::unflatten(void const* buffer, size_t size) { in unflatten()
287 long int BlobCache::blob_random() { in blob_random()
295 void BlobCache::clean() { in clean()
306 bool BlobCache::isCleanable() const { in isCleanable()
310 BlobCache::Blob::Blob(const void* data, size_t size, bool copyData) in Blob()
[all …]
DBlobCache_test.cpp43 virtual void SetUp() { mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE)); } in SetUp()
47 std::unique_ptr<BlobCache> mBC;
52 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "efgh", 4)); in TEST_F()
62 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("ab", 2, "cd", 2)); in TEST_F()
63 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("ef", 2, "gh", 2)); in TEST_F()
74 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "efgh", 4)); in TEST_F()
86 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "efgh", 4)); in TEST_F()
94 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "efgh", 4)); in TEST_F()
100 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "efgh", 4)); in TEST_F()
101 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "ijkl", 4)); in TEST_F()
[all …]
DBlobCache.h34 class BlobCache {
40 BlobCache(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize);
132 BlobCache(const BlobCache&);
133 void operator=(const BlobCache&);
Degl_cache.cpp125 BlobCache* bc = getBlobCacheLocked(); in setBlob()
153 BlobCache* bc = getBlobCacheLocked(); in getBlob()
164 BlobCache* egl_cache_t::getBlobCacheLocked() { in getBlobCacheLocked()
DFileBlobCache.h25 class FileBlobCache : public BlobCache {
Degl_cache.h80 BlobCache* getBlobCacheLocked();
DFileBlobCache.cpp52 : BlobCache(maxKeySize, maxValueSize, maxTotalSize) in FileBlobCache()
/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.cpp97 BlobCache* ShaderCache::getBlobCacheLocked() { in getBlobCacheLocked()
116 BlobCache* bc = getBlobCacheLocked(); in load()
146 void set(BlobCache* cache, const void* key, size_t keySize, const void* value, size_t valueSize) { in set()
148 case BlobCache::InsertResult::kInserted: in set()
151 case BlobCache::InsertResult::kDidClean: { in set()
156 case BlobCache::InsertResult::kNotEnoughSpace: { in set()
160 case BlobCache::InsertResult::kInvalidValueSize: in set()
161 case BlobCache::InsertResult::kInvalidKeySize: { in set()
165 case BlobCache::InsertResult::kKeyTooBig: in set()
166 case BlobCache::InsertResult::kValueTooBig: in set()
[all …]
DShaderCache.h28 class BlobCache; variable
99 BlobCache* getBlobCacheLocked();
/frameworks/native/opengl/libs/
DAndroid.bp131 "EGL/BlobCache.cpp",
186 "EGL/BlobCache.cpp",