Home
last modified time | relevance | path

Searched refs:current_pos (Results 1 – 19 of 19) sorted by relevance

/external/libbrillo/brillo/streams/
Dstream_utils_unittest.cc102 const uint64_t current_pos = 1234; in TEST() local
107 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
111 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST()
112 EXPECT_EQ(current_pos, pos); in TEST()
115 FROM_HERE, 0, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
119 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
123 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
125 EXPECT_EQ(current_pos + 10, pos); in TEST()
128 FROM_HERE, 10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
132 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dinput_audio_file.cc47 const long current_pos = ftell(fp_); in Seek() local
48 RTC_CHECK_NE(EOF, current_pos) in Seek()
54 long new_pos = current_pos + sizeof(int16_t) * samples; // Samples to bytes. in Seek()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_fileutils.cc36 int32_t current_pos = ftell(file_); in IsAtEnd() local
39 fseek(file_, current_pos, SEEK_SET); in IsAtEnd()
40 return current_pos == end_pos; in IsAtEnd()
/external/llvm/include/llvm/Support/
Draw_ostream.h92 uint64_t tell() const { return current_pos() + GetNumBytesInBuffer(); } in tell()
284 virtual uint64_t current_pos() const = 0;
363 uint64_t current_pos() const override { return pos; } in current_pos() function
458 uint64_t current_pos() const override { return OS.size(); } in current_pos() function
486 uint64_t current_pos() const override;
512 uint64_t current_pos() const override;
Draw_os_ostream.h33 uint64_t current_pos() const override;
Dcircular_raw_ostream.h88 uint64_t current_pos() const override { in current_pos() function
DFormattedStream.h48 uint64_t current_pos() const override { in current_pos() function
/external/webrtc/webrtc/p2p/base/
Dstun.cc144 size_t current_pos = kStunHeaderSize; in ValidateMessageIntegrity() local
146 while (current_pos < size) { in ValidateMessageIntegrity()
149 attr_type = rtc::GetBE16(&data[current_pos]); in ValidateMessageIntegrity()
150 attr_length = rtc::GetBE16(&data[current_pos + sizeof(attr_type)]); in ValidateMessageIntegrity()
155 current_pos + attr_length > size) { in ValidateMessageIntegrity()
163 current_pos += sizeof(attr_type) + sizeof(attr_length) + attr_length; in ValidateMessageIntegrity()
165 current_pos += (4 - (attr_length % 4)); in ValidateMessageIntegrity()
174 size_t mi_pos = current_pos; in ValidateMessageIntegrity()
175 rtc::scoped_ptr<char[]> temp_data(new char[current_pos]); in ValidateMessageIntegrity()
176 memcpy(temp_data.get(), data, current_pos); in ValidateMessageIntegrity()
[all …]
/external/v8/src/compiler/
Dgraph-visualizer.cc573 UsePosition* current_pos = range->first_pos(); in PrintLiveRange() local
574 while (current_pos != nullptr) { in PrintLiveRange()
575 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) { in PrintLiveRange()
576 os_ << " " << current_pos->pos().value() << " M"; in PrintLiveRange()
578 current_pos = current_pos->next(); in PrintLiveRange()
/external/llvm/lib/Support/
Draw_os_ostream.cpp30 uint64_t raw_os_ostream::current_pos() const { return OS.tellp(); } in current_pos() function in raw_os_ostream
Draw_ostream.cpp744 uint64_t raw_svector_ostream::current_pos() const { return OS.size(); } in current_pos() function in raw_svector_ostream
771 uint64_t raw_null_ostream::current_pos() const { in current_pos() function in raw_null_ostream
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_debug.cpp93 uint64_t current_pos() const { return pos; } in current_pos() function in raw_debug_ostream
96 uint64_t current_pos() { return pos; } in current_pos() function in raw_debug_ostream
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dtransfer.py877 current_pos = self.stream.tell()
880 self.stream.seek(current_pos)
881 if current_pos != end_pos:
884 (int(end_pos) - int(current_pos)))
/external/llvm/include/llvm/MC/
DMCLinkerOptimizationHint.h140 uint64_t current_pos() const override { return Count; } in getEmitSize()
/external/v8/src/parsing/
Dscanner.cc717 int current_pos = source_pos(); in SeekForward() local
718 DCHECK_EQ(next_.location.end_pos, current_pos); in SeekForward()
720 DCHECK(pos >= current_pos); in SeekForward()
721 if (pos != current_pos) { in SeekForward()
/external/toybox/kconfig/
Dlex.zconf.c_shipped771 } current_pos;
1046 current_pos.file = current_file;
1047 current_pos.lineno = current_file->lineno;
2343 return current_pos.lineno;
2348 return current_pos.file ? current_pos.file->name : "<none>";
/external/webrtc/talk/app/webrtc/
Dwebrtcsdp.cc901 size_t current_pos = 0; in SdpDeserialize() local
904 if (!ParseSessionDescription(message, &current_pos, &session_id, in SdpDeserialize()
912 if (!ParseMediaDescription(message, session_td, session_extmaps, &current_pos, in SdpDeserialize()
/external/libvpx/libvpx/vp8/encoder/
Dfirstpass.c2841 FIRSTPASS_STATS *current_pos = cpi->twopass.stats_in; in find_next_key_frame() local
2869 reset_fpf_position(cpi, current_pos); in find_next_key_frame()
/external/v8/src/crankshaft/
Dhydrogen.cc13490 UsePosition* current_pos = range->first_pos(); in TraceLiveRange() local
13491 while (current_pos != NULL) { in TraceLiveRange()
13492 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) { in TraceLiveRange()
13493 trace_.Add(" %d M", current_pos->pos().Value()); in TraceLiveRange()
13495 current_pos = current_pos->next(); in TraceLiveRange()