summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/NetworkIdentitySet.java
diff options
context:
space:
mode:
authorAaron Huang <huangaaron@google.com>2022-02-14 21:26:44 +0800
committerAaron Huang <huangaaron@google.com>2022-03-04 06:39:30 +0000
commit5fbd57eab4ac27bf66d4be5ffb30098a7666179d (patch)
treeca02cd2df1fb1cb3fb122618dece79ffc346f9f2 /framework-t/src/android/net/NetworkIdentitySet.java
parentfeda21a4867328ec5bbb1bfe4bb2c122d9a087a9 (diff)
Fix proto invalid write type
While dumpProtoLocked is called, InvalidProtocolBufferException occurred because types are mismatched between platform side and module side. netstats.proto was moved into connectivity module, both the platform(incident.proto) and the module uses protoc-gen-javastream to generate the Java classes from it. It should be fine since platform includes the source of the proto, and jarjar the generated classess in the module to avoid conflict with platform. Bug: 218566849 Test: adb shell incident 3001 adb shell dumpsys netstats --proto atest CtsIncidentHostTestCases:IncidentdTest#testIncidentReportDumpAuto Change-Id: I4654350a59dc1ca1a925785ad37f34aa7b481235 Merged-In: I4654350a59dc1ca1a925785ad37f34aa7b481235
Diffstat (limited to 'framework-t/src/android/net/NetworkIdentitySet.java')
-rw-r--r--framework-t/src/android/net/NetworkIdentitySet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework-t/src/android/net/NetworkIdentitySet.java b/framework-t/src/android/net/NetworkIdentitySet.java
index 56461babfe..ad3a958a68 100644
--- a/framework-t/src/android/net/NetworkIdentitySet.java
+++ b/framework-t/src/android/net/NetworkIdentitySet.java
@@ -222,7 +222,7 @@ public class NetworkIdentitySet extends HashSet<NetworkIdentity> {
final long start = proto.start(tag);
for (NetworkIdentity ident : this) {
- ident.dumpDebug(proto, NetworkIdentitySetProto.IDENTITIES_FIELD_NUMBER);
+ ident.dumpDebug(proto, NetworkIdentitySetProto.IDENTITIES);
}
proto.end(start);