Add DynamicPartitionControlAndroid unittest for Virtual A/B am: 302fa70565 am: 823d281400

Change-Id: I61064c40c0a06d9243cf0ce3e4a96974ad5aaccf
diff --git a/metrics_reporter_android.cc b/metrics_reporter_android.cc
index 9cef43c..24740c8 100644
--- a/metrics_reporter_android.cc
+++ b/metrics_reporter_android.cc
@@ -100,13 +100,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() {