Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f46ac618 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Wifi power stats proto"

parents 7ae1dc33 ac8b69a7
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -373,6 +373,9 @@ message WifiLog {

  // Wps connection metrics
  optional WpsMetrics wps_metrics = 91;

  // Wifi power statistics
  optional WifiPowerStats wifi_power_stats = 92;
}

// Information that gets logged for every WiFi connection.
@@ -1134,3 +1137,22 @@ message WpsMetrics {
  // Total number of wps cancellation
  optional int32 num_wps_cancellation = 8;
}

// Power stats for Wifi
message WifiPowerStats {

  // Duration of log (ms)
  optional int64 logging_duration_ms = 1;

  // Energy consumed by wifi (mAh)
  optional double energy_consumed_mah = 2;

  // Amount of time wifi is in idle (ms)
  optional int64 idle_time_ms = 3;

  // Amount of time wifi is in rx (ms)
  optional int64 rx_time_ms = 4;

  // Amount of time wifi is in tx (ms)
  optional int64 tx_time_ms = 5;
}
 No newline at end of file