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

Commit e5729411 authored by Shinru Han's avatar Shinru Han
Browse files

Add toString to GnssCorrectionComponent


Bug: 432155484
Test: locally tested
Flag: EXEMPT logging update only

Change-Id: I95a7d6a817210146edfd2469410ecdfded16f7f4
parent 4135b58f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -118,6 +118,17 @@ public final class GnssCorrectionComponent implements Parcelable {
        dest.writeTypedObject(mPseudorangeCorrection, flags);
    }

    @Override
    @NonNull
    public String toString() {
        StringBuilder builder = new StringBuilder("GnssCorrectionComponent[");
        builder.append("sourceKey = ").append(mSourceKey);
        builder.append(", validityInterval = ").append(mValidityInterval);
        builder.append(", pseudorangeCorrection = ").append(mPseudorangeCorrection);
        builder.append("]");
        return builder.toString();
    }

    /**
     * Time interval referenced against the GPS epoch. The start must be less than or equal to the
     * end. When the start equals the end, the interval is empty.