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_2; in setSuplVersion()
62 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_0; in setSuplVersion()
65 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_1_0_0; in setSuplVersion()
73 return mGnss->updateConfiguration(config); in setSuplVersion()
82 GnssConfig config; in setSuplMode() local
83 memset(&config, 0, sizeof(GnssConfig)); in setSuplMode()
84 config.size = sizeof(GnssConfig); in setSuplMode()
85 config.flags = GNSS_CONFIG_FLAGS_SUPL_MODE_BIT; in setSuplMode()
88 config.suplModeMask = 0; // STANDALONE ONLY in setSuplMode()
91 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT; in setSuplMode()
94 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
97 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT | GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
105 return mGnss->updateConfiguration(config); in setSuplMode()
114 GnssConfig config = {}; in setLppProfile() local
115 config.size = sizeof(GnssConfig); in setLppProfile()
116 config.flags = GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT; in setLppProfile()
119 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_RRLP_ON_LTE; in setLppProfile()
122 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE; in setLppProfile()
125 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE; in setLppProfile()
128 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE_AND_CONTROL_PLANE; in setLppProfile()
136 return mGnss->updateConfiguration(config); in setLppProfile()
145 GnssConfig config; in setGlonassPositioningProtocol() local
146 memset(&config, 0, sizeof(GnssConfig)); in setGlonassPositioningProtocol()
147 config.size = sizeof(GnssConfig); in setGlonassPositioningProtocol()
149 config.flags = GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT; in setGlonassPositioningProtocol()
151 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRC_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
154 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
157 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
160 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
163 return mGnss->updateConfiguration(config); in setGlonassPositioningProtocol()
173 GnssConfig config = {}; in setGpsLock() local
174 config.size = sizeof(GnssConfig); in setGpsLock()
175 config.flags = GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT; in setGpsLock()
178 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NONE; in setGpsLock()
181 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO; in setGpsLock()
184 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NI; in setGpsLock()
187 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO_AND_NI; in setGpsLock()
195 mGnss->updateConfiguration(config); in setGpsLock()
206 GnssConfig config; in setEmergencySuplPdn() local
207 memset(&config, 0, sizeof(GnssConfig)); in setEmergencySuplPdn()
208 config.size = sizeof(GnssConfig); in setEmergencySuplPdn()
209 config.flags = GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT; in setEmergencySuplPdn()
210 config.emergencyPdnForEmergencySupl = (enabled ? in setEmergencySuplPdn()
214 return mGnss->updateConfiguration(config); in setEmergencySuplPdn()
232 GnssConfig config; in setBlacklist() local
233 memset(&config, 0, sizeof(GnssConfig)); in setBlacklist()
234 config.size = sizeof(GnssConfig); in setBlacklist()
235 config.flags = GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT; in setBlacklist()
236 config.blacklistedSvIds.clear(); in setBlacklist()
242 config.blacklistedSvIds.push_back(source); in setBlacklist()
247 return (blValid && mGnss->updateConfiguration(config)); in setBlacklist()
308 GnssConfig config; in setEsExtensionSec() local
309 memset(&config, 0, sizeof(GnssConfig)); in setEsExtensionSec()
310 config.size = sizeof(GnssConfig); in setEsExtensionSec()
311 config.flags = GNSS_CONFIG_FLAGS_EMERGENCY_EXTENSION_SECONDS_BIT; in setEsExtensionSec()
312 config.emergencyExtensionSeconds = emergencyExtensionSeconds; in setEsExtensionSec()
314 return mGnss->updateConfiguration(config); in setEsExtensionSec()