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

Commit e327572e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure complete GnssStatus construction" into oc-dr1-dev

parents 325706f1 7f2cfed5
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -97,13 +97,12 @@ public final class GnssStatus {
            CONSTELLATION_QZSS, CONSTELLATION_BEIDOU, CONSTELLATION_GALILEO})
    public @interface ConstellationType {}

    /* These package private values are modified by the LocationManager class */
    /* package */ int[] mSvidWithFlags;
    /* package */ float[] mCn0DbHz;
    /* package */ float[] mElevations;
    /* package */ float[] mAzimuths;
    /* package */ int mSvCount;
    /* package */ float[] mCarrierFrequencies;
    final int[] mSvidWithFlags;
    final float[] mCn0DbHz;
    final float[] mElevations;
    final float[] mAzimuths;
    final int mSvCount;
    final float[] mCarrierFrequencies;

    GnssStatus(int svCount, int[] svidWithFlags, float[] cn0s, float[] elevations,
            float[] azimuths, float[] carrierFrequencies) {
+4 −3
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ public class LocationManager {
            new HashMap<>();
    private final HashMap<OnNmeaMessageListener, GnssStatusListenerTransport> mGnssNmeaListeners =
            new HashMap<>();
    private GnssStatus mGnssStatus;
    // volatile + GnssStatus final-fields pattern to avoid a partially published object
    private volatile GnssStatus mGnssStatus;
    private int mTimeToFirstFix;

    /**