Lines Matching refs:config
43 GnssConfig config; in setSuplEs() local
44 memset(&config, 0, sizeof(GnssConfig)); in setSuplEs()
45 config.size = sizeof(GnssConfig); in setSuplEs()
46 config.flags = GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT; in setSuplEs()
47 config.suplEmergencyServices = (enabled ? in setSuplEs()
51 return mGnss->updateConfiguration(config); in setSuplEs()
60 GnssConfig config; in setSuplVersion() local
61 memset(&config, 0, sizeof(GnssConfig)); in setSuplVersion()
62 config.size = sizeof(GnssConfig); in setSuplVersion()
63 config.flags = GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT; in setSuplVersion()
66 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_2; in setSuplVersion()
69 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_2_0_0; in setSuplVersion()
72 config.suplVersion = GNSS_CONFIG_SUPL_VERSION_1_0_0; in setSuplVersion()
80 return mGnss->updateConfiguration(config); in setSuplVersion()
89 GnssConfig config; in setSuplMode() local
90 memset(&config, 0, sizeof(GnssConfig)); in setSuplMode()
91 config.size = sizeof(GnssConfig); in setSuplMode()
92 config.flags = GNSS_CONFIG_FLAGS_SUPL_MODE_BIT; in setSuplMode()
95 config.suplModeMask = 0; // STANDALONE ONLY in setSuplMode()
98 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT; in setSuplMode()
101 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
104 config.suplModeMask = GNSS_CONFIG_SUPL_MODE_MSB_BIT | GNSS_CONFIG_SUPL_MODE_MSA_BIT; in setSuplMode()
112 return mGnss->updateConfiguration(config); in setSuplMode()
121 GnssConfig config; in setLppProfile() local
122 memset(&config, 0, sizeof(GnssConfig)); in setLppProfile()
123 config.size = sizeof(GnssConfig); in setLppProfile()
124 config.flags = GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT; in setLppProfile()
127 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_RRLP_ON_LTE; in setLppProfile()
130 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE; in setLppProfile()
133 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_CONTROL_PLANE; in setLppProfile()
136 config.lppProfile = GNSS_CONFIG_LPP_PROFILE_USER_PLANE_AND_CONTROL_PLANE; in setLppProfile()
144 return mGnss->updateConfiguration(config); in setLppProfile()
153 GnssConfig config; in setGlonassPositioningProtocol() local
154 memset(&config, 0, sizeof(GnssConfig)); in setGlonassPositioningProtocol()
155 config.size = sizeof(GnssConfig); in setGlonassPositioningProtocol()
157 config.flags = GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT; in setGlonassPositioningProtocol()
159 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRC_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
162 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_RRLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
165 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_USER_PLANE_BIT; in setGlonassPositioningProtocol()
168 config.aGlonassPositionProtocolMask |= GNSS_CONFIG_LLP_CONTROL_PLANE_BIT; in setGlonassPositioningProtocol()
171 return mGnss->updateConfiguration(config); in setGlonassPositioningProtocol()
180 GnssConfig config; in setGpsLock() local
181 memset(&config, 0, sizeof(GnssConfig)); in setGpsLock()
182 config.size = sizeof(GnssConfig); in setGpsLock()
183 config.flags = GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT; in setGpsLock()
186 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NONE; in setGpsLock()
189 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO; in setGpsLock()
192 config.gpsLock = GNSS_CONFIG_GPS_LOCK_NI; in setGpsLock()
195 config.gpsLock = GNSS_CONFIG_GPS_LOCK_MO_AND_NI; in setGpsLock()
203 return mGnss->updateConfiguration(config); in setGpsLock()
212 GnssConfig config; in setEmergencySuplPdn() local
213 memset(&config, 0, sizeof(GnssConfig)); in setEmergencySuplPdn()
214 config.size = sizeof(GnssConfig); in setEmergencySuplPdn()
215 config.flags = GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT; in setEmergencySuplPdn()
216 config.emergencyPdnForEmergencySupl = (enabled ? in setEmergencySuplPdn()
220 return mGnss->updateConfiguration(config); in setEmergencySuplPdn()