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()
75 return mGnss->updateConfiguration(config); in setSuplVersion()
84 GnssConfig config; in setSuplMode() local
85 memset(&config, 0, sizeof(GnssConfig)); in setSuplMode()
86 config.size = sizeof(GnssConfig); in setSuplMode()
87 config.flags = GNSS_CONFIG_FLAGS_SUPL_MODE_BIT; in setSuplMode()
90 config.suplModeMask = 0; // STANDALONE ONLY in setSuplMode()
93 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT; in setSuplMode()
96 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
99 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT | GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
106 return mGnss->updateConfiguration(config); in setSuplMode()
115 GnssConfig config = {}; in setLppProfile() local
116 config.size = sizeof(GnssConfig); in setLppProfile()
117 config.flags = GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT; in setLppProfile()
118 config.lppProfileMask = GNSS_CONFIG_LPP_PROFILE_RRLP_ON_LTE; //default in setLppProfile()
121 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_USER_PLANE_BIT; in setLppProfile()
124 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE_BIT; in setLppProfile()
127 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_USER_PLANE_OVER_NR5G_SA_BIT; in setLppProfile()
130 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE_OVER_NR5G_SA_BIT; in setLppProfile()
133 return mGnss->updateConfiguration(config); in setLppProfile()
142 GnssConfig config; in setGlonassPositioningProtocol() local
143 memset(&config, 0, sizeof(GnssConfig)); in setGlonassPositioningProtocol()
144 config.size = sizeof(GnssConfig); in setGlonassPositioningProtocol()
146 config.flags = GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT; in setGlonassPositioningProtocol()
148 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRC_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
151 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
154 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
157 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
160 return mGnss->updateConfiguration(config); in setGlonassPositioningProtocol()
170 GnssConfig config = {}; in setGpsLock() local
171 config.size = sizeof(GnssConfig); in setGpsLock()
172 config.flags = GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT; in setGpsLock()
175 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NONE; in setGpsLock()
178 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO; in setGpsLock()
181 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NI; in setGpsLock()
184 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO_AND_NI; in setGpsLock()
191 mGnss->updateConfiguration(config); in setGpsLock()
202 GnssConfig config; in setEmergencySuplPdn() local
203 memset(&config, 0, sizeof(GnssConfig)); in setEmergencySuplPdn()
204 config.size = sizeof(GnssConfig); in setEmergencySuplPdn()
205 config.flags = GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT; in setEmergencySuplPdn()
206 config.emergencyPdnForEmergencySupl = (enabled ? in setEmergencySuplPdn()
210 return mGnss->updateConfiguration(config); in setEmergencySuplPdn()
228 GnssConfig config; in setBlacklist() local
229 memset(&config, 0, sizeof(GnssConfig)); in setBlacklist()
230 config.size = sizeof(GnssConfig); in setBlacklist()
231 config.flags = GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT; in setBlacklist()
232 config.blacklistedSvIds.clear(); in setBlacklist()
238 config.blacklistedSvIds.push_back(source); in setBlacklist()
243 return (blValid && mGnss->updateConfiguration(config)); in setBlacklist()
304 GnssConfig config; in setEsExtensionSec() local
305 memset(&config, 0, sizeof(GnssConfig)); in setEsExtensionSec()
306 config.size = sizeof(GnssConfig); in setEsExtensionSec()
307 config.flags = GNSS_CONFIG_FLAGS_EMERGENCY_EXTENSION_SECONDS_BIT; in setEsExtensionSec()
308 config.emergencyExtensionSeconds = emergencyExtensionSeconds; in setEsExtensionSec()
310 return mGnss->updateConfiguration(config); in setEsExtensionSec()