/external/puffin/src/ |
D | puff_reader.cc | 28 TEST_AND_RETURN_FALSE(index_ < puff_size_); in GetNext() 29 if (puff_buf_in_[index_] & 0x80) { // Reading length/distance. in GetNext() 30 if ((puff_buf_in_[index_] & 0x7F) < 127) { in GetNext() 31 length = puff_buf_in_[index_] & 0x7F; in GetNext() 33 index_++; in GetNext() 35 TEST_AND_RETURN_FALSE(index_ < puff_size_); in GetNext() 36 length = puff_buf_in_[index_] + 127; in GetNext() 41 index_++; in GetNext() 53 TEST_AND_RETURN_FALSE(index_ + 1 < puff_size_); in GetNext() 54 auto distance = ReadByteArrayToUint16(&puff_buf_in_[index_]); in GetNext() [all …]
|
D | puff_writer.cc | 38 len_index_ = index_; in Insert() 39 index_++; in Insert() 46 TEST_AND_RETURN_FALSE(index_ + 2 <= puff_size_); in Insert() 52 index_ += 2; in Insert() 59 TEST_AND_RETURN_FALSE(index_ + length <= puff_size_); in Insert() 61 puff_buf_out_[index_] = pd.byte; in Insert() 63 TEST_AND_RETURN_FALSE(pd.read_fn(&puff_buf_out_[index_], length)); in Insert() 69 index_ += length; in Insert() 88 TEST_AND_RETURN_FALSE(index_ + 3 <= puff_size_); in Insert() 90 puff_buf_out_[index_++] = in Insert() [all …]
|
D | bit_reader.cc | 12 if ((in_size_ - index_) * 8 + in_cache_bits_ < nbits) { in CacheBits() 19 in_cache_ |= in_buf_[index_++] << in_cache_bits_; in CacheBits() 47 index_ -= (in_cache_bits_ + 7) / 8; in GetByteReaderFn() 50 TEST_AND_RETURN_FALSE(length <= in_size_ - index_); in GetByteReaderFn() 54 memcpy(buffer, &in_buf_[index_], count); in GetByteReaderFn() 56 index_ += count; in GetByteReaderFn() 64 return index_ - in_cache_bits_ / 8; in Offset() 68 return (index_ * 8) - in_cache_bits_; in OffsetInBits() 72 return ((in_size_ - index_) * 8) + in_cache_bits_; in BitsRemaining()
|
D | bit_writer.cc | 14 TEST_AND_RETURN_FALSE(((out_size_ - index_) * 8) - out_holder_bits_ >= nbits); in WriteBits() 18 out_buf_[index_++] = out_holder_ & 0x000000FF; in WriteBits() 36 TEST_AND_RETURN_FALSE(((out_size_ - index_) * 8) - out_holder_bits_ >= in WriteBytes() 40 TEST_AND_RETURN_FALSE(read_fn(&out_buf_[index_], nbytes)); in WriteBytes() 41 index_ += nbytes; in WriteBytes() 52 out_buf_[index_++] = out_holder_ & 0x000000FF; in Flush() 60 return index_; in Size()
|
/external/icing/icing/index/ |
D | index_test.cc | 70 index_, Index::Create(options, &filesystem_, &icing_filesystem_)); in SetUp() 77 std::unique_ptr<Index> index_; member in icing::lib::__anonb0469cfc0111::IndexTest 147 index_->GetIterator("foo", kSectionIdMaskAll, TermMatchType::EXACT_ONLY)); in TEST_F() 153 index_->GetIterator("foo", kSectionIdMaskAll, TermMatchType::EXACT_ONLY)); in TEST_F() 160 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 164 index_->GetIterator("foo", kSectionIdMaskAll, TermMatchType::EXACT_ONLY)); in TEST_F() 170 index_->GetIterator("foo", kSectionIdMaskAll, TermMatchType::EXACT_ONLY)); in TEST_F() 176 Index::Editor edit = index_->Edit( in TEST_F() 183 index_->GetIterator("bar", kSectionIdMaskAll, TermMatchType::EXACT_ONLY)); in TEST_F() 191 index_->GetIterator("foo", kSectionIdMaskAll, TermMatchType::EXACT_ONLY)); in TEST_F() [all …]
|
D | index-processor_test.cc | 136 index_, Index::Create(options, &filesystem_, &icing_filesystem_)); in SetUp() 203 IndexProcessor::Create(normalizer_.get(), index_.get(), in SetUp() 221 std::unique_ptr<Index> index_; member in icing::lib::__anonf04aa9090111::IndexProcessorTest 240 EXPECT_THAT(IndexProcessor::Create(/*normalizer=*/nullptr, index_.get(), in TEST_F() 264 EXPECT_THAT(index_->last_added_document_id(), Eq(kDocumentId0)); in TEST_F() 280 EXPECT_THAT(index_->last_added_document_id(), Eq(kDocumentId0)); in TEST_F() 296 EXPECT_THAT(index_->last_added_document_id(), Eq(kDocumentId0)); in TEST_F() 299 index_->GetIterator("hello", kSectionIdMaskAll, in TEST_F() 308 itr, index_->GetIterator("hello", 1U << kPrefixedSectionId, in TEST_F() 327 EXPECT_THAT(index_->last_added_document_id(), Eq(kDocumentId0)); in TEST_F() [all …]
|
D | index-processor.cc | 61 if (index_->last_added_document_id() != kInvalidDocumentId && in IndexDocument() 62 document_id <= index_->last_added_document_id()) { in IndexDocument() 65 document_id, index_->last_added_document_id())); in IndexDocument() 67 index_->set_last_added_document_id(document_id); in IndexDocument() 73 index_->Edit(document_id, section.metadata.id, in IndexDocument() 127 if (overall_status.ok() && index_->WantsMerge()) { in IndexDocument() 131 libtextclassifier3::Status merge_status = index_->Merge(); in IndexDocument() 135 if (!index_->Reset().ok()) { in IndexDocument()
|
/external/webrtc/modules/audio_processing/vad/ |
D | vad_circular_buffer.cc | 20 index_(0), in VadCircularBuffer() 28 index_ = 0; in Reset() 42 return buffer_[index_]; in Oldest() 50 if (index_ > 0) in Mean() 51 m = sum_ / index_; in Mean() 60 sum_ -= buffer_[index_]; in Insert() 63 buffer_[index_] = value; in Insert() 64 index_++; in Insert() 65 if (index_ >= buffer_size_) { in Insert() 67 index_ = 0; in Insert() [all …]
|
D | standalone_vad.cc | 23 : vad_(vad), buffer_(), index_(0), mode_(kDefaultStandaloneVadMode) {} in StandaloneVad() 47 if (index_ + length > kLength10Ms * kMaxNum10msFrames) in AddAudio() 51 index_ = 0; in AddAudio() 53 memcpy(&buffer_[index_], data, sizeof(int16_t) * length); in AddAudio() 54 index_ += length; in AddAudio() 59 if (index_ == 0) in GetActivity() 62 const size_t num_frames = index_ / kLength10Ms; in GetActivity() 65 RTC_DCHECK_EQ(0, WebRtcVad_ValidRateAndFrameLength(kSampleRateHz, index_)); in GetActivity() 67 int activity = WebRtcVad_Process(vad_, kSampleRateHz, buffer_, index_); in GetActivity() 77 index_ = 0; in GetActivity()
|
/external/google-breakpad/src/processor/ |
D | static_map_iterator-inl.h | 47 index_(index), base_(base) { in StaticMapIterator() 64 if (++index_ > num_nodes_) index_ = num_nodes_; 76 if (++index_ > num_nodes_) index_ = num_nodes_; 88 if (--index_ < 0) index_ = 0; 101 if (--index_ < 0) index_ = 0; 111 return &(keys_[index_]); in GetKeyPtr() 120 return base_ + offsets_[index_]; in GetValueRawPtr() 126 return base_ == x.base_ && index_ == x.index_; 134 return base_ != x.base_ || index_ != x.index_; 139 if (!base_ || index_ < 0 || index_ > num_nodes_) in IsValid()
|
/external/angle/third_party/abseil-cpp/absl/strings/internal/ |
D | cord_rep_ring_reader.h | 41 CordRepRing::index_type index() const { return index_; } in index() 45 CordRep* node() const { return ring_->entry_child(index_); } in node() 61 return ring_->entry_end_offset(index_); in consumed() 79 index_ = ring_->head(); in Reset() 80 return ring_->entry_data(index_); in Reset() 88 index_ = ring_->advance(index_); in Next() 89 return ring_->entry_data(index_); in Next() 100 size_t current = ring_->entry_end_offset(index_); in Seek() 101 CordRepRing::index_type hint = (offset >= current) ? index_ : ring_->head(); in Seek() 103 index_ = head.index; in Seek() [all …]
|
/external/libchrome/base/containers/ |
D | circular_deque.h | 139 circular_deque_const_iterator() : parent_deque_(nullptr), index_(0) { in circular_deque_const_iterator() 148 parent_deque_->CheckValidIndex(index_); 149 return parent_deque_->buffer_[index_]; 153 parent_deque_->CheckValidIndex(index_); 154 return &parent_deque_->buffer_[index_]; 212 return lhs.index_ == rhs.index_; 241 : parent_deque_(parent), index_(index) { in circular_deque_const_iterator() 250 if (index_ >= parent_deque_->begin_) in OffsetFromBegin() 251 return index_ - parent_deque_->begin_; // On the same side as begin. in OffsetFromBegin() 252 return parent_deque_->buffer_.capacity() - parent_deque_->begin_ + index_; in OffsetFromBegin() [all …]
|
D | mru_cache.h | 97 typename KeyIndex::iterator index_iter = index_.find(key); in Put() 98 if (index_iter != index_.end()) { in Put() 109 index_.emplace(key, ordering_.begin()); in Put() 117 typename KeyIndex::iterator index_iter = index_.find(key); in Get() 118 if (index_iter == index_.end()) in Get() 130 typename KeyIndex::const_iterator index_iter = index_.find(key); in Peek() 131 if (index_iter == index_.end()) in Peek() 137 typename KeyIndex::const_iterator index_iter = index_.find(key); in Peek() 138 if (index_iter == index_.end()) in Peek() 146 index_.swap(other.index_); in Swap() [all …]
|
D | ring_buffer.h | 64 size_t index() const { return index_; } in index() 66 const T* operator->() const { return &buffer_.ReadBuffer(index_); } 67 const T* operator*() const { return &buffer_.ReadBuffer(index_); } 70 index_++; 71 if (index_ == kSize) 77 if (index_ == 0) 79 index_--; 84 return !out_of_range_ && buffer_.IsFilledIndex(index_); 89 : buffer_(buffer), index_(index), out_of_range_(false) {} in Iterator() 92 size_t index_; variable
|
/external/libchrome/base/ |
D | observer_list.h | 111 Iter() : index_(0), max_index_(0) {} in Iter() 115 index_(0), in Iter() 136 index_(other.index_), in Iter() 145 swap(index_, other.index_); 152 (list_.get() == other.list_.get() && index_ == other.index_); 159 ++index_; 189 DCHECK_LT(index_, clamped_max_index()); in GetCurrent() 190 return list_->observers_[index_]; in GetCurrent() 196 while (index_ < max_index && !list_->observers_[index_]) in EnsureValidIndex() 197 ++index_; in EnsureValidIndex() [all …]
|
/external/mesa3d/include/android_stub/backtrace/ |
D | BacktraceMap.h | 76 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} in iterator() 79 index_++; 83 index_ += increment; 87 index_--; 91 index_ -= decrement; 95 bool operator==(const iterator& rhs) { return this->index_ == rhs.index_; } 96 bool operator!=(const iterator& rhs) { return this->index_ != rhs.index_; } 99 if (index_ >= map_->size()) { 102 backtrace_map_t* map = &map_->maps_[index_]; 104 map->load_bias = map_->GetLoadBias(index_); [all …]
|
/external/angle/src/common/third_party/base/anglebase/containers/ |
D | mru_cache.h | 97 typename KeyIndex::iterator index_iter = index_.find(key); in Put() 98 if (index_iter != index_.end()) in Put() 112 index_.emplace(key, ordering_.begin()); in Put() 121 typename KeyIndex::iterator index_iter = index_.find(key); in Get() 122 if (index_iter == index_.end()) in Get() 135 typename KeyIndex::const_iterator index_iter = index_.find(key); in Peek() 136 if (index_iter == index_.end()) in Peek() 143 typename KeyIndex::const_iterator index_iter = index_.find(key); in Peek() 144 if (index_iter == index_.end()) in Peek() 153 index_.swap(other.index_); in Swap() [all …]
|
/external/libchrome/base/task/sequence_manager/ |
D | intrusive_heap.h | 23 HeapHandle() : index_(0u) {} in HeapHandle() 25 bool IsValid() const { return index_ != 0u; } in IsValid() 31 HeapHandle(size_t index) : index_(index) {} in HeapHandle() 33 size_t index_; variable 93 DCHECK_GT(handle.index_, 0u); in erase() 94 DCHECK_LE(handle.index_, size_); in erase() 95 MakeHole(handle.index_); in erase() 97 if (empty() || top_index == handle.index_) in erase() 99 if (nodes_[handle.index_] <= nodes_[top_index]) { in erase() 100 MoveHoleDownAndFillWithLeafElement(handle.index_, in erase() [all …]
|
/external/webrtc/modules/video_coding/ |
D | histogram.cc | 24 index_ = 0; in Histogram() 29 if (index_ < values_.size()) { in Add() 30 --buckets_[values_[index_]]; in Add() 31 RTC_DCHECK_LT(values_[index_], buckets_.size()); in Add() 32 values_[index_] = value; in Add() 38 index_ = (index_ + 1) % values_.capacity(); in Add()
|
/external/grpc-grpc/src/cpp/common/ |
D | auth_property_iterator.cc | 26 : property_(nullptr), ctx_(nullptr), index_(0), name_(nullptr) {} in AuthPropertyIterator() 32 index_(iter->index), in AuthPropertyIterator() 38 grpc_auth_property_iterator iter = {ctx_, index_, name_}; in operator ++() 41 index_ = iter.index; in operator ++() 56 return index_ == rhs.index_; in operator ==()
|
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/ |
D | auth_property_iterator.cc | 26 : property_(nullptr), ctx_(nullptr), index_(0), name_(nullptr) {} in AuthPropertyIterator() 32 index_(iter->index), in AuthPropertyIterator() 38 grpc_auth_property_iterator iter = {ctx_, index_, name_}; in operator ++() 41 index_ = iter.index; in operator ++() 56 return index_ == rhs.index_; in operator ==()
|
/external/libchrome/base/json/ |
D | json_parser.cc | 61 index_(0), in JSONParser() 75 index_ = 0; in Parse() 169 if (static_cast<size_t>(index_) + count > input_.length()) in PeekChars() 173 return StringPiece(input_.data() + index_, count); in PeekChars() 186 index_ += count; in ConsumeChars() 198 CHECK_LE(static_cast<size_t>(index_), input_.length()); in pos() 199 return input_.data() + index_; in pos() 252 index_last_line_ = index_; in EatWhitespaceAndComments() 254 if (!(c == '\n' && index_ > 0 && input_[index_ - 1] == '\r')) { in EatWhitespaceAndComments() 458 &index_, in ConsumeStringRaw() [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/ip/ |
D | basic_resolver_iterator.hpp | 65 : index_(0) in basic_resolver_iterator() 182 if (++index_ == values_->size()) in increment() 186 index_ = 0; in increment() 196 return index_ == other.index_; in equal() 201 return (*values_)[index_]; in dereference() 206 std::size_t index_; member in asio::ip::basic_resolver_iterator
|
/external/perfetto/src/kallsyms/ |
D | kernel_symbol_map.h | 139 size_t addr_bytes() const { return buf_.size() + index_.size() * 8; } in addr_bytes() 152 size_t size_bytes() const { return buf_.size() + index_.size() * 4; } in size_bytes() 156 index_.shrink_to_fit(); in shrink_to_fit() 166 std::vector<uint32_t> index_; variable 179 std::vector<std::pair<uint32_t /*rel_addr*/, uint32_t /*offset*/>> index_; variable
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/channel/ |
D | handshaker.cc | 116 if (!is_shutdown_ && index_ > 0) { in Shutdown() 118 handshakers_[index_ - 1]->Shutdown(GRPC_ERROR_REF(why)); in Shutdown() 132 this, grpc_error_string(error), is_shutdown_, index_, in CallNextHandshakerLocked() 135 GPR_ASSERT(index_ <= handshakers_.size()); in CallNextHandshakerLocked() 140 index_ == handshakers_.size()) { in CallNextHandshakerLocked() 173 auto handshaker = handshakers_[index_]; in CallNextHandshakerLocked() 178 this, handshaker->name(), handshaker.get(), index_); in CallNextHandshakerLocked() 182 ++index_; in CallNextHandshakerLocked() 218 GPR_ASSERT(index_ == 0); in DoHandshake()
|