GnssCapabilities
class GnssCapabilities : Parcelable
kotlin.Any | |
↳ | android.location.GnssCapabilities |
GNSS chipset capabilities.
Summary
Nested classes | |
---|---|
Builder for GnssCapabilities. |
Constants | |
---|---|
static Int |
The capability is supported. |
static Int |
The capability is unknown to be supported or not. |
static Int |
The capability is not supported. |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Boolean | |
MutableList<GnssSignalType!> |
Returns the list of |
Int |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
hasMsa() Returns |
Boolean |
hasMsb() Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Boolean |
Returns |
Int |
hashCode() |
String |
toString() |
Unit |
writeToParcel(parcel: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<GnssCapabilities!> |
Constants
CAPABILITY_SUPPORTED
static val CAPABILITY_SUPPORTED: Int
The capability is supported.
Value: 1
CAPABILITY_UNKNOWN
static val CAPABILITY_UNKNOWN: Int
The capability is unknown to be supported or not.
Value: 0
CAPABILITY_UNSUPPORTED
static val CAPABILITY_UNSUPPORTED: Int
The capability is not supported.
Value: 2
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
equals
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getGnssSignalTypes
fun getGnssSignalTypes(): MutableList<GnssSignalType!>
Returns the list of GnssSignalType
s that the GNSS chipset supports.
Return | |
---|---|
MutableList<GnssSignalType!> |
This value cannot be null . |
hasAccumulatedDeltaRange
fun hasAccumulatedDeltaRange(): Int
Returns CAPABILITY_SUPPORTED
if GNSS chipset supports accumulated delta range, CAPABILITY_UNSUPPORTED
if GNSS chipset does not support accumulated delta range, and CAPABILITY_UNKNOWN
if it is unknown, which means GNSS chipset may or may not support accumulated delta range.
The accumulated delta range information can be queried in android.location.GnssMeasurement#getAccumulatedDeltaRangeState()
, android.location.GnssMeasurement#getAccumulatedDeltaRangeMeters()
, and android.location.GnssMeasurement#getAccumulatedDeltaRangeUncertaintyMeters()
.
Return | |
---|---|
Int |
Value is either 0 or a combination of android.location.GnssCapabilities#CAPABILITY_UNKNOWN , android.location.GnssCapabilities#CAPABILITY_SUPPORTED , and android.location.GnssCapabilities#CAPABILITY_UNSUPPORTED |
hasAntennaInfo
fun hasAntennaInfo(): Boolean
Returns true
if GNSS chipset supports antenna info, false
otherwise.
hasGeofencing
fun hasGeofencing(): Boolean
Returns true
if GNSS chipset supports geofencing, false
otherwise.
hasGnssAntennaInfo
funhasGnssAntennaInfo(): Boolean
Deprecated: Use hasAntennaInfo()
instead.
Returns true
if GNSS chipset supports antenna info, false
otherwise.
hasLowPowerMode
fun hasLowPowerMode(): Boolean
Returns true
if GNSS chipset supports low power mode, false
otherwise.
The low power mode is defined in GNSS HAL. When the low power mode is active, the GNSS hardware must make strong tradeoffs to substantially restrict power use.
hasMeasurementCorrections
fun hasMeasurementCorrections(): Boolean
Returns true
if GNSS chipset supports measurement corrections, false
otherwise.
hasMeasurementCorrectionsExcessPathLength
fun hasMeasurementCorrectionsExcessPathLength(): Boolean
Returns true
if GNSS chipset supports per satellite excess-path-length measurement corrections, false
otherwise.
hasMeasurementCorrectionsForDriving
fun hasMeasurementCorrectionsForDriving(): Boolean
Returns true
if GNSS chipset will benefit from measurement corrections for driving use case if provided, false
otherwise.
hasMeasurementCorrectionsLosSats
fun hasMeasurementCorrectionsLosSats(): Boolean
Returns true
if GNSS chipset supports line-of-sight satellite identification measurement corrections, false
otherwise.
hasMeasurementCorrectionsReflectingPlane
fun hasMeasurementCorrectionsReflectingPlane(): Boolean
Returns true
if GNSS chipset supports reflecting plane measurement corrections, false
otherwise.
hasMeasurementCorrelationVectors
fun hasMeasurementCorrelationVectors(): Boolean
Returns true
if GNSS chipset supports correlation vectors as part of measurements outputs, false
otherwise.
hasMeasurements
fun hasMeasurements(): Boolean
Returns true
if GNSS chipset supports measurements, false
otherwise.
hasMsa
fun hasMsa(): Boolean
Returns true
if GNSS chipset supports Mobile Station Assisted assitance, false
otherwise.
hasMsb
fun hasMsb(): Boolean
Returns true
if GNSS chipset supports Mobile Station Based assistance, false
otherwise.
hasNavigationMessages
fun hasNavigationMessages(): Boolean
Returns true
if GNSS chipset supports navigation messages, false
otherwise.
hasOnDemandTime
fun hasOnDemandTime(): Boolean
Returns true
if GNSS chipset requests periodic time signal injection from the platform in addition to on-demand and occasional time updates, false
otherwise.
Note: The naming of this capability and the behavior it controls differ substantially. This is the result of a historic implementation bug, b/73893222.
hasPowerMultibandAcquisition
fun hasPowerMultibandAcquisition(): Boolean
Returns true
if GNSS chipset supports measuring multi-band acquisition power, false
otherwise.
hasPowerMultibandTracking
fun hasPowerMultibandTracking(): Boolean
Returns true
if GNSS chipset supports measuring multi-band tracking power, false
otherwise.
hasPowerOtherModes
fun hasPowerOtherModes(): Boolean
Returns true
if GNSS chipset supports measuring OEM defined mode power, false
otherwise.
hasPowerSinglebandAcquisition
fun hasPowerSinglebandAcquisition(): Boolean
Returns true
if GNSS chipset supports measuring single-band acquisition power, false
otherwise.
hasPowerSinglebandTracking
fun hasPowerSinglebandTracking(): Boolean
Returns true
if GNSS chipset supports measuring single-band tracking power, false
otherwise.
hasPowerTotal
fun hasPowerTotal(): Boolean
Returns true
if GNSS chipset supports measuring power totals, false
otherwise.
hasSatelliteBlocklist
fun hasSatelliteBlocklist(): Boolean
Returns true
if GNSS chipset supports satellite blocklists, false
otherwise.
hasSatellitePvt
fun hasSatellitePvt(): Boolean
Returns true
if GNSS chipset supports satellite PVT, false
otherwise.
hasScheduling
fun hasScheduling(): Boolean
Returns true
if GNSS chipset supports scheduling, false
otherwise.
hasSingleShotFix
fun hasSingleShotFix(): Boolean
Returns true
if GNSS chipset supports single shot locating, false
otherwise.
toString
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
fun writeToParcel(
parcel: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
The Parcel in which the object should be written. This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
parcel |
Parcel: This value cannot be null . |