Lines Matching refs:sessionId

256 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId)  in isBatchingSession()  argument
258 LocationSessionKey key(client, sessionId); in isBatchingSession()
263 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
264 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
268 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
271 LocationSessionKey key(client, sessionId); in saveBatchingSession()
276 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
278 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
286 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
288 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
293 it->second.responseCb(err, sessionId); in reportResponse()
295 LOC_LOGE("%s]: client %p id %u not found in data", __func__, client, sessionId); in reportResponse()
316 uint32_t sessionId = generateSessionId(); in startBatchingCommand() local
318 __func__, client, sessionId, batchOptions.minInterval, batchOptions.minDistance, in startBatchingCommand()
330 uint32_t sessionId, in startBatchingCommand()
336 mSessionId(sessionId), in startBatchingCommand()
366 sendMsg(new MsgStartBatching(*this, *mLocApi, client, sessionId, batchOptions)); in startBatchingCommand()
368 return sessionId; in startBatchingCommand()
372 BatchingAdapter::startBatching(LocationAPI* client, uint32_t sessionId, in startBatching() argument
384 saveBatchingSession(client, sessionId, batchingOptions); in startBatching()
385 mLocApi->startBatching(sessionId, batchingOptions, getBatchingAccuracy(), getBatchingTimeout(), in startBatching()
387 [this, client, sessionId, batchingOptions] (LocationError err) { in startBatching()
389 eraseBatchingSession(client, sessionId); in startBatching()
401 reportResponse(client, err, sessionId); in startBatching()
423 uint32_t sessionId, in updateBatchingOptionsCommand()
429 mSessionId(sessionId), in updateBatchingOptionsCommand()
469 uint32_t sessionId) : in stopBatchingCommand()
474 mSessionId(sessionId) {} in stopBatchingCommand()
498 BatchingAdapter::stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded, in stopBatching() argument
501 LocationSessionKey key(client, sessionId); in stopBatching()
506 eraseBatchingSession(client, sessionId); in stopBatching()
507 mLocApi->stopBatching(sessionId, in stopBatching()
509 [this, client, sessionId, flpOptions, restartNeeded, batchOptions] in stopBatching()
512 saveBatchingSession(client, sessionId, batchOptions); in stopBatching()
525 startBatching(client, sessionId, batchOptions); in stopBatching()
527 startTripBatchingMultiplex(client, sessionId, batchOptions); in stopBatching()
531 reportResponse(client, err, sessionId); in stopBatching()
550 uint32_t sessionId, in getBatchedLocationsCommand()
556 mSessionId(sessionId), in getBatchedLocationsCommand()
749 BatchingAdapter::startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId, in startTripBatchingMultiplex() argument
761 saveBatchingSession(client, sessionId, batchingOptions); in startTripBatchingMultiplex()
763 mTripSessions[sessionId] = { 0, 0, 0, batchingOptions.minDistance, in startTripBatchingMultiplex()
767 [this, client, sessionId, batchingOptions] (LocationError err) { in startTripBatchingMultiplex()
774 eraseBatchingSession(client, sessionId); in startTripBatchingMultiplex()
775 mTripSessions.erase(sessionId); in startTripBatchingMultiplex()
783 reportResponse(client, err, sessionId); in startTripBatchingMultiplex()
789 [this, batchingOptions, sessionId, client] in startTripBatchingMultiplex()
827 mTripSessions[sessionId] = newTripSession; in startTripBatchingMultiplex()
846 [this, client, sessionId] (LocationError err) { in startTripBatchingMultiplex()
850 reportResponse(client, err, sessionId); in startTripBatchingMultiplex()
853 reportResponse(client, LOCATION_ERROR_SUCCESS, sessionId); in startTripBatchingMultiplex()
860 BatchingAdapter::stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId, in stopTripBatchingMultiplex() argument
867 [this, restartNeeded, client, sessionId, batchOptions] in stopTripBatchingMultiplex()
877 stopTripBatchingMultiplexCommon(err, client, sessionId, restartNeeded, batchOptions); in stopTripBatchingMultiplex()
882 stopTripBatchingMultiplexCommon(err, client, sessionId, restartNeeded, batchOptions); in stopTripBatchingMultiplex()
887 uint32_t sessionId, bool restartNeeded, const BatchingOptions& batchOptions) in stopTripBatchingMultiplexCommon() argument
889 auto itt = mTripSessions.find(sessionId); in stopTripBatchingMultiplexCommon()
901 mTripSessions.erase(sessionId); in stopTripBatchingMultiplexCommon()
911 eraseBatchingSession(client, sessionId); in stopTripBatchingMultiplexCommon()
914 startBatching(client, sessionId, batchOptions); in stopTripBatchingMultiplexCommon()
916 startTripBatchingMultiplex(client, sessionId, batchOptions); in stopTripBatchingMultiplexCommon()
919 reportResponse(client, err, sessionId); in stopTripBatchingMultiplexCommon()