Home
last modified time | relevance | path

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

/external/chromium_org/net/disk_cache/
Dcache_util.cc52 using disk_cache::kDefaultCacheSize; in PreferredCacheSizeInternal()
55 if (available < kDefaultCacheSize * 10 / 8) in PreferredCacheSizeInternal()
59 if (available < kDefaultCacheSize * 10) in PreferredCacheSizeInternal()
60 return kDefaultCacheSize; in PreferredCacheSizeInternal()
64 if (available < static_cast<int64>(kDefaultCacheSize) * 25) in PreferredCacheSizeInternal()
69 if (available < static_cast<int64>(kDefaultCacheSize) * 250) in PreferredCacheSizeInternal()
70 return kDefaultCacheSize * 5 / 2; in PreferredCacheSizeInternal()
80 const int kDefaultCacheSize = 80 * 1024 * 1024; variable
145 return kDefaultCacheSize; in PreferredCacheSize()
151 DCHECK(kDefaultCacheSize * 4 < kint32max); in PreferredCacheSize()
[all …]
Dcache_util.h44 NET_EXPORT_PRIVATE extern const int kDefaultCacheSize;
Dbackend_unittest.cc2908 using disk_cache::kDefaultCacheSize; in TEST_F()
2909 int64 large_size = kDefaultCacheSize; in TEST_F()
2912 EXPECT_EQ((kDefaultCacheSize - 1) * 8 / 10, in TEST_F()
2914 EXPECT_EQ(kDefaultCacheSize * 8 / 10, in TEST_F()
2916 EXPECT_EQ(kDefaultCacheSize - 1, in TEST_F()
2920 EXPECT_EQ(kDefaultCacheSize, in TEST_F()
2922 EXPECT_EQ(kDefaultCacheSize, in TEST_F()
2926 EXPECT_EQ(kDefaultCacheSize, in TEST_F()
2928 EXPECT_EQ((kDefaultCacheSize * 25 - 1) / 10, in TEST_F()
2932 EXPECT_EQ(kDefaultCacheSize * 25 / 10, in TEST_F()
[all …]
Dbackend_impl.cc1304 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
1992 (max_size_ < kint32max - kDefaultCacheSize && in CheckIndex()
1993 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()
/external/chromium/net/disk_cache/
Dmem_backend_impl.cc17 const int kDefaultCacheSize = 10 * 1024 * 1024; variable
63 max_size_ = kDefaultCacheSize; in Init()
70 if (total_memory > kDefaultCacheSize * 5) in Init()
71 max_size_ = kDefaultCacheSize * 5; in Init()
75 max_size_ = kDefaultCacheSize*3; in Init()
Dbackend_impl.cc48 const int kDefaultCacheSize = 80 * 1024 * 1024; variable
312 if (available < kDefaultCacheSize * 10 / 8) in PreferedCacheSize()
316 if (available < kDefaultCacheSize * 10) in PreferedCacheSize()
317 return kDefaultCacheSize; in PreferedCacheSize()
321 if (available < static_cast<int64>(kDefaultCacheSize) * 25) in PreferedCacheSize()
326 if (available < static_cast<int64>(kDefaultCacheSize) * 250) in PreferedCacheSize()
327 return kDefaultCacheSize * 5 / 2; in PreferedCacheSize()
1428 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
1439 if (max_size_ > kDefaultCacheSize * 4) in AdjustMaxCacheSize()
1440 max_size_ = kDefaultCacheSize * 4; in AdjustMaxCacheSize()
[all …]
/external/chromium_org/net/disk_cache/v3/
Dbackend_worker.cc47 const int kDefaultCacheSize = 80 * 1024 * 1024; variable
427 (max_size_ < kint32max - kDefaultCacheSize && in CheckIndex()
428 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()
Dbackend_impl_v3.cc47 const int kDefaultCacheSize = 80 * 1024 * 1024; variable
813 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
824 if (max_size_ > kDefaultCacheSize * 4) in AdjustMaxCacheSize()
825 max_size_ = kDefaultCacheSize * 4; in AdjustMaxCacheSize()
1544 (max_size_ < kint32max - kDefaultCacheSize && in CheckIndex()
1545 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()