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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user