HomeSort by relevance Sort by last modified time
    Searched refs:capacity_ (Results 1 - 25 of 72) sorted by null

1 2 3

  /external/chromium_org/third_party/libjingle/source/talk/base/
atomicops.h 81 capacity_(0),
86 capacity_(capacity),
93 if (capacity_ == 0) {
101 data_[pushed_count_ % capacity_] = value;
113 if (capacity_ == 0) {
121 *value_out = data_[popped_count_ % capacity_];
139 capacity_ = new_capacity;
146 int IsFull() const { return pushed_count_ == popped_count_ + capacity_; }
154 size_t capacity() const { return capacity_; }
159 size_t capacity_; member in class:talk_base::FixedSizeLockFreeQueue
    [all...]
buffer.h 58 size_t capacity() const { return capacity_; }
90 if (capacity > capacity_) {
94 capacity_ = capacity;
102 buf->capacity_ = capacity_;
108 data_.reset(new char[capacity_ = capacity]);
114 size_t capacity_; member in class:talk_base::Buffer
cryptstring.h 95 capacity_ = 32;
129 if (capacity_ >= n) {
133 size_t old_capacity = capacity_;
137 capacity_ *= 2;
138 if (capacity_ >= n)
142 storage_ = new char[capacity_];
157 if (capacity_) {
159 for (size_t i = 1; i < capacity_; i++) {
167 size_t capacity_; member in class:talk_base::FormatCryptString
  /frameworks/base/media/mca/filterfw/native/core/
native_frame.cpp 22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) {
23 data_ = capacity_ == 0 ? NULL : new uint8_t[capacity_];
40 size_ = capacity_ = size;
53 if (newSize <= capacity_ && newSize >= 0) {
native_frame.h 63 return capacity_;
77 int capacity_; member in class:android::filterfw::NativeFrame
  /bionic/libc/bionic/
scandir.cpp 27 ScandirResult() : names_(NULL), size_(0), capacity_(0) {
44 size_ = capacity_ = 0;
49 if (size_ >= capacity_) {
50 size_t new_capacity = capacity_ + 32;
56 capacity_ = new_capacity;
77 size_t capacity_; member in class:ScandirResult
  /external/chromium_org/net/quic/
quic_data_writer.cc 21 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 DCHECK_LT(offset, capacity_);
180 DCHECK_LT(offset, capacity_);
    [all...]
quic_data_writer.h 65 return capacity_;
75 size_t capacity_; // Allocation size of payload (or -1 if buffer is const). member in class:net::QuicDataWriter
  /external/chromium/third_party/libjingle/source/talk/base/
buffer.h 58 size_t capacity() const { return capacity_; }
90 if (capacity > capacity_) {
94 capacity_ = capacity;
102 buf->capacity_ = capacity_;
108 data_.reset(new char[capacity_ = capacity]);
114 size_t capacity_; member in class:talk_base::Buffer
cryptstring.h 95 capacity_ = 32;
129 if (capacity_ >= n) {
133 size_t old_capacity = capacity_;
137 capacity_ *= 2;
138 if (capacity_ >= n)
142 storage_ = new char[capacity_];
157 if (capacity_) {
159 for (size_t i = 1; i < capacity_; i++) {
167 size_t capacity_; member in class:talk_base::FormatCryptString
  /external/chromium/net/spdy/
spdy_frame_builder.cc 12 // We mark a read only SpdyFrameBuilder with a special capacity_.
17 capacity_(0),
25 capacity_(kCapacityReadOnly),
31 if (capacity_ != kCapacityReadOnly)
117 DCHECK(capacity_ != kCapacityReadOnly);
151 if (needed_size > capacity_ && !Resize(std::max(capacity_ * 2, needed_size)))
165 if (new_capacity <= capacity_)
172 memcpy(p, buffer_, capacity_);
176 capacity_ = new_capacity
    [all...]
spdy_frame_builder.h 47 capacity_ = 0;
120 return capacity_;
152 size_t capacity_; // Allocation size of payload (or -1 if buffer is const). member in class:spdy::SpdyFrameBuilder
  /art/runtime/gc/accounting/
atomic_stack.h 51 int result = madvise(begin_, sizeof(T) * capacity_, MADV_DONTNEED);
67 if (UNLIKELY(static_cast<size_t>(index) >= capacity_)) {
81 DCHECK_LT(static_cast<size_t>(index), capacity_); local
125 return capacity_;
130 capacity_ = new_capacity;
160 capacity_(capacity),
166 mem_map_.reset(MemMap::MapAnonymous(name_.c_str(), NULL, capacity_ * sizeof(T), PROT_READ | PROT_WRITE));
191 size_t capacity_; member in class:art::gc::accounting::AtomicStack
  /external/chromium/net/base/
io_buffer.cc 82 capacity_(0),
90 capacity_ = capacity;
98 DCHECK(offset >= 0 && offset <= capacity_);
104 return capacity_ - offset_;
  /external/chromium_org/third_party/icu/source/common/
bytestream.cpp 28 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
43 int32_t available = capacity_ - size_;
63 int32_t available = capacity_ - size_;
  /external/icu4c/common/
bytestream.cpp 30 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
47 int32_t available = capacity_ - size_;
67 int32_t available = capacity_ - size_;
  /external/chromium_org/v8/src/
hashmap.h 88 uint32_t capacity() const { return capacity_; }
104 uint32_t capacity_; member in class:v8::internal::TemplateHashMapImpl
107 Entry* map_end() const { return map_ + capacity_; }
148 if (occupancy_ + occupancy_/4 >= capacity_) {
185 ASSERT(occupancy_ < capacity_);
204 Entry* r = map_ + (q->hash & (capacity_ - 1));
260 ASSERT(IsPowerOf2(capacity_));
261 Entry* p = map_ + (hash & (capacity_ - 1));
265 ASSERT(occupancy_ < capacity_); // Guarantees loop termination.
286 capacity_ = capacity
    [all...]
list-inl.h 40 if (length_ < capacity_) {
57 if (capacity_ < result_length) Resize(result_length, alloc);
75 ASSERT(length_ >= capacity_);
78 int new_capacity = 1 + 2 * capacity_;
94 capacity_ = new_capacity;
162 capacity_ = 0;
175 if (length_ < capacity_ / 4) {
176 Resize(capacity_ / 2, alloc);
234 capacity_ = capacity;
  /external/v8/src/
hashmap.h 77 uint32_t capacity() const { return capacity_; }
93 uint32_t capacity_; member in class:v8::internal::TemplateHashMapImpl
96 Entry* map_end() const { return map_ + capacity_; }
135 if (occupancy_ + occupancy_/4 >= capacity_) {
171 ASSERT(occupancy_ < capacity_);
190 Entry* r = map_ + (q->hash & (capacity_ - 1));
244 ASSERT(IsPowerOf2(capacity_));
245 Entry* p = map_ + (hash & (capacity_ - 1));
249 ASSERT(occupancy_ < capacity_); // Guarantees loop termination.
269 capacity_ = capacity
    [all...]
  /ndk/sources/android/support/tests/minitest/
minitest.cc 101 capacity_ = 0;
105 if (new_size > capacity_) {
106 size_t new_capacity = capacity_;
118 if (new_capacity > capacity_)
119 ::memset(str_ + capacity_, '\0', new_capacity - capacity_);
120 capacity_ = new_capacity;
  /external/chromium_org/net/spdy/
spdy_frame_builder.cc 37 capacity_(size),
68 flags, capacity_ - framer.GetControlFrameHeaderSize());
85 size_t length_field = capacity_ - framer.GetDataFrameMinimumSize();
105 DCHECK_GT(1u<<16, capacity_); // Make sure length fits in 2B.
106 success &= WriteUInt16(capacity_);
183 if (length_ + length > capacity_) {
  /external/chromium_org/net/base/
io_buffer.cc 89 capacity_(0),
97 capacity_ = capacity;
106 DCHECK_LE(offset, capacity_);
112 return capacity_ - offset_;
  /external/marisa-trie/lib/marisa/
vector-inline.h 8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {}
159 if (capacity <= capacity_) {
163 if (capacity_ > (capacity / 2)) {
164 if (capacity_ > (max_size() / 2)) {
167 new_capacity = capacity_ * 2;
176 if (size_ != capacity_) {
193 Swap(&capacity_, &rhs->capacity_);
211 capacity_ = (UInt32)new_capacity;
  /external/marisa-trie/v0_1_5/lib/marisa_alpha/
vector-inline.h 8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {}
159 if (capacity <= capacity_) {
163 if (capacity_ > (capacity / 2)) {
164 if (capacity_ > (max_size() / 2)) {
167 new_capacity = capacity_ * 2;
176 if (size_ != capacity_) {
193 Swap(&capacity_, &rhs->capacity_);
211 capacity_ = (UInt32)new_capacity;
  /external/chromium_org/net/websockets/
websocket_inflater.cc 170 : 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...]

Completed in 368 milliseconds

1 2 3