From eb01e397ed7935f66f0be24026cdf4f3cae059c5 Mon Sep 17 00:00:00 2001 From: Jiafei Wen Date: Thu, 10 Sep 2015 09:23:24 -0700 Subject: [PATCH] Sending FLP fixes to ULP For crowd sourcing, FLP HAL needs to share with ULP the flp fixes in real time. This change is making FLP HAL to send flp fixes to ULP. Change-Id: I1a852ec69db8eb50de5c18b03205d1b488cfd4b0 CRs-fixed: 874928 878064 --- core/LocAdapterBase.cpp | 1 + core/LocAdapterProxyBase.h | 1 + core/UlpProxyBase.h | 6 ++---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/LocAdapterBase.cpp b/core/LocAdapterBase.cpp index 4f7e4f23..8fdb8cbb 100644 --- a/core/LocAdapterBase.cpp +++ b/core/LocAdapterBase.cpp @@ -72,6 +72,7 @@ void LocAdapterBase:: LocPosTechMask loc_technology_mask) { if (mLocAdapterProxyBase == NULL || !mLocAdapterProxyBase->reportPosition(location, + locationExtended, status, loc_technology_mask)) { DEFAULT_IMPL() diff --git a/core/LocAdapterProxyBase.h b/core/LocAdapterProxyBase.h index f6c22afa..1ddcca4c 100644 --- a/core/LocAdapterProxyBase.h +++ b/core/LocAdapterProxyBase.h @@ -58,6 +58,7 @@ public: inline virtual void handleEngineUpEvent() {}; inline virtual void handleEngineDownEvent() {}; inline virtual bool reportPosition(UlpLocation &location, + GpsLocationExtended &locationExtended, enum loc_sess_status status, LocPosTechMask loc_technology_mask) { return false; diff --git a/core/UlpProxyBase.h b/core/UlpProxyBase.h index 845fe1eb..59e265e8 100644 --- a/core/UlpProxyBase.h +++ b/core/UlpProxyBase.h @@ -73,10 +73,8 @@ public: bool active) { return false; } - inline virtual bool reportPositions(FlpExtLocation * locations, - int32_t number_of_locations, - enum loc_sess_status status, - LocPosTechMask techMask) { + inline virtual bool reportPositions(const FlpExtLocation* locations, + int32_t number_of_locations) { return false; } };