summaryrefslogtreecommitdiff
path: root/core/LocApiBase.cpp
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2020-11-24 20:21:22 -0800
committerKevin Tang <zhikait@codeaurora.org>2020-11-24 20:21:22 -0800
commitbdd91f0be1669b575c467d8f4762ab1f7317bd6e (patch)
treee3e36ebf1a25925b69aead35ff107ad99460ab27 /core/LocApiBase.cpp
parent17923fd3f5c7dc1bce5296e9358fa8e4d1f7e534 (diff)
parentf000bce990ad76b569627f77109aca2d4b5014f9 (diff)
HAL : Merge branch 'location.lnx.4.0' into location.lnx.6.0
Change-Id: I27237b9c9fa57501d86d5cbfd2f2e07bc1fe2ffb CRs-Fixed: 2824338
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r--core/LocApiBase.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp
index 0044d07..dbe4590 100644
--- a/core/LocApiBase.cpp
+++ b/core/LocApiBase.cpp
@@ -483,6 +483,14 @@ void LocApiBase::reportLocationSystemInfo(const LocationSystemInfo& locationSyst
TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportLocationSystemInfoEvent(locationSystemInfo));
}
+void LocApiBase::reportQwesCapabilities
+(
+ const std::unordered_map<LocationQwesFeatureType, bool> &featureMap
+)
+{
+ // loop through adapters, and deliver to all adapters.
+ TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportQwesCapabilities(featureMap));
+}
void LocApiBase::requestXtraData()
{
// loop through adapters, and deliver to the first handling adapter.
@@ -600,6 +608,12 @@ void LocApiBase::reportGnssConfig(uint32_t sessionId, const GnssConfig& gnssConf
TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportGnssConfigEvent(sessionId, gnssConfig));
}
+void LocApiBase::reportLatencyInfo(GnssLatencyInfo& gnssLatencyInfo)
+{
+ // loop through adapters, and deliver to the first handling adapter.
+ TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportLatencyInfoEvent(gnssLatencyInfo));
+}
+
enum loc_api_adapter_err LocApiBase::
open(LOC_API_ADAPTER_EVENT_MASK_T /*mask*/)
DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS)