summaryrefslogtreecommitdiff
path: root/core/LocApiBase.cpp
AgeCommit message (Collapse)Author
2022-10-21Revert "Enable protected dynamic interface control"Harikrishnan Hariharan
This reverts commit cf4eac65570a43c797a00abb68779f4757426499. Change-Id: I259635cec8f03c2354d1b1537a1d9cc136b7bcaa CRs-Fixed: 3313257
2022-07-20Enable protected dynamic interface controlNilesh Gharde
Changes to Enable protected dynamic interface control. Added support to 1. Get the engine lock state. 2. Handle engine lock state event. 3. Store all the sessions when the engine is locked. 4. Restore all the sessions when the engine unlock event is received. Change-Id: I70e591a6dca2231fb762ef199d0d34f852198116 CRs-fixed: 3130222
2021-10-04Increasing boot_time and real_time acceptable variationSaurabh Srivastava
Increasing acceptable delta between boot time and real time used while computing location elapsed realtime in order to accomodate older targets. CRs-Fixed: 3049971 Change-Id: I5e3fff76c9fe5d0bc7cb2abda700ea20ac75d63c
2021-01-18Reslove one overflow issue in LocApiBasehaohuang
Overflow will happen on 32 bit platform in getCurrentTime function in LocApiBase. Fix this issue. Change-Id: I6c2c1222efdcc06ec9520a3154e535f50979ef7f CRs-Fixed: 2853405
2021-01-04Fix one mul-overflow issuehaohuang
When minInterval is set to 5s or larger, mul-overflow will happen when we convert minInterval from second to nano second in getElapsedRealtimeEstimateNanos function. Change the type of time between fix parameter to int64_t. Change-Id: Ifbe180b35298b78099daf496354086d5e3403e7b CRs-Fixed: 2848319
2020-12-01A new class to estimate ElapsedRealTime in LocApiBasehaohuang
1, Implement a method to estimate ElapsedRealTime if Qtimer is not valid. This method uses a default initial value and AP boot time/UTC time and Modem gps time/Measurement time. 2, Move the ElapsedRealTime calculation & estimation from Hidl API layer to LocApiV02 layer. Change-Id: I523d64d00d488cca0c053f9c636c34b01214f1a9 CRs-Fixed: 2817942
2020-11-24HAL : Merge branch 'location.lnx.4.0' into location.lnx.6.0Kevin Tang
Change-Id: I27237b9c9fa57501d86d5cbfd2f2e07bc1fe2ffb CRs-Fixed: 2824338
2020-11-13Report Qwes feature capabilities to LCANaresh Munagala
- Add Qwes CapabilitiesMask to LocationCapabilitiesMask. Also update type to uint64 to make it future proof. - Update capabilities based on Qwes feature type information from engine hub or modem. Change-Id: I4101255d2b4843358f773014893f61a61439af24 CRs-Fixed: 2807083
2020-10-15Framework for measuring latencyMike Cailean
Building an approach to instrumenting and tracking the processing latency distribution within the Loc Tech GNSS system CRs-fixed: 2684481 Change-Id: I469546fbb02b190e9cb82b7b94cbb63771844fd6
2020-09-20LocApi* fixes and clean upKevin Tang
Removed setXtraData and installAGpsCert that are not used; and corrected getGnssEnergyConsumed and setMeasurementCorrections from using the wrong thread context. Change-Id: Id2a0e9dcc67edaaacf4f1a5e7e210700cd82ef6b CRs-Fixed: 2782006
2020-09-09gps.utils changesKevin Tang
* Replaced the use of pthread in the implementation of LocThread with std::thread. * Removed the support of joinable thread from LocThread API, as it is never needed. * MsgTask no longer derives from LocRunnable, so that it can be directly deleted by ownerer. * Removed tCreator from LocThread::start() as well as LocContext::getLocContext(). * Placed utils classes under loc_utils namespace. Change-Id: Ia6b29debbf92c48aa643574b1d3789da686f5c73 CRs-Fixed: 2770806
2020-08-25Merge remote-tracking branch 'quic/location.lnx.4.0' into HEADKevin Tang
Change-Id: I38b71e771ba831f218636cb7f0a5e1f616d0fa1f CRs-Fixed: 2762827
2020-08-06GPS HAL: support config multi-band of GNSS constellationWei (GPS SD) Chen
Configure multi-band of GNSS constellation and retrieve the constellation configure Change-Id: I8d37c1478c74d5742b4d59ec8ce773b5d073b576 CRs-fixed: 2723496
2020-06-22Enable new LPP Profile options for 5GDante Russo
Change LPP Profile options from enum to bitmask to allow for more bit options to be added. Added two new bits for LPP Profile, User Plane 5G and Control Plan 5G. Change-Id: I058738e50f4bfb69f4966082890ec8b8ed8f1abc CRs-fixed: 2605663
2020-06-02Merge "Set onDemandCpi flag for all odcpi injections"qctecmdr
2020-05-29Gnss adapter: support setting min SV elevation angleWei Chen
Support setting min SV elevation angle Change-Id: I4358027ae2702e67ef51022e21328de4b6abd322 CRs-fixed: 2658027
2020-05-27Set onDemandCpi flag for all odcpi injectionsDante Russo
Network positions that are injected during an ODCPI session were not setting the onDemandCpi flag This is fixed by always setting onDemandCpi flag while in an ODCPI session Change-Id: Ife046f83bca6e5b22e53c11d652d67470a86607f CRs-fixed: 2679505
2020-05-05Navic location feature changeNilesh Gharde
Includes Navic blacklisting changes and constallation enable and disable change Change-Id: I40530afb81fca3e8aa683ce7d941339915f88c70 CRs-Fixed: 2607003
2020-04-30Gnss adapter: support setting min SV elevation angleWei Chen
Support setting min SV elevation angle Change-Id: I4358027ae2702e67ef51022e21328de4b6abd322 CRs-fixed: 2658027
2020-04-28Merging incomplete changes from location.lnx.4.0Saurabh Srivastava
location.lnx.4.0 comparision tip: 0907ae1 GPS HAL: configure body-to-sensor mount paramters Change: If6fe2bc601eec0bb47b4f748de583cf2c2cffe6b Robust location: include version as part of the retrieved config Change: Ie6f5fc430eb5f4f7575d95a60c53c5a2f8d4f68b CRs: 2642946 fix sv id mismatch issues Change: I7de3f8e3077dd24fb762f08e08f804c3ea9ecda4 CRs: 2554984 GPS HAL: support configure/read of min GPS week used by GPS engine Change: I53e7ddfb82e28c52baebd505ac163cc10758c415 CRs: 2621601 HAL : Location bringup for MDM9607.LE.2.1.3 Change: Id5e3030ff3b20106d74bd4e9bec5f3cd1277ba99 CRs: 2632300 Device doesn't go to sleep mode Change: I7d9093a49c969d12548217ff55bf53cb3ea167fa CRs: 2633337 LocAPIV02: add default gnss signal mask Change: Ib3765a38d124e5a012f181efc43cada955b04405 CRs: 2645187 GnssAdapter report DGnss Data usable to CDFW Change: Id92ad211b91eda98e6572a083092d7a777f3fa9b CRs: 2638924 Modification in loc-core and location-api for EAP compilation Change: Ied3a988d635c7750acdf2b6057c6d1cd6d188615 CRs: 2612482 Revert "GPS HAL support shipping out sv poly to location api client" Change: I62a3ecbe96d35da84225e4e67d5450ad752fdc6f CRs: 2638755 LocIpc improvments Change: I2dce90480941a657179a1a3a431936d741bfa76a CRs: 2627022 CRs-Fixed: 2673238 Change-Id: Ib4d0bde5423954029fe4b1c89610ed7beeabf2ee
2020-04-16Merge 'location.lnx.4.0' into 'location.lnx.6.0'Srivastava, Saurabh
CRs-Fixed: 2652107 Change-Id: If7f3fd45ff6d9a36bd0943acad9a8a378758d1a4
2020-04-12Add support for measurement correctionsMike Cailean
CRs-fixed: 2624168 Change-Id: I84d901dcaad3795eceab47939f055b5ce0e0722b
2020-04-07Navic location feature changeNilesh Gharde
Includes Navic blacklisting changes and constallation enable and disable change Change-Id: I40530afb81fca3e8aa683ce7d941339915f88c70 CRs-Fixed: 2607003
2020-04-02GPS HAL: support robust location 2.0Wei Chen
(1) enable/disable robust location 2.0 (2) output conformityIndex Change-Id: Ib6c25d6ce6b4da740c49eab91a58aa566af17b88 CRs-fixed: 2603423
2020-03-24GPS HAL: support configure/read of min GPS week used by GPS engineWei Chen
1: support runtime configure of mininal GPS week used by GPS engine on modem 2: support retrieval of the minimal GPS week used by GPS engine on modem CRs-fixed: 2621601 Change-Id: I53e7ddfb82e28c52baebd505ac163cc10758c415
2020-03-05GNSS hal: support read out robust location configWei Chen
Read out robust location config via location integration API Change-Id: Icdae23021e05cc81ef2673306b860c73f4049195 CRs-fixed: 2630377
2020-02-09Adding NAVIC to constellation string arrayNilesh Gharde
Adding NAVIC to the array of constellation strings while reporting SV to clients. Change-Id: Ifabc3bc3d0583119f3e1e80c9f69c60ff68e3602 CRs-Fixed: 2494936
2020-01-29GPS HAL: support robust location 2.0Wei Chen
(1) enable/disable robust location 2.0 (2) output probability of good fix Change-Id: Ia282f903d9818fb7dce459dd629335bad2679b97 CRs-fixed: 2603423
2019-11-22FR 57252: GPS hal changes to allow configuration for LE targetWei Chen
(1) runtime enable/disable TUNC (2) runtime enable/disable PACE (3) runtime enable/disable constellations (4) delete all aiding data (5) config lever arm Change-Id: I6cffd08e4c6fa45ff8d62bfef2da1156f3b61956 CRs-fixed: 2497326
2019-11-11Merge "FR 57252: GPS hal changes to allow configuration for LE target"qctecmdr
2019-11-07fix sv id mismatch issuesHoss Zhou
Change-Id: I7de3f8e3077dd24fb762f08e08f804c3ea9ecda4 CRs-Fixed: 2554984
2019-11-06GPS HAL: send platform power state event to modemWei Chen
Send platform power state event, suspend/resume/shutdown to modem Change-Id: I19960f5fb4935de9e4f5513abd95aed6241a2fd9 CRs-fixed: 2527622
2019-11-01FR 57252: GPS hal changes to allow configuration for LE targetWei Chen
(1) runtime enable/disable TUNC (2) runtime enable/disable PACE (3) runtime enable/disable constellations (4) delete all aiding data (5) config lever arm Change-Id: I6cffd08e4c6fa45ff8d62bfef2da1156f3b61956 CRs-fixed: 2497326
2019-10-24GPS HAL: send platform power state event to modemWei Chen
Send platform power state event, suspend/resume/shutdown to modem Change-Id: I19960f5fb4935de9e4f5513abd95aed6241a2fd9 CRs-fixed: 2527622
2019-08-23GPS hw: report ppe/spe report with combined reportWei Chen
When DRE/PPE are also running in the system, in addition to reporitng the combined final output, add the support to report the unmodified SPE/PPE report received from the engine Change-Id: Icb636824da32b175030dfcd2b270ac8b500ff75b CRs-fixed: 2487580
2019-08-16delete of shared LocApiBase::mMsgTask may cause issuesKevin Tang
mMsgTask is static, its delete would impact other LocApi objects which don't know it is deleted. Added refcount to manage this shared obj. Change-Id: Iea81039b9cd74081c5230d6bb18ea80c2ee05916 CRs-Fixed: 2505569
2019-07-26GPS hw: report ppe/spe report with combined reportWei Chen
When DRE/PPE are also running in the system, in addition to reporitng the combined final output, add the support to report the unmodified SPE/PPE report received from the engine Change-Id: Icb636824da32b175030dfcd2b270ac8b500ff75b CRs-fixed: 2487580
2019-07-24Adding NAVIC to constellation string arraySaurabh Srivastava
Adding NAVIC to the array of constellation strings while reporting SV to clients. CRs-Fixed: 2494936 Change-Id: Ifabc3bc3d0583119f3e1e80c9f69c60ff68e3602
2019-07-15SUPL-2.0-con-034-1/2 test case failsMike Cailean
SUPL-2.0-con-034-1/2 Fail because Emergency-NI did not check inprogress session Change-Id: I377955c455830bf3bb7cb7fe05d45c4536dabfbc CRs-fixed: 2483780
2019-05-18Addressing format related to formatingNilesh Gharde
Added formating related issue as genuine errors fixes Change-Id: Ie01e9ce3bf838a37871a4779ae1403b4dca3d87c CRs-Fixed: 2447200
2019-04-08Streamline measurements processingMike Cailean
Consolidate the translation from QMI LOC into one place in order to minimize traffic Change-Id: I73c2f25e94544a2b69d4227c63548ef11b6a4d91 CRs-fixed: 2430668
2019-03-27Batching and Geofence moved to GNSS HALDante Russo
Addition of BatchingAdapter and GeofenceAdapter. Deprecated Background LOC QMI Client and renamed LocDualContext renamed to LocContext. Moved some common Adapter functions into LocAdapterBase. Added Distance Based Tracking logic into GnssAdapter. Addition of flp.conf Deprecated GEOFENCE capabilities configuration in gps.conf CRs-fixed: 2342200 Change-Id: I6b6257c4cf296e5a8c56bc0b149e4de77cf6cdf9
2019-03-21Improved Location NI PrivacyMike Cailean
Changes to be made starting in Android Q in the way that Location requests made by Location clients other than the Android FrameWork (e.g. Network Initiated AGNSS clients, modem-based clients such as MDT) are handled CRs-fixed: 2397454 Change-Id: Ibb5b9429a1ec1e14ee59d89763d8a78607997615
2019-02-19Merge "New structures and handling of new data in the pipe"qctecmdr Service
2019-02-17Fix race condition that adapter does not get handleEngineUpKevin Tang
- Removed redundant injectFeatureConfig() call, as it this happens twice, once when the first context is created which would have been too early and once when LocApi open success. - Resolved a race condition that second adapter added may not have been in LocApi's adapter list yet when handleEngineUp() is broadcast. Change-Id: I8ecc18eab6b450c326c0be1abc011f70285439aa CRs-Fixed: 2397902
2019-02-06New structures and handling of new data in the pipeBhavna Sharma
1. KlobucharIonoModel 2. Additional parameters for Glonass 3. Add gps system time to ephemeris reports. CRs-Fixed: 2388931 Change-Id: Ibd08496c8eda2ce7571cbdd71ff0c179f7376aa7
2018-10-08FR48381: Support leap second change eventWei Chen
Support leap second change event (1) Info will be available in location api and location client api (2) Engine hub aggregator will use the info to calculate UTC timestamp Change-Id: Ie79c1a38301fa094134a4a31af424487758343f6 CRs-fixed: 2289457
2018-10-02New additions for Ephemeris and Poly handlingBhavna Sharma
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
2018-09-26FR47184: tunc constrained and position assisted time estimatorDante Russo
(1) Configure tunc constrained module on modem via gps.conf (2) Configure position assisted time estimator and inject DRE position with additional info to modem (3) Support get total energy consumption API by GNSS engine since device first bootup Change-Id: I1e73057df090c1d356c55a498f06eed45839ca8f CRs-fixed: 2276355
2018-09-06Set SV in use mask based on final fixesMike Cailean
Do not set SV in use mask based on intermediate position update from modem since it might contain stale information Change-Id: I4300854ead3f85758bfb37d4c47ace10f63541a0 CRs-fixed: 2307493