Lines Matching refs:gnssConfig
156 Return<bool> Gnss::updateConfiguration(GnssConfig& gnssConfig) { in updateConfiguration() argument
160 api->gnssConfigurationUpdate(gnssConfig); in updateConfiguration()
161 } else if (gnssConfig.flags != 0) { in updateConfiguration()
165 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) { in updateConfiguration()
167 mPendingConfig.gpsLock = gnssConfig.gpsLock; in updateConfiguration()
169 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) { in updateConfiguration()
171 mPendingConfig.suplVersion = gnssConfig.suplVersion; in updateConfiguration()
173 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) { in updateConfiguration()
176 mPendingConfig.assistanceServer.type = gnssConfig.assistanceServer.type; in updateConfiguration()
180 strdup(gnssConfig.assistanceServer.hostName); in updateConfiguration()
182 mPendingConfig.assistanceServer.port = gnssConfig.assistanceServer.port; in updateConfiguration()
184 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { in updateConfiguration()
186 mPendingConfig.lppProfile = gnssConfig.lppProfile; in updateConfiguration()
188 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { in updateConfiguration()
190 mPendingConfig.lppeControlPlaneMask = gnssConfig.lppeControlPlaneMask; in updateConfiguration()
192 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { in updateConfiguration()
194 mPendingConfig.lppeUserPlaneMask = gnssConfig.lppeUserPlaneMask; in updateConfiguration()
196 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) { in updateConfiguration()
198 mPendingConfig.aGlonassPositionProtocolMask = gnssConfig.aGlonassPositionProtocolMask; in updateConfiguration()
200 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) { in updateConfiguration()
202 mPendingConfig.emergencyPdnForEmergencySupl = gnssConfig.emergencyPdnForEmergencySupl; in updateConfiguration()
204 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT) { in updateConfiguration()
206 mPendingConfig.suplEmergencyServices = gnssConfig.suplEmergencyServices; in updateConfiguration()
208 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) { in updateConfiguration()
210 mPendingConfig.suplModeMask = gnssConfig.suplModeMask; in updateConfiguration()
212 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT) { in updateConfiguration()
214 mPendingConfig.blacklistedSvIds = gnssConfig.blacklistedSvIds; in updateConfiguration()