Lines Matching refs:gnssConfig
149 Return<bool> Gnss::updateConfiguration(GnssConfig& gnssConfig) { in updateConfiguration() argument
153 api->gnssConfigurationUpdate(gnssConfig); in updateConfiguration()
154 } else if (gnssConfig.flags != 0) { in updateConfiguration()
158 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) { in updateConfiguration()
160 mPendingConfig.gpsLock = gnssConfig.gpsLock; in updateConfiguration()
162 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) { in updateConfiguration()
164 mPendingConfig.suplVersion = gnssConfig.suplVersion; in updateConfiguration()
166 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) { in updateConfiguration()
169 mPendingConfig.assistanceServer.type = gnssConfig.assistanceServer.type; in updateConfiguration()
173 strdup(gnssConfig.assistanceServer.hostName); in updateConfiguration()
175 mPendingConfig.assistanceServer.port = gnssConfig.assistanceServer.port; in updateConfiguration()
177 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { in updateConfiguration()
179 mPendingConfig.lppProfileMask = gnssConfig.lppProfileMask; in updateConfiguration()
181 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { in updateConfiguration()
183 mPendingConfig.lppeControlPlaneMask = gnssConfig.lppeControlPlaneMask; in updateConfiguration()
185 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { in updateConfiguration()
187 mPendingConfig.lppeUserPlaneMask = gnssConfig.lppeUserPlaneMask; in updateConfiguration()
189 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) { in updateConfiguration()
191 mPendingConfig.aGlonassPositionProtocolMask = gnssConfig.aGlonassPositionProtocolMask; in updateConfiguration()
193 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) { in updateConfiguration()
195 mPendingConfig.emergencyPdnForEmergencySupl = gnssConfig.emergencyPdnForEmergencySupl; in updateConfiguration()
197 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT) { in updateConfiguration()
199 mPendingConfig.suplEmergencyServices = gnssConfig.suplEmergencyServices; in updateConfiguration()
201 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) { in updateConfiguration()
203 mPendingConfig.suplModeMask = gnssConfig.suplModeMask; in updateConfiguration()
205 if (gnssConfig.flags & GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT) { in updateConfiguration()
207 mPendingConfig.blacklistedSvIds = gnssConfig.blacklistedSvIds; in updateConfiguration()