Home
last modified time | relevance | path

Searched refs:max_size_ (Results 1 – 25 of 40) sorted by relevance

12

/external/regex-re2/util/
Dsparse_set.h57 … : size_(0), max_size_(0), sparse_to_dense_(NULL), dense_(NULL), valgrind_(RunningOnValgrind()) {} in SparseSet()
60 max_size_ = max_size; in SparseSet()
94 if (new_max_size > max_size_) { in resize()
97 memmove(a, sparse_to_dense_, max_size_*sizeof a[0]); in resize()
99 for (int i = max_size_; i < new_max_size; i++) in resize()
117 max_size_ = new_max_size; in resize()
122 int max_size() const { return max_size_; } in max_size()
130 DCHECK_LT(i, max_size_); in contains()
131 if (static_cast<uint>(i) >= max_size_) { in contains()
148 if (static_cast<uint>(i) >= max_size_) { in insert_new()
[all …]
Dsparse_array.h142 return max_size_; in max_size()
224 int max_size_; variable
234 : size_(0), max_size_(0), sparse_to_dense_(NULL), dense_(), valgrind_(RunningOnValgrind()) {} in SparseArray()
271 if (new_max_size > max_size_) { in resize()
274 memmove(a, sparse_to_dense_, max_size_*sizeof a[0]); in resize()
277 for (int i = max_size_; i < new_max_size; i++) in resize()
286 max_size_ = new_max_size; in resize()
287 if (size_ > max_size_) in resize()
288 size_ = max_size_; in resize()
296 DCHECK_LT(i, max_size_); in has_index()
[all …]
/external/chromium_org/third_party/re2/util/
Dsparse_set.h57 … : size_(0), max_size_(0), sparse_to_dense_(NULL), dense_(NULL), valgrind_(RunningOnValgrind()) {} in SparseSet()
60 max_size_ = max_size; in SparseSet()
94 if (new_max_size > max_size_) { in resize()
97 memmove(a, sparse_to_dense_, max_size_*sizeof a[0]); in resize()
99 for (int i = max_size_; i < new_max_size; i++) in resize()
117 max_size_ = new_max_size; in resize()
122 int max_size() const { return max_size_; } in max_size()
130 DCHECK_LT(i, max_size_); in contains()
131 if (static_cast<uint>(i) >= max_size_) { in contains()
148 if (static_cast<uint>(i) >= max_size_) { in insert_new()
[all …]
Dsparse_array.h142 return max_size_; in max_size()
224 int max_size_; variable
234 : size_(0), max_size_(0), sparse_to_dense_(NULL), dense_(), valgrind_(RunningOnValgrind()) {} in SparseArray()
271 if (new_max_size > max_size_) { in resize()
274 memmove(a, sparse_to_dense_, max_size_*sizeof a[0]); in resize()
277 for (int i = max_size_; i < new_max_size; i++) in resize()
286 max_size_ = new_max_size; in resize()
287 if (size_ > max_size_) in resize()
288 size_ = max_size_; in resize()
296 DCHECK_LT(i, max_size_); in has_index()
[all …]
/external/chromium/net/disk_cache/
Dmem_backend_impl.cc32 : max_size_(0), current_size_(0), net_log_(net_log) {} in MemBackendImpl()
57 if (max_size_) in Init()
63 max_size_ = kDefaultCacheSize; in Init()
71 max_size_ = kDefaultCacheSize * 5; in Init()
73 max_size_ = static_cast<int32>(total_memory); in Init()
75 max_size_ = kDefaultCacheSize*3; in Init()
81 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model); in SetMaxSize()
89 max_size_ = max_bytes; in SetMaxSize()
119 return max_size_ / 8; in MaxFileSize()
298 int target_size = empty ? 0 : LowWaterAdjust(max_size_); in TrimCache()
[all …]
Dbackend_impl.cc345 max_size_(0), in BackendImpl()
371 max_size_(0), in BackendImpl()
803 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model); in SetMaxSize()
816 max_size_ = max_bytes; in SetMaxSize()
961 if (data_->header.num_bytes > max_size_ && !read_only_) in OnEntryDestroyEnd()
982 return max_size_ / 8; in MaxFileSize()
1340 item.second = base::StringPrintf("%d", max_size_); in GetStats()
1358 header.table_len = DesiredIndexTableLen(max_size_); in CreateBackingStore()
1415 if (max_size_) in AdjustMaxCacheSize()
1428 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
[all …]
/external/chromium_org/net/disk_cache/
Dmem_backend_impl.cc32 : max_size_(0), current_size_(0), net_log_(net_log) {} in MemBackendImpl()
56 if (max_size_) in Init()
62 max_size_ = kDefaultInMemoryCacheSize; in Init()
70 max_size_ = kDefaultInMemoryCacheSize * 5; in Init()
72 max_size_ = static_cast<int32>(total_memory); in Init()
78 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model); in SetMaxSize()
86 max_size_ = max_bytes; in SetMaxSize()
116 return max_size_ / 8; in MaxFileSize()
312 int target_size = empty ? 0 : LowWaterAdjust(max_size_); in TrimCache()
328 if (current_size_ > max_size_) in AddStorageSize()
Dbackend_impl.cc117 max_size_(0), in BackendImpl()
143 max_size_(0), in BackendImpl()
614 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model); in SetMaxSize()
627 max_size_ = max_bytes; in SetMaxSize()
818 if (data_->header.num_bytes > max_size_ && !read_only_ && in OnEntryDestroyEnd()
840 return cache_type() == net::PNACL_CACHE ? max_size_ : max_size_ / 8; in MaxFileSize()
1211 item.second = base::StringPrintf("%d", max_size_); in GetStats()
1237 header.table_len = DesiredIndexTableLen(max_size_); in CreateBackingStore()
1295 if (max_size_) in AdjustMaxCacheSize()
1304 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
[all …]
Deviction.cc86 max_size_ = LowWaterAdjust(backend_->max_size_); in Init()
127 int target_size = empty ? 0 : max_size_; in TrimCache()
229 if (!FallingBehind(header_->num_bytes, max_size_) && in ShouldTrim()
344 int target_size = empty ? 0 : max_size_; in TrimCacheV2()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dthread_cache.cc121 max_size_ = 0; in Init()
123 if (max_size_ == 0) { in Init()
126 max_size_ = kMinThreadCacheSize; in Init()
286 max_size_ += kStealAmount; in IncreaseCacheLimitLocked()
301 next_memory_steal_->max_size_ <= kMinThreadCacheSize) { in IncreaseCacheLimitLocked()
304 next_memory_steal_->max_size_ -= kStealAmount; in IncreaseCacheLimitLocked()
305 max_size_ += kStealAmount; in IncreaseCacheLimitLocked()
466 unclaimed_cache_space_ += heap->max_size_; in DeleteCache()
486 h->max_size_ = static_cast<size_t>(h->max_size_ * ratio); in RecomputePerThreadCacheSize()
488 claimed += h->max_size_; in RecomputePerThreadCacheSize()
Dthread_cache.h312 size_t max_size_; // size_ > max_size_ --> Scavenge() variable
377 ssize_t size_headroom = max_size_ - size_ - 1; in Deallocate()
395 if (size_ >= max_size_) Scavenge(); in Deallocate()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dthread_cache.cc118 max_size_ = 0; in Init()
120 if (max_size_ == 0) { in Init()
123 max_size_ = kMinThreadCacheSize; in Init()
280 max_size_ += kStealAmount; in IncreaseCacheLimitLocked()
295 next_memory_steal_->max_size_ <= kMinThreadCacheSize) { in IncreaseCacheLimitLocked()
298 next_memory_steal_->max_size_ -= kStealAmount; in IncreaseCacheLimitLocked()
299 max_size_ += kStealAmount; in IncreaseCacheLimitLocked()
455 unclaimed_cache_space_ += heap->max_size_; in DeleteCache()
475 h->max_size_ = static_cast<size_t>(h->max_size_ * ratio); in RecomputePerThreadCacheSize()
477 claimed += h->max_size_; in RecomputePerThreadCacheSize()
Dthread_cache.h297 size_t max_size_; // size_ > max_size_ --> Scavenge() variable
350 ssize_t size_headroom = max_size_ - size_ - 1; in Deallocate()
368 if (size_ >= max_size_) Scavenge(); in Deallocate()
/external/chromium_org/cc/scheduler/
Drolling_time_delta_history.cc12 : max_size_(max_size) { in RollingTimeDeltaHistory()
19 if (max_size_ == 0) in InsertSample()
22 if (sample_set_.size() == max_size_) { in InsertSample()
/external/chromium_org/chrome/browser/net/
Devicted_domain_cookie_counter.cc71 max_size_(kMaxEvictedDomainCookies), in EvictedDomainCookieCounter()
82 max_size_(max_size), in EvictedDomainCookieCounter()
85 DCHECK_LT(purge_count, max_size_); in EvictedDomainCookieCounter()
129 if (evicted_cookies_.size() <= max_size_) in GarbageCollect()
134 size_t size_goal = max_size_ - purge_count_; in GarbageCollect()
/external/chromium_org/base/containers/
Dmru_cache.h69 explicit MRUCacheBase(size_type max_size) : max_size_(max_size) { in MRUCacheBase()
73 : max_size_(max_size), deletor_(deletor) { in MRUCacheBase()
82 size_type max_size() const { return max_size_; } in max_size()
97 } else if (max_size_ != NO_AUTO_EVICT) { in Put()
100 ShrinkToSize(max_size_ - 1); in Put()
203 size_type max_size_; variable
/external/chromium_org/chrome/browser/ui/panels/
Dpanel.cc564 int current_max_width = max_size_.width(); in LimitSizeToWorkArea()
567 int current_max_height = max_size_.height(); in LimitSizeToWorkArea()
640 if (min_size == min_size_ && max_size == max_size_) in SetSizeRange()
646 max_size_ = max_size; in SetSizeRange()
652 gfx::Size new_max_size = max_size_; in IncreaseMaxSize()
678 if (new_width > max_size_.width()) in ClampSize()
679 new_width = max_size_.width(); in ClampSize()
686 if (new_height > max_size_.height()) in ClampSize()
687 new_height = max_size_.height(); in ClampSize()
806 max_size_(max_size), in Panel()
[all …]
/external/chromium_org/net/disk_cache/simple/
Dsimple_index.cc145 max_size_(0), in SimpleIndex()
212 max_size_ = max_bytes; in SetMaxSize()
213 high_watermark_ = max_size_ - max_size_ / kEvictionMarginDivisor; in SetMaxSize()
214 low_watermark_ = max_size_ - 2 * (max_size_ / kEvictionMarginDivisor); in SetMaxSize()
316 max_size_ / kBytesInKb); in StartEvictionIfNeeded()
Dsimple_index.h90 int max_size() const { return max_size_; } in max_size()
164 uint64 max_size_; variable
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_quarantine.h50 max_size_ = size; in Init()
66 if (cache_.Size() > max_size_ && recycle_mutex_.TryLock()) in Drain()
73 uptr max_size_; variable
/external/chromium_org/net/disk_cache/v3/
Dbackend_impl_v3.cc88 max_size_(0), in BackendImpl()
114 max_size_(0), in BackendImpl()
170 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model); in SetMaxSize()
183 max_size_ = max_bytes; in SetMaxSize()
241 if (data_->header.num_bytes > max_size_ && !read_only_ && in OnEntryDestroyEnd()
259 return max_size_ / 8; in MaxFileSize()
770 item.second = base::StringPrintf("%d", max_size_); in GetStats()
804 if (max_size_) in AdjustMaxCacheSize()
813 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()
820 max_size_ = PreferedCacheSize(available); in AdjustMaxCacheSize()
[all …]
Deviction_v3.cc85 max_size_ = LowWaterAdjust(backend_->max_size_); in Init()
126 int target_size = empty ? 0 : max_size_; in TrimCache()
246 if (!FallingBehind(header_->num_bytes, max_size_) && in ShouldTrim()
327 int target_size = empty ? 0 : max_size_; in TrimCacheV2()
Dbackend_worker.cc113 max_size_(0), in BackendImpl()
319 header.table_len = DesiredIndexTableLen(max_size_); in CreateBackingStore()
427 (max_size_ < kint32max - kDefaultCacheSize && in CheckIndex()
428 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dmediarecorder.cc46 : max_size_(INT_MAX), in RtpDumpSink()
56 max_size_ = size; in SetMaxSize()
83 current_size + RtpDumpPacket::kHeaderLength + size <= max_size_) { in OnPacket()
/external/chromium_org/ui/views/controls/button/
Dlabel_button.h64 void set_max_size(const gfx::Size& max_size) { max_size_ = max_size; } in set_max_size()
140 gfx::Size max_size_; variable

12