Lines Matching refs:gnssConfig
139 Return<bool> Gnss::updateConfiguration(GnssConfig& gnssConfig) { in updateConfiguration() argument
143 api->locAPIGnssUpdateConfig(gnssConfig); in updateConfiguration()
144 } else if (gnssConfig.flags != 0) { in updateConfiguration()
148 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) { in updateConfiguration()
150 mPendingConfig.gpsLock = gnssConfig.gpsLock; in updateConfiguration()
152 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) { in updateConfiguration()
154 mPendingConfig.suplVersion = gnssConfig.suplVersion; in updateConfiguration()
156 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) { in updateConfiguration()
159 mPendingConfig.assistanceServer.type = gnssConfig.assistanceServer.type; in updateConfiguration()
163 strdup(gnssConfig.assistanceServer.hostName); in updateConfiguration()
165 mPendingConfig.assistanceServer.port = gnssConfig.assistanceServer.port; in updateConfiguration()
167 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { in updateConfiguration()
169 mPendingConfig.lppProfile = gnssConfig.lppProfile; in updateConfiguration()
171 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { in updateConfiguration()
173 mPendingConfig.lppeControlPlaneMask = gnssConfig.lppeControlPlaneMask; in updateConfiguration()
175 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { in updateConfiguration()
177 mPendingConfig.lppeUserPlaneMask = gnssConfig.lppeUserPlaneMask; in updateConfiguration()
179 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) { in updateConfiguration()
181 mPendingConfig.aGlonassPositionProtocolMask = gnssConfig.aGlonassPositionProtocolMask; in updateConfiguration()
183 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) { in updateConfiguration()
185 mPendingConfig.emergencyPdnForEmergencySupl = gnssConfig.emergencyPdnForEmergencySupl; in updateConfiguration()
187 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT) { in updateConfiguration()
189 mPendingConfig.suplEmergencyServices = gnssConfig.suplEmergencyServices; in updateConfiguration()
191 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) { in updateConfiguration()
193 mPendingConfig.suplModeMask = gnssConfig.suplModeMask; in updateConfiguration()