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

Commit f69fa67e authored by Mingguang Xu's avatar Mingguang Xu
Browse files

Wifi usability: Add trigger type of Wifi unusable events into stats collection



Bug: 113262380

Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I4454ed453acc461326a9ada66f2b2d9f38449533
Signed-off-by: default avatarMingguang Xu <mingguangxu@google.com>
parent 895ce08d
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -1861,11 +1861,31 @@ message WifiUsabilityStats {
    LABEL_BAD = 2;
  }

  enum UsabilityStatsTriggerType {
    // Default/Invalid event
    TYPE_UNKNOWN = 0;

    // There is a data stall from tx failures
    TYPE_DATA_STALL_BAD_TX = 1;

    // There is a data stall from rx failures
    TYPE_DATA_STALL_TX_WITHOUT_RX = 2;

    // There is a data stall from both tx and rx failures
    TYPE_DATA_STALL_BOTH = 3;

    // Firmware generated an alert
    TYPE_FIRMWARE_ALERT = 4;
  }

  // The current wifi usability state
  optional Label label = 1;

  // The list of timestamped wifi usability stats
  repeated WifiUsabilityStatsEntry stats = 2;

  // What event triggered WifiUsabilityStats.
  optional UsabilityStatsTriggerType trigger_type = 3;
}

message DeviceMobilityStatePnoScanStats {