summaryrefslogtreecommitdiff
path: root/core/LocApiBase.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2022-08-13 02:46:31 -0700
committerLinux Build Service Account <lnxbuild@localhost>2022-08-13 02:46:31 -0700
commitc259797d7567e8fb71d46fb69a0fa941cdd4b72c (patch)
tree786eb8a9cba7c325c44a52706dbe0919282b85d4 /core/LocApiBase.cpp
parentf6de500c9b9224e3c88b156cfb666eea036772a4 (diff)
parentcf4eac65570a43c797a00abb68779f4757426499 (diff)
Merge cf4eac65570a43c797a00abb68779f4757426499 on remote branch
Change-Id: I099746d2001e6e5bda1b2a20344d51a4d2ed170f
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r--core/LocApiBase.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp
index 860da2e..b571e36 100644
--- a/core/LocApiBase.cpp
+++ b/core/LocApiBase.cpp
@@ -155,7 +155,7 @@ volatile int32_t LocApiBase::mMsgTaskRefCount = 0;
LocApiBase::LocApiBase(LOC_API_ADAPTER_EVENT_MASK_T excludedMask,
ContextBase* context) :
mContext(context),
- mMask(0), mExcludedMask(excludedMask)
+ mMask(0), mExcludedMask(excludedMask), mEngineLockState(ENGINE_LOCK_STATE_ENABLED)
{
memset(mLocAdapters, 0, sizeof(mLocAdapters));
@@ -615,6 +615,12 @@ void LocApiBase::reportLatencyInfo(GnssLatencyInfo& gnssLatencyInfo)
TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportLatencyInfoEvent(gnssLatencyInfo));
}
+void LocApiBase::reportEngineLockStatus(EngineLockState engineLockState)
+{
+ // loop through adapters, and deliver to the All handling adapter.
+ TO_ALL_LOCADAPTERS(mLocAdapters[i]->handleEngineLockStatusEvent(engineLockState));
+}
+
enum loc_api_adapter_err LocApiBase::
open(LOC_API_ADAPTER_EVENT_MASK_T /*mask*/)
DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS)