Explicitly cast to avoid ambiguous method call.
Bug: 143723019
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: I2fea96b2d5343ec0de8555e531f4ff9b6edb6398
diff --git a/metrics_reporter_android.cc b/metrics_reporter_android.cc
index 4165c14..454649c 100644
--- a/metrics_reporter_android.cc
+++ b/metrics_reporter_android.cc
@@ -176,13 +176,13 @@
android::util::stats_write(
android::util::UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED,
- attempt_count,
+ static_cast<int32_t>(attempt_count),
GetStatsdEnumValue(static_cast<int32_t>(payload_type)),
- payload_size_mib,
- total_bytes_downloaded,
- download_overhead_percentage,
- total_duration.InMinutes(),
- reboot_count);
+ static_cast<int32_t>(payload_size_mib),
+ static_cast<int32_t>(total_bytes_downloaded),
+ static_cast<int32_t>(download_overhead_percentage),
+ static_cast<int32_t>(total_duration.InMinutes()),
+ static_cast<int32_t>(reboot_count));
}
void MetricsReporterAndroid::ReportAbnormallyTerminatedUpdateAttemptMetrics() {