Set yearOfHw to 2019 if Location Privacy feature
is supported Change-Id: If5ee31603491c83652082ce295abfcf9c9fec511 CRs-fixed: 2446241
This commit is contained in:
parent
e8c1730e91
commit
b884edb7c8
4 changed files with 10 additions and 2 deletions
|
@ -368,7 +368,9 @@ void GnssAPIClient::onCapabilitiesCb(LocationCapabilitiesMask capabilitiesMask)
|
|||
data |= IGnssCallback::Capabilities::SATELLITE_BLACKLIST;
|
||||
|
||||
IGnssCallback::GnssSystemInfo gnssInfo;
|
||||
if (capabilitiesMask & LOCATION_CAPABILITIES_CONSTELLATION_ENABLEMENT_BIT ||
|
||||
if (capabilitiesMask & LOCATION_CAPABILITIES_PRIVACY_BIT) {
|
||||
gnssInfo.yearOfHw = 2019;
|
||||
} else if (capabilitiesMask & LOCATION_CAPABILITIES_CONSTELLATION_ENABLEMENT_BIT ||
|
||||
capabilitiesMask & LOCATION_CAPABILITIES_AGPM_BIT) {
|
||||
gnssInfo.yearOfHw = 2018;
|
||||
} else if (capabilitiesMask & LOCATION_CAPABILITIES_DEBUG_NMEA_BIT) {
|
||||
|
|
|
@ -298,6 +298,9 @@ LocAdapterBase::getCapabilities()
|
|||
if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_AGPM_V02)) {
|
||||
mask |= LOCATION_CAPABILITIES_AGPM_BIT;
|
||||
}
|
||||
if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_LOCATION_PRIVACY)) {
|
||||
mask |= LOCATION_CAPABILITIES_PRIVACY_BIT;
|
||||
}
|
||||
} else {
|
||||
LOC_LOGE("%s]: attempt to get capabilities before they are known.", __func__);
|
||||
}
|
||||
|
|
|
@ -218,6 +218,8 @@ typedef enum {
|
|||
LOCATION_CAPABILITIES_CONSTELLATION_ENABLEMENT_BIT = (1<<10),
|
||||
// support agpm
|
||||
LOCATION_CAPABILITIES_AGPM_BIT = (1<<11),
|
||||
// support location privacy
|
||||
LOCATION_CAPABILITIES_PRIVACY_BIT = (1<<12),
|
||||
} LocationCapabilitiesBits;
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -126,7 +126,8 @@ typedef enum {
|
|||
LOC_SUPPORTED_FEATURE_CONSTELLATION_ENABLEMENT_V02, /**< Support constellation enablement */
|
||||
LOC_SUPPORTED_FEATURE_AGPM_V02, /**< Support AGPM feature */
|
||||
LOC_SUPPORTED_FEATURE_XTRA_INTEGRITY, /**< Support XTRA integrity */
|
||||
LOC_SUPPORTED_FEATURE_FDCL_2 /**< Support FDCL V2 */
|
||||
LOC_SUPPORTED_FEATURE_FDCL_2, /**< Support FDCL V2 */
|
||||
LOC_SUPPORTED_FEATURE_LOCATION_PRIVACY /**< Support location privacy */
|
||||
} loc_supported_feature_enum;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in a new issue