diff options
| author | Hugo Benichi <hugobenichi@google.com> | 2017-11-13 13:24:10 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-11-13 13:24:10 +0000 |
| commit | f3ada43f6e06cce058e4fc36f687ab4b01befed9 (patch) | |
| tree | e38fccbb81e4884331eae6a4ef2a16017fa7d6d1 /core/java/android | |
| parent | ab15f7fc647fc5ac24f2807c1faf549d63b96b08 (diff) | |
| parent | f8fdb06c27dc5e05bd53e2790a57b15b73ad1d33 (diff) | |
Merge "IP connectivity metrics: NetworkEvents have transports"
am: f8fdb06c27
Change-Id: I92dfce6a78de18036ca0b54fdf2ee95e715c678b
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/net/metrics/NetworkEvent.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/core/java/android/net/metrics/NetworkEvent.java b/core/java/android/net/metrics/NetworkEvent.java index 4df3bf095056..1999e78decc4 100644 --- a/core/java/android/net/metrics/NetworkEvent.java +++ b/core/java/android/net/metrics/NetworkEvent.java @@ -60,29 +60,25 @@ public final class NetworkEvent implements Parcelable { @Retention(RetentionPolicy.SOURCE) public @interface EventType {} - public final int netId; public final @EventType int eventType; public final long durationMs; - public NetworkEvent(int netId, @EventType int eventType, long durationMs) { - this.netId = netId; + public NetworkEvent(@EventType int eventType, long durationMs) { this.eventType = eventType; this.durationMs = durationMs; } - public NetworkEvent(int netId, @EventType int eventType) { - this(netId, eventType, 0); + public NetworkEvent(@EventType int eventType) { + this(eventType, 0); } private NetworkEvent(Parcel in) { - netId = in.readInt(); eventType = in.readInt(); durationMs = in.readLong(); } @Override public void writeToParcel(Parcel out, int flags) { - out.writeInt(netId); out.writeInt(eventType); out.writeLong(durationMs); } @@ -105,8 +101,8 @@ public final class NetworkEvent implements Parcelable { @Override public String toString() { - return String.format("NetworkEvent(%d, %s, %dms)", - netId, Decoder.constants.get(eventType), durationMs); + return String.format("NetworkEvent(%s, %dms)", + Decoder.constants.get(eventType), durationMs); } final static class Decoder { |
