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

12

/external/chromium_org/net/spdy/
H A Dspdy_frame_builder.h53 // capacity_. The given type must be a control frame type.
60 // information from the |framer| and length information from capacity_.
67 // capacity_. The given type must be a control frame type.
82 capacity_ = 0;
143 size_t capacity_; // Allocation size of payload, set by constructor. member in class:net::SpdyFrameBuilder
H A Dspdy_frame_builder.cc37 capacity_(size),
70 flags, capacity_ - framer.GetControlFrameHeaderSize());
89 size_t length_field = capacity_ - framer.GetDataFrameMinimumSize();
124 success &= WriteUInt24(capacity_ - offset_ - framer.GetPrefixLength(type));
217 if (offset_ + length_ + length > capacity_) {
/external/chromium_org/net/websockets/
H A Dwebsocket_inflater.h85 const size_t capacity_; member in class:net::WebSocketInflater::OutputBuffer
111 const size_t capacity_; member in class:net::WebSocketInflater::InputQueue
/external/chromium_org/media/filters/
H A Daudio_renderer_algorithm.cc79 capacity_(kStartingBufferSizeInFrames),
208 // Reset |capacity_| so growth triggered by underflows doesn't penalize
210 capacity_ = kStartingBufferSizeInFrames;
220 return audio_buffer_.frames() >= capacity_;
225 DCHECK_LE(capacity_, max_capacity);
227 capacity_ = std::min(2 * capacity_, max_capacity);
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/utf/
H A Dunicodetext.cc110 if (capacity_ >= new_capacity && ours_) return;
113 capacity_ = max(new_capacity, (3 * capacity_) / 2 + 20);
114 char* new_data = new char[capacity_];
130 if (!ours_ || new_size > capacity_) reserve(new_size);
143 size_ = capacity_ = 0;
157 capacity_ = capacity;
165 capacity_ = size;
179 << size_ << " capacity=" << capacity_ << " "
H A Dunicodetext.h287 int utf8_capacity() const { return repr_.capacity_; }
332 int capacity_; member in class:i18n::phonenumbers::UnicodeText::Repr
335 Repr() : data_(NULL), size_(0), capacity_(0), ours_(true) {}
/external/chromium_org/third_party/icu/source/common/unicode/
H A Dbytestream.h214 const int32_t capacity_; member in class:CheckedArrayByteSink
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
H A Daudio_vector.cc28 assert(copy_to->capacity_ >= Size());
100 position = std::min(capacity_, position);
157 if (capacity_ < n) {
161 capacity_ = n;
/external/icu/icu4c/source/common/unicode/
H A Dbytestream.h214 const int32_t capacity_; member in class:CheckedArrayByteSink
/external/chromium_org/v8/src/
H A Dunique.h136 UniqueSet() : size_(0), capacity_(0), array_(NULL) { }
140 : size_(0), capacity_(capacity),
147 : size_(1), capacity_(1), array_(zone->NewArray<Unique<T> >(1)) {
326 uint16_t capacity_; member in class:v8::internal::FINAL
332 if (capacity_ < size) {
333 int new_capacity = 2 * capacity_ + size;
339 capacity_ = new_capacity;
H A Dstring-stream.cc23 DCHECK(length_ < capacity_);
25 // indicated by a difference of 1 between length_ and capacity_. Thus when
27 if (length_ == capacity_ - 2) {
28 unsigned new_capacity = capacity_;
30 if (new_capacity > capacity_) {
31 capacity_ = new_capacity;
35 DCHECK(capacity_ >= 5);
36 length_ = capacity_ - 1; // Indicate fullness of the stream.
H A Dlist.h79 INLINE(int capacity() const) { return capacity_; }
158 int capacity_;
H A Dgdb-jit.cc43 capacity_(1024),
44 buffer_(reinterpret_cast<byte*>(malloc(capacity_))) {
104 if (capacity_ < pos) {
105 while (capacity_ < pos) capacity_ *= 2;
106 buffer_ = reinterpret_cast<byte*>(realloc(buffer_, capacity_));
159 DCHECK(offset < capacity_ && offset + sizeof(T) <= capacity_);
165 uintptr_t capacity_;
H A Dapi.cc4565 capacity_(capacity),
4631 int remaining_capacity = capacity_ - static_cast<int>(buffer - start_);
4647 DCHECK(capacity_ == -1 || (buffer - start_) <= capacity_);
4657 DCHECK(capacity_ == -1 || (buffer - start_) <= capacity_);
4671 int remaining_capacity = capacity_ - static_cast<int>(buffer - start_);
4720 (capacity_ == -1 || (buffer_ - start_) < capacity_)) {
4731 int capacity_; member in class:v8::Utf8WriterVisitor
[all...]
/external/protobuf/gtest/src/
H A Dgtest-internal-inl.h255 Vector() : elements_(NULL), capacity_(0), size_(0) {}
269 capacity_ = size_ = 0;
452 if (new_capacity <= capacity_)
455 capacity_ = new_capacity;
457 realloc(elements_, capacity_*sizeof(elements_[0])));
462 if (size_ < capacity_)
468 const int new_capacity = 3*(capacity_/2 + 1);
469 GTEST_CHECK_(new_capacity > capacity_) // Does the new capacity overflow?
470 << "Cannot grow a Vector with " << capacity_ << " elements already.";
480 int capacity_; // Th member in class:testing::internal::Vector
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common.h363 capacity_ = Max(initial_capacity, (uptr)1);
365 data_ = (T *)MmapOrDie(capacity_ * sizeof(T), "InternalMmapVector");
368 UnmapOrDie(data_, capacity_ * sizeof(T));
379 CHECK_LE(size_, capacity_);
380 if (size_ == capacity_) {
401 return capacity_;
415 UnmapOrDie(old_data, capacity_ * sizeof(T));
416 capacity_ = new_capacity;
423 uptr capacity_;
/external/chromium_org/third_party/leveldatabase/src/util/
H A Dcache.cc141 void SetCapacity(size_t capacity) { capacity_ = capacity; }
157 size_t capacity_; member in class:leveldb::__anon12466::LRUCache
248 while (usage_ > capacity_ && lru_.next != &lru_) {
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/
H A Dremote_bitrate_estimator_unittest_helper.h135 int capacity_; member in class:webrtc::testing::StreamGenerator
H A Dremote_bitrate_estimator_unittest_helper.cc115 : capacity_(capacity),
134 capacity_ = capacity_bps;
170 assert(capacity_ > 0);
177 int capacity_bpus = capacity_ / 1000;
/external/chromium_org/net/http/
H A Dhttp_stream_parser.cc115 capacity_(capacity),
145 DCHECK_LE(size_ + bytes, capacity_);
161 int capacity() const { return capacity_; };
170 const int capacity_; member in class:net::HttpStreamParser::SeekableIOBuffer
/external/icu/icu4c/source/i18n/
H A Dcollationkeys.cpp48 int32_t available = capacity_ - length;
71 int32_t available = capacity_ - appended_;
76 *result_capacity = capacity_ - appended_;
H A Drulebasedcollator.cpp77 // buffer_ != NULL && bytes != NULL && n > 0 && appended_ > capacity_
79 int32_t available = capacity_ - length;
111 // buffer_ != NULL && bytes != NULL && n > 0 && appended_ > capacity_
122 int32_t newCapacity = 2 * capacity_;
136 capacity_ = newCapacity;
/external/chromium_org/v8/src/heap/
H A Dspaces.h1016 intptr_t Available() { return capacity_ < size_ ? 0 : capacity_ - size_; }
1111 size_t capacity_; member in class:v8::internal::MemoryAllocator
1112 // Maximum subset of capacity_ that can be executable
1319 capacity_ = 0;
1326 size_ = capacity_;
1338 intptr_t Capacity() { return capacity_; }
1347 capacity_ += size_in_bytes;
1349 if (capacity_ > max_capacity_) {
1350 max_capacity_ = capacity_;
1383 intptr_t capacity_; member in class:v8::internal::BASE_EMBEDDED
[all...]
H A Dspaces.cc254 capacity_(0),
263 capacity_ = RoundUp(capacity, Page::kPageSize);
265 DCHECK_GE(capacity_, capacity_executable_);
279 capacity_ = 0;
797 float pct = static_cast<float>(capacity_ - size_) / capacity_;
803 capacity_, size_, static_cast<int>(pct * 100));
/external/chromium_org/third_party/icu/source/i18n/
H A Ducol.cpp4189 : buffer_(dest), capacity_(destCapacity),
4192 capacity_ = 0;
4193 } else if(capacity_ < 0) {
4195 capacity_ = 0;
4202 if (appended_ < capacity_ || Resize(1, appended_)) {
4209 if (a2 <= capacity_ || Resize(2, appended_)) {
4212 } else if(appended_ < capacity_) {
4231 capacity_ = 0;
4235 int32_t capacity_; member in class:SortKeyByteSink
4255 int32_t available = capacity_
[all...]

Completed in 668 milliseconds

12