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
Merged-In: I75fc85b961bc919e3d6c2adce6d6861c6f2c8379
This commit is contained in:
Lorenzo Colitti
2018-01-20 02:02:56 +09:00
parent d5876bc438
commit 9781f785bc
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

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