Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c4ec00f authored by Michal Karpinski's avatar Michal Karpinski
Browse files

DO NOT MERGE Fix Lint errors for network logging API

Bug: 29748723

(cherry picked from commit 0879eb41)

Change-Id: I187aa5b96c283323edb6a1ebe5005d70e19bf563
parent c4e7c320
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+5 −0
Original line number Diff line number Diff line
@@ -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
+7 −4
Original line number Diff line number Diff line
@@ -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);
}