Home
last modified time | relevance | path

Searched refs:kDefaultCacheSize (Results 1 – 7 of 7) sorted by relevance

/external/cronet/net/disk_cache/
Dcache_util.cc100 using disk_cache::kDefaultCacheSize; in PreferredCacheSizeInternal()
103 if (available < kDefaultCacheSize * 10 / 8) in PreferredCacheSizeInternal()
107 if (available < kDefaultCacheSize * 10) in PreferredCacheSizeInternal()
108 return kDefaultCacheSize; in PreferredCacheSizeInternal()
112 if (available < static_cast<int64_t>(kDefaultCacheSize) * 25) in PreferredCacheSizeInternal()
117 if (available < static_cast<int64_t>(kDefaultCacheSize) * 250) in PreferredCacheSizeInternal()
118 return kDefaultCacheSize * 5 / 2; in PreferredCacheSizeInternal()
128 const int kDefaultCacheSize = 80 * 1024 * 1024; variable
193 (base::ClampedNumeric<int64_t>(disk_cache::kDefaultCacheSize) * in PreferredCacheSize()
Dcache_util.h61 NET_EXPORT_PRIVATE extern const int kDefaultCacheSize;
Dbackend_unittest.cc3777 using disk_cache::kDefaultCacheSize; in TEST_F()
3778 int64_t large_size = kDefaultCacheSize; in TEST_F()
3781 EXPECT_EQ((kDefaultCacheSize - 1) * 8 / 10, in TEST_F()
3783 EXPECT_EQ(kDefaultCacheSize * 8 / 10, in TEST_F()
3785 EXPECT_EQ(kDefaultCacheSize - 1, in TEST_F()
3789 EXPECT_EQ(kDefaultCacheSize, in TEST_F()
3791 EXPECT_EQ(kDefaultCacheSize, in TEST_F()
3795 EXPECT_EQ(kDefaultCacheSize, disk_cache::PreferredCacheSize(large_size * 10)); in TEST_F()
3796 EXPECT_EQ((kDefaultCacheSize * 25 - 1) / 10, in TEST_F()
3800 EXPECT_EQ(kDefaultCacheSize * 25 / 10, in TEST_F()
[all …]
/external/skia/src/core/
DSkImageFilterCache.cpp23 enum { kDefaultCacheSize = 2 * 1024 * 1024 }; enumerator
25 enum { kDefaultCacheSize = 128 * 1024 * 1024 }; enumerator
162 once([]{ cache = SkImageFilterCache::Create(kDefaultCacheSize); }); in Get()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DInputLayoutCache.h112 static constexpr size_t kDefaultCacheSize = 1024;
DInputLayoutCache.cpp103 InputLayoutCache::InputLayoutCache() : mLayoutCache(kDefaultCacheSize * 2) {} in InputLayoutCache()
/external/cronet/net/disk_cache/blockfile/
Dbackend_impl.cc1449 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
2039 (max_size_ < std::numeric_limits<int32_t>::max() - kDefaultCacheSize && in CheckIndex()
2040 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()