commit | 600bd892586f07dfb01492720aa855d92fdff2b0 | [log] [tgz] |
---|---|---|
author | Paul Hu <paulhu@google.com> | Wed Aug 09 17:05:29 2023 +0800 |
committer | Paul Hu <paulhu@google.com> | Thu Aug 10 02:10:57 2023 +0000 |
tree | 604ef864451e946fbfacbaae725edf21253f899a | |
parent | 8ba50ae30fe0abdf9f7e7f0b67c60574d8171671 [diff] |
Update the implementation for sent_query_count The nsd metrics implementation needs to be updated to support the new field sent_query_count on NetworkNsdReported. Bug: 287546772 Test: m Merged-In: Ie1d8d5f2cce4f6040dcfb980db6ab11dfe01fb72 Change-Id: Ie1d8d5f2cce4f6040dcfb980db6ab11dfe01fb72
diff --git a/service-t/src/com/android/metrics/NetworkNsdReportedMetrics.java b/service-t/src/com/android/metrics/NetworkNsdReportedMetrics.java index bcedbef..4594f71 100644 --- a/service-t/src/com/android/metrics/NetworkNsdReportedMetrics.java +++ b/service-t/src/com/android/metrics/NetworkNsdReportedMetrics.java
@@ -66,7 +66,8 @@ event.getFoundServiceCount(), event.getFoundCallbackCount(), event.getLostCallbackCount(), - event.getRepliedRequestsCount()); + event.getRepliedRequestsCount(), + event.getSentQueryCount()); } }
diff --git a/service/src/com/android/metrics/stats.proto b/service/src/com/android/metrics/stats.proto index 006d20a..99afb90 100644 --- a/service/src/com/android/metrics/stats.proto +++ b/service/src/com/android/metrics/stats.proto
@@ -61,6 +61,9 @@ // Record query service count before unregistered service optional int32 replied_requests_count = 11; + + // Record sent query count before stopped discovery + optional int32 sent_query_count = 12; } /**