summaryrefslogtreecommitdiff
path: root/core/proto
diff options
context:
space:
mode:
authorChris Weir <chrisweir@google.com>2020-12-02 17:58:54 -0800
committerChris Weir <chrisweir@google.com>2021-02-17 20:32:53 -0800
commitf0ffb60c503868d07b1ae583b855119e9abf6337 (patch)
treef2cce3f18605b809e68d4d04a1c59bce0df2131f /core/proto
parent9379af7c563e6bbc2704f1dddcdabaa502ca8f23 (diff)
Add support for tracking PANS data usage
Adds support for tracking oemManagedNetwork types (OEM_PAID and OEM_PRIVATE). Bug: 174485293 Test: atest NetworkTemplateTest NetworkStatsCollectionTest NetworkStatsObserversTest NetworkStatsServiceTest NetworkIdentityTest Test: verify that the bytes go up in PansTest app only when `ping -I eth2 8.8.8.8` is run as root. Change-Id: I78660a835f16265ba8e44bb84332c6633dd72b84
Diffstat (limited to 'core/proto')
-rw-r--r--core/proto/android/service/netstats.proto2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/proto/android/service/netstats.proto b/core/proto/android/service/netstats.proto
index 8ebb4a9f6649..c8cdfddc3985 100644
--- a/core/proto/android/service/netstats.proto
+++ b/core/proto/android/service/netstats.proto
@@ -80,6 +80,8 @@ message NetworkIdentityProto {
optional bool metered = 5;
optional bool default_network = 6;
+
+ optional int32 oem_managed_network = 7;
}
// Corresponds to NetworkStatsRecorder.