Lines Matching refs:gnssConfig
211 Return<bool> Gnss::updateConfiguration(GnssConfig& gnssConfig) { in updateConfiguration() argument
215 api->gnssConfigurationUpdate(gnssConfig); in updateConfiguration()
216 } else if (gnssConfig.flags != 0) { in updateConfiguration()
220 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) { in updateConfiguration()
222 mPendingConfig.gpsLock = gnssConfig.gpsLock; in updateConfiguration()
224 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) { in updateConfiguration()
226 mPendingConfig.suplVersion = gnssConfig.suplVersion; in updateConfiguration()
228 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) { in updateConfiguration()
231 mPendingConfig.assistanceServer.type = gnssConfig.assistanceServer.type; in updateConfiguration()
235 strdup(gnssConfig.assistanceServer.hostName); in updateConfiguration()
237 mPendingConfig.assistanceServer.port = gnssConfig.assistanceServer.port; in updateConfiguration()
239 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { in updateConfiguration()
241 mPendingConfig.lppProfileMask = gnssConfig.lppProfileMask; in updateConfiguration()
243 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { in updateConfiguration()
245 mPendingConfig.lppeControlPlaneMask = gnssConfig.lppeControlPlaneMask; in updateConfiguration()
247 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { in updateConfiguration()
249 mPendingConfig.lppeUserPlaneMask = gnssConfig.lppeUserPlaneMask; in updateConfiguration()
251 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) { in updateConfiguration()
253 mPendingConfig.aGlonassPositionProtocolMask = gnssConfig.aGlonassPositionProtocolMask; in updateConfiguration()
255 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) { in updateConfiguration()
257 mPendingConfig.emergencyPdnForEmergencySupl = gnssConfig.emergencyPdnForEmergencySupl; in updateConfiguration()
259 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT) { in updateConfiguration()
261 mPendingConfig.suplEmergencyServices = gnssConfig.suplEmergencyServices; in updateConfiguration()
263 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) { in updateConfiguration()
265 mPendingConfig.suplModeMask = gnssConfig.suplModeMask; in updateConfiguration()
267 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT) { in updateConfiguration()
269 mPendingConfig.blacklistedSvIds = gnssConfig.blacklistedSvIds; in updateConfiguration()
271 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_EMERGENCY_EXTENSION_SECONDS_BIT) { in updateConfiguration()
273 mPendingConfig.emergencyExtensionSeconds = gnssConfig.emergencyExtensionSeconds; in updateConfiguration()