Lines Matching refs:sessionId
251 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId) in isBatchingSession() argument
253 LocationSessionKey key(client, sessionId); in isBatchingSession()
258 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
259 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
263 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
266 LocationSessionKey key(client, sessionId); in saveBatchingSession()
271 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
273 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
281 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
283 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
288 it->second.responseCb(err, sessionId); in reportResponse()
290 LOC_LOGE("%s]: client %p id %u not found in data", __func__, client, sessionId); in reportResponse()
311 uint32_t sessionId = generateSessionId(); in startBatchingCommand() local
313 __func__, client, sessionId, batchOptions.minInterval, batchOptions.minDistance, in startBatchingCommand()
325 uint32_t sessionId, in startBatchingCommand()
331 mSessionId(sessionId), in startBatchingCommand()
361 sendMsg(new MsgStartBatching(*this, *mLocApi, client, sessionId, batchOptions)); in startBatchingCommand()
363 return sessionId; in startBatchingCommand()
367 BatchingAdapter::startBatching(LocationAPI* client, uint32_t sessionId, in startBatching() argument
379 saveBatchingSession(client, sessionId, batchingOptions); in startBatching()
380 mLocApi->startBatching(sessionId, batchingOptions, getBatchingAccuracy(), getBatchingTimeout(), in startBatching()
382 [this, client, sessionId, batchingOptions] (LocationError err) { in startBatching()
384 eraseBatchingSession(client, sessionId); in startBatching()
396 reportResponse(client, err, sessionId); in startBatching()
418 uint32_t sessionId, in updateBatchingOptionsCommand()
424 mSessionId(sessionId), in updateBatchingOptionsCommand()
464 uint32_t sessionId) : in stopBatchingCommand()
469 mSessionId(sessionId) {} in stopBatchingCommand()
493 BatchingAdapter::stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded, in stopBatching() argument
496 LocationSessionKey key(client, sessionId); in stopBatching()
501 eraseBatchingSession(client, sessionId); in stopBatching()
502 mLocApi->stopBatching(sessionId, in stopBatching()
504 [this, client, sessionId, flpOptions, restartNeeded, batchOptions] in stopBatching()
507 saveBatchingSession(client, sessionId, batchOptions); in stopBatching()
520 startBatching(client, sessionId, batchOptions); in stopBatching()
522 startTripBatchingMultiplex(client, sessionId, batchOptions); in stopBatching()
526 reportResponse(client, err, sessionId); in stopBatching()
545 uint32_t sessionId, in getBatchedLocationsCommand()
551 mSessionId(sessionId), in getBatchedLocationsCommand()
744 BatchingAdapter::startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId, in startTripBatchingMultiplex() argument
756 saveBatchingSession(client, sessionId, batchingOptions); in startTripBatchingMultiplex()
758 mTripSessions[sessionId] = { 0, 0, 0, batchingOptions.minDistance, in startTripBatchingMultiplex()
762 [this, client, sessionId, batchingOptions] (LocationError err) { in startTripBatchingMultiplex()
769 eraseBatchingSession(client, sessionId); in startTripBatchingMultiplex()
770 mTripSessions.erase(sessionId); in startTripBatchingMultiplex()
778 reportResponse(client, err, sessionId); in startTripBatchingMultiplex()
784 [this, batchingOptions, sessionId, client] in startTripBatchingMultiplex()
822 mTripSessions[sessionId] = newTripSession; in startTripBatchingMultiplex()
841 [this, client, sessionId] (LocationError err) { in startTripBatchingMultiplex()
845 reportResponse(client, err, sessionId); in startTripBatchingMultiplex()
848 reportResponse(client, LOCATION_ERROR_SUCCESS, sessionId); in startTripBatchingMultiplex()
855 BatchingAdapter::stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId, in stopTripBatchingMultiplex() argument
862 [this, restartNeeded, client, sessionId, batchOptions] in stopTripBatchingMultiplex()
872 stopTripBatchingMultiplexCommon(err, client, sessionId, restartNeeded, batchOptions); in stopTripBatchingMultiplex()
877 stopTripBatchingMultiplexCommon(err, client, sessionId, restartNeeded, batchOptions); in stopTripBatchingMultiplex()
882 uint32_t sessionId, bool restartNeeded, const BatchingOptions& batchOptions) in stopTripBatchingMultiplexCommon() argument
884 auto itt = mTripSessions.find(sessionId); in stopTripBatchingMultiplexCommon()
896 mTripSessions.erase(sessionId); in stopTripBatchingMultiplexCommon()
906 eraseBatchingSession(client, sessionId); in stopTripBatchingMultiplexCommon()
909 startBatching(client, sessionId, batchOptions); in stopTripBatchingMultiplexCommon()
911 startTripBatchingMultiplex(client, sessionId, batchOptions); in stopTripBatchingMultiplexCommon()
914 reportResponse(client, err, sessionId); in stopTripBatchingMultiplexCommon()