Lines Matching refs:locationCallbacks

83 static bool isGnssClient(LocationCallbacks& locationCallbacks)  in isGnssClient()  argument
85 return (locationCallbacks.gnssNiCb != nullptr || in isGnssClient()
86 locationCallbacks.trackingCb != nullptr || in isGnssClient()
87 locationCallbacks.gnssLocationInfoCb != nullptr || in isGnssClient()
88 locationCallbacks.engineLocationsInfoCb != nullptr || in isGnssClient()
89 locationCallbacks.gnssMeasurementsCb != nullptr || in isGnssClient()
90 locationCallbacks.gnssSvPolynomialCb != nullptr); in isGnssClient()
93 static bool isBatchingClient(LocationCallbacks& locationCallbacks) in isBatchingClient() argument
95 return (locationCallbacks.batchingCb != nullptr); in isBatchingClient()
98 static bool isGeofenceClient(LocationCallbacks& locationCallbacks) in isGeofenceClient() argument
100 return (locationCallbacks.geofenceBreachCb != nullptr || in isGeofenceClient()
101 locationCallbacks.geofenceStatusCb != nullptr); in isGeofenceClient()
146 LocationAPI::createInstance (LocationCallbacks& locationCallbacks) in createInstance() argument
148 if (nullptr == locationCallbacks.capabilitiesCb || in createInstance()
149 nullptr == locationCallbacks.responseCb || in createInstance()
150 nullptr == locationCallbacks.collectiveResponseCb) { in createInstance()
159 if (isGnssClient(locationCallbacks)) { in createInstance()
172 gData.gnssInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
180 if (isBatchingClient(locationCallbacks)) { in createInstance()
193 gData.batchingInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
201 if (isGeofenceClient(locationCallbacks)) { in createInstance()
214 gData.geofenceInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
222 gData.clientData[newLocationAPI] = locationCallbacks; in createInstance()
303 LocationAPI::updateCallbacks(LocationCallbacks& locationCallbacks) in updateCallbacks() argument
305 if (nullptr == locationCallbacks.capabilitiesCb || in updateCallbacks()
306 nullptr == locationCallbacks.responseCb || in updateCallbacks()
307 nullptr == locationCallbacks.collectiveResponseCb) { in updateCallbacks()
313 if (isGnssClient(locationCallbacks)) { in updateCallbacks()
327 gData.gnssInterface->addClient(this, locationCallbacks); in updateCallbacks()
331 if (isBatchingClient(locationCallbacks)) { in updateCallbacks()
345 gData.batchingInterface->addClient(this, locationCallbacks); in updateCallbacks()
349 if (isGeofenceClient(locationCallbacks)) { in updateCallbacks()
363 gData.geofenceInterface->addClient(this, locationCallbacks); in updateCallbacks()
367 gData.clientData[this] = locationCallbacks; in updateCallbacks()