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()
159 if (NULL == gData.gnssInterface && !gGnssLoadFailed) { in createInstance()
160 gData.gnssInterface = in createInstance()
163 if (NULL == gData.gnssInterface) { in createInstance()
167 gData.gnssInterface->initialize(); in createInstance()
170 if (NULL != gData.gnssInterface) { in createInstance()
171 gData.gnssInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
173 gData.gnssInterface->requestCapabilities(newLocationAPI); in createInstance()
180 if (NULL == gData.batchingInterface && !gBatchingLoadFailed) { in createInstance()
181 gData.batchingInterface = in createInstance()
184 if (NULL == gData.batchingInterface) { in createInstance()
188 gData.batchingInterface->initialize(); in createInstance()
191 if (NULL != gData.batchingInterface) { in createInstance()
192 gData.batchingInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
194 gData.batchingInterface->requestCapabilities(newLocationAPI); in createInstance()
201 if (NULL == gData.geofenceInterface && !gGeofenceLoadFailed) { in createInstance()
202 gData.geofenceInterface = in createInstance()
205 if (NULL == gData.geofenceInterface) { in createInstance()
209 gData.geofenceInterface->initialize(); in createInstance()
212 if (NULL != gData.geofenceInterface) { in createInstance()
213 gData.geofenceInterface->addClient(newLocationAPI, locationCallbacks); in createInstance()
215 gData.geofenceInterface->requestCapabilities(newLocationAPI); in createInstance()
221 gData.clientData[newLocationAPI] = locationCallbacks; in createInstance()
234 auto it = gData.clientData.find(this); in destroy()
235 if (it != gData.clientData.end()) { in destroy()
236 bool removeFromGnssInf = (NULL != gData.gnssInterface); in destroy()
237 bool removeFromBatchingInf = (NULL != gData.batchingInterface); in destroy()
238 bool removeFromGeofenceInf = (NULL != gData.geofenceInterface); in destroy()
256 gData.destroyClientData[this] = destroyCbData; in destroy()
261 gData.gnssInterface->removeClient(it->first, in destroy()
265 gData.batchingInterface->removeClient(it->first, in destroy()
269 gData.geofenceInterface->removeClient(it->first, in destroy()
273 gData.clientData.erase(it); in destroy()
313 if (NULL == gData.gnssInterface && !gGnssLoadFailed) { in updateCallbacks()
314 gData.gnssInterface = in updateCallbacks()
317 if (NULL == gData.gnssInterface) { in updateCallbacks()
321 gData.gnssInterface->initialize(); in updateCallbacks()
324 if (NULL != gData.gnssInterface) { in updateCallbacks()
326 gData.gnssInterface->addClient(this, locationCallbacks); in updateCallbacks()
331 if (NULL == gData.batchingInterface && !gBatchingLoadFailed) { in updateCallbacks()
332 gData.batchingInterface = in updateCallbacks()
335 if (NULL == gData.batchingInterface) { in updateCallbacks()
339 gData.batchingInterface->initialize(); in updateCallbacks()
342 if (NULL != gData.batchingInterface) { in updateCallbacks()
344 gData.batchingInterface->addClient(this, locationCallbacks); in updateCallbacks()
349 if (NULL == gData.geofenceInterface && !gGeofenceLoadFailed) { in updateCallbacks()
350 gData.geofenceInterface = in updateCallbacks()
353 if (NULL == gData.geofenceInterface) { in updateCallbacks()
357 gData.geofenceInterface->initialize(); in updateCallbacks()
360 if (NULL != gData.geofenceInterface) { in updateCallbacks()
362 gData.geofenceInterface->addClient(this, locationCallbacks); in updateCallbacks()
366 gData.clientData[this] = locationCallbacks; in updateCallbacks()
377 auto it = gData.clientData.find(this); in startTracking()
378 if (it != gData.clientData.end()) { in startTracking()
379 if (NULL != gData.gnssInterface) { in startTracking()
380 id = gData.gnssInterface->startTracking(this, trackingOptions); in startTracking()
399 auto it = gData.clientData.find(this); in stopTracking()
400 if (it != gData.clientData.end()) { in stopTracking()
401 if (gData.gnssInterface != NULL) { in stopTracking()
402 gData.gnssInterface->stopTracking(this, id); in stopTracking()
421 auto it = gData.clientData.find(this); in updateTrackingOptions()
422 if (it != gData.clientData.end()) { in updateTrackingOptions()
423 if (gData.gnssInterface != NULL) { in updateTrackingOptions()
424 gData.gnssInterface->updateTrackingOptions(this, id, trackingOptions); in updateTrackingOptions()
443 if (NULL != gData.batchingInterface) { in startBatching()
444 id = gData.batchingInterface->startBatching(this, batchingOptions); in startBatching()
459 if (NULL != gData.batchingInterface) { in stopBatching()
460 gData.batchingInterface->stopBatching(this, id); in stopBatching()
474 if (NULL != gData.batchingInterface) { in updateBatchingOptions()
475 gData.batchingInterface->updateBatchingOptions(this, id, batchOptions); in updateBatchingOptions()
489 if (gData.batchingInterface != NULL) { in getBatchedLocations()
490 gData.batchingInterface->getBatchedLocations(this, id, count); in getBatchedLocations()
505 if (gData.geofenceInterface != NULL) { in addGeofences()
506 ids = gData.geofenceInterface->addGeofences(this, count, options, info); in addGeofences()
521 if (gData.geofenceInterface != NULL) { in removeGeofences()
522 gData.geofenceInterface->removeGeofences(this, count, ids); in removeGeofences()
536 if (gData.geofenceInterface != NULL) { in modifyGeofences()
537 gData.geofenceInterface->modifyGeofences(this, count, ids, options); in modifyGeofences()
551 if (gData.geofenceInterface != NULL) { in pauseGeofences()
552 gData.geofenceInterface->pauseGeofences(this, count, ids); in pauseGeofences()
566 if (gData.geofenceInterface != NULL) { in resumeGeofences()
567 gData.geofenceInterface->resumeGeofences(this, count, ids); in resumeGeofences()
581 if (gData.gnssInterface != NULL) { in gnssNiResponse()
582 gData.gnssInterface->gnssNiResponse(this, id, response); in gnssNiResponse()
597 if (nullptr != locationControlCallbacks.responseCb && NULL == gData.controlAPI) { in createInstance()
598 if (NULL == gData.gnssInterface && !gGnssLoadFailed) { in createInstance()
599 gData.gnssInterface = in createInstance()
602 if (NULL == gData.gnssInterface) { in createInstance()
606 gData.gnssInterface->initialize(); in createInstance()
609 if (NULL != gData.gnssInterface) { in createInstance()
610 gData.controlAPI = new LocationControlAPI(); in createInstance()
611 gData.controlCallbacks = locationControlCallbacks; in createInstance()
612 gData.gnssInterface->setControlCallbacks(locationControlCallbacks); in createInstance()
613 controlAPI = gData.controlAPI; in createInstance()
637 gData.controlAPI = NULL; in ~LocationControlAPI()
648 if (gData.gnssInterface != NULL) { in enable()
649 id = gData.gnssInterface->enable(techType); in enable()
664 if (gData.gnssInterface != NULL) { in disable()
665 gData.gnssInterface->disable(id); in disable()
680 if (gData.gnssInterface != NULL) { in gnssUpdateConfig()
681 ids = gData.gnssInterface->gnssUpdateConfig(config); in gnssUpdateConfig()
696 if (NULL != gData.gnssInterface) { in gnssGetConfig()
697 ids = gData.gnssInterface->gnssGetConfig(mask); in gnssGetConfig()
712 if (gData.gnssInterface != NULL) { in gnssDeleteAidingData()
713 id = gData.gnssInterface->gnssDeleteAidingData(data); in gnssDeleteAidingData()
727 if (gData.gnssInterface != NULL) { in resetConstellationConfig()
728 id = gData.gnssInterface->gnssResetSvConfig(); in resetConstellationConfig()
743 if (gData.gnssInterface != NULL) { in configConstellations()
744 id = gData.gnssInterface->gnssUpdateSvConfig( in configConstellations()
759 if (gData.gnssInterface != NULL) { in configConstrainedTimeUncertainty()
760 id = gData.gnssInterface->setConstrainedTunc(enable, in configConstrainedTimeUncertainty()
775 if (gData.gnssInterface != NULL) { in configPositionAssistedClockEstimator()
776 id = gData.gnssInterface->setPositionAssistedClockEstimator(enable); in configPositionAssistedClockEstimator()
789 if (gData.gnssInterface != NULL) { in configLeverArm()
790 id = gData.gnssInterface->configLeverArm(configInfo); in configLeverArm()