Lines Matching refs:gData

66 static LocationAPIData gData = {};  variable
110 auto it = gData.destroyClientData.find(this); in onRemoveClientCompleteCb()
111 if (it != gData.destroyClientData.end()) { in onRemoveClientCompleteCb()
116 gData.destroyClientData.erase(it); in onRemoveClientCompleteCb()
160 if (NULL == gData.gnssInterface && !gGnssLoadFailed) { in createInstance()
161 gData.gnssInterface = in createInstance()
164 if (NULL == gData.gnssInterface) { in createInstance()
168 gData.gnssInterface->initialize(); in createInstance()
171 if (NULL != gData.gnssInterface) { in createInstance()
172 gData.gnssInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
174 gData.gnssInterface->requestCapabilities(newLocationAPI); in createInstance()
181 if (NULL == gData.batchingInterface && !gBatchingLoadFailed) { in createInstance()
182 gData.batchingInterface = in createInstance()
185 if (NULL == gData.batchingInterface) { in createInstance()
189 gData.batchingInterface->initialize(); in createInstance()
192 if (NULL != gData.batchingInterface) { in createInstance()
193 gData.batchingInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
195 gData.batchingInterface->requestCapabilities(newLocationAPI); in createInstance()
202 if (NULL == gData.geofenceInterface && !gGeofenceLoadFailed) { in createInstance()
203 gData.geofenceInterface = in createInstance()
206 if (NULL == gData.geofenceInterface) { in createInstance()
210 gData.geofenceInterface->initialize(); in createInstance()
213 if (NULL != gData.geofenceInterface) { in createInstance()
214 gData.geofenceInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
216 gData.geofenceInterface->requestCapabilities(newLocationAPI); in createInstance()
222 gData.clientData[newLocationAPI] = locationCallbacks; in createInstance()
235 auto it = gData.clientData.find(this); in destroy()
236 if (it != gData.clientData.end()) { in destroy()
238 (isGnssClient(it->second) && NULL != gData.gnssInterface); in destroy()
240 (isBatchingClient(it->second) && NULL != gData.batchingInterface); in destroy()
242 (isGeofenceClient(it->second) && NULL != gData.geofenceInterface); in destroy()
260 gData.destroyClientData[this] = destroyCbData; in destroy()
265 gData.gnssInterface->removeClient(it->first, in destroy()
269 gData.batchingInterface->removeClient(it->first, in destroy()
273 gData.geofenceInterface->removeClient(it->first, in destroy()
277 gData.clientData.erase(it); in destroy()
317 if (NULL == gData.gnssInterface && !gGnssLoadFailed) { in updateCallbacks()
318 gData.gnssInterface = in updateCallbacks()
321 if (NULL == gData.gnssInterface) { in updateCallbacks()
325 gData.gnssInterface->initialize(); in updateCallbacks()
328 if (NULL != gData.gnssInterface) { in updateCallbacks()
330 gData.gnssInterface->addClient(this, locationCallbacks); in updateCallbacks()
335 if (NULL == gData.batchingInterface && !gBatchingLoadFailed) { in updateCallbacks()
336 gData.batchingInterface = in updateCallbacks()
339 if (NULL == gData.batchingInterface) { in updateCallbacks()
343 gData.batchingInterface->initialize(); in updateCallbacks()
346 if (NULL != gData.batchingInterface) { in updateCallbacks()
348 gData.batchingInterface->addClient(this, locationCallbacks); in updateCallbacks()
353 if (NULL == gData.geofenceInterface && !gGeofenceLoadFailed) { in updateCallbacks()
354 gData.geofenceInterface = in updateCallbacks()
357 if (NULL == gData.geofenceInterface) { in updateCallbacks()
361 gData.geofenceInterface->initialize(); in updateCallbacks()
364 if (NULL != gData.geofenceInterface) { in updateCallbacks()
366 gData.geofenceInterface->addClient(this, locationCallbacks); in updateCallbacks()
370 gData.clientData[this] = locationCallbacks; in updateCallbacks()
381 auto it = gData.clientData.find(this); in startTracking()
382 if (it != gData.clientData.end()) { in startTracking()
383 if (NULL != gData.gnssInterface) { in startTracking()
384 id = gData.gnssInterface->startTracking(this, trackingOptions); in startTracking()
403 auto it = gData.clientData.find(this); in stopTracking()
404 if (it != gData.clientData.end()) { in stopTracking()
405 if (gData.gnssInterface != NULL) { in stopTracking()
406 gData.gnssInterface->stopTracking(this, id); in stopTracking()
425 auto it = gData.clientData.find(this); in updateTrackingOptions()
426 if (it != gData.clientData.end()) { in updateTrackingOptions()
427 if (gData.gnssInterface != NULL) { in updateTrackingOptions()
428 gData.gnssInterface->updateTrackingOptions(this, id, trackingOptions); in updateTrackingOptions()
447 if (NULL != gData.batchingInterface) { in startBatching()
448 id = gData.batchingInterface->startBatching(this, batchingOptions); in startBatching()
463 if (NULL != gData.batchingInterface) { in stopBatching()
464 gData.batchingInterface->stopBatching(this, id); in stopBatching()
478 if (NULL != gData.batchingInterface) { in updateBatchingOptions()
479 gData.batchingInterface->updateBatchingOptions(this, id, batchOptions); in updateBatchingOptions()
493 if (gData.batchingInterface != NULL) { in getBatchedLocations()
494 gData.batchingInterface->getBatchedLocations(this, id, count); in getBatchedLocations()
509 if (gData.geofenceInterface != NULL) { in addGeofences()
510 ids = gData.geofenceInterface->addGeofences(this, count, options, info); in addGeofences()
525 if (gData.geofenceInterface != NULL) { in removeGeofences()
526 gData.geofenceInterface->removeGeofences(this, count, ids); in removeGeofences()
540 if (gData.geofenceInterface != NULL) { in modifyGeofences()
541 gData.geofenceInterface->modifyGeofences(this, count, ids, options); in modifyGeofences()
555 if (gData.geofenceInterface != NULL) { in pauseGeofences()
556 gData.geofenceInterface->pauseGeofences(this, count, ids); in pauseGeofences()
570 if (gData.geofenceInterface != NULL) { in resumeGeofences()
571 gData.geofenceInterface->resumeGeofences(this, count, ids); in resumeGeofences()
585 if (gData.gnssInterface != NULL) { in gnssNiResponse()
586 gData.gnssInterface->gnssNiResponse(this, id, response); in gnssNiResponse()
601 if (nullptr != locationControlCallbacks.responseCb && NULL == gData.controlAPI) { in createInstance()
602 if (NULL == gData.gnssInterface && !gGnssLoadFailed) { in createInstance()
603 gData.gnssInterface = in createInstance()
606 if (NULL == gData.gnssInterface) { in createInstance()
610 gData.gnssInterface->initialize(); in createInstance()
613 if (NULL != gData.gnssInterface) { in createInstance()
614 gData.controlAPI = new LocationControlAPI(); in createInstance()
615 gData.controlCallbacks = locationControlCallbacks; in createInstance()
616 gData.gnssInterface->setControlCallbacks(locationControlCallbacks); in createInstance()
617 controlAPI = gData.controlAPI; in createInstance()
641 gData.controlAPI = NULL; in ~LocationControlAPI()
652 if (gData.gnssInterface != NULL) { in enable()
653 id = gData.gnssInterface->enable(techType); in enable()
668 if (gData.gnssInterface != NULL) { in disable()
669 gData.gnssInterface->disable(id); in disable()
684 if (gData.gnssInterface != NULL) { in gnssUpdateConfig()
685 ids = gData.gnssInterface->gnssUpdateConfig(config); in gnssUpdateConfig()
700 if (NULL != gData.gnssInterface) { in gnssGetConfig()
701 ids = gData.gnssInterface->gnssGetConfig(mask); in gnssGetConfig()
716 if (gData.gnssInterface != NULL) { in gnssDeleteAidingData()
717 id = gData.gnssInterface->gnssDeleteAidingData(data); in gnssDeleteAidingData()