GnssCapabilities.Builder
public
static
final
class
GnssCapabilities.Builder
extends Object
java.lang.Object | |
↳ | android.location.GnssCapabilities.Builder |
Builder for GnssCapabilities.
Summary
Public constructors | |
---|---|
Builder()
|
|
Builder(GnssCapabilities capabilities)
|
Public methods | |
---|---|
GnssCapabilities
|
build()
Builds a new GnssCapabilities. |
GnssCapabilities.Builder
|
setGnssSignalTypes(List<GnssSignalType> gnssSignalTypes)
Sets a list of |
GnssCapabilities.Builder
|
setHasAccumulatedDeltaRange(int capable)
Sets accumulated delta range capability. |
GnssCapabilities.Builder
|
setHasAntennaInfo(boolean capable)
Sets antenna info capability. |
GnssCapabilities.Builder
|
setHasGeofencing(boolean capable)
Sets geofencing capability. |
GnssCapabilities.Builder
|
setHasLowPowerMode(boolean capable)
Sets low power mode capability. |
GnssCapabilities.Builder
|
setHasMeasurementCorrections(boolean capable)
Sets measurement corrections capability. |
GnssCapabilities.Builder
|
setHasMeasurementCorrectionsExcessPathLength(boolean capable)
Sets measurement corrections excess path length capability. |
GnssCapabilities.Builder
|
setHasMeasurementCorrectionsForDriving(boolean capable)
Sets measurement corrections for driving capability. |
GnssCapabilities.Builder
|
setHasMeasurementCorrectionsLosSats(boolean capable)
Sets measurement corrections line-of-sight satellites capability. |
GnssCapabilities.Builder
|
setHasMeasurementCorrectionsReflectingPlane(boolean capable)
Sets measurement corrections reflecting plane capability. |
GnssCapabilities.Builder
|
setHasMeasurementCorrelationVectors(boolean capable)
Sets correlation vector capability. |
GnssCapabilities.Builder
|
setHasMeasurements(boolean capable)
Sets measurements capability. |
GnssCapabilities.Builder
|
setHasMsa(boolean capable)
Sets Mobile Station Assisted capability. |
GnssCapabilities.Builder
|
setHasMsb(boolean capable)
Sets Mobile Station Based capability. |
GnssCapabilities.Builder
|
setHasNavigationMessages(boolean capable)
Sets navigation messages capability. |
GnssCapabilities.Builder
|
setHasOnDemandTime(boolean capable)
Sets on demand time capability. |
GnssCapabilities.Builder
|
setHasPowerMultibandAcquisition(boolean capable)
Sets power multi-band acquisition capability. |
GnssCapabilities.Builder
|
setHasPowerMultibandTracking(boolean capable)
Sets power multi-band tracking capability. |
GnssCapabilities.Builder
|
setHasPowerOtherModes(boolean capable)
Sets OEM-defined power modes capability. |
GnssCapabilities.Builder
|
setHasPowerSinglebandAcquisition(boolean capable)
Sets power single-band acquisition capability. |
GnssCapabilities.Builder
|
setHasPowerSinglebandTracking(boolean capable)
Sets power single-band tracking capability. |
GnssCapabilities.Builder
|
setHasPowerTotal(boolean capable)
Sets power totals capability. |
GnssCapabilities.Builder
|
setHasSatelliteBlocklist(boolean capable)
Sets satellite blocklist capability. |
GnssCapabilities.Builder
|
setHasSatellitePvt(boolean capable)
Sets satellite PVT capability. |
GnssCapabilities.Builder
|
setHasScheduling(boolean capable)
Sets scheduling capability. |
GnssCapabilities.Builder
|
setHasSingleShotFix(boolean capable)
Sets single shot locating capability. |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (GnssCapabilities capabilities)
Parameters | |
---|---|
capabilities |
GnssCapabilities : This value cannot be null . |
Public methods
build
public GnssCapabilities build ()
Builds a new GnssCapabilities.
Returns | |
---|---|
GnssCapabilities |
This value cannot be null . |
setGnssSignalTypes
public GnssCapabilities.Builder setGnssSignalTypes (List<GnssSignalType> gnssSignalTypes)
Sets a list of GnssSignalType
.
Parameters | |
---|---|
gnssSignalTypes |
List : This value cannot be null . |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasAccumulatedDeltaRange
public GnssCapabilities.Builder setHasAccumulatedDeltaRange (int capable)
Sets accumulated delta range capability.
Parameters | |
---|---|
capable |
int : Value is either 0 or a combination of GnssCapabilities.CAPABILITY_UNKNOWN , GnssCapabilities.CAPABILITY_SUPPORTED , and GnssCapabilities.CAPABILITY_UNSUPPORTED |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasAntennaInfo
public GnssCapabilities.Builder setHasAntennaInfo (boolean capable)
Sets antenna info capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasGeofencing
public GnssCapabilities.Builder setHasGeofencing (boolean capable)
Sets geofencing capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasLowPowerMode
public GnssCapabilities.Builder setHasLowPowerMode (boolean capable)
Sets low power mode capability.
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.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrections
public GnssCapabilities.Builder setHasMeasurementCorrections (boolean capable)
Sets measurement corrections capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsExcessPathLength
public GnssCapabilities.Builder setHasMeasurementCorrectionsExcessPathLength (boolean capable)
Sets measurement corrections excess path length capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsForDriving
public GnssCapabilities.Builder setHasMeasurementCorrectionsForDriving (boolean capable)
Sets measurement corrections for driving capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsLosSats
public GnssCapabilities.Builder setHasMeasurementCorrectionsLosSats (boolean capable)
Sets measurement corrections line-of-sight satellites capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsReflectingPlane
public GnssCapabilities.Builder setHasMeasurementCorrectionsReflectingPlane (boolean capable)
Sets measurement corrections reflecting plane capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrelationVectors
public GnssCapabilities.Builder setHasMeasurementCorrelationVectors (boolean capable)
Sets correlation vector capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurements
public GnssCapabilities.Builder setHasMeasurements (boolean capable)
Sets measurements capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMsa
public GnssCapabilities.Builder setHasMsa (boolean capable)
Sets Mobile Station Assisted capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMsb
public GnssCapabilities.Builder setHasMsb (boolean capable)
Sets Mobile Station Based capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasNavigationMessages
public GnssCapabilities.Builder setHasNavigationMessages (boolean capable)
Sets navigation messages capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasOnDemandTime
public GnssCapabilities.Builder setHasOnDemandTime (boolean capable)
Sets on demand time capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerMultibandAcquisition
public GnssCapabilities.Builder setHasPowerMultibandAcquisition (boolean capable)
Sets power multi-band acquisition capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerMultibandTracking
public GnssCapabilities.Builder setHasPowerMultibandTracking (boolean capable)
Sets power multi-band tracking capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerOtherModes
public GnssCapabilities.Builder setHasPowerOtherModes (boolean capable)
Sets OEM-defined power modes capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerSinglebandAcquisition
public GnssCapabilities.Builder setHasPowerSinglebandAcquisition (boolean capable)
Sets power single-band acquisition capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerSinglebandTracking
public GnssCapabilities.Builder setHasPowerSinglebandTracking (boolean capable)
Sets power single-band tracking capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerTotal
public GnssCapabilities.Builder setHasPowerTotal (boolean capable)
Sets power totals capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasSatelliteBlocklist
public GnssCapabilities.Builder setHasSatelliteBlocklist (boolean capable)
Sets satellite blocklist capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasSatellitePvt
public GnssCapabilities.Builder setHasSatellitePvt (boolean capable)
Sets satellite PVT capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasScheduling
public GnssCapabilities.Builder setHasScheduling (boolean capable)
Sets scheduling capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasSingleShotFix
public GnssCapabilities.Builder setHasSingleShotFix (boolean capable)
Sets single shot locating capability.
Parameters | |
---|---|
capable |
boolean |
Returns | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |