Add atoms for UWB ranging type and data packet count
Bug: 270056366
Test: Manual with statsd_testdrive 403 and statsd_testdrive 405
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dbdcf2e6c26a320ad5618c635f052f92382324bf)
Merged-In: I5f2ce3690e3ed5b29f083ff9a0c701d342d5962c
Change-Id: I5f2ce3690e3ed5b29f083ff9a0c701d342d5962c
diff --git a/stats/atoms.proto b/stats/atoms.proto
index 0bfb2d6..a2dac78 100644
--- a/stats/atoms.proto
+++ b/stats/atoms.proto
@@ -20279,6 +20279,18 @@
optional int32 start_failure_count = 14;
// Ranging start without valid ranging result count
optional int32 start_no_valid_report_count = 15;
+ // Total Rx data packet count
+ optional int32 rx_packet_count = 16;
+ // Total Tx data packet count
+ optional int32 tx_packet_count = 17;
+ // Count of Rx data packet with error
+ optional int32 rx_error_count = 18;
+ // Count of Tx data packet with error
+ optional int32 tx_error_count = 19;
+ // Count of Rx data packets sent to upper layer
+ optional int32 rx_to_upper_layer_count = 20;
+ // Ranging Measurement Type
+ optional android.uwb.RangingType ranging_type = 21;
}
/*
@@ -20336,6 +20348,8 @@
optional int32 elevation_10degree = 13;
// The figure of merit of elevation angle measurement.
optional int32 elevation_fom = 14;
+ // Ranging Measurement Type
+ optional android.uwb.RangingType ranging_type = 15;
}
/*
diff --git a/stats/enums/uwb/enums.proto b/stats/enums/uwb/enums.proto
index 99aac80..1b46204 100644
--- a/stats/enums/uwb/enums.proto
+++ b/stats/enums/uwb/enums.proto
@@ -91,4 +91,13 @@
NLOS_UNKNOWN = 0;
NLOS = 1;
LOS = 2;
+}
+
+// UWB ranging measurement types
+enum RangingType {
+ TYPE_UNKNOWN = 0;
+ ONE_WAY = 1;
+ TWO_WAY = 2;
+ DL_TDOA = 3;
+ OWR_AOA = 4;
}
\ No newline at end of file