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

Commit 109472aa authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Update svid range

Bug: 237129569
Test: atest GnssStatusTest
Change-Id: I779157e8693c62616303e38e35e611a9f1b8bb97
parent 5dc88839
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19721,7 +19721,7 @@ package android.location {
    method public int getConstellationType(@IntRange(from=0) int);
    method @FloatRange(from=0xffffffa6, to=90) public float getElevationDegrees(@IntRange(from=0) int);
    method @IntRange(from=0) public int getSatelliteCount();
    method @IntRange(from=1, to=200) public int getSvid(@IntRange(from=0) int);
    method @IntRange(from=1, to=206) public int getSvid(@IntRange(from=0) int);
    method public boolean hasAlmanacData(@IntRange(from=0) int);
    method public boolean hasBasebandCn0DbHz(@IntRange(from=0) int);
    method public boolean hasCarrierFrequencyHz(@IntRange(from=0) int);
+3 −3
Original line number Diff line number Diff line
@@ -199,15 +199,15 @@ public final class GnssStatus implements Parcelable {
     * <li>93-106 as the frequency channel number (FCN) (-7 to +6) plus 100.
     * i.e. encode FCN of -7 as 93, 0 as 100, and +6 as 106</li>
     * </ul></li>
     * <li>QZSS: 193-200</li>
     * <li>QZSS: 183-206</li>
     * <li>Galileo: 1-36</li>
     * <li>Beidou: 1-37</li>
     * <li>Beidou: 1-63</li>
     * <li>IRNSS: 1-14</li>
     * </ul>
     *
     * @param satelliteIndex An index from zero to {@link #getSatelliteCount()} - 1
     */
    @IntRange(from = 1, to = 200)
    @IntRange(from = 1, to = 206)
    public int getSvid(@IntRange(from = 0) int satelliteIndex) {
        return mSvidWithFlags[satelliteIndex] >> SVID_SHIFT_WIDTH;
    }