/external/chromium_org/base/test/expectations/ |
D | parser.cc | 14 pos_(NULL), in Parser() 24 pos_ = &input_[0]; in Parse() 25 end_ = pos_ + input_.length(); in Parse() 36 return pos_ < end_; in HasNext() 42 if (IsAsciiWhitespace(*pos_)) in Start() 46 if (*pos_ == '#') in Start() 51 if (pos_ >= end_) in Start() 61 if (*pos_ != '#') in ParseComment() 65 ++pos_; in ParseComment() 66 } while (HasNext() && *pos_ != '\n'); in ParseComment() [all …]
|
/external/chromium_org/net/dns/ |
D | dns_hosts.cc | 26 pos_(0), in HostsParser() 34 bool next_is_ip = (pos_ == 0); in Advance() 35 while (pos_ < end_ && pos_ != std::string::npos) { in Advance() 36 switch (text_[pos_]) { in Advance() 45 pos_++; in Advance() 53 size_t token_start = pos_; in Advance() 55 size_t token_end = (pos_ == std::string::npos) ? end_ : pos_; in Advance() 73 pos_ = text_.find("\n", pos_); in SkipRestOfLine() 88 pos_ = text_.find_first_of(" \t\n\r#", pos_); in SkipToken() 92 pos_ = text_.find_first_not_of(" \t", pos_); in SkipWhitespace() [all …]
|
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/metadata/ |
D | byte_reader.js | 17 this.pos_ = 0; 259 return this.pos_ + size <= this.view_.byteLength; 267 return this.pos_ >= this.view_.byteLength; 275 return this.pos_ < 0; 283 return this.pos_ >= this.view_.byteLength || this.pos_ < 0; 308 ByteReader.validateRead(this.view_, this.pos_, size, opt_end); 343 var rv = this.view_[method](this.pos_, this.littleEndian_); 344 this.pos_ += width; 359 var rv = ByteReader.readString(this.view_, this.pos_, size, opt_end); 360 this.pos_ += size; [all …]
|
/external/chromium_org/v8/src/ |
D | log-utils.cc | 120 pos_(0) { in MessageBuilder() 126 Vector<char> buf(log_->message_buffer_ + pos_, in Append() 127 Log::kMessageBufferSize - pos_); in Append() 132 ASSERT(pos_ <= Log::kMessageBufferSize); in Append() 137 Vector<char> buf(log_->message_buffer_ + pos_, in AppendVA() 138 Log::kMessageBufferSize - pos_); in AppendVA() 143 pos_ += result; in AppendVA() 145 pos_ = Log::kMessageBufferSize; in AppendVA() 147 ASSERT(pos_ <= Log::kMessageBufferSize); in AppendVA() 152 if (pos_ < Log::kMessageBufferSize) { in Append() [all …]
|
D | scanner-character-streams.cc | 54 pos_--; in PushBack() 60 pos_--; in PushBack() 82 ASSERT(pos_ > 0); in SlowPushBack() 89 pos_--; in SlowPushBack() 104 unsigned length = FillBuffer(pos_, kBufferSize); in ReadBlock() 131 pos_ = start_position; in GenericStringUtf16CharacterStream() 139 unsigned old_pos = pos_; in BufferSeekForward() 140 pos_ = Min(pos_ + delta, length_); in BufferSeekForward() 142 return pos_ - old_pos; in BufferSeekForward() 174 unsigned old_pos = pos_; in BufferSeekForward() [all …]
|
/external/v8/src/ |
D | log-utils.cc | 200 pos_(0) { in LogMessageBuilder() 206 Vector<char> buf(log_->message_buffer_ + pos_, in Append() 207 Log::kMessageBufferSize - pos_); in Append() 212 ASSERT(pos_ <= Log::kMessageBufferSize); in Append() 217 Vector<char> buf(log_->message_buffer_ + pos_, in AppendVA() 218 Log::kMessageBufferSize - pos_); in AppendVA() 223 pos_ += result; in AppendVA() 225 pos_ = Log::kMessageBufferSize; in AppendVA() 227 ASSERT(pos_ <= Log::kMessageBufferSize); in AppendVA() 232 if (pos_ < Log::kMessageBufferSize) { in Append() [all …]
|
D | scanner-character-streams.cc | 53 pos_--; in PushBack() 59 pos_--; in PushBack() 81 ASSERT(pos_ > 0); in SlowPushBack() 88 pos_--; in SlowPushBack() 103 unsigned length = FillBuffer(pos_, kBufferSize); in ReadBlock() 129 pos_ = start_position; in GenericStringUtf16CharacterStream() 137 unsigned old_pos = pos_; in BufferSeekForward() 138 pos_ = Min(pos_ + delta, length_); in BufferSeekForward() 140 return pos_ - old_pos; in BufferSeekForward() 172 unsigned old_pos = pos_; in BufferSeekForward() [all …]
|
D | assembler.cc | 136 if (pos_ < 0) return -pos_ - 1; in pos() 137 if (pos_ > 0) return pos_ - 1; in pos() 257 *--pos_ = b << kLastChunkTagBits; in WriteVariableLengthPCJump() 260 *pos_ = *pos_ | kLastChunkTag; in WriteVariableLengthPCJump() 269 *--pos_ = pc_delta << kTagBits | tag; in WriteTaggedPC() 274 *--pos_ = static_cast<byte>(data_delta << kLocatableTypeTagBits | tag); in WriteTaggedData() 279 *--pos_ = static_cast<int>(top_tag << (kTagBits + kExtraTagBits) | in WriteExtraTag() 289 *--pos_ = pc_delta; in WriteExtraTaggedPC() 296 *--pos_ = static_cast<byte>(data_delta); in WriteExtraTaggedIntData() 305 *--pos_ = static_cast<byte>(data_delta); in WriteExtraTaggedData() [all …]
|
/external/chromium_org/base/json/ |
D | json_parser.cc | 190 pos_(NULL), in JSONParser() 215 pos_ = start_pos_; in Parse() 229 if (CanConsume(3) && static_cast<uint8>(*pos_) == 0xEF && in Parse() 230 static_cast<uint8>(*(pos_ + 1)) == 0xBB && in Parse() 231 static_cast<uint8>(*(pos_ + 2)) == 0xBF) { in Parse() 279 : pos_(NULL), in StringBuilder() 285 : pos_(pos), in StringBuilder() 292 std::swap(other->pos_, pos_); in Swap() 318 string_ = new std::string(pos_, length_); in Convert() 328 return StringPiece(pos_, length_); in AsStringPiece() [all …]
|
/external/chromium_org/net/quic/ |
D | quic_data_reader.cc | 17 pos_(0) { in QuicDataReader() 115 result->set(data_ + pos_, size); in ReadStringPiece() 118 pos_ += size; in ReadStringPiece() 125 pos_ = len_; in ReadRemainingPayload() 130 return StringPiece(data_ + pos_, len_ - pos_); in PeekRemainingPayload() 141 memcpy(result, data_ + pos_, size); in ReadBytes() 144 pos_ += size; in ReadBytes() 150 return len_ == pos_; in IsDoneReading() 154 return len_ - pos_; in BytesRemaining() 158 return bytes <= (len_ - pos_); in CanRead() [all …]
|
/external/chromium/chrome/browser/resources/file_manager/js/ |
D | exif_reader.js | 189 this.pos_ = 0; 207 return this.pos_ >= this.ary_.length; 219 rv = this.ary_[this.pos_++] << 24; 221 rv |= this.ary_[this.pos_++] << 16; 223 rv |= this.ary_[this.pos_++] << 8; 225 rv |= this.ary_[this.pos_++]; 238 rv = this.ary_[this.pos_ + 3] << 24; 240 rv |= this.ary_[this.pos_ + 2] << 16; 242 rv |= this.ary_[this.pos_+ 1] << 8; 244 rv |= this.ary_[this.pos_]; [all …]
|
/external/chromium/net/base/ |
D | pem_tokenizer.cc | 39 while (pos_ != StringPiece::npos) { in GetNext() 41 pos_ = str_.find(kPEMSearchBlock, pos_); in GetNext() 42 if (pos_ == StringPiece::npos) in GetNext() 48 if (!str_.substr(pos_).starts_with(it->header)) in GetNext() 53 StringPiece::size_type footer_pos = str_.find(it->footer, pos_); in GetNext() 55 pos_ = StringPiece::npos; in GetNext() 60 StringPiece::size_type data_begin = pos_ + it->header.size(); in GetNext() 61 pos_ = footer_pos + it->footer.size(); in GetNext() 81 pos_ += sizeof(kPEMSearchBlock); in GetNext() 91 pos_ = 0; in Init()
|
/external/chromium_org/net/cert/ |
D | pem_tokenizer.cc | 39 while (pos_ != StringPiece::npos) { in GetNext() 41 pos_ = str_.find(kPEMSearchBlock, pos_); in GetNext() 42 if (pos_ == StringPiece::npos) in GetNext() 48 if (!str_.substr(pos_).starts_with(it->header)) in GetNext() 53 StringPiece::size_type footer_pos = str_.find(it->footer, pos_); in GetNext() 55 pos_ = StringPiece::npos; in GetNext() 60 StringPiece::size_type data_begin = pos_ + it->header.size(); in GetNext() 61 pos_ = footer_pos + it->footer.size(); in GetNext() 81 pos_ += sizeof(kPEMSearchBlock); in GetNext() 91 pos_ = 0; in Init()
|
/external/chromium/base/i18n/ |
D | break_iterator.cc | 21 pos_(0) { in BreakIterator() 59 prev_ = pos_; in Advance() 65 pos_ = npos; in Advance() 68 pos_ = static_cast<size_t>(pos); in Advance() 76 pos_ = static_cast<size_t>(pos); in Advance() 79 if (pos == UBRK_DONE && prev_ == pos_) { in Advance() 80 pos_ = npos; in Advance() 97 DCHECK(prev_ != npos && pos_ != npos); in GetString() 98 return string_->substr(prev_, pos_ - prev_); in GetString()
|
/external/icu4c/common/ |
D | bytestrieiterator.cpp | 26 pos_(bytes_), initialPos_(bytes_), in Iterator() 47 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator() 70 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator() 71 pos_+=length; in Iterator() 83 pos_=initialPos_; in reset() 90 pos_+=length; in reset() 97 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext() 104 const uint8_t *pos=pos_; in next() 138 pos_=NULL; in next() 140 pos_=skipValue(pos, node); in next() [all …]
|
D | ucharstrieiterator.cpp | 25 pos_(uchars_), initialPos_(uchars_), in Iterator() 46 : uchars_(trie.uchars_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator() 69 str_.append(pos_, length); in Iterator() 70 pos_+=length; in Iterator() 81 pos_=initialPos_; in reset() 89 pos_+=length; in reset() 96 UCharsTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext() 103 const UChar *pos=pos_; in next() 146 pos_=NULL; in next() 152 pos_=pos-1; in next() [all …]
|
/external/chromium_org/base/i18n/ |
D | break_iterator.cc | 22 pos_(0) { in BreakIterator() 63 prev_ = pos_; in Advance() 70 pos_ = npos; in Advance() 73 pos_ = static_cast<size_t>(pos); in Advance() 80 pos_ = static_cast<size_t>(pos); in Advance() 83 if (pos == UBRK_DONE && prev_ == pos_) { in Advance() 84 pos_ = npos; in Advance() 121 DCHECK(prev_ != npos && pos_ != npos); in GetString() 122 return string_.substr(prev_, pos_ - prev_); in GetString()
|
/external/chromium-trace/trace-viewer/src/ui/ |
D | mouse_mode_selector.js | 49 this.pos_ = { property 305 this.pos_.x = Math.max(this.pos_.x, left); 306 this.pos_.x = Math.min(this.pos_.x, right); 308 this.pos_.y = Math.max(this.pos_.y, top); 309 this.pos_.y = Math.min(this.pos_.y, bottom); 313 this.style.left = this.pos_.x + 'px'; 314 this.style.top = this.pos_.y + 'px'; 316 base.Settings.set('mouse_mode_selector.x', this.pos_.x); 317 base.Settings.set('mouse_mode_selector.y', this.pos_.y); 335 this.pos_.x = (e.clientX - this.initialRelativeMouseDownPos_.x); [all …]
|
/external/icu4c/common/unicode/ |
D | bytestrie.h | 66 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie() 82 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in BytesTrie() 90 pos_=bytes_; in reset() 124 state.pos=pos_; in saveState() 141 pos_=state.pos; in resetToState() 207 const uint8_t *pos=pos_; in getValue() 223 const uint8_t *pos=pos_; in hasUniqueValue() 322 const uint8_t *pos_; variable 354 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie() 360 pos_=NULL; in stop() [all …]
|
D | ucharstrie.h | 66 pos_(uchars_), remainingMatchLength_(-1) {} in UCharsTrie() 82 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in UCharsTrie() 90 pos_=uchars_; in reset() 124 state.pos=pos_; in saveState() 141 pos_=state.pos; in resetToState() 221 const UChar *pos=pos_; in getValue() 238 const UChar *pos=pos_; in hasUniqueValue() 332 pos_=NULL; in truncateAndStop() 340 const UChar *pos_; variable 371 pos_(uchars_), remainingMatchLength_(-1) {} in UCharsTrie() [all …]
|
/external/chromium_org/chrome/browser/ui/app_list/search/ |
D | term_break_iterator.cc | 17 pos_(0), in TermBreakIterator() 45 prev_ = pos_; in Advance() 46 pos_ = iter_->array_pos(); in Advance() 48 return prev_ != pos_ || !iter_->end(); in Advance() 52 DCHECK(prev_ != npos && pos_ != npos); in GetCurrentTerm() 53 return word_.substr(prev_, pos_ - prev_); in GetCurrentTerm()
|
/external/chromium_org/third_party/libwebp/utils/ |
D | bit_reader.c | 138 br->pos_ = 0; in VP8LInitBitReader() 143 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (8 * i); in VP8LInitBitReader() 144 ++br->pos_; in VP8LInitBitReader() 153 br->eos_ = (br->pos_ >= len); in VP8LBitReaderSetBuffer() 160 while (br->bit_pos_ >= 8 && br->pos_ < br->len_) { in ShiftBytes() 162 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (LBITS - 8); in ShiftBytes() 163 ++br->pos_; in ShiftBytes() 171 if (br->pos_ + sizeof(br->val_) < br->len_) { in VP8LFillBitWindow() 176 br->val_ |= *(const vp8l_val_t*)(br->buf_ + br->pos_) << (LBITS - WBITS); in VP8LFillBitWindow() 177 br->pos_ += LOG8_WBITS; in VP8LFillBitWindow() [all …]
|
/external/webp/src/utils/ |
D | bit_reader.c | 138 br->pos_ = 0; in VP8LInitBitReader() 143 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (8 * i); in VP8LInitBitReader() 144 ++br->pos_; in VP8LInitBitReader() 153 br->eos_ = (br->pos_ >= len); in VP8LBitReaderSetBuffer() 160 while (br->bit_pos_ >= 8 && br->pos_ < br->len_) { in ShiftBytes() 162 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (LBITS - 8); in ShiftBytes() 163 ++br->pos_; in ShiftBytes() 171 if (br->pos_ + sizeof(br->val_) < br->len_) { in VP8LFillBitWindow() 176 br->val_ |= *(const vp8l_val_t*)(br->buf_ + br->pos_) << (LBITS - WBITS); in VP8LFillBitWindow() 177 br->pos_ += LOG8_WBITS; in VP8LFillBitWindow() [all …]
|
/external/chromium_org/third_party/skia/src/images/ |
D | bmpdecoderhelper.cpp | 25 pos_ = 0; in DecodeImage() 91 if (pos_ + (cols * colLen) > len_) { in DecodeImage() 112 if (pos_ + 12 > len_) { in DecodeImage() 156 if (offset > 0 && (size_t)offset > pos_ && (size_t)offset < len_) { in DecodeImage() 157 pos_ = offset; in DecodeImage() 161 if (!rle && (pos_ + (rowLen * height_) > len_ + 1)) { in DecodeImage() 185 while (pos_ + 1 < len_) { in DoRLEDecode() 213 if (pos_ + 1 < len_) { in DoRLEDecode() 229 while (cmd-- && pos_ < len_) { in DoRLEDecode() 249 if ((bytesRead & 1) && pos_ < len_) { in DoRLEDecode() [all …]
|
/external/skia/src/images/ |
D | bmpdecoderhelper.cpp | 25 pos_ = 0; in DecodeImage() 91 if (pos_ + (cols * colLen) > len_) { in DecodeImage() 112 if (pos_ + 12 > len_) { in DecodeImage() 156 if (offset > 0 && (size_t)offset > pos_ && (size_t)offset < len_) { in DecodeImage() 157 pos_ = offset; in DecodeImage() 161 if (!rle && (pos_ + (rowLen * height_) > len_ + 1)) { in DecodeImage() 185 while (pos_ + 1 < len_) { in DoRLEDecode() 213 if (pos_ + 1 < len_) { in DoRLEDecode() 229 while (cmd-- && pos_ < len_) { in DoRLEDecode() 249 if ((bytesRead & 1) && pos_ < len_) { in DoRLEDecode() [all …]
|