From 109472aa4bbb103b808b60152bc51547a2030366 Mon Sep 17 00:00:00 2001 From: Yu-Han Yang Date: Tue, 25 Oct 2022 16:40:59 +0000 Subject: [PATCH] Update svid range Bug: 237129569 Test: atest GnssStatusTest Change-Id: I779157e8693c62616303e38e35e611a9f1b8bb97 --- core/api/current.txt | 2 +- location/java/android/location/GnssStatus.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 18d8fc72a40d8..bb2de10d9f8ad 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -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); diff --git a/location/java/android/location/GnssStatus.java b/location/java/android/location/GnssStatus.java index 23390fce1a5f8..09f40e80f885a 100644 --- a/location/java/android/location/GnssStatus.java +++ b/location/java/android/location/GnssStatus.java @@ -199,15 +199,15 @@ public final class GnssStatus implements Parcelable { *
  • 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
  • * - *
  • QZSS: 193-200
  • + *
  • QZSS: 183-206
  • *
  • Galileo: 1-36
  • - *
  • Beidou: 1-37
  • + *
  • Beidou: 1-63
  • *
  • IRNSS: 1-14
  • * * * @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; }