Lines Matching refs:requests
144 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIStartTracking() local
145 if (requests) { in locAPIStartTracking()
146 delete requests; in locAPIStartTracking()
154 requests = new RequestQueue(session); in locAPIStartTracking()
155 requests->push(new StartTrackingRequest(*this)); in locAPIStartTracking()
156 mRequestQueues[REQUEST_TRACKING] = requests; in locAPIStartTracking()
171 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIStopTracking() local
172 if (requests) { in locAPIStopTracking()
173 session = requests->getSession(); in locAPIStopTracking()
175 requests->push(new StopTrackingRequest(*this)); in locAPIStopTracking()
189 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIUpdateTrackingOptions() local
190 if (requests) { in locAPIUpdateTrackingOptions()
191 session = requests->getSession(); in locAPIUpdateTrackingOptions()
193 requests->push(new UpdateTrackingOptionsRequest(*this)); in locAPIUpdateTrackingOptions()
233 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIStartSession() local
234 if (requests) { in locAPIStartSession()
235 delete requests; in locAPIStartSession()
240 requests = new RequestQueue(trackingSession); in locAPIStartSession()
241 requests->push(new StartTrackingRequest(*this)); in locAPIStartSession()
242 mRequestQueues[REQUEST_TRACKING] = requests; in locAPIStartSession()
244 RequestQueue* requests = mRequestQueues[REQUEST_BATCHING]; in locAPIStartSession() local
245 if (requests) { in locAPIStartSession()
246 delete requests; in locAPIStartSession()
251 requests = new RequestQueue(batchingSession); in locAPIStartSession()
252 requests->push(new StartBatchingRequest(*this)); in locAPIStartSession()
253 mRequestQueues[REQUEST_BATCHING] = requests; in locAPIStartSession()
288 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIStopSession() local
289 if (requests) { in locAPIStopSession()
290 requests->push(new StopTrackingRequest(*this)); in locAPIStopSession()
294 RequestQueue* requests = mRequestQueues[REQUEST_BATCHING]; in locAPIStopSession() local
295 if (requests) { in locAPIStopSession()
296 requests->push(new StopBatchingRequest(*this)); in locAPIStopSession()
328 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIUpdateSessionOptions() local
329 if (requests) { in locAPIUpdateSessionOptions()
330 requests->push(new UpdateTrackingOptionsRequest(*this)); in locAPIUpdateSessionOptions()
336 RequestQueue* requests = mRequestQueues[REQUEST_BATCHING]; in locAPIUpdateSessionOptions() local
337 if (requests) { in locAPIUpdateSessionOptions()
338 requests->push(new StopBatchingRequest(*this)); in locAPIUpdateSessionOptions()
345 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIUpdateSessionOptions() local
346 if (requests) { in locAPIUpdateSessionOptions()
347 delete requests; in locAPIUpdateSessionOptions()
353 requests = new RequestQueue(trackingSession); in locAPIUpdateSessionOptions()
354 requests->push(new StartTrackingRequest(*this)); in locAPIUpdateSessionOptions()
355 mRequestQueues[REQUEST_TRACKING] = requests; in locAPIUpdateSessionOptions()
362 RequestQueue* requests = mRequestQueues[REQUEST_TRACKING]; in locAPIUpdateSessionOptions() local
363 if (requests) { in locAPIUpdateSessionOptions()
364 requests->push(new StopTrackingRequest(*this)); in locAPIUpdateSessionOptions()
371 RequestQueue* requests = mRequestQueues[REQUEST_BATCHING]; in locAPIUpdateSessionOptions() local
372 if (requests) { in locAPIUpdateSessionOptions()
373 delete requests; in locAPIUpdateSessionOptions()
379 requests = new RequestQueue(batchingSession); in locAPIUpdateSessionOptions()
380 requests->push(new StartBatchingRequest(*this)); in locAPIUpdateSessionOptions()
381 mRequestQueues[REQUEST_BATCHING] = requests; in locAPIUpdateSessionOptions()
384 RequestQueue* requests = mRequestQueues[REQUEST_BATCHING]; in locAPIUpdateSessionOptions() local
385 requests = mRequestQueues[REQUEST_BATCHING]; in locAPIUpdateSessionOptions()
386 if (requests) { in locAPIUpdateSessionOptions()
387 requests->push(new UpdateBatchingOptionsRequest(*this)); in locAPIUpdateSessionOptions()
413 RequestQueue* requests = mRequestQueues[REQUEST_BATCHING]; in locAPIGetBatchedLocations() local
414 if (requests) { in locAPIGetBatchedLocations()
415 session = requests->getSession(); in locAPIGetBatchedLocations()
417 requests->push(new GetBatchedLocationsRequest(*this)); in locAPIGetBatchedLocations()
431 RequestQueue* requests = mRequestQueues[REQUEST_GEOFENCE]; in locAPIAddGeofences() local
432 if (!requests) { in locAPIAddGeofences()
435 requests = new RequestQueue(GEOFENCE_SESSION_ID); in locAPIAddGeofences()
436 mRequestQueues[REQUEST_GEOFENCE] = requests; in locAPIAddGeofences()
441 requests->push(new AddGeofencesRequest(*this)); in locAPIAddGeofences()
460 RequestQueue* requests = mRequestQueues[REQUEST_GEOFENCE]; in locAPIRemoveGeofences() local
461 if (requests) { in locAPIRemoveGeofences()
470 requests->push(new RemoveGeofencesRequest(*this)); in locAPIRemoveGeofences()
487 RequestQueue* requests = mRequestQueues[REQUEST_GEOFENCE]; in locAPIModifyGeofences() local
488 if (requests) { in locAPIModifyGeofences()
498 requests->push(new ModifyGeofencesRequest(*this)); in locAPIModifyGeofences()
514 RequestQueue* requests = mRequestQueues[REQUEST_GEOFENCE]; in locAPIPauseGeofences() local
515 if (requests) { in locAPIPauseGeofences()
524 requests->push(new PauseGeofencesRequest(*this)); in locAPIPauseGeofences()
541 RequestQueue* requests = mRequestQueues[REQUEST_GEOFENCE]; in locAPIResumeGeofences() local
542 if (requests) { in locAPIResumeGeofences()
554 requests->push(new ResumeGeofencesRequest(*this)); in locAPIResumeGeofences()
572 RequestQueue* requests = mRequestQueues[REQUEST_GEOFENCE]; in locAPIRemoveAllGeofences() local
573 if (requests) { in locAPIRemoveAllGeofences()
582 requests->push(new RemoveGeofencesRequest(*this)); in locAPIRemoveAllGeofences()
596 RequestQueue* requests = mRequestQueues[REQUEST_NIRESPONSE]; in locAPIGnssNiResponse() local
597 if (requests) { in locAPIGnssNiResponse()
598 delete requests; in locAPIGnssNiResponse()
604 requests = new RequestQueue(session); in locAPIGnssNiResponse()
605 requests->push(new GnssNiResponseRequest(*this)); in locAPIGnssNiResponse()
606 mRequestQueues[REQUEST_NIRESPONSE] = requests; in locAPIGnssNiResponse()
616 RequestQueue* requests = mRequestQueues[REQUEST_DELETEAIDINGDATA]; in locAPIGnssDeleteAidingData() local
617 if (requests) { in locAPIGnssDeleteAidingData()
618 delete requests; in locAPIGnssDeleteAidingData()
623 requests = new RequestQueue(session); in locAPIGnssDeleteAidingData()
624 requests->push(new GnssDeleteAidingDataRequest(*this)); in locAPIGnssDeleteAidingData()
625 mRequestQueues[REQUEST_DELETEAIDINGDATA] = requests; in locAPIGnssDeleteAidingData()
642 RequestQueue* requests = mRequestQueues[REQUEST_CONTROL]; in locAPIEnable() local
643 if (requests) { in locAPIEnable()
644 delete requests; in locAPIEnable()
649 requests = new RequestQueue(session); in locAPIEnable()
650 mRequestQueues[REQUEST_CONTROL] = requests; in locAPIEnable()
651 if (requests) { in locAPIEnable()
652 requests->push(new EnableRequest(*this)); in locAPIEnable()
667 RequestQueue* requests = mRequestQueues[REQUEST_CONTROL]; in locAPIDisable() local
668 if (requests) { in locAPIDisable()
669 session = requests->getSession(); in locAPIDisable()
671 requests->push(new DisableRequest(*this)); in locAPIDisable()
695 RequestQueue* requests = mRequestQueues[REQUEST_CONFIG]; in locAPIGnssUpdateConfig() local
698 if (!requests && idArray != nullptr) { in locAPIGnssUpdateConfig()
699 requests = new RequestQueue(idArray[0]); in locAPIGnssUpdateConfig()
700 mRequestQueues[REQUEST_CONFIG] = requests; in locAPIGnssUpdateConfig()
702 if (requests) { in locAPIGnssUpdateConfig()
703 requests->push(new GnssUpdateConfigRequest(*this)); in locAPIGnssUpdateConfig()