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

Commit 9363b949 authored by Lifu Tang's avatar Lifu Tang
Browse files

Finalized GPS=>GNSS changes with documents

Bug: 27098594
Change-Id: I24529e60d8eb9b48b644cf01e5efc684e6f04839
parent f79c887c
Loading
Loading
Loading
Loading
+31 −25
Original line number Diff line number Diff line
@@ -19163,9 +19163,9 @@ package android.location {
    method public double getDriftInNsPerSec();
    method public double getDriftUncertaintyInNsPerSec();
    method public long getFullBiasInNs();
    method public int getHardwareClockDiscontinuityCount();
    method public short getLeapSecond();
    method public long getTimeInNs();
    method public long getTimeOfLastHwClockDiscontinuityInNs();
    method public double getTimeUncertaintyInNs();
    method public byte getType();
    method public boolean hasBiasInNs();
@@ -19189,9 +19189,9 @@ package android.location {
    method public void setDriftInNsPerSec(double);
    method public void setDriftUncertaintyInNsPerSec(double);
    method public void setFullBiasInNs(long);
    method public void setHardwareClockDiscontinuityCount(int);
    method public void setLeapSecond(short);
    method public void setTimeInNs(long);
    method public void setTimeOfLastHwClockDiscontinuityInNs(long);
    method public void setTimeUncertaintyInNs(double);
    method public void setType(byte);
    method public void writeToParcel(android.os.Parcel, int);
@@ -19219,6 +19219,7 @@ package android.location {
    method public double getCn0InDbHz();
    method public double getCodePhaseInChips();
    method public double getCodePhaseUncertaintyInChips();
    method public byte getConstellationType();
    method public double getDopplerShiftInHz();
    method public double getDopplerShiftUncertaintyInHz();
    method public double getElevationInDeg();
@@ -19226,13 +19227,11 @@ package android.location {
    method public byte getLossOfLock();
    method public byte getMultipathIndicator();
    method public double getPseudorangeInMeters();
    method public double getPseudorangeRateCarrierInMetersPerSec();
    method public double getPseudorangeRateCarrierUncertaintyInMetersPerSec();
    method public double getPseudorangeRateInMetersPerSec();
    method public double getPseudorangeRateUncertaintyInMetersPerSec();
    method public double getPseudorangeUncertaintyInMeters();
    method public long getReceivedGpsTowInNs();
    method public long getReceivedGpsTowUncertaintyInNs();
    method public long getReceivedSvTimeInNs();
    method public long getReceivedSvTimeUncertaintyInNs();
    method public double getSnrInDb();
    method public short getState();
    method public short getSvid();
@@ -19289,6 +19288,7 @@ package android.location {
    method public void setCn0InDbHz(double);
    method public void setCodePhaseInChips(double);
    method public void setCodePhaseUncertaintyInChips(double);
    method public void setConstellationType(byte);
    method public void setDopplerShiftInHz(double);
    method public void setDopplerShiftUncertaintyInHz(double);
    method public void setElevationInDeg(double);
@@ -19296,13 +19296,11 @@ package android.location {
    method public void setLossOfLock(byte);
    method public void setMultipathIndicator(byte);
    method public void setPseudorangeInMeters(double);
    method public void setPseudorangeRateCarrierInMetersPerSec(double);
    method public void setPseudorangeRateCarrierUncertaintyInMetersPerSec(double);
    method public void setPseudorangeRateInMetersPerSec(double);
    method public void setPseudorangeRateUncertaintyInMetersPerSec(double);
    method public void setPseudorangeUncertaintyInMeters(double);
    method public void setReceivedGpsTowInNs(long);
    method public void setReceivedGpsTowUncertaintyInNs(long);
    method public void setReceivedSvTimeInNs(long);
    method public void setReceivedSvTimeUncertaintyInNs(long);
    method public void setSnrInDb(double);
    method public void setState(short);
    method public void setSvid(short);
@@ -19363,7 +19361,7 @@ package android.location {
    method public short getStatus();
    method public short getSubmessageId();
    method public short getSvid();
    method public byte getType();
    method public short getType();
    method public void reset();
    method public void set(android.location.GnssNavigationMessage);
    method public void setData(byte[]);
@@ -19371,14 +19369,19 @@ package android.location {
    method public void setStatus(short);
    method public void setSubmessageId(short);
    method public void setSvid(short);
    method public void setType(byte);
    method public void setType(short);
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.os.Parcelable.Creator<android.location.GnssNavigationMessage> CREATOR;
    field public static final byte MESSAGE_TYPE_CNAV2 = 4; // 0x4
    field public static final byte MESSAGE_TYPE_L1CA = 1; // 0x1
    field public static final byte MESSAGE_TYPE_L2CNAV = 2; // 0x2
    field public static final byte MESSAGE_TYPE_L5CNAV = 3; // 0x3
    field public static final byte MESSAGE_TYPE_UNKNOWN = 0; // 0x0
    field public static final short MESSAGE_TYPE_BDS_D1 = 1281; // 0x501
    field public static final short MESSAGE_TYPE_BDS_D2 = 1282; // 0x502
    field public static final short MESSAGE_TYPE_GAL_F = 1538; // 0x602
    field public static final short MESSAGE_TYPE_GAL_I = 1537; // 0x601
    field public static final short MESSAGE_TYPE_GLO_L1CA = 769; // 0x301
    field public static final short MESSAGE_TYPE_GPS_CNAV2 = 260; // 0x104
    field public static final short MESSAGE_TYPE_GPS_L1CA = 257; // 0x101
    field public static final short MESSAGE_TYPE_GPS_L2CNAV = 258; // 0x102
    field public static final short MESSAGE_TYPE_GPS_L5CNAV = 259; // 0x103
    field public static final short MESSAGE_TYPE_UNKNOWN = 0; // 0x0
    field public static final short STATUS_PARITY_PASSED = 1; // 0x1
    field public static final short STATUS_PARITY_REBUILT = 2; // 0x2
    field public static final short STATUS_UNKNOWN = 0; // 0x0
@@ -19413,7 +19416,7 @@ package android.location {
  public final class GnssStatus {
    method public float getAzimuth(int);
    method public int getConstellationType(int);
    method public byte getConstellationType(int);
    method public float getElevation(int);
    method public int getNumSatellites();
    method public float getSnr(int);
@@ -19421,13 +19424,16 @@ package android.location {
    method public boolean hasAlmanac(int);
    method public boolean hasEphemeris(int);
    method public boolean usedInFix(int);
    field public static final int CONSTELLATION_BEIDOU = 5; // 0x5
    field public static final int CONSTELLATION_GALILEO = 6; // 0x6
    field public static final int CONSTELLATION_GLONASS = 3; // 0x3
    field public static final int CONSTELLATION_GPS = 1; // 0x1
    field public static final int CONSTELLATION_QZSS = 4; // 0x4
    field public static final int CONSTELLATION_SBAS = 2; // 0x2
    field public static final int CONSTELLATION_UNKNOWN = 0; // 0x0
    field public static final byte CONSTELLATION_BEIDOU = 5; // 0x5
    field public static final byte CONSTELLATION_GALILEO = 6; // 0x6
    field public static final byte CONSTELLATION_GLONASS = 3; // 0x3
    field public static final byte CONSTELLATION_GPS = 1; // 0x1
    field public static final byte CONSTELLATION_QZSS = 4; // 0x4
    field public static final byte CONSTELLATION_SBAS = 2; // 0x2
    field public static final byte CONSTELLATION_UNKNOWN = 0; // 0x0
  }
  public static abstract class GnssStatus.ConstellationType implements java.lang.annotation.Annotation {
  }
  public abstract class GnssStatusCallback {
+31 −25
Original line number Diff line number Diff line
@@ -20343,9 +20343,9 @@ package android.location {
    method public double getDriftInNsPerSec();
    method public double getDriftUncertaintyInNsPerSec();
    method public long getFullBiasInNs();
    method public int getHardwareClockDiscontinuityCount();
    method public short getLeapSecond();
    method public long getTimeInNs();
    method public long getTimeOfLastHwClockDiscontinuityInNs();
    method public double getTimeUncertaintyInNs();
    method public byte getType();
    method public boolean hasBiasInNs();
@@ -20369,9 +20369,9 @@ package android.location {
    method public void setDriftInNsPerSec(double);
    method public void setDriftUncertaintyInNsPerSec(double);
    method public void setFullBiasInNs(long);
    method public void setHardwareClockDiscontinuityCount(int);
    method public void setLeapSecond(short);
    method public void setTimeInNs(long);
    method public void setTimeOfLastHwClockDiscontinuityInNs(long);
    method public void setTimeUncertaintyInNs(double);
    method public void setType(byte);
    method public void writeToParcel(android.os.Parcel, int);
@@ -20399,6 +20399,7 @@ package android.location {
    method public double getCn0InDbHz();
    method public double getCodePhaseInChips();
    method public double getCodePhaseUncertaintyInChips();
    method public byte getConstellationType();
    method public double getDopplerShiftInHz();
    method public double getDopplerShiftUncertaintyInHz();
    method public double getElevationInDeg();
@@ -20406,13 +20407,11 @@ package android.location {
    method public byte getLossOfLock();
    method public byte getMultipathIndicator();
    method public double getPseudorangeInMeters();
    method public double getPseudorangeRateCarrierInMetersPerSec();
    method public double getPseudorangeRateCarrierUncertaintyInMetersPerSec();
    method public double getPseudorangeRateInMetersPerSec();
    method public double getPseudorangeRateUncertaintyInMetersPerSec();
    method public double getPseudorangeUncertaintyInMeters();
    method public long getReceivedGpsTowInNs();
    method public long getReceivedGpsTowUncertaintyInNs();
    method public long getReceivedSvTimeInNs();
    method public long getReceivedSvTimeUncertaintyInNs();
    method public double getSnrInDb();
    method public short getState();
    method public short getSvid();
@@ -20469,6 +20468,7 @@ package android.location {
    method public void setCn0InDbHz(double);
    method public void setCodePhaseInChips(double);
    method public void setCodePhaseUncertaintyInChips(double);
    method public void setConstellationType(byte);
    method public void setDopplerShiftInHz(double);
    method public void setDopplerShiftUncertaintyInHz(double);
    method public void setElevationInDeg(double);
@@ -20476,13 +20476,11 @@ package android.location {
    method public void setLossOfLock(byte);
    method public void setMultipathIndicator(byte);
    method public void setPseudorangeInMeters(double);
    method public void setPseudorangeRateCarrierInMetersPerSec(double);
    method public void setPseudorangeRateCarrierUncertaintyInMetersPerSec(double);
    method public void setPseudorangeRateInMetersPerSec(double);
    method public void setPseudorangeRateUncertaintyInMetersPerSec(double);
    method public void setPseudorangeUncertaintyInMeters(double);
    method public void setReceivedGpsTowInNs(long);
    method public void setReceivedGpsTowUncertaintyInNs(long);
    method public void setReceivedSvTimeInNs(long);
    method public void setReceivedSvTimeUncertaintyInNs(long);
    method public void setSnrInDb(double);
    method public void setState(short);
    method public void setSvid(short);
@@ -20543,7 +20541,7 @@ package android.location {
    method public short getStatus();
    method public short getSubmessageId();
    method public short getSvid();
    method public byte getType();
    method public short getType();
    method public void reset();
    method public void set(android.location.GnssNavigationMessage);
    method public void setData(byte[]);
@@ -20551,14 +20549,19 @@ package android.location {
    method public void setStatus(short);
    method public void setSubmessageId(short);
    method public void setSvid(short);
    method public void setType(byte);
    method public void setType(short);
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.os.Parcelable.Creator<android.location.GnssNavigationMessage> CREATOR;
    field public static final byte MESSAGE_TYPE_CNAV2 = 4; // 0x4
    field public static final byte MESSAGE_TYPE_L1CA = 1; // 0x1
    field public static final byte MESSAGE_TYPE_L2CNAV = 2; // 0x2
    field public static final byte MESSAGE_TYPE_L5CNAV = 3; // 0x3
    field public static final byte MESSAGE_TYPE_UNKNOWN = 0; // 0x0
    field public static final short MESSAGE_TYPE_BDS_D1 = 1281; // 0x501
    field public static final short MESSAGE_TYPE_BDS_D2 = 1282; // 0x502
    field public static final short MESSAGE_TYPE_GAL_F = 1538; // 0x602
    field public static final short MESSAGE_TYPE_GAL_I = 1537; // 0x601
    field public static final short MESSAGE_TYPE_GLO_L1CA = 769; // 0x301
    field public static final short MESSAGE_TYPE_GPS_CNAV2 = 260; // 0x104
    field public static final short MESSAGE_TYPE_GPS_L1CA = 257; // 0x101
    field public static final short MESSAGE_TYPE_GPS_L2CNAV = 258; // 0x102
    field public static final short MESSAGE_TYPE_GPS_L5CNAV = 259; // 0x103
    field public static final short MESSAGE_TYPE_UNKNOWN = 0; // 0x0
    field public static final short STATUS_PARITY_PASSED = 1; // 0x1
    field public static final short STATUS_PARITY_REBUILT = 2; // 0x2
    field public static final short STATUS_UNKNOWN = 0; // 0x0
@@ -20593,7 +20596,7 @@ package android.location {
  public final class GnssStatus {
    method public float getAzimuth(int);
    method public int getConstellationType(int);
    method public byte getConstellationType(int);
    method public float getElevation(int);
    method public int getNumSatellites();
    method public float getSnr(int);
@@ -20601,13 +20604,16 @@ package android.location {
    method public boolean hasAlmanac(int);
    method public boolean hasEphemeris(int);
    method public boolean usedInFix(int);
    field public static final int CONSTELLATION_BEIDOU = 5; // 0x5
    field public static final int CONSTELLATION_GALILEO = 6; // 0x6
    field public static final int CONSTELLATION_GLONASS = 3; // 0x3
    field public static final int CONSTELLATION_GPS = 1; // 0x1
    field public static final int CONSTELLATION_QZSS = 4; // 0x4
    field public static final int CONSTELLATION_SBAS = 2; // 0x2
    field public static final int CONSTELLATION_UNKNOWN = 0; // 0x0
    field public static final byte CONSTELLATION_BEIDOU = 5; // 0x5
    field public static final byte CONSTELLATION_GALILEO = 6; // 0x6
    field public static final byte CONSTELLATION_GLONASS = 3; // 0x3
    field public static final byte CONSTELLATION_GPS = 1; // 0x1
    field public static final byte CONSTELLATION_QZSS = 4; // 0x4
    field public static final byte CONSTELLATION_SBAS = 2; // 0x2
    field public static final byte CONSTELLATION_UNKNOWN = 0; // 0x0
  }
  public static abstract class GnssStatus.ConstellationType implements java.lang.annotation.Annotation {
  }
  public abstract class GnssStatusCallback {
+32 −26
Original line number Diff line number Diff line
@@ -19171,9 +19171,9 @@ package android.location {
    method public double getDriftInNsPerSec();
    method public double getDriftUncertaintyInNsPerSec();
    method public long getFullBiasInNs();
    method public int getHardwareClockDiscontinuityCount();
    method public short getLeapSecond();
    method public long getTimeInNs();
    method public long getTimeOfLastHwClockDiscontinuityInNs();
    method public double getTimeUncertaintyInNs();
    method public byte getType();
    method public boolean hasBiasInNs();
@@ -19197,9 +19197,9 @@ package android.location {
    method public void setDriftInNsPerSec(double);
    method public void setDriftUncertaintyInNsPerSec(double);
    method public void setFullBiasInNs(long);
    method public void setHardwareClockDiscontinuityCount(int);
    method public void setLeapSecond(short);
    method public void setTimeInNs(long);
    method public void setTimeOfLastHwClockDiscontinuityInNs(long);
    method public void setTimeUncertaintyInNs(double);
    method public void setType(byte);
    method public void writeToParcel(android.os.Parcel, int);
@@ -19227,6 +19227,7 @@ package android.location {
    method public double getCn0InDbHz();
    method public double getCodePhaseInChips();
    method public double getCodePhaseUncertaintyInChips();
    method public byte getConstellationType();
    method public double getDopplerShiftInHz();
    method public double getDopplerShiftUncertaintyInHz();
    method public double getElevationInDeg();
@@ -19234,13 +19235,11 @@ package android.location {
    method public byte getLossOfLock();
    method public byte getMultipathIndicator();
    method public double getPseudorangeInMeters();
    method public double getPseudorangeRateCarrierInMetersPerSec();
    method public double getPseudorangeRateCarrierUncertaintyInMetersPerSec();
    method public double getPseudorangeRateInMetersPerSec();
    method public double getPseudorangeRateUncertaintyInMetersPerSec();
    method public double getPseudorangeUncertaintyInMeters();
    method public long getReceivedGpsTowInNs();
    method public long getReceivedGpsTowUncertaintyInNs();
    method public long getReceivedSvTimeInNs();
    method public long getReceivedSvTimeUncertaintyInNs();
    method public double getSnrInDb();
    method public short getState();
    method public short getSvid();
@@ -19297,6 +19296,7 @@ package android.location {
    method public void setCn0InDbHz(double);
    method public void setCodePhaseInChips(double);
    method public void setCodePhaseUncertaintyInChips(double);
    method public void setConstellationType(byte);
    method public void setDopplerShiftInHz(double);
    method public void setDopplerShiftUncertaintyInHz(double);
    method public void setElevationInDeg(double);
@@ -19304,13 +19304,11 @@ package android.location {
    method public void setLossOfLock(byte);
    method public void setMultipathIndicator(byte);
    method public void setPseudorangeInMeters(double);
    method public void setPseudorangeRateCarrierInMetersPerSec(double);
    method public void setPseudorangeRateCarrierUncertaintyInMetersPerSec(double);
    method public void setPseudorangeRateInMetersPerSec(double);
    method public void setPseudorangeRateUncertaintyInMetersPerSec(double);
    method public void setPseudorangeUncertaintyInMeters(double);
    method public void setReceivedGpsTowInNs(long);
    method public void setReceivedGpsTowUncertaintyInNs(long);
    method public void setReceivedSvTimeInNs(long);
    method public void setReceivedSvTimeUncertaintyInNs(long);
    method public void setSnrInDb(double);
    method public void setState(short);
    method public void setSvid(short);
@@ -19371,7 +19369,7 @@ package android.location {
    method public short getStatus();
    method public short getSubmessageId();
    method public short getSvid();
    method public byte getType();
    method public short getType();
    method public void reset();
    method public void set(android.location.GnssNavigationMessage);
    method public void setData(byte[]);
@@ -19379,14 +19377,19 @@ package android.location {
    method public void setStatus(short);
    method public void setSubmessageId(short);
    method public void setSvid(short);
    method public void setType(byte);
    method public void setType(short);
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.os.Parcelable.Creator<android.location.GnssNavigationMessage> CREATOR;
    field public static final byte MESSAGE_TYPE_CNAV2 = 4; // 0x4
    field public static final byte MESSAGE_TYPE_L1CA = 1; // 0x1
    field public static final byte MESSAGE_TYPE_L2CNAV = 2; // 0x2
    field public static final byte MESSAGE_TYPE_L5CNAV = 3; // 0x3
    field public static final byte MESSAGE_TYPE_UNKNOWN = 0; // 0x0
    field public static final short MESSAGE_TYPE_BDS_D1 = 1281; // 0x501
    field public static final short MESSAGE_TYPE_BDS_D2 = 1282; // 0x502
    field public static final short MESSAGE_TYPE_GAL_F = 1538; // 0x602
    field public static final short MESSAGE_TYPE_GAL_I = 1537; // 0x601
    field public static final short MESSAGE_TYPE_GLO_L1CA = 769; // 0x301
    field public static final short MESSAGE_TYPE_GPS_CNAV2 = 260; // 0x104
    field public static final short MESSAGE_TYPE_GPS_L1CA = 257; // 0x101
    field public static final short MESSAGE_TYPE_GPS_L2CNAV = 258; // 0x102
    field public static final short MESSAGE_TYPE_GPS_L5CNAV = 259; // 0x103
    field public static final short MESSAGE_TYPE_UNKNOWN = 0; // 0x0
    field public static final short STATUS_PARITY_PASSED = 1; // 0x1
    field public static final short STATUS_PARITY_REBUILT = 2; // 0x2
    field public static final short STATUS_UNKNOWN = 0; // 0x0
@@ -19421,7 +19424,7 @@ package android.location {
  public final class GnssStatus {
    method public float getAzimuth(int);
    method public int getConstellationType(int);
    method public byte getConstellationType(int);
    method public float getElevation(int);
    method public int getNumSatellites();
    method public float getSnr(int);
@@ -19429,13 +19432,16 @@ package android.location {
    method public boolean hasAlmanac(int);
    method public boolean hasEphemeris(int);
    method public boolean usedInFix(int);
    field public static final int CONSTELLATION_BEIDOU = 5; // 0x5
    field public static final int CONSTELLATION_GALILEO = 6; // 0x6
    field public static final int CONSTELLATION_GLONASS = 3; // 0x3
    field public static final int CONSTELLATION_GPS = 1; // 0x1
    field public static final int CONSTELLATION_QZSS = 4; // 0x4
    field public static final int CONSTELLATION_SBAS = 2; // 0x2
    field public static final int CONSTELLATION_UNKNOWN = 0; // 0x0
    field public static final byte CONSTELLATION_BEIDOU = 5; // 0x5
    field public static final byte CONSTELLATION_GALILEO = 6; // 0x6
    field public static final byte CONSTELLATION_GLONASS = 3; // 0x3
    field public static final byte CONSTELLATION_GPS = 1; // 0x1
    field public static final byte CONSTELLATION_QZSS = 4; // 0x4
    field public static final byte CONSTELLATION_SBAS = 2; // 0x2
    field public static final byte CONSTELLATION_UNKNOWN = 0; // 0x0
  }
  public static abstract class GnssStatus.ConstellationType implements java.lang.annotation.Annotation {
  }
  public abstract class GnssStatusCallback {
@@ -19541,8 +19547,8 @@ package android.location {
    method public void clearTestProviderStatus(java.lang.String);
    method public java.util.List<java.lang.String> getAllProviders();
    method public java.lang.String getBestProvider(android.location.Criteria, boolean);
    method public int getGnssYearOfHardware();
    method public deprecated android.location.GpsStatus getGpsStatus(android.location.GpsStatus);
    method public int getGpsYearOfHardware();
    method public android.location.Location getLastKnownLocation(java.lang.String);
    method public android.location.LocationProvider getProvider(java.lang.String);
    method public java.util.List<java.lang.String> getProviders(boolean);
+14 −13
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ public final class GnssClock implements Parcelable {
    private double mBiasUncertaintyInNs;
    private double mDriftInNsPerSec;
    private double mDriftUncertaintyInNsPerSec;
    private long mTimeOfLastHwClockDiscontinuityInNs;
    private int mHardwareClockDiscontinuityCount;

    GnssClock() {
        initialize();
@@ -93,7 +93,7 @@ public final class GnssClock implements Parcelable {
        mBiasUncertaintyInNs = clock.mBiasUncertaintyInNs;
        mDriftInNsPerSec = clock.mDriftInNsPerSec;
        mDriftUncertaintyInNsPerSec = clock.mDriftUncertaintyInNsPerSec;
        mTimeOfLastHwClockDiscontinuityInNs = clock.mTimeOfLastHwClockDiscontinuityInNs;
        mHardwareClockDiscontinuityCount = clock.mHardwareClockDiscontinuityCount;
    }

    /**
@@ -395,17 +395,17 @@ public final class GnssClock implements Parcelable {
    }

    /**
     * Gets time of last hardware clock discontinuity.
     * Gets count of last hardware clock discontinuity.
     */
    public long getTimeOfLastHwClockDiscontinuityInNs() {
        return mTimeOfLastHwClockDiscontinuityInNs;
    public int getHardwareClockDiscontinuityCount() {
        return mHardwareClockDiscontinuityCount;
    }

    /**
     * Sets time of last hardware clock discontinuity.
     * Sets count of last hardware clock discontinuity.
     */
    public void setTimeOfLastHwClockDiscontinuityInNs(long timeOfLastHwClockDiscontinuityInNs) {
        mTimeOfLastHwClockDiscontinuityInNs = timeOfLastHwClockDiscontinuityInNs;
    public void setHardwareClockDiscontinuityCount(int value) {
        mHardwareClockDiscontinuityCount = value;
    }

    /**
@@ -431,7 +431,7 @@ public final class GnssClock implements Parcelable {
            gpsClock.mBiasUncertaintyInNs = parcel.readDouble();
            gpsClock.mDriftInNsPerSec = parcel.readDouble();
            gpsClock.mDriftUncertaintyInNsPerSec = parcel.readDouble();
            gpsClock.mTimeOfLastHwClockDiscontinuityInNs = parcel.readLong();
            gpsClock.mHardwareClockDiscontinuityCount = parcel.readInt();

            return gpsClock;
        }
@@ -442,6 +442,7 @@ public final class GnssClock implements Parcelable {
        }
    };

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeInt(mFlags);
        parcel.writeInt(mLeapSecond);
@@ -453,7 +454,7 @@ public final class GnssClock implements Parcelable {
        parcel.writeDouble(mBiasUncertaintyInNs);
        parcel.writeDouble(mDriftInNsPerSec);
        parcel.writeDouble(mDriftUncertaintyInNsPerSec);
        parcel.writeLong(mTimeOfLastHwClockDiscontinuityInNs);
        parcel.writeInt(mHardwareClockDiscontinuityCount);
    }

    @Override
@@ -497,9 +498,9 @@ public final class GnssClock implements Parcelable {
                "DriftUncertaintyInNsPerSec",
                hasDriftUncertaintyInNsPerSec() ? mDriftUncertaintyInNsPerSec : null));

        builder.append(String.format(format, "TimeOfLastHwClockDiscontinuityInNs",
        builder.append(String.format(format, "HardwareClockDiscontinuityCount",
                getType() == CLOCK_TYPE_LOCAL_HW_TIME
                        ? mTimeOfLastHwClockDiscontinuityInNs : null));
                        ? mHardwareClockDiscontinuityCount : null));

        return builder.toString();
    }
@@ -515,7 +516,7 @@ public final class GnssClock implements Parcelable {
        resetBiasUncertaintyInNs();
        resetDriftInNsPerSec();
        resetDriftUncertaintyInNsPerSec();
        setTimeOfLastHwClockDiscontinuityInNs(Long.MIN_VALUE);
        setHardwareClockDiscontinuityCount(Integer.MIN_VALUE);
    }

    private void setFlag(short flag) {
+119 −92

File changed.

Preview size limit exceeded, changes collapsed.

Loading