Home
last modified time | relevance | path

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

/aosp12/system/update_engine/cros/
H A Dmetrics_reporter_omaha.cc329 metrics_lib_->SendEnumToUMA(metric, download_source, kNumDownloadSources); in ReportUpdateAttemptDownloadMetrics()
349 int64_t num_bytes_downloaded[kNumDownloadSources], in ReportSuccessfulUpdateMetrics() argument
365 for (int i = 0; i < kNumDownloadSources + 1; i++) { in ReportSuccessfulUpdateMetrics()
375 if (i < kNumDownloadSources) { in ReportSuccessfulUpdateMetrics()
398 (1 << kNumDownloadSources) - 1, // max in ReportSuccessfulUpdateMetrics()
399 1 << kNumDownloadSources); // num_buckets in ReportSuccessfulUpdateMetrics()
H A Dpayload_state.h105 return source < kNumDownloadSources ? current_bytes_downloaded_[source] : 0; in GetCurrentBytesDownloaded()
109 return source < kNumDownloadSources ? total_bytes_downloaded_[source] : 0; in GetTotalBytesDownloaded()
542 uint64_t current_bytes_downloaded_[kNumDownloadSources + 1];
550 uint64_t total_bytes_downloaded_[kNumDownloadSources + 1];
H A Dpayload_state.cc77 for (int i = 0; i <= kNumDownloadSources; i++) in PayloadState()
96 for (int i = 0; i < kNumDownloadSources; i++) { in Initialize()
574 current_download_source_ = kNumDownloadSources; in UpdateCurrentDownloadSource()
732 int64_t total_bytes_by_source[kNumDownloadSources]; in CollectAndReportSuccessfulUpdateMetrics()
738 for (int i = 0; i < kNumDownloadSources; i++) { in CollectAndReportSuccessfulUpdateMetrics()
839 for (int i = 0; i < kNumDownloadSources; i++) { in ResetDownloadSourcesOnNewUpdate()
1187 if (source >= kNumDownloadSources) in SetCurrentBytesDownloaded()
1208 if (source >= kNumDownloadSources) in SetTotalBytesDownloaded()
H A Dmetrics_reporter_omaha.h145 int64_t num_bytes_downloaded[kNumDownloadSources],
H A Dmetrics_reporter_omaha_unittest.cc301 int64_t num_bytes_downloaded[kNumDownloadSources] = {}; in TEST_F()
H A Dpayload_state_unittest.cc899 int64_t total_bytes[kNumDownloadSources] = {}; in TEST_F()
/aosp12/system/update_engine/aosp/
H A Dmetrics_reporter_android.cc168 int64_t num_bytes_downloaded[kNumDownloadSources], in ReportSuccessfulUpdateMetrics() argument
176 for (size_t i = 0; i < kNumDownloadSources; i++) { in ReportSuccessfulUpdateMetrics()
H A Dmetrics_reporter_android.h73 int64_t num_bytes_downloaded[kNumDownloadSources],
H A Dupdate_attempter_android_unittest.cc187 int64_t total_bytes[kNumDownloadSources] = {}; in TEST_F()
H A Dupdate_attempter_android.cc843 DownloadSource::kNumDownloadSources, in CollectAndReportUpdateMetricsOnUpdateFinished()
858 int64_t num_bytes_downloaded[kNumDownloadSources] = {}; in CollectAndReportUpdateMetricsOnUpdateFinished()
/aosp12/system/update_engine/common/
H A Dmetrics_reporter_stub.h68 int64_t num_bytes_downloaded[kNumDownloadSources], in ReportSuccessfulUpdateMetrics() argument
H A Dmock_metrics_reporter.h67 int64_t num_bytes_downloaded[kNumDownloadSources],
H A Dmetrics_reporter_interface.h171 int64_t num_bytes_downloaded[kNumDownloadSources],
H A Dconstants.h143 kNumDownloadSources enumerator
H A Dtest_utils.h83 return std::equal(source_array, source_array + kNumDownloadSources, arg);
H A Dutils.cc785 case kNumDownloadSources: in ToString()