Lines Matching refs:config
53 GnssConfig config; in setSuplVersion() local
54 memset(&config, 0, sizeof(GnssConfig)); in setSuplVersion()
55 config.size = sizeof(GnssConfig); in setSuplVersion()
56 config.flags = GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT; in setSuplVersion()
59 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_4; in setSuplVersion()
62 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_2; in setSuplVersion()
65 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_0; in setSuplVersion()
68 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_1_0_0; in setSuplVersion()
76 return mGnss->updateConfiguration(config); in setSuplVersion()
85 GnssConfig config; in setSuplMode() local
86 memset(&config, 0, sizeof(GnssConfig)); in setSuplMode()
87 config.size = sizeof(GnssConfig); in setSuplMode()
88 config.flags = GNSS_CONFIG_FLAGS_SUPL_MODE_BIT; in setSuplMode()
91 config.suplModeMask = 0; // STANDALONE ONLY in setSuplMode()
94 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT; in setSuplMode()
97 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
100 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT | GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
108 return mGnss->updateConfiguration(config); in setSuplMode()
117 GnssConfig config = {}; in setLppProfile() local
118 config.size = sizeof(GnssConfig); in setLppProfile()
119 config.flags = GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT; in setLppProfile()
122 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_RRLP_ON_LTE; in setLppProfile()
125 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE; in setLppProfile()
128 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE; in setLppProfile()
131 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE_AND_CONTROL_PLANE; in setLppProfile()
139 return mGnss->updateConfiguration(config); in setLppProfile()
148 GnssConfig config; in setGlonassPositioningProtocol() local
149 memset(&config, 0, sizeof(GnssConfig)); in setGlonassPositioningProtocol()
150 config.size = sizeof(GnssConfig); in setGlonassPositioningProtocol()
152 config.flags = GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT; in setGlonassPositioningProtocol()
154 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRC_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
157 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
160 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
163 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
166 return mGnss->updateConfiguration(config); in setGlonassPositioningProtocol()
176 GnssConfig config = {}; in setGpsLock() local
177 config.size = sizeof(GnssConfig); in setGpsLock()
178 config.flags = GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT; in setGpsLock()
181 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NONE; in setGpsLock()
184 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO; in setGpsLock()
187 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NI; in setGpsLock()
190 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO_AND_NI; in setGpsLock()
198 mGnss->updateConfiguration(config); in setGpsLock()
209 GnssConfig config; in setEmergencySuplPdn() local
210 memset(&config, 0, sizeof(GnssConfig)); in setEmergencySuplPdn()
211 config.size = sizeof(GnssConfig); in setEmergencySuplPdn()
212 config.flags = GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT; in setEmergencySuplPdn()
213 config.emergencyPdnForEmergencySupl = (enabled ? in setEmergencySuplPdn()
217 return mGnss->updateConfiguration(config); in setEmergencySuplPdn()
235 GnssConfig config; in setBlacklist() local
236 memset(&config, 0, sizeof(GnssConfig)); in setBlacklist()
237 config.size = sizeof(GnssConfig); in setBlacklist()
238 config.flags = GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT; in setBlacklist()
239 config.blacklistedSvIds.clear(); in setBlacklist()
245 config.blacklistedSvIds.push_back(source); in setBlacklist()
250 return (blValid && mGnss->updateConfiguration(config)); in setBlacklist()
311 GnssConfig config; in setEsExtensionSec() local
312 memset(&config, 0, sizeof(GnssConfig)); in setEsExtensionSec()
313 config.size = sizeof(GnssConfig); in setEsExtensionSec()
314 config.flags = GNSS_CONFIG_FLAGS_EMERGENCY_EXTENSION_SECONDS_BIT; in setEsExtensionSec()
315 config.emergencyExtensionSeconds = emergencyExtensionSeconds; in setEsExtensionSec()
317 return mGnss->updateConfiguration(config); in setEsExtensionSec()