Add the defaultNetwork element to the netstats.proto.

This is in its own commit because AOSP has diverged from internal
master.

Bug: 35142602
Test: builds, boots
Change-Id: I75fc85b961bc919e3d6c2adce6d6861c6f2c8379
This commit is contained in:
Lorenzo Colitti
2018-01-20 02:02:56 +09:00
parent 35c13e5b3a
commit d5cc0feb74
2 changed files with 3 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ public class NetworkIdentity implements Comparable<NetworkIdentity> {
proto.write(NetworkIdentityProto.NETWORK_ID, mNetworkId);
proto.write(NetworkIdentityProto.ROAMING, mRoaming);
proto.write(NetworkIdentityProto.METERED, mMetered);
proto.write(NetworkIdentityProto.DEFAULT_NETWORK, mDefaultNetwork);
proto.end(start);
}

View File

@@ -63,6 +63,8 @@ message NetworkIdentityProto {
optional bool roaming = 4;
optional bool metered = 5;
optional bool default_network = 6;
}
// Corresponds to NetworkStatsRecorder.