Package: android.hardware.gnss@1.0

IGnssConfiguration

interface IGnssConfiguration

Interface for passing GNSS configuration info from platform to HAL.

Properties

SuplMode

enum SuplMode: uint8_t

Enum which holds the bit masks for SUPL_MODE configuration parameter.

Details
Members
MSB = 0x01
Mobile Station Based
MSA = 0x02
Mobile Station Assisted

GpsLock

enum GpsLock: uint8_t

Enum which holds the bit masks for GPS_LOCK configuration parameter.

Details
Members
MO = 0x01
Lock Mobile Originated GPS functionalitues.
NI = 0x02
Lock Network initiated GPS functionalities.

LppProfile

enum LppProfile: uint8_t

Enum that hold the bit masks for various LTE Positioning Profile settings(LPP_PROFILE configuration parameter). If none of the bits in the enum are set, the default setting is Radio Resource Location Protocol(RRLP).

Details
Members
USER_PLANE = 0x01
Enable LTE Positioning Protocol user plane
CONTROL_PLANE = 0x02
Enable LTE Positioning Protocol Control plane

GlonassPosProtocol

enum GlonassPosProtocol: uint8_t

Enum which holds the bit masks for A_GLONASS_POS_PROTOCOL_SELECT configuration parameter.

Details
Members
RRC_CPLANE = 0x01
Radio Resource Control(RRC)control-plane.
RRLP_CPLANE = 0x02
Radio Resource Location user-plane.
LPP_UPLANE = 0x04
LTE Positioning Protocol User plane

Methods

setSuplEs

setSuplEs (bool enabled)
generates (bool success)

This method enables or disables emergency SUPL.

Details
Parameters
enabled
True if emergency SUPL is to be enabled.
Generates
success
True if operation was successful.

setSuplVersion

setSuplVersion (uint32_t version)
generates (bool success)

This method sets the SUPL version requested by Carrier.The GNSS HAL must use this version of the SUPL protocol if supported.

Details
Parameters
version
SUPL version requested by carrier.This is a bit mask with bits 0:7 representing a service indicator field, bits 8:15 representing the minor version and bits 16:23 representing the major version.
Generates
success
True if operation was successful.

setSuplMode

setSuplMode (bitfield<SuplMode> mode)
generates (bool success)

This method sets the SUPL mode.

Details
Parameters
mode
Bit mask that specifies the SUPL mode which is set with the SuplMode enum.
Generates
success
True if operation was successful.

setGpsLock

setGpsLock (bitfield<GpsLock> lock)
generates (bool success)

This setting configures how GPS functionalities should be locked when user turns off GPS On setting.

Details
Parameters
lock
Bitmask that specifies the GPS functionalities to be be locked as per the GpsLock enum.
Generates
success
True if operation was successful.

setLppProfile

setLppProfile (bitfield<LppProfile> lppProfile)
generates (bool success)

This method sets the LTE Positioning Profile configuration.

Details
Parameters
lppProfile
Bitmask that specifies the LTE Positioning Profile configuration to be set as per the LppProfile enum.
Generates
success
True if operation was successful.

setGlonassPositioningProtocol

setGlonassPositioningProtocol (bitfield<GlonassPosProtocol> protocol)
generates (bool success)

This method selects positioning protocol on A-Glonass system.

Details
Parameters
protocol
Bitmask that specifies the positioning protocol to be set as per GlonassPosProtocol enum.
Generates
success
True if operation was successful.

setEmergencySuplPdn

setEmergencySuplPdn (bool enable)
generates (bool success)

This method configures which PDN to use.

Details
Parameters
enable
Use emergency PDN if true and regular PDN if false.
Generates
success
True if operation was successful.