diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2018-08-22 09:45:25 -0700 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2018-10-02 09:26:43 -0700 |
commit | 5a8d17118152a87e3772deb204960c38a7810f1a (patch) | |
tree | 6bda93afceaf0c35e17cd2e1bf6f949468ce0b52 /core/LocApiBase.cpp | |
parent | 9ae180b91354337eb840ba3d0c1975270caf0e7d (diff) | |
download | gps-5a8d17118152a87e3772deb204960c38a7810f1a.tar.gz |
New additions for Ephemeris and Poly handling
1. Add new data structures to hold the Ephemeris reports.
2. Modifications to SV Poly structure to include delete flags.
3. Add SV_POLY bit to GnssAidingDataSvMask to support
delete commands from modem for poly and ephemeris per constellation.
4. Define LocApiBase and LocAdapter functions to report the
ephemeris content, request for complete valid ephemeris and
Poly content at any time and report delete commands from modem
on Ephemeris and Poly content.
CRs-Fixed: 2301149
Change-Id: If36e87c410c3204c94a6ed7db30f297edba95508
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 99a089e..b2642ca 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -369,6 +369,12 @@ void LocApiBase::reportGnssEngEnergyConsumedEvent(uint64_t energyConsumedSinceFi energyConsumedSinceFirstBoot)); } +void LocApiBase::reportDeleteAidingDataEvent(GnssAidingData& aidingData) { + // loop through adapters, and deliver to the first handling adapter. + TO_1ST_HANDLING_LOCADAPTERS(mLocAdapters[i]->reportDeleteAidingDataEvent(aidingData)); +} + + void LocApiBase::reportSv(GnssSvNotification& svNotify) { const char* constellationString[] = { "Unknown", "GPS", "SBAS", "GLONASS", @@ -421,6 +427,14 @@ void LocApiBase::reportSvPolynomial(GnssSvPolynomial &svPolynomial) ); } +void LocApiBase::reportSvEphemeris(GnssSvEphemerisReport & svEphemeris) +{ + // loop through adapters, and deliver to all adapters. + TO_ALL_LOCADAPTERS( + mLocAdapters[i]->reportSvEphemerisEvent(svEphemeris) + ); +} + void LocApiBase::reportStatus(LocGpsStatusValue status) { // loop through adapters, and deliver to all adapters. @@ -660,6 +674,10 @@ LocationError LocApiBase:: DEFAULT_IMPL(LOCATION_ERROR_SUCCESS) void LocApiBase:: + requestForAidingData(GnssAidingDataSvMask /*svDataMask*/) +DEFAULT_IMPL() + +void LocApiBase:: installAGpsCert(const LocDerEncodedCertificate* /*pData*/, size_t /*length*/, uint32_t /*slotBitMask*/) |