Lines Matching refs:gnssConfig

190 Return<bool> Gnss::updateConfiguration(GnssConfig& gnssConfig) {  in updateConfiguration()  argument
194 api->gnssConfigurationUpdate(gnssConfig); in updateConfiguration()
195 } else if (gnssConfig.flags != 0) { in updateConfiguration()
199 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) { in updateConfiguration()
201 mPendingConfig.gpsLock = gnssConfig.gpsLock; in updateConfiguration()
203 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) { in updateConfiguration()
205 mPendingConfig.suplVersion = gnssConfig.suplVersion; in updateConfiguration()
207 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) { in updateConfiguration()
210 mPendingConfig.assistanceServer.type = gnssConfig.assistanceServer.type; in updateConfiguration()
214 strdup(gnssConfig.assistanceServer.hostName); in updateConfiguration()
216 mPendingConfig.assistanceServer.port = gnssConfig.assistanceServer.port; in updateConfiguration()
218 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { in updateConfiguration()
220 mPendingConfig.lppProfileMask = gnssConfig.lppProfileMask; in updateConfiguration()
222 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { in updateConfiguration()
224 mPendingConfig.lppeControlPlaneMask = gnssConfig.lppeControlPlaneMask; in updateConfiguration()
226 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { in updateConfiguration()
228 mPendingConfig.lppeUserPlaneMask = gnssConfig.lppeUserPlaneMask; in updateConfiguration()
230 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) { in updateConfiguration()
232 mPendingConfig.aGlonassPositionProtocolMask = gnssConfig.aGlonassPositionProtocolMask; in updateConfiguration()
234 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) { in updateConfiguration()
236 mPendingConfig.emergencyPdnForEmergencySupl = gnssConfig.emergencyPdnForEmergencySupl; in updateConfiguration()
238 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT) { in updateConfiguration()
240 mPendingConfig.suplEmergencyServices = gnssConfig.suplEmergencyServices; in updateConfiguration()
242 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) { in updateConfiguration()
244 mPendingConfig.suplModeMask = gnssConfig.suplModeMask; in updateConfiguration()
246 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT) { in updateConfiguration()
248 mPendingConfig.blacklistedSvIds = gnssConfig.blacklistedSvIds; in updateConfiguration()