Update svid range

Bug: 237129569
Test: atest GnssStatusTest
Change-Id: I779157e8693c62616303e38e35e611a9f1b8bb97
This commit is contained in:
Yu-Han Yang
2022-10-25 16:40:59 +00:00
parent 5dc888399c
commit 109472aa4b
2 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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;
}