Home
last modified time | relevance | path

Searched refs:kCacheSize (Results 1 – 5 of 5) sorted by relevance

/system/update_engine/payload_consumer/
Dcached_file_descriptor_unittest.cc38 const size_t kCacheSize = 100; variable
46 cfd_.reset(new CachedFileDescriptor(fd_, kCacheSize)); in Open()
161 std::fill_n(&blob_in[seek], kCacheSize, value_); in TEST_F()
164 Write(&blob_in[seek], kCacheSize); in TEST_F()
173 size_t less_than_cache_size = kCacheSize - 1; in TEST_F()
189 size_t less_than_cache_size = kCacheSize - 3; in TEST_F()
Dpartition_writer.cc49 constexpr uint64_t kCacheSize = 1024 * 1024; // 1MB variable
99 fd = FileDescriptorPtr(new CachedFileDescriptor(fd, kCacheSize)); in OpenFile()
/system/unwinding/libunwindstack/
DMemoryCache.h54 constexpr static size_t kCacheSize = 1 << kCacheBits; variable
56 using CacheDataType = std::unordered_map<uint64_t, uint8_t[kCacheSize]>;
DMemory.cpp482 if (!impl_->ReadFully(addr_page << kCacheBits, cache_dst, kCacheSize)) { in InternalCachedRead()
505 if (!impl_->ReadFully(addr_page << kCacheBits, cache_dst, kCacheSize)) { in InternalCachedRead()
/system/core/libutils/
DLruCache_test.cpp216 const size_t kCacheSize = 512; in TEST_F() local
240 size_t expectedHitCount = kNumIters * kCacheSize / kNumKeys; in TEST_F()
243 EXPECT_EQ(kCacheSize, cache.size()); in TEST_F()