Home
last modified time | relevance | path

Searched refs:array_ (Results 1 – 25 of 62) sorted by relevance

123

/external/webrtc/webrtc/modules/audio_coding/neteq/
Daudio_vector.cc22 : array_(new int16_t[kDefaultInitialSize]), in AudioVector()
28 : array_(new int16_t[initial_size]), in AudioVector()
31 memset(array_.get(), 0, initial_size * sizeof(int16_t)); in AudioVector()
44 memcpy(copy_to->array_.get(), array_.get(), Size() * sizeof(int16_t)); in CopyTo()
52 memmove(&array_[insert_length], &array_[0], Size() * sizeof(int16_t)); in PushFront()
53 memcpy(&array_[0], &prepend_this.array_[0], insert_length * sizeof(int16_t)); in PushFront()
63 PushBack(append_this.array_.get(), append_this.Size()); in PushBack()
68 memcpy(&array_[first_free_ix_], append_this, length * sizeof(int16_t)); in PushBack()
78 memmove(&array_[0], &array_[length], remaining_samples * sizeof(int16_t)); in PopFront()
91 memset(&array_[first_free_ix_], 0, extra_length * sizeof(int16_t)); in Extend()
[all …]
Daudio_vector_unittest.cc28 array_[i] = i; in SetUp()
33 return sizeof(array_) / sizeof(array_[0]); in array_length()
36 int16_t array_[10]; member in webrtc::AudioVectorTest
67 vec.PushBack(array_, array_length()); in TEST_F()
72 EXPECT_EQ(array_[i], vec[i]); in TEST_F()
73 EXPECT_EQ(array_[i], vec_copy[i]); in TEST_F()
89 vec.PushBack(array_, array_length()); in TEST_F()
115 vec.PushFront(array_, array_length()); in TEST_F()
118 EXPECT_EQ(array_[i], vec[i]); in TEST_F()
144 vec.PushBack(array_, array_length()); in TEST_F()
[all …]
Daudio_multi_vector_unittest.cc46 array_[i] = static_cast<int16_t>(i); in SetUp()
61 return sizeof(array_) / sizeof(array_[0]); in array_length()
66 int16_t array_[10]; member in webrtc::AudioMultiVectorTest
/external/protobuf/src/google/protobuf/stubs/
Dscoped_ptr.h155 explicit scoped_array(C* p = NULL) : array_(p) { } in array_() function
161 delete[] array_; in ~scoped_array()
168 if (p != array_) {
170 delete[] array_;
171 array_ = p;
179 assert(array_ != NULL);
180 return array_[i];
186 return array_; in get()
192 bool operator==(C* p) const { return array_ == p; }
193 bool operator!=(C* p) const { return array_ != p; }
[all …]
/external/libchrome/base/containers/
Dsmall_map.h369 if (compare(array_[i].first, key)) {
370 return iterator(array_ + i);
373 return iterator(array_ + size_);
383 if (compare(array_[i].first, key)) {
384 return const_iterator(array_ + i);
387 return const_iterator(array_ + size_);
401 if (compare(array_[i].first, key)) {
402 return array_[i].second;
409 new (&array_[size_]) value_type(key, data_type());
410 return array_[size_++].second;
[all …]
/external/google-breakpad/src/common/
Dscoped_ptr.h197 explicit scoped_array(C* p = NULL) : array_(p) { } in array_() function
203 delete[] array_; in ~scoped_array()
210 if (p != array_) {
212 delete[] array_;
213 array_ = p;
221 assert(array_ != NULL);
222 return array_[i];
228 return array_; in get()
234 bool operator==(C* p) const { return array_ == p; }
235 bool operator!=(C* p) const { return array_ != p; }
[all …]
/external/piex/src/binary_parse/
Drange_checked_byte_ptr.cc76 : array_(), in RangeCheckedBytePtr()
87 : array_(new MemoryPagedByteArray(array, len)), in RangeCheckedBytePtr()
102 : array_(array, NullFunctor()), in RangeCheckedBytePtr()
169 if (x.array_ != y.array_) { in operator ==()
190 if (offset >= array_->length()) { in loadPageForOffset()
196 size_t page_index = offset / array_->pageSize(); in loadPageForOffset()
201 array_->getPage(page_index, &page_begin, &page_end, &page_); in loadPageForOffset()
205 size_t expected_page_size = array_->pageSize(); in loadPageForOffset()
206 if (page_index == (array_->length() - 1) / array_->pageSize()) { in loadPageForOffset()
207 expected_page_size = array_->length() - array_->pageSize() * page_index; in loadPageForOffset()
[all …]
/external/sfntly/cpp/src/sfntly/data/
Dfont_data.cc28 return std::min<int32_t>(array_->Size() - bound_offset_, bound_length_); in Size()
44 CHECK(new_offset <= array_->Size()); in Bound()
49 CHECK(new_offset <= array_->Size() - length); in Bound()
57 return std::min<int32_t>(array_->Length() - bound_offset_, bound_length_); in Length()
65 Init(data->array_); in FontData()
70 Init(data->array_); in FontData()
79 array_ = ba; in Init()
Dwritable_font_data.cc58 array_->Put(BoundOffset(index), b); in WriteByte()
66 return array_->Put(BoundOffset(index), in WriteBytes()
83 array_->Put(BoundOffset(index), in WriteBytesPad()
99 array_->Put(index + i, pad); in WritePadding()
162 array_->CopyFrom(is, length); in CopyFrom()
166 array_->CopyFrom(is); in CopyFrom()
Dreadable_font_data.cc63 int32_t b = array_->Get(BoundOffset(index)); in ReadUByte()
75 int32_t b = array_->Get(BoundOffset(index)); in ReadByte()
90 return array_->Get(BoundOffset(index), b, offset, BoundLength(index, length)); in ReadBytes()
213 return array_->CopyTo(os, BoundOffset(0), Length()); in CopyTo()
217 return array_->CopyTo(wfd->BoundOffset(0), in CopyTo()
218 wfd->array_, in CopyTo()
224 return array_->CopyTo(ba, BoundOffset(0), Length()); in CopyTo()
/external/tensorflow/tensorflow/core/lib/gtl/
Dflatrep.h56 CopyEntries(src.array_, src.end_, CopyEntry()); in FlatRep()
73 delete[] array_; in ~FlatRep()
79 Bucket* start() const { return array_; } in start()
88 delete[] array_; in CopyFrom()
90 CopyEntries(src.array_, src.end_, CopyEntry()); in CopyFrom()
101 for (Bucket* b = array_; b != end_; b++) { in clear_no_resize()
121 swap(array_, x.array_); in swap()
150 Bucket* b = &array_[index >> kBase]; in Find()
177 Bucket* b = &array_[index >> kBase]; in FindOrInsert()
214 Bucket* b = &array_[index >> kBase]; in Prefetch()
[all …]
/external/jsoncpp/src/lib_json/
Djson_valueiterator.inl24 iterator_.array_ = ValueInternalArray::IteratorState();
36 iterator_.array_ = state;
51 return ValueInternalArray::dereference(iterator_.array_);
61 ValueInternalArray::increment(iterator_.array_);
71 ValueInternalArray::decrement(iterator_.array_);
105 return ValueInternalArray::distance(iterator_.array_,
106 other.iterator_.array_);
119 return ValueInternalArray::equals(iterator_.array_, other.iterator_.array_);
130 iterator_.array_ = other.iterator_.array_;
146 return Value(ValueInternalArray::indexOf(iterator_.array_));
[all …]
Djson_internalarray.inl141 return x.array_ == other.array_ &&
148 it.array_ && (it.currentPageIndex_ - it.array_->pages_) * itemsPerPage +
150 it.array_->size_,
161 it.array_ && it.currentPageIndex_ == it.array_->pages_ &&
178 it.array_ && (it.currentPageIndex_ - it.array_->pages_) * itemsPerPage +
180 it.array_->size_,
186 it.array_ = const_cast<ValueInternalArray*>(this);
193 it.array_ = const_cast<ValueInternalArray*>(this);
339 if (!iterator.array_)
341 return ArrayIndex((iterator.currentPageIndex_ - iterator.array_->pages_) *
Djson_value.cpp251 value_.array_ = arrayAllocator()->newArray(); in Value()
356 value_.array_ = arrayAllocator()->newArrayCopy(*other.value_.array_); in Value()
394 arrayAllocator()->destructArray(value_.array_); in ~Value()
464 return value_.array_->compare(*(other.value_.array_)) < 0; in operator <()
510 return value_.array_->compare(*(other.value_.array_)) == 0; in operator ==()
775 return Int(value_.array_->size()); in size()
807 value_.array_->clear(); in clear()
836 value_.array_->resize(newSize); in resize()
856 return value_.array_->resolveReference(index); in operator []()
880 Value* value = value_.array_->find(index); in operator []()
[all …]
/external/v8/src/
Dstring-builder.cc106 : array_(isolate->factory()->NewFixedArrayWithHoles(initial_capacity)), in FixedArrayBuilder()
115 : array_(backing_store), length_(0), has_non_smi_elements_(false) { in FixedArrayBuilder()
122 int length = array_->length(); in HasCapacity()
128 int length = array_->length(); in EnsureCapacity()
137 array_->CopyTo(0, *extended_array, 0, length_); in EnsureCapacity()
138 array_ = extended_array; in EnsureCapacity()
145 array_->set(length_, value); in Add()
153 array_->set(length_, value); in Add()
157 int FixedArrayBuilder::capacity() { return array_->length(); } in capacity()
160 JSArray::SetContent(target_array, array_); in ToJSArray()
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DRunQueue.h47 array_[i].state.store(kEmpty, std::memory_order_relaxed); in RunQueue()
56 Elem* e = &array_[front & kMask]; in PushFront()
71 Elem* e = &array_[(front - 1) & kMask]; in PopFront()
88 Elem* e = &array_[(back - 1) & kMask]; in PushBack()
107 Elem* e = &array_[back & kMask]; in PopBack()
131 Elem* e = &array_[mid & kMask]; in PopBackHalf()
202 Elem array_[kSize]; variable
/external/harfbuzz_ng/src/
Dhb-array.hh47 hb_array_t (Type *array_, unsigned int len_) : arrayZ (array_), len (len_) {} in hb_array_t()
48 template <unsigned int len_> hb_array_t (Type (&array_)[len_]) : arrayZ (array_), len (len_) {} in hb_array_t()
203 hb_sorted_array_t (Type *array_, unsigned int len_) : hb_array_t<Type> (array_, len_) {} in hb_sorted_array_t()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-test-part.cc60 array_.push_back(result); in Append()
70 return array_[index]; in GetTestPartResult()
75 return static_cast<int>(array_.size()); in size()
/external/llvm/utils/unittest/googletest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/mesa3d/src/gtest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/googletest/googletest/src/
Dgtest-test-part.cc63 array_.push_back(result); in Append()
73 return array_[index]; in GetTestPartResult()
78 return static_cast<int>(array_.size()); in size()

123