Lines Matching refs:BlobCache
63 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()
382 bool BlobCache::isFit(Capacity capacity) { in isFit()
395 bool BlobCache::clean(size_t newEntrySize, size_t onBehalfOf) { in clean()
412 bool BlobCache::isCleanable() const { in isCleanable()
425 BlobCache::Blob::Blob(const void* data, size_t size, bool copyData) in Blob()
432 BlobCache::Blob::~Blob() { in ~Blob()
438 bool BlobCache::Blob::operator<(const Blob& rhs) const { in operator <()
446 const void* BlobCache::Blob::getData() const { in getData()
450 size_t BlobCache::Blob::getSize() const { in getSize()
454 BlobCache::CacheEntry::CacheEntry() : mRecency(0) {} in CacheEntry()
456 BlobCache::CacheEntry::CacheEntry(const std::shared_ptr<Blob>& key, in CacheEntry()
460 BlobCache::CacheEntry::CacheEntry(const CacheEntry& ce) in CacheEntry()
463 bool BlobCache::CacheEntry::operator<(const CacheEntry& rhs) const { in operator <()
467 const BlobCache::CacheEntry& BlobCache::CacheEntry::operator=(const CacheEntry& rhs) { in operator =()
474 std::shared_ptr<BlobCache::Blob> BlobCache::CacheEntry::getKey() const { in getKey()
478 std::shared_ptr<BlobCache::Blob> BlobCache::CacheEntry::getValue() const { in getValue()
482 void BlobCache::CacheEntry::setValue(const std::shared_ptr<Blob>& value) { in setValue()
486 uint32_t BlobCache::CacheEntry::getRecency() const { in getRecency()
490 void BlobCache::CacheEntry::setRecency(uint32_t recency) { in setRecency()