diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2017-05-02 14:29:46 -0700 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2017-07-24 09:25:07 -0700 |
commit | 686a5c54b0fdd8a642a55f0d2085aeec99763209 (patch) | |
tree | 21f284958a175784fb0997e1f789233e6273bf01 /location/LocationAPI.cpp | |
parent | 2df685d3ec307cd24900b856529fe6a7fe9c7818 (diff) | |
download | gps-686a5c54b0fdd8a642a55f0d2085aeec99763209.tar.gz |
Location API for Outdoor Trip Batching
Add / Modify Location API for
Outdoor Trip Batching feature.
Introduce a batch mode to differentiate
between routine and outdoor trip mode.
CRs-Fixed: 2041674
Change-Id: Ia8b2d34457b29c4fe754ab24287a6984ab9a96f5
Diffstat (limited to 'location/LocationAPI.cpp')
-rw-r--r-- | location/LocationAPI.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/location/LocationAPI.cpp b/location/LocationAPI.cpp index ed3cc6b..a977f70 100644 --- a/location/LocationAPI.cpp +++ b/location/LocationAPI.cpp @@ -370,13 +370,13 @@ LocationAPI::updateTrackingOptions(uint32_t id, LocationOptions& locationOptions } uint32_t -LocationAPI::startBatching(LocationOptions& locationOptions) +LocationAPI::startBatching(LocationOptions& locationOptions, BatchingOptions &batchingOptions) { uint32_t id = 0; pthread_mutex_lock(&gDataMutex); if (gData.flpInterface != NULL) { - id = gData.flpInterface->startBatching(this, locationOptions); + id = gData.flpInterface->startBatching(this, locationOptions, batchingOptions); } else { LOC_LOGE("%s:%d]: No flp interface available for Location API client %p ", __func__, __LINE__, this); @@ -402,14 +402,16 @@ LocationAPI::stopBatching(uint32_t id) } void -LocationAPI::updateBatchingOptions(uint32_t id, LocationOptions& locationOptions) +LocationAPI::updateBatchingOptions(uint32_t id, + LocationOptions& locationOptions, BatchingOptions& batchOptions) { pthread_mutex_lock(&gDataMutex); if (gData.flpInterface != NULL) { gData.flpInterface->updateBatchingOptions(this, id, - locationOptions); + locationOptions, + batchOptions); } else { LOC_LOGE("%s:%d]: No flp interface available for Location API client %p ", __func__, __LINE__, this); |