/**@class android.location.GnssStatus @extends java.lang.Object This class represents the current state of the GNSS engine. This class is used in conjunction with the {@link android.location.GnssStatus.Callback}. */ var GnssStatus = { /**Unknown constellation type. */ CONSTELLATION_UNKNOWN : "0", /**Constellation type constant for GPS. */ CONSTELLATION_GPS : "1", /**Constellation type constant for SBAS. */ CONSTELLATION_SBAS : "2", /**Constellation type constant for Glonass. */ CONSTELLATION_GLONASS : "3", /**Constellation type constant for QZSS. */ CONSTELLATION_QZSS : "4", /**Constellation type constant for Beidou. */ CONSTELLATION_BEIDOU : "5", /**Constellation type constant for Galileo. */ CONSTELLATION_GALILEO : "6", /**Constellation type constant for IRNSS. */ CONSTELLATION_IRNSS : "7", /**@hide */ CONSTELLATION_COUNT : "8", /**@hide */ GNSS_SV_FLAGS_NONE : "0", /**@hide */ GNSS_SV_FLAGS_HAS_EPHEMERIS_DATA : "1", /**@hide */ GNSS_SV_FLAGS_HAS_ALMANAC_DATA : "2", /**@hide */ GNSS_SV_FLAGS_USED_IN_FIX : "4", /**@hide */ GNSS_SV_FLAGS_HAS_CARRIER_FREQUENCY : "8", /**@hide */ SVID_SHIFT_WIDTH : "8", /**@hide */ CONSTELLATION_TYPE_SHIFT_WIDTH : "4", /**@hide */ CONSTELLATION_TYPE_MASK : "15", /**Gets the total number of satellites in satellite list. */ getSatelliteCount : function( ) {}, /**Retrieves the constellation type of the satellite at the specified index. @param {Number} satIndex the index of the satellite in the list. */ getConstellationType : function( ) {}, /**Gets the identification number for the satellite at the specific index. <p>This svid is pseudo-random number for most constellations. It is FCN & OSN number for Glonass. <p>The distinction is made by looking at constellation field {@link #getConstellationType}(int) Expected values are in the range of: <ul> <li>GPS: 1-32</li> <li>SBAS: 120-151, 183-192</li> <li>GLONASS: One of: OSN, or FCN+100 <ul> <li>1-24 as the orbital slot number (OSN) (preferred, if known)</li> <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>Galileo: 1-36</li> <li>Beidou: 1-37</li> </ul> @param {Number} satIndex the index of the satellite in the list. */ getSvid : function( ) {}, /**Retrieves the carrier-to-noise density at the antenna of the satellite at the specified index in dB-Hz. @param {Number} satIndex the index of the satellite in the list. */ getCn0DbHz : function( ) {}, /**Retrieves the elevation of the satellite at the specified index. @param {Number} satIndex the index of the satellite in the list. */ getElevationDegrees : function( ) {}, /**Retrieves the azimuth the satellite at the specified index. @param {Number} satIndex the index of the satellite in the list. */ getAzimuthDegrees : function( ) {}, /**Reports whether the satellite at the specified index has ephemeris data. @param {Number} satIndex the index of the satellite in the list. */ hasEphemerisData : function( ) {}, /**Reports whether the satellite at the specified index has almanac data. @param {Number} satIndex the index of the satellite in the list. */ hasAlmanacData : function( ) {}, /**Reports whether the satellite at the specified index was used in the calculation of the most recent position fix. @param {Number} satIndex the index of the satellite in the list. */ usedInFix : function( ) {}, /**Reports whether a valid {@link #getCarrierFrequencyHz}(int satIndex) is available. @param {Number} satIndex the index of the satellite in the list. */ hasCarrierFrequencyHz : function( ) {}, /**Gets the carrier frequency of the signal tracked. <p>For example it can be the GPS central frequency for L1 = 1575.45 MHz, or L2 = 1227.60 MHz, L5 = 1176.45 MHz, varying GLO channels, etc. If the field is not set, it is the primary common use central frequency, e.g. L1 = 1575.45 MHz for GPS. For an L1, L5 receiver tracking a satellite on L1 and L5 at the same time, two measurements will be reported for this same satellite, in one all the values related to L1 will be filled, and in the other all of the values related to L5 will be filled. <p>The value is only available if {@link #hasCarrierFrequencyHz}(int satIndex) is {@code true}. @param {Number} satIndex the index of the satellite in the list. @return {Number} the carrier frequency of the signal tracked in Hz. */ getCarrierFrequencyHz : function( ) {}, /**Returns the string representation of a constellation type. For example, {@link #CONSTELLATION_GPS} is represented by the string GPS. @param {Number} constellationType the constellation type. @return {String} the string representation. @hide */ constellationTypeToString : function( ) {}, };