Home
last modified time | relevance | path

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

12

/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/swiftshader/third_party/LLVM/include/llvm/Support/
Draw_ostream.h84 uint64_t tell() const { return current_pos() + GetNumBytesInBuffer(); } in tell()
254 virtual uint64_t current_pos() const = 0;
315 virtual uint64_t current_pos() const { return pos; } in current_pos() function
432 virtual uint64_t current_pos() const { return OS.size(); } in current_pos() function
456 virtual uint64_t current_pos() const;
482 virtual uint64_t current_pos() const;
Draw_os_ostream.h33 virtual uint64_t current_pos() const;
DFormattedStream.h62 virtual uint64_t current_pos() const { in current_pos() function
Dcircular_raw_ostream.h89 virtual uint64_t current_pos() const { in current_pos() function
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D1-5.c171 intptr_t stack_start, stack_end, current_pos; in threaded()
176 current_pos = (intptr_t) & ret; in threaded()
184 if ((stack_start > current_pos) || (current_pos > stack_end)) { in threaded()
/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/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;
Draw_sha1_ostream.h42 uint64_t current_pos() const override { return 0; } in current_pos() function
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/swiftshader/third_party/llvm-subzero/include/llvm/Support/
Draw_ostream.h98 uint64_t tell() const { return current_pos() + GetNumBytesInBuffer(); } in tell()
297 virtual uint64_t current_pos() const = 0;
376 uint64_t current_pos() const override { return pos; } in current_pos() function
471 uint64_t current_pos() const override { return OS.size(); } in current_pos() function
499 uint64_t current_pos() const override;
526 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
/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/tensorflow/tensorflow/core/kernels/data/
Dreader_dataset_ops.cc196 int64 current_pos; in RestoreInternal() local
198 reader->ReadScalar(full_name("current_pos"), &current_pos)); in RestoreInternal()
201 TF_RETURN_IF_ERROR(buffered_input_stream_->Seek(current_pos)); in RestoreInternal()
380 const int64 current_pos = input_buffer_->Tell(); in GetNextInternal() local
382 if (current_pos < file_pos_limit_) { in GetNextInternal()
444 int64 current_pos = input_buffer_ ? input_buffer_->Tell() : -1; in SaveInternal() local
446 writer->WriteScalar(full_name("current_pos"), current_pos)); in SaveInternal()
457 int64 current_pos; in RestoreInternal() local
459 reader->ReadScalar(full_name("current_pos"), &current_pos)); in RestoreInternal()
464 if (current_pos >= 0) { // There was an active input_buffer_. in RestoreInternal()
[all …]
/external/tensorflow/tensorflow/contrib/kafka/kernels/
Dkafka_dataset_ops.cc196 int64 current_pos; in RestoreInternal() local
198 reader->ReadScalar(full_name("current_pos"), &current_pos)); in RestoreInternal()
201 topic_partition_->set_offset(current_pos); in RestoreInternal()
202 if (topic_partition_->offset() != current_pos) { in RestoreInternal()
204 current_pos); in RestoreInternal()
206 offset_ = current_pos; in RestoreInternal()
/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.cc625 UsePosition* current_pos = range->first_pos(); in PrintLiveRange() local
626 while (current_pos != nullptr) { in PrintLiveRange()
627 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) { in PrintLiveRange()
628 os_ << " " << current_pos->pos().value() << " M"; in PrintLiveRange()
630 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
/external/swiftshader/third_party/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
/external/swiftshader/third_party/llvm-subzero/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
/external/llvm/lib/MC/
DMCLinkerOptimizationHint.cpp48 uint64_t current_pos() const override { return Count; } in getEmitSize() function in MCLOHDirective::getEmitSize::raw_counting_ostream
/external/libtextclassifier/
Dfeature-processor.cc94 int current_pos = it->start; in SplitTokensOnSelectionBoundaries() local
97 current_pos, in SplitTokensOnSelectionBoundaries()
98 current_pos + std::distance(last_start, split_point)); in SplitTokensOnSelectionBoundaries()
101 current_pos = new_token.end; in SplitTokensOnSelectionBoundaries()

12