Lines Matching refs:config
46 GnssConfig config; in setSuplEs() local
47 memset(&config, 0, sizeof(GnssConfig)); in setSuplEs()
48 config.size = sizeof(GnssConfig); in setSuplEs()
49 config.flags = GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT; in setSuplEs()
50 config.suplEmergencyServices = (enabled ? in setSuplEs()
54 return mGnss->updateConfiguration(config); in setSuplEs()
63 GnssConfig config; in setSuplVersion() local
64 memset(&config, 0, sizeof(GnssConfig)); in setSuplVersion()
65 config.size = sizeof(GnssConfig); in setSuplVersion()
66 config.flags = GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT; in setSuplVersion()
69 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_4; in setSuplVersion()
72 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_2; in setSuplVersion()
75 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_0; in setSuplVersion()
78 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_1_0_0; in setSuplVersion()
85 return mGnss->updateConfiguration(config); in setSuplVersion()
94 GnssConfig config; in setSuplMode() local
95 memset(&config, 0, sizeof(GnssConfig)); in setSuplMode()
96 config.size = sizeof(GnssConfig); in setSuplMode()
97 config.flags = GNSS_CONFIG_FLAGS_SUPL_MODE_BIT; in setSuplMode()
100 config.suplModeMask = 0; // STANDALONE ONLY in setSuplMode()
103 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT; in setSuplMode()
106 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
109 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT | GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
116 return mGnss->updateConfiguration(config); in setSuplMode()
125 GnssConfig config = {}; in setLppProfile() local
126 config.size = sizeof(GnssConfig); in setLppProfile()
127 config.flags = GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT; in setLppProfile()
128 config.lppProfileMask = GNSS_CONFIG_LPP_PROFILE_RRLP_ON_LTE; //default in setLppProfile()
131 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_USER_PLANE_BIT; in setLppProfile()
134 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE_BIT; in setLppProfile()
137 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_USER_PLANE_OVER_NR5G_SA_BIT; in setLppProfile()
140 config.lppProfileMask |= GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE_OVER_NR5G_SA_BIT; in setLppProfile()
143 return mGnss->updateConfiguration(config); in setLppProfile()
152 GnssConfig config; in setGlonassPositioningProtocol() local
153 memset(&config, 0, sizeof(GnssConfig)); in setGlonassPositioningProtocol()
154 config.size = sizeof(GnssConfig); in setGlonassPositioningProtocol()
156 config.flags = GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT; in setGlonassPositioningProtocol()
158 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRC_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
161 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
164 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
167 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
170 return mGnss->updateConfiguration(config); in setGlonassPositioningProtocol()
179 GnssConfig config; in setGpsLock() local
180 memset(&config, 0, sizeof(GnssConfig)); in setGpsLock()
181 config.size = sizeof(GnssConfig); in setGpsLock()
182 config.flags = GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT; in setGpsLock()
185 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NONE; in setGpsLock()
188 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO; in setGpsLock()
191 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NI; in setGpsLock()
194 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO_AND_NI; in setGpsLock()
201 return mGnss->updateConfiguration(config); in setGpsLock()
210 GnssConfig config; in setEmergencySuplPdn() local
211 memset(&config, 0, sizeof(GnssConfig)); in setEmergencySuplPdn()
212 config.size = sizeof(GnssConfig); in setEmergencySuplPdn()
213 config.flags = GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT; in setEmergencySuplPdn()
214 config.emergencyPdnForEmergencySupl = (enabled ? in setEmergencySuplPdn()
218 return mGnss->updateConfiguration(config); in setEmergencySuplPdn()
236 GnssConfig config; in setBlacklist() local
237 memset(&config, 0, sizeof(GnssConfig)); in setBlacklist()
238 config.size = sizeof(GnssConfig); in setBlacklist()
239 config.flags = GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT; in setBlacklist()
240 config.blacklistedSvIds.clear(); in setBlacklist()
246 config.blacklistedSvIds.push_back(source); in setBlacklist()
251 return (blValid && mGnss->updateConfiguration(config)); in setBlacklist()