Searched refs:capacity_ (Results 1 - 25 of 50) sorted by relevance

12

/external/chromium_org/third_party/webrtc/base/
H A Datomicops.h64 capacity_(0),
69 capacity_(capacity),
76 if (capacity_ == 0) {
84 data_[pushed_count_ % capacity_] = value;
96 if (capacity_ == 0) {
104 *value_out = data_[popped_count_ % capacity_];
122 capacity_ = new_capacity;
129 int IsFull() const { return pushed_count_ == popped_count_ + capacity_; }
137 size_t capacity() const { return capacity_; }
142 size_t capacity_; member in class:rtc::FixedSizeLockFreeQueue
[all...]
H A Dbuffer.h41 size_t capacity() const { return capacity_; }
73 if (capacity > capacity_) {
77 capacity_ = capacity;
85 buf->capacity_ = capacity_;
91 data_.reset(new char[capacity_ = capacity]);
97 size_t capacity_; member in class:rtc::Buffer
H A Dcryptstring.h80 capacity_ = 32;
114 if (capacity_ >= n) {
118 size_t old_capacity = capacity_;
122 capacity_ *= 2;
123 if (capacity_ >= n)
127 storage_ = new char[capacity_];
142 if (capacity_) {
144 for (size_t i = 1; i < capacity_; i++) {
152 size_t capacity_; member in class:rtc::FormatCryptString
/external/chromium_org/third_party/webrtc/modules/audio_device/android/
H A Dsingle_rw_fifo.h35 int capacity() const { return capacity_; }
39 int capacity_; member in class:webrtc::SingleRwFifo
H A Dsingle_rw_fifo.cc54 : capacity_(capacity),
58 queue_.reset(new int8_t*[capacity_]);
/external/chromium_org/net/quic/
H A Dquic_data_writer.cc21 capacity_(size),
32 capacity_ = 0;
121 if (length_ > capacity_) {
125 if (capacity_ - length_ < length) {
161 DCHECK_LE(length_, capacity_);
162 if (length_ > capacity_) {
165 memset(buffer_ + length_, 0x00, capacity_ - length_);
166 length_ = capacity_;
170 if (offset >= capacity_) {
171 LOG(DFATAL) << "offset: " << offset << " >= capacity: " << capacity_; local
[all...]
H A Dquic_data_writer.h65 return capacity_;
75 size_t capacity_; // Allocation size of payload (or -1 if buffer is const). member in class:net::QuicDataWriter
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_util.h74 size_t capacity() const { return capacity_; }
130 capacity_ = 0;
137 size_t capacity_; member in class:crazy::String
149 Vector() : items_(0), count_(0), capacity_(0) {}
193 size_t capacity_; member in class:crazy::Vector
207 if (count_ >= capacity_)
208 Reserve(capacity_ + (capacity_ >> 1) + 4);
238 capacity_ = new_capacity;
239 if (count_ > capacity_)
[all...]
H A Dcrazy_linker_util.cpp72 if (new_size > capacity_) {
73 size_t new_capacity = capacity_;
93 capacity_ = new_capacity;
/external/chromium_org/third_party/icu/source/common/
H A Dbytestream.cpp30 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
47 int32_t available = capacity_ - size_;
67 int32_t available = capacity_ - size_;
/external/icu/icu4c/source/common/
H A Dbytestream.cpp30 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
47 int32_t available = capacity_ - size_;
67 int32_t available = capacity_ - size_;
/external/icu/icu4c/source/i18n/
H A Dcollationkeys.h33 : buffer_(dest), capacity_(destCapacity),
44 if (appended_ < capacity_ || Resize(1, appended_)) {
62 return ignore_ + capacity_ - appended_;
65 UBool Overflowed() const { return appended_ > capacity_; }
75 capacity_ = 0;
79 int32_t capacity_; member in class:SortKeyByteSink
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
H A Daudio_vector.h28 capacity_(kDefaultInitialSize) {}
34 capacity_(initial_size) {
114 size_t capacity_; // Allocated number of samples in the array. member in class:webrtc::AudioVector
/external/chromium_org/media/filters/
H A Dh264_bitstream_buffer.cc24 capacity_ = 0;
34 data_ = static_cast<uint8*>(realloc(data_, capacity_ + kGrowBytes));
36 capacity_ += kGrowBytes;
53 if (pos_ + bytes_in_reg < capacity_)
H A Daudio_renderer_algorithm.h62 int QueueCapacity() const { return capacity_; }
129 int capacity_; member in class:media::AudioRendererAlgorithm
H A Dh264_bitstream_buffer.h109 size_t capacity_; member in class:media::H264BitstreamBuffer
/external/chromium_org/net/base/
H A Dio_buffer.cc96 capacity_(0),
104 capacity_ = capacity;
113 DCHECK_LE(offset, capacity_);
119 return capacity_ - offset_;
H A Dio_buffer.h195 int capacity() { return capacity_; }
208 int capacity_; member in class:net::GrowableIOBuffer
/external/chromium_org/net/websockets/
H A Dwebsocket_inflater.cc170 : capacity_(capacity),
171 buffer_(capacity_ + 1), // 1 for sentinel
184 std::min(capacity_ - Size(), buffer_.size() - tail_));
218 DCHECK_LE(advance + Size(), capacity_);
223 : capacity_(capacity), head_of_first_buffer_(0), tail_of_last_buffer_(0) {}
234 capacity_ - head_of_first_buffer_);
246 DCHECK(IsEmpty() || tail_of_last_buffer_ == capacity_); local
248 buffers_.push_back(new IOBufferWithSize(capacity_));
257 DCHECK_LE(size + head_of_first_buffer_, capacity_);
260 if (head_of_first_buffer_ == capacity_) {
[all...]
/external/chromium_org/v8/src/
H A Dhashmap.h66 uint32_t capacity() const { return capacity_; }
87 uint32_t capacity_; member in class:v8::internal::TemplateHashMapImpl
90 Entry* map_end() const { return map_ + capacity_; }
131 if (occupancy_ + occupancy_/4 >= capacity_) {
168 DCHECK(occupancy_ < capacity_);
187 Entry* r = map_ + (q->hash & (capacity_ - 1));
243 DCHECK(base::bits::IsPowerOfTwo32(capacity_));
244 Entry* p = map_ + (hash & (capacity_ - 1));
248 DCHECK(occupancy_ < capacity_); // Guarantees loop termination.
269 capacity_
[all...]
H A Dostreams.cc144 if (requested_capacity <= capacity_) return;
146 std::max(std::max(capacity_ * 2, capacity_), requested_capacity);
149 deallocate(data_, capacity_);
150 capacity_ = new_capacity;
H A Dostreams.h74 OStringStream() : size_(0), capacity_(32), data_(allocate(capacity_)) {
77 ~OStringStream() { deallocate(data_, capacity_); }
80 size_t capacity() const { return capacity_; }
97 size_t capacity_; member in class:v8::internal::OStringStream
H A Dlist-inl.h18 if (length_ < capacity_) {
35 if (capacity_ < result_length) Resize(result_length, alloc);
53 DCHECK(length_ >= capacity_);
56 int new_capacity = 1 + 2 * capacity_;
72 capacity_ = new_capacity;
140 capacity_ = 0;
154 if (length_ < capacity_ / 4) {
155 Resize(capacity_ / 2, alloc);
213 capacity_ = capacity;
H A Dstring-stream.h82 capacity_(kInitialCapacity),
146 unsigned capacity_; member in class:v8::internal::FINAL
150 bool full() const { return (capacity_ - length_) == 1; }
151 int space() const { return capacity_ - length_; }
/external/chromium_org/chrome/browser/thumbnails/
H A Dthumbnail_service_unittest.cc20 capacity_(1) {
25 return known_url_map_.size() >= capacity_;
53 const size_t capacity_; member in class:MockTopSites

Completed in 1277 milliseconds

12