Home
last modified time | relevance | path

Searched refs:kNumDownloadSources (Results 1 – 16 of 16) sorted by relevance

/system/update_engine/
Dpayload_state.h104 return source < kNumDownloadSources ? current_bytes_downloaded_[source] : 0; in GetCurrentBytesDownloaded()
108 return source < kNumDownloadSources ? total_bytes_downloaded_[source] : 0; in GetTotalBytesDownloaded()
528 uint64_t current_bytes_downloaded_[kNumDownloadSources + 1];
536 uint64_t total_bytes_downloaded_[kNumDownloadSources + 1];
Dmetrics_reporter_android.cc120 int64_t num_bytes_downloaded[kNumDownloadSources], in ReportSuccessfulUpdateMetrics() argument
136 for (size_t i = 0; i < kNumDownloadSources; i++) { in ReportSuccessfulUpdateMetrics()
Dmetrics_reporter_omaha.cc374 metrics_lib_->SendEnumToUMA(metric, download_source, kNumDownloadSources); in ReportUpdateAttemptDownloadMetrics()
398 int64_t num_bytes_downloaded[kNumDownloadSources], in ReportSuccessfulUpdateMetrics() argument
415 for (int i = 0; i < kNumDownloadSources + 1; i++) { in ReportSuccessfulUpdateMetrics()
425 if (i < kNumDownloadSources) { in ReportSuccessfulUpdateMetrics()
451 (1 << kNumDownloadSources) - 1, // max in ReportSuccessfulUpdateMetrics()
452 1 << kNumDownloadSources); // num_buckets in ReportSuccessfulUpdateMetrics()
Dmock_metrics_reporter.h69 int64_t num_bytes_downloaded[kNumDownloadSources],
Dmetrics_reporter_interface.h180 int64_t num_bytes_downloaded[kNumDownloadSources],
Dmetrics_reporter_stub.h72 int64_t num_bytes_downloaded[kNumDownloadSources], in ReportSuccessfulUpdateMetrics() argument
Dmetrics_reporter_android.h72 int64_t num_bytes_downloaded[kNumDownloadSources],
Dpayload_state.cc74 for (int i = 0; i <= kNumDownloadSources; i++) in PayloadState()
93 for (int i = 0; i < kNumDownloadSources; i++) { in Initialize()
541 current_download_source_ = kNumDownloadSources; in UpdateCurrentDownloadSource()
702 int64_t total_bytes_by_source[kNumDownloadSources]; in CollectAndReportSuccessfulUpdateMetrics()
708 for (int i = 0; i < kNumDownloadSources; i++) { in CollectAndReportSuccessfulUpdateMetrics()
810 for (int i = 0; i < kNumDownloadSources; i++) { in ResetDownloadSourcesOnNewUpdate()
1178 if (source >= kNumDownloadSources) in SetCurrentBytesDownloaded()
1201 if (source >= kNumDownloadSources) in SetTotalBytesDownloaded()
Dmetrics_reporter_omaha.h149 int64_t num_bytes_downloaded[kNumDownloadSources],
Dupdate_attempter_android_unittest.cc175 int64_t total_bytes[kNumDownloadSources] = {}; in TEST_F()
Dupdate_attempter_android.cc717 DownloadSource::kNumDownloadSources, in CollectAndReportUpdateMetricsOnUpdateFinished()
732 int64_t num_bytes_downloaded[kNumDownloadSources] = {}; in CollectAndReportUpdateMetricsOnUpdateFinished()
Dmetrics_reporter_omaha_unittest.cc320 int64_t num_bytes_downloaded[kNumDownloadSources] = {}; in TEST_F()
Dpayload_state_unittest.cc900 int64_t total_bytes[kNumDownloadSources] = {}; in TEST()
/system/update_engine/common/
Dconstants.h120 kNumDownloadSources enumerator
Dtest_utils.h83 return std::equal(source_array, source_array + kNumDownloadSources, arg);
Dutils.cc880 case kNumDownloadSources: in ToString()