Home
last modified time | relevance | path

Searched refs:buffer_size_ (Results 1 – 25 of 55) sorted by relevance

123

/external/protobuf/src/google/protobuf/io/
Dcoded_stream.cc620 buffer_size_(0), in CodedOutputStream()
636 buffer_size_(0), in CodedOutputStream()
655 if (buffer_size_ > 0) { in Trim()
656 output_->BackUp(buffer_size_); in Trim()
657 total_bytes_ -= buffer_size_; in Trim()
658 buffer_size_ = 0; in Trim()
666 while (count > buffer_size_) { in Skip()
667 count -= buffer_size_; in Skip()
676 if (buffer_size_ == 0 && !Refresh()) return false; in GetDirectBufferPointer()
679 *size = buffer_size_; in GetDirectBufferPointer()
[all …]
Dprinter.cc48 buffer_size_(0), in Printer()
59 buffer_size_(0), in Printer()
67 if (buffer_size_ > 0 && !failed_) { in ~Printer()
68 output_->BackUp(buffer_size_); in ~Printer()
324 while (size > buffer_size_) { in WriteRaw()
327 memcpy(buffer_, data, buffer_size_); in WriteRaw()
328 offset_ += buffer_size_; in WriteRaw()
329 data += buffer_size_; in WriteRaw()
330 size -= buffer_size_; in WriteRaw()
332 failed_ = !output_->Next(&void_buffer, &buffer_size_); in WriteRaw()
[all …]
Dzero_copy_stream_impl_lite.cc255 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
283 buffer_used_ = copying_stream_->Read(buffer_.get(), buffer_size_); in Next()
341 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
361 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
377 if (buffer_used_ == buffer_size_) { in Next()
384 *size = buffer_size_ - buffer_used_; in Next()
385 buffer_used_ = buffer_size_; in Next()
391 GOOGLE_CHECK_EQ(buffer_used_, buffer_size_) in BackUp()
425 buffer_.reset(new uint8[buffer_size_]); in AllocateBufferIfNeeded()
Dtokenizer.cc192 buffer_size_(0), in Tokenizer()
215 if (buffer_size_ > buffer_pos_) { in ~Tokenizer()
216 input_->BackUp(buffer_size_ - buffer_pos_); in ~Tokenizer()
237 if (buffer_pos_ < buffer_size_) { in NextChar()
251 if (record_target_ != NULL && record_start_ < buffer_size_) { in Refresh()
252 record_target_->append(buffer_ + record_start_, buffer_size_ - record_start_); in Refresh()
260 if (!input_->Next(&data, &buffer_size_)) { in Refresh()
262 buffer_size_ = 0; in Refresh()
267 } while (buffer_size_ == 0); in Refresh()
Dzero_copy_stream_impl_lite.h268 const int buffer_size_; variable
357 const int buffer_size_; variable
Dcoded_stream.h808 int buffer_size_; variable
1067 if (buffer_size_ < size) { in GetDirectBufferForNBytesAndAdvance()
1138 if (buffer_size_ >= 5) { in WriteVarint32()
1194 return total_bytes_ - buffer_size_; in ByteCount()
1203 buffer_size_ -= amount; in Advance()
/external/webrtc/webrtc/modules/audio_processing/vad/
Dvad_circular_buffer.cc22 buffer_size_(buffer_size), in VadCircularBuffer()
51 m = sum_ / buffer_size_; in Mean()
68 if (index_ >= buffer_size_) { in Insert()
75 return buffer_size_; in BufferLevel()
99 if (*index < 0 || *index >= buffer_size_) in ConvertToLinearIndex()
107 *index += buffer_size_; in ConvertToLinearIndex()
/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions_test.cc30 MockErrorReporter() : buffer_size_(0) {} in MockErrorReporter()
32 buffer_size_ = vsnprintf(buffer_, kBufferSize, format, args); in Report()
33 return buffer_size_; in Report()
36 int GetBufferSize() { return buffer_size_; } in GetBufferSize()
38 string GetAsString() const { return string(buffer_, buffer_size_); } in GetAsString()
43 int buffer_size_; member in tflite::__anone56a4f1f0111::MockErrorReporter
Dop_resolver_test.cc66 MockErrorReporter() : buffer_size_(0) {} in MockErrorReporter()
68 buffer_size_ = vsnprintf(buffer_, kBufferSize, format, args); in Report()
69 return buffer_size_; in Report()
72 int GetBufferSize() { return buffer_size_; } in GetBufferSize()
77 int buffer_size_; member in tflite::__anon8e48ea960111::MockErrorReporter
/external/tensorflow/tensorflow/core/kernels/data/
Dshuffle_dataset_op.cc51 buffer_size_(buffer_size), in ShuffleDatasetBase()
83 params.dataset->buffer_size_); in Iterator()
99 while (input_impl_ && num_elements_ < this->dataset()->buffer_size_) { in GetNextInternal()
105 << this->dataset()->buffer_size_; in GetNextInternal()
133 buffer_[slices_.back()->end % this->dataset()->buffer_size_] = in GetNextInternal()
166 (slices_.front()->start + offset) % this->dataset()->buffer_size_; in GetNextInternal()
171 buffer_[slices_.front()->start % this->dataset()->buffer_size_]); in GetNextInternal()
229 size_t index = j % this->dataset()->buffer_size_; in SaveInternal()
277 this->dataset()->buffer_size_); in RestoreInternal()
287 size_t index = j % this->dataset()->buffer_size_; in RestoreInternal()
[all …]
Dreader_dataset_ops.cc349 buffer_size_(buffer_size), in Dataset()
395 TF_RETURN_IF_ERROR(b->AddScalar(buffer_size_, &buffer_size)); in AsGraphDefInternal()
470 file_.get(), dataset()->buffer_size_); in GetNextInternal()
513 file_.get(), dataset()->buffer_size_); in RestoreInternal()
637 file_stream_.get(), dataset()->buffer_size_, in GetNextInternal()
638 dataset()->buffer_size_, zlib_options); in GetNextInternal()
641 file_.get(), dataset()->buffer_size_); in GetNextInternal()
698 file_stream_.get(), dataset()->buffer_size_, in RestoreInternal()
699 dataset()->buffer_size_, zlib_options); in RestoreInternal()
727 const int64 buffer_size_; member in tensorflow::data::__anon94ec6c760111::FixedLengthRecordDatasetOp::Dataset
Dprefetch_dataset_op.cc41 buffer_size_(buffer_size) { in Dataset()
72 TF_RETURN_IF_ERROR(b->AddScalar(buffer_size_, &buffer_size)); in AsGraphDefInternal()
83 auto_tuner_(params.dataset->buffer_size_) {} in Iterator()
379 const int64 buffer_size_; member in tensorflow::data::PrefetchDatasetOp::Dataset
/external/autotest/client/deps/glbench/src/
Dbufferuploadsubtest.cc15 : buffer_size_(1572864), in BufferUploadSubTest()
29 GLsizeiptr buffer_size_; member in glbench::BufferUploadSubTest
39 if (offset + size_ > buffer_size_) { in TestFunc()
67 glBufferData(target_, buffer_size_, NULL, usage); in Run()
/external/perfetto/src/tracing/core/
Dtrace_stats.cc176 return (buffer_size_ == other.buffer_size_) && in operator ==()
200 static_assert(sizeof(buffer_size_) == sizeof(proto.buffer_size()), in FromProto()
202 buffer_size_ = static_cast<decltype(buffer_size_)>(proto.buffer_size()); in FromProto()
298 static_assert(sizeof(buffer_size_) == sizeof(proto->buffer_size()), in ToProto()
301 static_cast<decltype(proto->buffer_size())>(buffer_size_)); in ToProto()
/external/webrtc/webrtc/modules/desktop_capture/
Ddiffer_unittest.cc38 buffer_size_ = width_ * height_ * bytes_per_pixel_; in InitDiffer()
42 prev_.reset(new uint8_t[buffer_size_]); in InitDiffer()
43 memset(prev_.get(), 0, buffer_size_); in InitDiffer()
45 curr_.reset(new uint8_t[buffer_size_]); in InitDiffer()
46 memset(curr_.get(), 0, buffer_size_); in InitDiffer()
50 memset(buffer, 0, buffer_size_); in ClearBuffer()
200 int buffer_size_; member in webrtc::DifferTest
/external/webrtc/webrtc/test/gl/
Dgl_renderer.cc59 buffer_size_ = width * height * 4; // BGRA in ResizeVideo()
62 buffer_ = new uint8_t[buffer_size_]; in ResizeVideo()
64 memset(buffer_, 0, buffer_size_); in ResizeVideo()
/external/libtextclassifier/utils/zlib/
Dzlib.cc129 buffer_size_ = tmp_buffer_size; in ZlibCompressor()
130 buffer_.reset(new Bytef[buffer_size_]); in ZlibCompressor()
154 stream_.avail_out = buffer_size_; in Compress()
173 stream_.avail_out = buffer_size_; in Compress()
/external/v8/src/s390/
Dassembler-s390.cc353 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); in Assembler()
366 desc->buffer_size = buffer_size_; in GetCode()
368 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); in GetCode()
726 if (buffer_size_ < 4 * KB) { in GrowBuffer()
728 } else if (buffer_size_ < 1 * MB) { in GrowBuffer()
729 desc.buffer_size = 2 * buffer_size_; in GrowBuffer()
731 desc.buffer_size = buffer_size_ + 1 * MB; in GrowBuffer()
733 int space = buffer_space() + (desc.buffer_size - buffer_size_); in GrowBuffer()
749 desc.reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); in GrowBuffer()
754 (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_); in GrowBuffer()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp8_test_helper.h44 size_t buffer_size() const { return buffer_size_; } in buffer_size()
64 size_t buffer_size_; variable
Drtp_format_vp8_test_helper.cc28 buffer_size_(0), in RtpFormatVp8TestHelper()
48 buffer_size_ = payload_size_ + 6; // Add space for payload descriptor. in Init()
50 buffer_ = new uint8_t[buffer_size_]; in Init()
/external/tensorflow/tensorflow/lite/tools/
Dverifier_test.cc38 MockErrorReporter() : buffer_size_(0) {} in MockErrorReporter()
40 buffer_size_ = vsnprintf(buffer_, kBufferSize, format, args); in Report()
41 return buffer_size_; in Report()
43 int GetBufferSize() { return buffer_size_; } in GetBufferSize()
45 string GetAsString() const { return string(buffer_, buffer_size_); } in GetAsString()
50 int buffer_size_; member in tflite::MockErrorReporter
/external/perfetto/include/perfetto/tracing/core/
Dtrace_stats.h67 uint64_t buffer_size() const { return buffer_size_; } in buffer_size()
68 void set_buffer_size(uint64_t value) { buffer_size_ = value; } in set_buffer_size()
132 uint64_t buffer_size_ = {};
/external/webrtc/webrtc/sound/
Dalsasoundsystem.cc245 buffer_size_(0) { in AlsaInputStream()
293 if (size > buffer_size_) { in OnHaveWork()
296 buffer_size_ = size; in OnHaveWork()
333 size_t buffer_size_; member in rtc::AlsaInputStream
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.h314 : file_(file), position_(0), buffer_size_(buffer_size) { in FileOutputBuffer()
340 const size_t buffer_size_; variable
/external/protobuf/src/google/protobuf/
Dtext_format.cc1115 buffer_size_(0), in TextGenerator()
1126 if (!failed_ && buffer_size_ > 0) { in ~TextGenerator()
1127 output_->BackUp(buffer_size_); in ~TextGenerator()
1200 while (size > buffer_size_) { in Write()
1203 memcpy(buffer_, data, buffer_size_); in Write()
1204 data += buffer_size_; in Write()
1205 size -= buffer_size_; in Write()
1207 failed_ = !output_->Next(&void_buffer, &buffer_size_); in Write()
1215 buffer_size_ -= size; in Write()
1220 int buffer_size_; member in google::protobuf::TextFormat::Printer::TextGenerator

123