Home
last modified time | relevance | path

Searched refs:total_bytes_ (Results 1 – 25 of 30) sorted by relevance

12

/external/chromium/chrome/browser/download/
Dsave_item.cc22 total_bytes_(0), in SaveItem()
45 if (received_bytes_ >= total_bytes_) in UpdateSize()
46 total_bytes_ = 0; in UpdateSize()
103 if (total_bytes_ > 0) in PercentComplete()
104 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_); in PercentComplete()
128 DCHECK(total_bytes_ == 0); in SetTotalBytes()
129 total_bytes_ = total_bytes; in SetTotalBytes()
Ddownload_status_updater_unittest.cc20 total_bytes_(0) { in MockDelegate()
46 return total_bytes_; in GetTotalDownloadBytes()
62 total_bytes_ = total_bytes; in set_total_bytes()
71 int64 total_bytes_; member in __anon7151e2d70111::MockDelegate
Ddownload_item.cc125 total_bytes_(info.total_bytes), in DownloadItem()
165 total_bytes_(info.total_bytes), in DownloadItem()
205 total_bytes_(0), in DownloadItem()
311 if (received_bytes_ > total_bytes_) in UpdateSize()
312 total_bytes_ = 0; in UpdateSize()
438 if (total_bytes_ <= 0) in TimeRemaining()
446 base::TimeDelta::FromSeconds((total_bytes_ - received_bytes_) / speed); in TimeRemaining()
460 if (total_bytes_ > 0) in PercentComplete()
461 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_); in PercentComplete()
Dsave_item.h62 int64 total_bytes() const { return total_bytes_; } in total_bytes()
90 int64 total_bytes_; variable
Ddownload_item.h253 int64 total_bytes() const { return total_bytes_; } in total_bytes()
254 void set_total_bytes(int64 total_bytes) { total_bytes_ = total_bytes; } in set_total_bytes()
337 int64 total_bytes_; variable
/external/chromium_org/content/browser/download/
Dsave_item.cc23 total_bytes_(0), in SaveItem()
46 if (received_bytes_ >= total_bytes_) in UpdateSize()
47 total_bytes_ = 0; in UpdateSize()
104 if (total_bytes_ > 0) in PercentComplete()
105 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_); in PercentComplete()
129 DCHECK_EQ(0, total_bytes_); in SetTotalBytes()
130 total_bytes_ = total_bytes; in SetTotalBytes()
Dsave_item.h63 int64 total_bytes() const { return total_bytes_; } in total_bytes()
91 int64 total_bytes_; variable
Ddownload_item_impl.cc125 total_bytes_(total_bytes), in DownloadItemImpl()
175 total_bytes_(info.total_bytes), in DownloadItemImpl()
232 total_bytes_(0), in DownloadItemImpl()
652 if (total_bytes_ <= 0) in TimeRemaining()
660 (total_bytes_ - received_bytes_) / speed); in TimeRemaining()
673 if (delegate_delayed_complete_ || total_bytes_ <= 0) in PercentComplete()
676 return static_cast<int>(received_bytes_ * 100.0 / total_bytes_); in PercentComplete()
684 return total_bytes_; in GetTotalBytes()
963 total_bytes_ = total_bytes; in SetTotalBytes()
1014 if (received_bytes_ > total_bytes_) in DestinationUpdate()
[all …]
/external/chromium_org/remoting/base/
Dcompound_buffer.cc23 : total_bytes_(0), in CompoundBuffer()
33 total_bytes_ = 0; in Clear()
45 total_bytes_ += size; in Append()
68 total_bytes_ += size; in Prepend()
96 if (total_bytes_ <= bytes) { in CropFront()
101 total_bytes_ -= bytes; in CropFront()
118 if (total_bytes_ <= bytes) { in CropBack()
123 total_bytes_ -= bytes; in CropBack()
141 net::IOBufferWithSize* result = new net::IOBufferWithSize(total_bytes_); in ToIOBufferWithSize()
142 CopyTo(result->data(), total_bytes_); in ToIOBufferWithSize()
[all …]
Dcompound_buffer.h60 int total_bytes() const { return total_bytes_; } in total_bytes()
95 int total_bytes_; variable
/external/chromium_org/content/renderer/media/
Dbuffered_data_source.cc86 total_bytes_(kPositionNotSpecified), in BufferedDataSource()
258 if (total_bytes_ != kPositionNotSpecified) { in GetSize()
259 *size_out = total_bytes_; in GetSize()
359 total_bytes_ = loader_->instance_size(); in StartCallback()
361 (total_bytes_ == kPositionNotSpecified || !loader_->range_supported()); in StartCallback()
364 static_cast<double>(total_bytes_)); in StartCallback()
449 } else if (bytes_read == 0 && total_bytes_ == kPositionNotSpecified) { in ReadCallback()
453 total_bytes_ = loader_->instance_size(); in ReadCallback()
455 if (host() && total_bytes_ != kPositionNotSpecified) { in ReadCallback()
456 host()->SetTotalBytes(total_bytes_); in ReadCallback()
[all …]
Dbuffered_data_source.h152 int64 total_bytes_; variable
/external/chromium_org/chrome/browser/component_updater/
Durl_fetcher_downloader.cc26 total_bytes_(-1) { in UrlFetcherDownloader()
51 total_bytes_ = -1; in DoStartDownload()
79 download_metrics.bytes_total = total_bytes_; in OnURLFetchComplete()
91 total_bytes_ = total; in OnURLFetchDownloadProgress()
Durl_fetcher_downloader.h49 int64 total_bytes_; variable
/external/chromium/webkit/glue/media/
Dbuffered_data_source.cc48 : total_bytes_(kPositionNotSpecified), in BufferedDataSource()
191 if (total_bytes_ != kPositionNotSpecified) { in GetSize()
192 *size_out = total_bytes_; in GetSize()
471 total_bytes_ = instance_size; in HttpInitialStartCallback()
535 total_bytes_ = instance_size; in NonHttpInitialStartCallback()
536 buffered_bytes_ = total_bytes_; in NonHttpInitialStartCallback()
631 } else if (error == 0 && total_bytes_ == kPositionNotSpecified) { in ReadCallback()
635 total_bytes_ = loader_->instance_size(); in ReadCallback()
637 if (host() && total_bytes_ != kPositionNotSpecified) in ReadCallback()
638 host()->SetTotalBytes(total_bytes_); in ReadCallback()
[all …]
Dbuffered_data_source.h147 int64 total_bytes_; variable
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dprofiledata.cc86 total_bytes_(0), in ProfileData()
111 total_bytes_ = 0; in Start()
195 count_, evictions_, total_bytes_); in Stop()
327 total_bytes_ += bytes; in FlushEvicted()
Dprofiledata.h170 size_t total_bytes_; // How much output variable
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dprofiledata.cc86 total_bytes_(0), in ProfileData()
111 total_bytes_ = 0; in Start()
195 count_, evictions_, total_bytes_); in Stop()
327 total_bytes_ += bytes; in FlushEvicted()
Dprofiledata.h170 size_t total_bytes_; // How much output variable
/external/chromium_org/chrome/renderer/
Dchrome_render_process_observer.cc170 size_t total_bytes_; member in __anond7f9275e0111::HeapStatisticsCollector
184 total_bytes_ = heap_stats.total_heap_size(); in InitiateCollection()
234 total_bytes_ += total_bytes; in ReceiveStats()
247 total_bytes_, used_bytes_)); in SendStatsToBrowser()
/external/chromium_org/media/base/
Dpipeline.cc40 total_bytes_(0), in Pipeline()
167 if (clock_->Duration() == TimeDelta() || total_bytes_ == 0) in GetBufferedTimeRanges()
187 return total_bytes_; in GetTotalBytes()
392 total_bytes_ = total_bytes; in SetTotalBytes()
399 (static_cast<double>(byte_offset) / total_bytes_); in TimeForByteOffset_Locked()
/external/chromium_org/net/websockets/
Dwebsocket_channel.cc80 SendBuffer() : total_bytes_(0) {} in SendBuffer()
95 size_t total_bytes_; member in net::WebSocketChannel::SendBuffer
99 total_bytes_ += frame->header.payload_length; in AddFrame()
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.h683 int total_bytes_; // Sum of sizes of all buffers seen so far. variable
995 return total_bytes_ - buffer_size_; in ByteCount()
/external/chromium_org/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream.h726 int total_bytes_; // Sum of sizes of all buffers seen so far. variable
1038 return total_bytes_ - buffer_size_; in ByteCount()

12