Searched refs:kDefaultCacheSize (Results 1 – 8 of 8) sorted by relevance
52 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; variable145 return kDefaultCacheSize; in PreferredCacheSize()151 DCHECK(kDefaultCacheSize * 4 < kint32max); in PreferredCacheSize()[all …]
44 NET_EXPORT_PRIVATE extern const int kDefaultCacheSize;
2908 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 …]
1304 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()1992 (max_size_ < kint32max - kDefaultCacheSize && in CheckIndex()1993 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()
17 const int kDefaultCacheSize = 10 * 1024 * 1024; variable63 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()
48 const int kDefaultCacheSize = 80 * 1024 * 1024; variable312 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 …]
47 const int kDefaultCacheSize = 80 * 1024 * 1024; variable427 (max_size_ < kint32max - kDefaultCacheSize && in CheckIndex()428 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()
47 const int kDefaultCacheSize = 80 * 1024 * 1024; variable813 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()