summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorWei Chen <weic@codeaurora.org>2019-08-16 14:59:23 -0700
committerWei Chen <weic@codeaurora.org>2019-11-22 09:37:06 -0800
commit6c35439ef28c99928ae26360bdc4952f97d8d66e (patch)
tree53bdbd044256a414cea594ebf53a1f663038777f /core
parent3b3bcb11138eb564f61bc56ad29b9660e93ff215 (diff)
downloadgps-6c35439ef28c99928ae26360bdc4952f97d8d66e.tar.gz
FR 57252: GPS hal changes to allow configuration for LE target
(1) runtime enable/disable TUNC (2) runtime enable/disable PACE (3) runtime enable/disable constellations (4) delete all aiding data (5) config lever arm Change-Id: I6cffd08e4c6fa45ff8d62bfef2da1156f3b61956 CRs-fixed: 2497326
Diffstat (limited to 'core')
-rw-r--r--core/EngineHubProxyBase.h5
-rw-r--r--core/LocApiBase.cpp19
-rw-r--r--core/LocApiBase.h15
3 files changed, 26 insertions, 13 deletions
diff --git a/core/EngineHubProxyBase.h b/core/EngineHubProxyBase.h
index 2d30c5b..d46bca2 100644
--- a/core/EngineHubProxyBase.h
+++ b/core/EngineHubProxyBase.h
@@ -101,6 +101,11 @@ public:
(void) additionalSystemInfo;
return false;
}
+
+ inline virtual bool configLeverArm(const LeverArmConfigInfo& configInfo) {
+ (void) configInfo;
+ return false;
+ }
};
typedef std::function<void(int count, EngineLocationInfo* locationArr)>
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp
index 595fa49..71abdf9 100644
--- a/core/LocApiBase.cpp
+++ b/core/LocApiBase.cpp
@@ -756,24 +756,27 @@ DEFAULT_IMPL()
void LocApiBase::getBlacklistSv()
DEFAULT_IMPL()
-void LocApiBase::setConstellationControl(const GnssSvTypeConfig& /*config*/)
+void LocApiBase::setConstellationControl(const GnssSvTypeConfig& /*config*/,
+ LocApiResponse* /*adapterResponse*/)
DEFAULT_IMPL()
void LocApiBase::getConstellationControl()
DEFAULT_IMPL()
-void LocApiBase::resetConstellationControl()
+void LocApiBase::resetConstellationControl(LocApiResponse* /*adapterResponse*/)
DEFAULT_IMPL()
-LocationError LocApiBase::
+void LocApiBase::
setConstrainedTuncMode(bool /*enabled*/,
float /*tuncConstraint*/,
- uint32_t /*energyBudget*/)
-DEFAULT_IMPL(LOCATION_ERROR_SUCCESS)
+ uint32_t /*energyBudget*/,
+ LocApiResponse* /*adapterResponse*/)
+DEFAULT_IMPL()
-LocationError LocApiBase::
- setPositionAssistedClockEstimatorMode(bool /*enabled*/)
-DEFAULT_IMPL(LOCATION_ERROR_SUCCESS)
+void LocApiBase::
+ setPositionAssistedClockEstimatorMode(bool /*enabled*/,
+ LocApiResponse* /*adapterResponse*/)
+DEFAULT_IMPL()
LocationError LocApiBase::getGnssEnergyConsumed()
DEFAULT_IMPL(LOCATION_ERROR_SUCCESS)
diff --git a/core/LocApiBase.h b/core/LocApiBase.h
index 3c85b09..9c76bab 100644
--- a/core/LocApiBase.h
+++ b/core/LocApiBase.h
@@ -260,12 +260,17 @@ public:
virtual LocationError setBlacklistSvSync(const GnssSvIdConfig& config);
virtual void setBlacklistSv(const GnssSvIdConfig& config);
virtual void getBlacklistSv();
- virtual void setConstellationControl(const GnssSvTypeConfig& config);
+ virtual void setConstellationControl(const GnssSvTypeConfig& config,
+ LocApiResponse *adapterResponse=nullptr);
virtual void getConstellationControl();
- virtual void resetConstellationControl();
- virtual LocationError setConstrainedTuncMode(bool enabled, float tuncConstraint,
- uint32_t energyBudget);
- virtual LocationError setPositionAssistedClockEstimatorMode(bool enabled);
+ virtual void resetConstellationControl(LocApiResponse *adapterResponse=nullptr);
+
+ virtual void setConstrainedTuncMode(bool enabled,
+ float tuncConstraint,
+ uint32_t energyBudget,
+ LocApiResponse* adapterResponse=nullptr);
+ virtual void setPositionAssistedClockEstimatorMode(bool enabled,
+ LocApiResponse* adapterResponse=nullptr);
virtual LocationError getGnssEnergyConsumed();
virtual void addGeofence(uint32_t clientId, const GeofenceOption& options,