/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | atomicops.h | 81 capacity_(0), in FixedSizeLockFreeQueue() 86 capacity_(capacity), in FixedSizeLockFreeQueue() 93 if (capacity_ == 0) { in PushBack() 101 data_[pushed_count_ % capacity_] = value; in PushBack() 113 if (capacity_ == 0) { in PeekFront() 121 *value_out = data_[popped_count_ % capacity_]; in PeekFront() 139 capacity_ = new_capacity; in ClearAndResizeUnsafe() 146 int IsFull() const { return pushed_count_ == popped_count_ + capacity_; } in IsFull() 154 size_t capacity() const { return capacity_; } in capacity() 159 size_t capacity_; variable
|
D | cryptstring.h | 95 capacity_ = 32; in FormatCryptString() 129 if (capacity_ >= n) { in EnsureStorage() 133 size_t old_capacity = capacity_; in EnsureStorage() 137 capacity_ *= 2; in EnsureStorage() 138 if (capacity_ >= n) in EnsureStorage() 142 storage_ = new char[capacity_]; in EnsureStorage() 157 if (capacity_) { in ~FormatCryptString() 159 for (size_t i = 1; i < capacity_; i++) { in ~FormatCryptString() 167 size_t capacity_; variable
|
D | buffer.h | 58 size_t capacity() const { return capacity_; } in capacity() 90 if (capacity > capacity_) { in SetCapacity() 94 capacity_ = capacity; in SetCapacity() 102 buf->capacity_ = capacity_; in TransferTo() 108 data_.reset(new char[capacity_ = capacity]); in Construct() 114 size_t capacity_; variable
|
/external/chromium_org/net/quic/ |
D | quic_data_writer.cc | 21 capacity_(size), in QuicDataWriter() 32 capacity_ = 0; in take() 121 if (length_ > capacity_) { in BeginWrite() 125 if (capacity_ - length_ < length) { in BeginWrite() 161 DCHECK_LE(length_, capacity_); in WritePadding() 162 if (length_ > capacity_) { in WritePadding() 165 memset(buffer_ + length_, 0x00, capacity_ - length_); in WritePadding() 166 length_ = capacity_; in WritePadding() 170 DCHECK_LT(offset, capacity_); in WriteUInt8ToOffset() 180 DCHECK_LT(offset, capacity_); in WriteUInt32ToOffset() [all …]
|
/external/chromium/net/spdy/ |
D | spdy_frame_builder.cc | 17 capacity_(0), in SpdyFrameBuilder() 25 capacity_(kCapacityReadOnly), in SpdyFrameBuilder() 31 if (capacity_ != kCapacityReadOnly) in ~SpdyFrameBuilder() 117 DCHECK(capacity_ != kCapacityReadOnly); in WriteBytes() 151 if (needed_size > capacity_ && !Resize(std::max(capacity_ * 2, needed_size))) in BeginWrite() 165 if (new_capacity <= capacity_) in Resize() 172 memcpy(p, buffer_, capacity_); in Resize() 176 capacity_ = new_capacity; in Resize()
|
D | spdy_frame_builder.h | 47 capacity_ = 0; in take() 120 return capacity_; in capacity() 152 size_t capacity_; // Allocation size of payload (or -1 if buffer is const). variable
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | cryptstring.h | 95 capacity_ = 32; in FormatCryptString() 129 if (capacity_ >= n) { in EnsureStorage() 133 size_t old_capacity = capacity_; in EnsureStorage() 137 capacity_ *= 2; in EnsureStorage() 138 if (capacity_ >= n) in EnsureStorage() 142 storage_ = new char[capacity_]; in EnsureStorage() 157 if (capacity_) { in ~FormatCryptString() 159 for (size_t i = 1; i < capacity_; i++) { in ~FormatCryptString() 167 size_t capacity_; variable
|
D | buffer.h | 58 size_t capacity() const { return capacity_; } in capacity() 90 if (capacity > capacity_) { in SetCapacity() 94 capacity_ = capacity; in SetCapacity() 102 buf->capacity_ = capacity_; in TransferTo() 108 data_.reset(new char[capacity_ = capacity]); in Construct() 114 size_t capacity_; variable
|
/external/v8/src/ |
D | hashmap.h | 77 uint32_t capacity() const { return capacity_; } in capacity() 93 uint32_t capacity_; variable 96 Entry* map_end() const { return map_ + capacity_; } in map_end() 135 if (occupancy_ + occupancy_/4 >= capacity_) { in Lookup() 171 ASSERT(occupancy_ < capacity_); in Remove() 190 Entry* r = map_ + (q->hash & (capacity_ - 1)); in Remove() 244 ASSERT(IsPowerOf2(capacity_)); in Probe() 245 Entry* p = map_ + (hash & (capacity_ - 1)); in Probe() 249 ASSERT(occupancy_ < capacity_); // Guarantees loop termination. in Probe() 269 capacity_ = capacity; in Initialize() [all …]
|
D | list-inl.h | 39 if (length_ < capacity_) { in Add() 56 if (capacity_ < result_length) Resize(result_length); in AddAll() 74 ASSERT(length_ >= capacity_); in ResizeAddInternal() 77 int new_capacity = 1 + 2 * capacity_; in ResizeAddInternal() 89 memcpy(new_data, data_, capacity_ * sizeof(T)); in Resize() 92 capacity_ = new_capacity; in Resize() 205 capacity_ = capacity; in Initialize()
|
D | string-stream.h | 117 capacity_(kInitialCapacity), in StringStream() 179 unsigned capacity_; variable 183 bool full() const { return (capacity_ - length_) == 1; } in full() 184 int space() const { return capacity_ - length_; } in space()
|
/external/chromium_org/net/websockets/ |
D | websocket_inflater.cc | 170 : capacity_(capacity), in OutputBuffer() 171 buffer_(capacity_ + 1), // 1 for sentinel in OutputBuffer() 184 std::min(capacity_ - Size(), buffer_.size() - tail_)); in GetTail() 218 DCHECK_LE(advance + Size(), capacity_); in AdvanceTail() 223 : capacity_(capacity), head_of_first_buffer_(0), tail_of_last_buffer_(0) {} in InputQueue() 234 capacity_ - head_of_first_buffer_); in Top() 246 DCHECK(IsEmpty() || tail_of_last_buffer_ == capacity_); in Push() 248 buffers_.push_back(new IOBufferWithSize(capacity_)); in Push() 257 DCHECK_LE(size + head_of_first_buffer_, capacity_); in Consume() 260 if (head_of_first_buffer_ == capacity_) { in Consume() [all …]
|
/external/chromium_org/v8/src/ |
D | hashmap.h | 88 uint32_t capacity() const { return capacity_; } in capacity() 104 uint32_t capacity_; variable 107 Entry* map_end() const { return map_ + capacity_; } in map_end() 148 if (occupancy_ + occupancy_/4 >= capacity_) { in Lookup() 185 ASSERT(occupancy_ < capacity_); in Remove() 204 Entry* r = map_ + (q->hash & (capacity_ - 1)); in Remove() 260 ASSERT(IsPowerOf2(capacity_)); in Probe() 261 Entry* p = map_ + (hash & (capacity_ - 1)); in Probe() 265 ASSERT(occupancy_ < capacity_); // Guarantees loop termination. in Probe() 286 capacity_ = capacity; in Initialize() [all …]
|
D | list-inl.h | 40 if (length_ < capacity_) { in Add() 57 if (capacity_ < result_length) Resize(result_length, alloc); in AddAll() 75 ASSERT(length_ >= capacity_); in ResizeAddInternal() 78 int new_capacity = 1 + 2 * capacity_; in ResizeAddInternal() 94 capacity_ = new_capacity; in Resize() 162 capacity_ = 0; in Clear() 175 if (length_ < capacity_ / 4) { in Trim() 176 Resize(capacity_ / 2, alloc); in Trim() 234 capacity_ = capacity; in Initialize()
|
/external/chromium/base/ |
D | pickle.cc | 25 capacity_(0), in Pickle() 34 capacity_(0), in Pickle() 45 capacity_(kCapacityReadOnly), in Pickle() 64 capacity_(0), in Pickle() 73 if (capacity_ != kCapacityReadOnly) in ~Pickle() 82 if (capacity_ == kCapacityReadOnly) { in operator =() 84 capacity_ = 0; in operator =() 330 DCHECK(capacity_ != kCapacityReadOnly) << "oops: pickle is readonly"; in WriteBytes() 385 if (needed_size > capacity_ && !Resize(std::max(capacity_ * 2, needed_size))) in BeginWrite() 406 CHECK_NE(capacity_, kCapacityReadOnly); in Resize() [all …]
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
D | vector-inline.h | 8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {} in Vector() 159 if (capacity <= capacity_) { in reserve() 163 if (capacity_ > (capacity / 2)) { in reserve() 164 if (capacity_ > (max_size() / 2)) { in reserve() 167 new_capacity = capacity_ * 2; in reserve() 176 if (size_ != capacity_) { in shrink() 193 Swap(&capacity_, &rhs->capacity_); in swap() 211 capacity_ = (UInt32)new_capacity; in realloc()
|
/external/marisa-trie/lib/marisa/ |
D | vector-inline.h | 8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {} in Vector() 159 if (capacity <= capacity_) { in reserve() 163 if (capacity_ > (capacity / 2)) { in reserve() 164 if (capacity_ > (max_size() / 2)) { in reserve() 167 new_capacity = capacity_ * 2; in reserve() 176 if (size_ != capacity_) { in shrink() 193 Swap(&capacity_, &rhs->capacity_); in swap() 211 capacity_ = (UInt32)new_capacity; in realloc()
|
/external/chromium_org/net/spdy/ |
D | spdy_frame_builder.cc | 37 capacity_(size), in SpdyFrameBuilder() 68 flags, capacity_ - framer.GetControlFrameHeaderSize()); in WriteControlFrameHeader() 85 size_t length_field = capacity_ - framer.GetDataFrameMinimumSize(); in WriteDataFrameHeader() 105 DCHECK_GT(1u<<16, capacity_); // Make sure length fits in 2B. in WriteFramePrefix() 106 success &= WriteUInt16(capacity_); in WriteFramePrefix() 183 if (length_ + length > capacity_) { in CanWrite()
|
/external/chromium/net/base/ |
D | io_buffer.cc | 82 capacity_(0), in GrowableIOBuffer() 90 capacity_ = capacity; in SetCapacity() 98 DCHECK(offset >= 0 && offset <= capacity_); in set_offset() 104 return capacity_ - offset_; in RemainingCapacity()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common.h | 282 capacity_ = initial_capacity; in InternalMmapVector() 284 data_ = (T *)MmapOrDie(capacity_ * sizeof(T), "InternalMmapVector"); in InternalMmapVector() 287 UnmapOrDie(data_, capacity_ * sizeof(T)); in ~InternalMmapVector() 298 CHECK_LE(size_, capacity_); in push_back() 299 if (size_ == capacity_) { in push_back() 320 return capacity_; in capacity() 332 UnmapOrDie(old_data, capacity_ * sizeof(T)); in Resize() 333 capacity_ = new_capacity; in Resize() 340 uptr capacity_; variable
|
/external/chromium_org/net/base/ |
D | io_buffer.cc | 89 capacity_(0), in GrowableIOBuffer() 97 capacity_ = capacity; in SetCapacity() 106 DCHECK_LE(offset, capacity_); in set_offset() 112 return capacity_ - offset_; in RemainingCapacity()
|
/external/chromium_org/third_party/icu/source/common/ |
D | bytestream.cpp | 28 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 43 int32_t available = capacity_ - size_; in Append() 63 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/external/icu4c/common/ |
D | bytestream.cpp | 30 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 47 int32_t available = capacity_ - size_; in Append() 67 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/utf/ |
D | unicodetext.cc | 110 if (capacity_ >= new_capacity && ours_) return; in reserve() 113 capacity_ = max(new_capacity, (3 * capacity_) / 2 + 20); in reserve() 114 char* new_data = new char[capacity_]; in reserve() 130 if (!ours_ || new_size > capacity_) reserve(new_size); in resize() 143 size_ = capacity_ = 0; in clear() 157 capacity_ = capacity; in TakeOwnershipOf() 165 capacity_ = size; in PointTo() 179 << size_ << " capacity=" << capacity_ << " " in DebugString()
|
/external/chromium_org/media/filters/ |
D | audio_renderer_algorithm.cc | 81 capacity_(kStartingBufferSizeInFrames), in AudioRendererAlgorithm() 218 capacity_ = kStartingBufferSizeInFrames; in FlushBuffers() 232 return audio_buffer_.frames() >= capacity_; in IsQueueFull() 237 DCHECK_LE(capacity_, max_capacity); in IncreaseQueueCapacity() 239 capacity_ = std::min(2 * capacity_, max_capacity); in IncreaseQueueCapacity()
|