sm8450-common: gps: Loc QWES check unify

1 Add context call to get location qwes feature status directly.
2 Add data item to dispatch location qwes feature status.
3 EngineHub uses context call to get location qwes feature status.
4 xtwifi uses data item registration to get location qwes feature
status.

Change-Id: I489b7fadf2b06a4517ac4b362b6ff4d204f94080
CRs-Fixed: 3435284
This commit is contained in:
Nilesh Gharde
2023-07-25 04:48:58 -07:00
committed by Arian
parent 7def8dd105
commit 1de9dfed09
12 changed files with 107 additions and 6 deletions

View File

@@ -36,6 +36,7 @@
#else
#include <unordered_map>
#endif
#include <ContextBase.h>
namespace loc_core {
@@ -151,6 +152,7 @@ typedef std::function<void(const std::unordered_map<LocationQwesFeatureType, boo
// callback function to report back dr and ppe position and sv report
typedef EngineHubProxyBase* (getEngHubProxyFn)(
const MsgTask * msgTask,
const ContextBase * context,
IOsObserver* osObserver,
EngineServiceInfo& engServiceInfo,
GnssAdapterReportEnginePositionsEventCb positionEventCb,