summaryrefslogtreecommitdiff
path: root/core/SystemStatus.cpp
AgeCommit message (Collapse)Author
2019-06-05Update SystemStatus with battery info in HealthHALYingjie Wang
Change-Id: Ibc2157f1834eb65da48f9375e497628411a185c9 CRs-fixed: 2433570
2019-05-09Adding NAVIC supportSaurabh Srivastava
NAVIC constellation support added. Change-Id: I30a61f53089177d4e02b617dc9b785c13e2ef6ee CRs-Fixed: 2399619
2019-05-01feat: Add timeuncNs in PQWM1 messageKatz Yamada
Add timeuncNs field in PQWM1 of debug NMEA message generated by modem. SystemStaus to parse it. GnssDebug adds this value in timeunc when it generates GNSS debug report. Change-Id: I649915f95730dc8db22e8b4cb88008edc6d8b9d0 CRs-Fixed: 2236950
2019-03-26Add HAL support for network handleKevin Tang
Add HAL support for modifications to the network status information passed in. Change-Id: I99defc6a419d9f21ce74469a1aa016cc7fade4a5 CRs-Fixed: 2397433
2018-08-08Systemsatus - add support older version of PQWMEKatz Yamada
Add support of older (shorter) version of PQWME strings from modem. Systemstatus currently discards those shorter strings. This change is to fill out all zeros in those missing fields instead of discarding the whole sentence. Change-Id: I31c42b6de53c3002f598cfd815304086bba056f9 CRs-Fixed: 2153513
2018-06-06DataItem changes to fix incorrect NetworkInfo connect handlingKevin Tang
NetworkInfoBaase added a type to allTypes protected method so that derived class can use it. Also, the SystemStatusNetworkInfo no longer compares names in its equal(), as it only is going to return false when comparing GnssLocationProvider NetworkInfo and OsAgent NetworkInfo. Change-Id: I363f27f4ed7be4aab2a4c4c033d5dff69d0a47d9 CRs-Fixed: 2251564
2018-05-14Fixed a number of issues with NetworkInfoDataItemBaseKevin Tang
There are a couple of issues. NetworkInfoDataItemBase objects might be from OsAgent or GnssLocationProvider. The two sources actually have mTypes defined differently. In addtion, when there are different types of connections such as wifi / mobile, getting connected / disconnected independently, clients need to be all notified correctly. Right now, if mConnected hasn't changed, no updates are send. For exmple, if mobile is connected, later wifi gets connected too, clients won't know. SystemStatus is also updated to get updated / colated informtion. In the above example, SystemStatus's top record would record as both mobile and wifi are connected. Change-Id: I1825902247fe1d4e6363f5e24a75be7e984d0dc4 CRs-Fixed: 2221114
2018-05-14changed SystemStatusOsObserverKevin Tang
to allow clients to subscribe before subscription obj arrives, and also simplified ClientIndex and DataItemIndex implementation significantly. Change-Id: I092f344e688fa698aa98795b8a8f0c1ba8fcd9e4 CRs-Fixed: 2218519
2018-01-16LE clean upKevin Tang
separated utils, core, ds and loc-api-v02 from loc-hal into their own independent packages; simplified loc-pla; moved pla to the root of project; removed loc-stub. Change-Id: I373f02f9306646addf55ae90d71c4ba8e3741d09 CRs-Fixed: 2172544
2018-01-07Merge "Remove system status reset upon delete aiding data"Linux Build Service Account
2018-01-03Remove system status reset upon delete aiding dataYingjie Wang
Delete aiding data command would trigger default gnss engine state set. Rename setDeafultReport with setDefaultGnssEngineStates and remove system settings reset in it. Change-Id: I7b5dffe3191b24e9f5bb6d887705fca34ed94013 CRs-fixed: 2151350
2018-01-01debug nmea should not sent to upper layerKevin Tang
Debug nmea is a way HAL gets GNSS engine debug information from modem. It is provided to developers in the for bugreoprt. Those NMEAs should be discarded once information is extracted out. But by mistake, they are sent to GnssLocationProvider. They will be in the unknown format to apps, and they may get truncated too. Dhanged the condition so these debug nmeas get discarded before they can possibly passed on to GnssLocaitonProvider. Change-Id: I1a8400201e734a37e730321f6c6e5707c71bd3f0 CRs-Fixed: 2160866
2017-12-08Fixed incorrect casting for SystemStatus::setNetworkInfo callKevin Tang
An incorrect casting at SystemStatus::eventDataItemNotify was causing a heap overflow when trying to cast NetworkInfoDataItem into SystemStatusNetworkInfo, that is bigger. Change-Id: I3fbd88a1daf210c3c687a6f49ad868968a6efd96 CRs-fixed: 2137958
2017-10-09Add storing dataitem in systemstatus reportKatz Yamada
SystemStatus stores incoming dataitem events received from osagent into its internal systemstatus report cache. Change-Id: I129c633b45abfc04c9d9bbbd558db5f6e93c1672 CRs-Fixed: 2093347
2017-09-22Add support more bp amplitude in systemstatusKatz Yamada
Add support of glo/bds/gal baseband processor amplitude in systemstatus. These values will be added in PQWM1 debug NMEA messasge. Change-Id: If880bdfa81b41a82bb133bda8a0b33862f3eade5 CRs-Fixed: 2091024
2017-09-20fixing conn disconnect handling from GnssLocationProviderKevin Tang
The "type" needs to maintain as signed, in case some value may come across as negative, even though the storage size may vary, from 8-bit to 32-bit, for example. Bug: 65164961 Change-Id: Ieb3fb4b6f8415444bbe192a7875093f86a9c3068 CRs-Fixed: 2106350
2017-09-08Transition of base DataConcreteType class to HALHarikrishnan Hariharan
Transition of base DataConcreteType class to HAL, so that modules in HAL can access the members of DataItem class. Change-Id: Ib3b60992cf35a52b601117d5d18761d759f31b86 CRs-Fixed: 2104384
2017-09-07Integrate XtraSysStatObs with SystemStatusObserverHarikrishnan Hariharan
Use SystemStatusObserver to subscribe for dataitems in XtraSystemStatusObserver. Change-Id: Ib1828b9025c9c5bb5194a36014249472ed3f6f9e CRs-Fixed: 2093290
2017-08-11Add DataItemObserver interface in SystemStatusHarikrishnan Hariharan
Add DataItemObserver interface in SystemStatus so that clients can subscribe dataitem events from SystemStatus. Also moving DateItem and its observer, subscription classes into HAL Simplify DataItem class implementation. Change-Id: I7b2c3fc9dcf67dd6132bbcccda874e3f7ed6fa94 CRs-Fixed: 2041019 2072896
2017-08-01Clean up compiler warning messageBaili Feng
CRs-Fixed: 2070597 Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-06-06Add set default report API in systemstatusKatz Yamada
Add an API to set default report data cached in systemstatus. Call this API when delete all aiding data is requested, so that bugreport has all default values. Bug: 62068956 Change-Id: I76d661c6a89a1644aef2a8f47253ce9cc0d727fb CRs-Fixed: 2054705
2017-05-18Fix for incorrect SVids and timestamps in bugreportKatz Yamada
Fix SVids and timestamps shown in adb bugreport to align with Android standard. Change-Id: Ib166b09f1d63f7a93d53798dbb188fec0d77e88a CRs-Fixed: 2042937
2017-05-08Fix for buffer overrun crash at copying nmea stringKatz Yamada
Add zero clearing of allocated nmea buffer to ensure the nmea string is null terminated. Change-Id: Ie36010a7d3eca16dabb3067ae891a94e4b63b10c CRs-Fixed: 2041933
2017-04-27SystemStatus - Add ephemeris detail info in Gnss Debug interfaceKatz Yamada
Add ephemeris detail info in Gnss Debug interface. This new info also comes up in NMEA stings. Requires a new QMI_LOC interface that supports extended NMEA string TLV. Change-Id: I5dc566fb210c06a443ed6c27e064377851ce83a5 CRs-Fixed: 2024594
2017-04-11SystemStatus - Add reported UTC timestamp in reportKatz Yamada
Add reported UTC timestamp field in systemstatus' report data structure. It indicates the system UTC time when the information was last received from provider such as modem. Change-Id: I31beb64958c980242ea65fb9a602e18985ad17e1 CRs-Fixed: 2012926
2017-03-31Do not send debug NMEA to ulpKevin Tang
Checking in GnssAdapter::reportNmeaEvent to see if the incoming nmea is debug, in which case we do not route that to ULP. Debug NMEA is only for SystemStatus consumption. Change-Id: Ifb60b9a643ad6aeb732fcaf5a68f868cb55cd88a CRs-Fixed: 2027134
2017-03-24Added support for AGCMike Cailean
Added support for AGC (automatic gain control) CRs-fixed: 2023324 Change-Id: I6d6da23aab66da14bfa594077beda15194bdbeba
2017-03-21SystemStatus - Add BugReport supportKatz Yamada
Add BugReport support in SystemStatus. It exposes getReport interface to GnssDebug via GnssAdapter. GnssDebug generates Gnss' BugReport information upon a request tiggered by Android framework. Change-Id: I681777da10c860ea15ee65b7860a5ce61a7798db CRs-Fixed: 2016125
2017-03-21SystemStatus - initial releaseKatz Yamada
Add GNSS SystemStatus component to handle debug NMEA messages from mpss. This component handles GNSS debug info sent through debug NMEA and then stores it in its cache and pass it to clients per requests. Also debug NMEA is turned on by default. Change-Id: Ia11a124ff43d27568f544a3a4742dd7a846869fe CRs-Fixed: 1099152