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

@@ -145,6 +145,8 @@ public:
GnssSvMeasurementHeader& svMeasSetHeader __unused,
GnssMeasurementsData& measurementData __unused) { return false; }
inline virtual float getGeoidalSeparation(double latitude __unused, double longitude __unused) { return 0.0; }
inline virtual bool checkFeatureStatus(int* fids, LocFeatureStatus* status,
uint32_t idCount, bool directQwesCall = false) {return false;}
};
class LocApiBase {
@@ -187,6 +189,9 @@ public:
mMsgTask->sendMsg(msg);
}
}
inline MsgTask* getMsgTask() const {
return mMsgTask;
}
inline void destroy() {
close();
struct LocKillMsg : public LocMsg {