Lines Matching refs:sessionId

257 BatchingAdapter::isBatchingSession(LocationAPI* client, uint32_t sessionId)  in isBatchingSession()  argument
259 LocationSessionKey key(client, sessionId); in isBatchingSession()
264 BatchingAdapter::isTripSession(uint32_t sessionId) { in isTripSession() argument
265 return (mTripSessions.find(sessionId) != mTripSessions.end()); in isTripSession()
269 BatchingAdapter::saveBatchingSession(LocationAPI* client, uint32_t sessionId, in saveBatchingSession() argument
272 LocationSessionKey key(client, sessionId); in saveBatchingSession()
277 BatchingAdapter::eraseBatchingSession(LocationAPI* client, uint32_t sessionId) in eraseBatchingSession() argument
279 LocationSessionKey key(client, sessionId); in eraseBatchingSession()
287 BatchingAdapter::reportResponse(LocationAPI* client, LocationError err, uint32_t sessionId) in reportResponse() argument
289 LOC_LOGD("%s]: client %p id %u err %u", __func__, client, sessionId, err); in reportResponse()
294 it->second.responseCb(err, sessionId); in reportResponse()
296 LOC_LOGE("%s]: client %p id %u not found in data", __func__, client, sessionId); in reportResponse()
317 uint32_t sessionId = generateSessionId(); in startBatchingCommand() local
319 __func__, client, sessionId, batchOptions.minInterval, batchOptions.minDistance, in startBatchingCommand()
331 uint32_t sessionId, in startBatchingCommand()
337 mSessionId(sessionId), in startBatchingCommand()
367 sendMsg(new MsgStartBatching(*this, *mLocApi, client, sessionId, batchOptions)); in startBatchingCommand()
369 return sessionId; in startBatchingCommand()
373 BatchingAdapter::startBatching(LocationAPI* client, uint32_t sessionId, in startBatching() argument
385 saveBatchingSession(client, sessionId, batchingOptions); in startBatching()
386 mLocApi->startBatching(sessionId, batchingOptions, getBatchingAccuracy(), getBatchingTimeout(), in startBatching()
388 [this, client, sessionId, batchingOptions] (LocationError err) { in startBatching()
390 eraseBatchingSession(client, sessionId); in startBatching()
402 reportResponse(client, err, sessionId); in startBatching()
424 uint32_t sessionId, in updateBatchingOptionsCommand()
430 mSessionId(sessionId), in updateBatchingOptionsCommand()
470 uint32_t sessionId) : in stopBatchingCommand()
475 mSessionId(sessionId) {} in stopBatchingCommand()
499 BatchingAdapter::stopBatching(LocationAPI* client, uint32_t sessionId, bool restartNeeded, in stopBatching() argument
502 LocationSessionKey key(client, sessionId); in stopBatching()
507 eraseBatchingSession(client, sessionId); in stopBatching()
508 mLocApi->stopBatching(sessionId, in stopBatching()
510 [this, client, sessionId, flpOptions, restartNeeded, batchOptions] in stopBatching()
513 saveBatchingSession(client, sessionId, batchOptions); in stopBatching()
526 startBatching(client, sessionId, batchOptions); in stopBatching()
528 startTripBatchingMultiplex(client, sessionId, batchOptions); in stopBatching()
532 reportResponse(client, err, sessionId); in stopBatching()
551 uint32_t sessionId, in getBatchedLocationsCommand()
557 mSessionId(sessionId), in getBatchedLocationsCommand()
750 BatchingAdapter::startTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId, in startTripBatchingMultiplex() argument
762 saveBatchingSession(client, sessionId, batchingOptions); in startTripBatchingMultiplex()
764 mTripSessions[sessionId] = { 0, 0, 0, batchingOptions.minDistance, in startTripBatchingMultiplex()
768 [this, client, sessionId, batchingOptions] (LocationError err) { in startTripBatchingMultiplex()
775 eraseBatchingSession(client, sessionId); in startTripBatchingMultiplex()
776 mTripSessions.erase(sessionId); in startTripBatchingMultiplex()
784 reportResponse(client, err, sessionId); in startTripBatchingMultiplex()
790 [this, batchingOptions, sessionId, client] in startTripBatchingMultiplex()
828 mTripSessions[sessionId] = newTripSession; in startTripBatchingMultiplex()
847 [this, client, sessionId] (LocationError err) { in startTripBatchingMultiplex()
851 reportResponse(client, err, sessionId); in startTripBatchingMultiplex()
854 reportResponse(client, LOCATION_ERROR_SUCCESS, sessionId); in startTripBatchingMultiplex()
861 BatchingAdapter::stopTripBatchingMultiplex(LocationAPI* client, uint32_t sessionId, in stopTripBatchingMultiplex() argument
868 [this, restartNeeded, client, sessionId, batchOptions] in stopTripBatchingMultiplex()
878 stopTripBatchingMultiplexCommon(err, client, sessionId, restartNeeded, batchOptions); in stopTripBatchingMultiplex()
883 stopTripBatchingMultiplexCommon(err, client, sessionId, restartNeeded, batchOptions); in stopTripBatchingMultiplex()
888 uint32_t sessionId, bool restartNeeded, const BatchingOptions& batchOptions) in stopTripBatchingMultiplexCommon() argument
890 auto itt = mTripSessions.find(sessionId); in stopTripBatchingMultiplexCommon()
902 mTripSessions.erase(sessionId); in stopTripBatchingMultiplexCommon()
912 eraseBatchingSession(client, sessionId); in stopTripBatchingMultiplexCommon()
915 startBatching(client, sessionId, batchOptions); in stopTripBatchingMultiplexCommon()
917 startTripBatchingMultiplex(client, sessionId, batchOptions); in stopTripBatchingMultiplexCommon()
920 reportResponse(client, err, sessionId); in stopTripBatchingMultiplexCommon()