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_2; in setSuplVersion()
72 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_0; in setSuplVersion()
75 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_1_0_0; in setSuplVersion()
83 return mGnss->updateConfiguration(config); in setSuplVersion()
92 GnssConfig config; in setSuplMode() local
93 memset(&config, 0, sizeof(GnssConfig)); in setSuplMode()
94 config.size = sizeof(GnssConfig); in setSuplMode()
95 config.flags = GNSS_CONFIG_FLAGS_SUPL_MODE_BIT; in setSuplMode()
98 config.suplModeMask = 0; // STANDALONE ONLY in setSuplMode()
101 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT; in setSuplMode()
104 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
107 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT | GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
115 return mGnss->updateConfiguration(config); in setSuplMode()
124 GnssConfig config; in setLppProfile() local
125 memset(&config, 0, sizeof(GnssConfig)); in setLppProfile()
126 config.size = sizeof(GnssConfig); in setLppProfile()
127 config.flags = GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT; in setLppProfile()
130 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_RRLP_ON_LTE; in setLppProfile()
133 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE; in setLppProfile()
136 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE; in setLppProfile()
139 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE_AND_CONTROL_PLANE; in setLppProfile()
147 return mGnss->updateConfiguration(config); in setLppProfile()
156 GnssConfig config; in setGlonassPositioningProtocol() local
157 memset(&config, 0, sizeof(GnssConfig)); in setGlonassPositioningProtocol()
158 config.size = sizeof(GnssConfig); in setGlonassPositioningProtocol()
160 config.flags = GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT; in setGlonassPositioningProtocol()
162 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRC_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
165 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
168 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
171 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
174 return mGnss->updateConfiguration(config); in setGlonassPositioningProtocol()
183 GnssConfig config; in setGpsLock() local
184 memset(&config, 0, sizeof(GnssConfig)); in setGpsLock()
185 config.size = sizeof(GnssConfig); in setGpsLock()
186 config.flags = GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT; in setGpsLock()
189 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NONE; in setGpsLock()
192 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO; in setGpsLock()
195 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NI; in setGpsLock()
198 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO_AND_NI; in setGpsLock()
206 return mGnss->updateConfiguration(config); in setGpsLock()
215 GnssConfig config; in setEmergencySuplPdn() local
216 memset(&config, 0, sizeof(GnssConfig)); in setEmergencySuplPdn()
217 config.size = sizeof(GnssConfig); in setEmergencySuplPdn()
218 config.flags = GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT; in setEmergencySuplPdn()
219 config.emergencyPdnForEmergencySupl = (enabled ? in setEmergencySuplPdn()
223 return mGnss->updateConfiguration(config); in setEmergencySuplPdn()
241 GnssConfig config; in setBlacklist() local
242 memset(&config, 0, sizeof(GnssConfig)); in setBlacklist()
243 config.size = sizeof(GnssConfig); in setBlacklist()
244 config.flags = GNSS_CONFIG_FLAGS_BLACKLISTED_SV_IDS_BIT; in setBlacklist()
245 config.blacklistedSvIds.clear(); in setBlacklist()
251 config.blacklistedSvIds.push_back(source); in setBlacklist()
256 return (blValid && mGnss->updateConfiguration(config)); in setBlacklist()