Package: android.hardware.gnss@1.0

types

Properties

GnssUtcTime

typedef int64_t GnssUtcTime

Milliseconds since January 1, 1970

GnssMax

enum GnssMax: uint32_t
Details
Members
SVS_COUNT = 64
Maximum number of SVs for gnssSvStatusCb().
Annotations
export
name="" , value_prefix="GNSS_MAX_"

GnssConstellationType

enum GnssConstellationType: uint8_t

Constellation type of GnssSvInfo

Details
Members
UNKNOWN = 0
GPS = 1
SBAS = 2
GLONASS = 3
QZSS = 4
BEIDOU = 5
GALILEO = 6
Annotations
export
name="" , value_prefix="GNSS_CONSTELLATION_"

GnssLocationFlags

enum GnssLocationFlags: uint16_t

Bit mask to indicate which values are valid in a GnssLocation object.

Details
Members
HAS_LAT_LONG = 0x0001
GnssLocation has valid latitude and longitude.
HAS_ALTITUDE = 0x0002
GnssLocation has valid altitude.
HAS_SPEED = 0x0004
GnssLocation has valid speed.
HAS_BEARING = 0x0008
GnssLocation has valid bearing.
HAS_HORIZONTAL_ACCURACY = 0x0010
GpsLocation has valid horizontal accuracy.
HAS_VERTICAL_ACCURACY = 0x0020
GpsLocation has valid vertical accuracy.
HAS_SPEED_ACCURACY = 0x0040
GpsLocation has valid speed accuracy.
HAS_BEARING_ACCURACY = 0x0080
GpsLocation has valid bearing accuracy.
Annotations
export
name="" , value_prefix="GPS_LOCATION_"

GnssLocation

struct GnssLocation {bitfield gnssLocationFlags; double latitudeDegrees; double longitudeDegrees; double altitudeMeters; float speedMetersPerSec; float bearingDegrees; float horizontalAccuracyMeters; float verticalAccuracyMeters; float speedAccuracyMetersPerSecond; float bearingAccuracyDegrees; GnssUtcTime timestamp}

Represents a location.

Details
Members
gnssLocationFlags
Contains GnssLocationFlags bits.
latitudeDegrees
Represents latitude in degrees.
longitudeDegrees
Represents longitude in degrees.
altitudeMeters
Represents altitude in meters above the WGS 84 reference ellipsoid.
speedMetersPerSec
Represents speed in meters per second.
bearingDegrees
Represents heading in degrees.
horizontalAccuracyMeters
Represents expected horizontal position accuracy, radial, in meters(68% confidence).
verticalAccuracyMeters
Represents expected vertical position accuracy in meters(68% confidence).
speedAccuracyMetersPerSecond
Represents expected speed accuracy in meter per seconds(68% confidence).
bearingAccuracyDegrees
Represents expected bearing accuracy in degrees(68% confidence).
timestamp
Timestamp for the location fix.