DO NOT MERGE Fix Lint errors for network logging API

Bug: 29748723

(cherry picked from commit 0879eb41ca)

Change-Id: I187aa5b96c283323edb6a1ebe5005d70e19bf563
This commit is contained in:
Michal Karpinski
2016-11-25 17:17:35 +00:00
parent c4e7c32063
commit 0c4ec00f85
3 changed files with 17 additions and 4 deletions

View File

@@ -74,6 +74,11 @@ public final class ConnectEvent extends NetworkEvent implements Parcelable {
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel out, int flags) {
// write parcel token first

View File

@@ -104,6 +104,11 @@ public final class DnsEvent extends NetworkEvent implements Parcelable {
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel out, int flags) {
// write parcel token first

View File

@@ -26,14 +26,14 @@ import android.os.ParcelFormatException;
*/
public abstract class NetworkEvent implements Parcelable {
protected static final int PARCEL_TOKEN_DNS_EVENT = 1;
protected static final int PARCEL_TOKEN_CONNECT_EVENT = 2;
static final int PARCEL_TOKEN_DNS_EVENT = 1;
static final int PARCEL_TOKEN_CONNECT_EVENT = 2;
/** The package name of the UID that performed the query. */
protected String packageName;
String packageName;
/** The timestamp of the event being reported in milliseconds. */
protected long timestamp;
long timestamp;
protected NetworkEvent() {
//empty constructor
@@ -81,5 +81,8 @@ public abstract class NetworkEvent implements Parcelable {
return new NetworkEvent[size];
}
};
@Override
public abstract void writeToParcel(Parcel out, int flags);
}