Commit graph

910 commits

Author SHA1 Message Date
Katz Yamada
4ff6da4a8a SystemStatus - Add BugReport support
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-21 21:42:32 -07:00
Katz Yamada
592b3f557e SystemStatus - initial release
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
2017-03-21 09:55:08 -07:00
Madhanraj Chelladurai
681388fa8d Enable Measurement and poly for QDR for automotive usecase
We need to enable Measurement and polynomial reports and need to
send it to QDR Core for it to compute fix and report back DR fix,
hence need to enable them in automotive QDR use case

Change-Id: I8ad29402ded424bbc5a4fd9f6cab74fa7b09f86b
CRs-Fixed: 2017935
2017-03-10 17:22:03 +05:30
Linux Build Service Account
279d118562 Merge "Rename FlpAPIClient and GnssMeasurementAPIClient" 2017-03-07 19:18:51 -08:00
Baili Feng
545f52f6b5 Rename FlpAPIClient and GnssMeasurementAPIClient
FlpAPIClient renamed to BatchingAPIClient
GnssMeasurementAPIClient renamed to MeasurementAPIClient

Change-Id: Ic0fae37fd1d798796cb918ddcf141913c6cc3c6e
CRs-fixed: 1112712
2017-03-07 09:32:33 +08:00
Saurabh Srivastava
5fecc1979b Adding ATL call flow to new Loc API interface
Re-designed the ATL call flow, to fit along with
updated Location API.

Change-Id: If22e672d1c233c55b6b52107be7169b3036d9a3e
CRs-fixed: 1112712
2017-02-28 16:59:38 -08:00
Dante Russo
52b413eb44 hidl gnss hal 1.0 implementation
Overwrites the default hidl gnss hal implementation
to interface directly to LocationAPI

CRs-fixed: 1112712

Change-Id: I3385911956c0c6c457202a8584b108046c587b36
2017-02-28 16:47:59 -08:00
Dante Russo
c85c8ff673 LocationAPI implementation
Implementation of LocationAPI into gps hal
to be a common API that is called into by platform
specific APIs.

Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b
CRs-fixed: 1112712
2017-02-28 16:47:50 -08:00
Baili Feng
4bb940c067 Decouple libhardware usage on LE for gnss models
Remove all usage of gps.h and fused_location.h
from all gnss models except gps/fpl hal librarys

Change-Id: I90ba233c6bbe5c31a4cacceeb981833719c871f2
CRs-Fixed: 1067953
2017-02-14 16:51:32 -08:00
David Ng
f871943dc5 Add explicit liblog dependency
Explicitly add liblog as dependency for modules that use Android
logging.  Also remove obsolete build flag.

Change-Id: I91a458b44ff34c91a8f6875f5c3e931f620c613a
2016-12-08 23:53:21 -08:00
Linux Build Service Account
539c17f2bb Promotion of location.lnx.2.0-00040.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1073101   Ie784dad73ae8d6d91cf4cb87efe938af9015a7a2   Reinitialize dataservice client post SSR
1080013   I98f3f4e7836de86f9025bae446cdeac6d1eb5862   Mark SV used_in_fix based on the most recent position re

Change-Id: Ia31751b3b8909737b8c8d50eb96b1331da8f3c05
CRs-Fixed: 1080013, 1073101
2016-11-08 19:12:59 -07:00
Linux Build Service Account
da6012a581 Merge "Reinitialize dataservice client post SSR" 2016-11-04 18:35:33 -07:00
Harikrishnan Hariharan
1de8a18031 Reinitialize dataservice client post SSR
On SSR invoke dsi_release() and dsi_init(Mode_SSR) to recover
data call functionality post SSR.

Change-Id: Ie784dad73ae8d6d91cf4cb87efe938af9015a7a2
CRs-Fixed: 1073101
2016-11-03 01:45:29 -07:00
Linux Build Service Account
5086ce0b46 Promotion of location.lnx.2.0-00036.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
994048   I5654f9ab417ffea86ed8653731df1ca47cf7e733   Combo Provider 2.0

Change-Id: I1c8510b9fc885ba899ee8c7e00376e4813a2ef59
CRs-Fixed: 994048
2016-10-28 07:32:38 -06:00
Harikrishnan Hariharan
90a730d179 Mark SV used_in_fix based on the most recent position report
When SV report comes, mark used_in_fix based on the most recent
position report.

Change-Id: I98f3f4e7836de86f9025bae446cdeac6d1eb5862
CRs-Fixed: 1080013
2016-10-28 02:54:43 -07:00
Linux Build Service Account
22bc3b7851 Promotion of location.lnx.2.0-00035.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1036937   I71d5cb847fc6a66227137b2b424f7e631e09cae8   Platform specific changes for QDR

Change-Id: I8400106acae6e4161b476c1c963321396a7cca05
CRs-Fixed: 1036937
2016-10-26 07:03:19 -06:00
Linux Build Service Account
c75f2c6908 Merge "Combo Provider 2.0" 2016-10-25 15:05:55 -07:00
Linux Build Service Account
13cd52056a Promotion of location.lnx.2.0-00031.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1075611   Id2f560d88294ab98441005bf54be799af9ed3f8b   Remove USE_EMERGENCY_FOR_EMERGENCY_SUPL and SUPL_ES in g

Change-Id: If06378be6221054018daa142f785b5a50d998477
CRs-Fixed: 1075611
2016-10-14 11:56:20 -06:00
Naresh Munagala
dad844f3e0 Platform specific changes for QDR
Added platform specific abstraction apis
for timer modules

Change-Id: I71d5cb847fc6a66227137b2b424f7e631e09cae8
2016-10-12 22:37:13 -07:00
Dante Russo
2110e55809 Remove USE_EMERGENCY_FOR_EMERGENCY_SUPL and SUPL_ES in gps.conf
These values can be configured per SIM so they should
not be overriden by gps.conf by default. They're left
commented out so that it can still be uncommented to
allowing overriding SIM configuration for testing
purposes

Change-Id: Id2f560d88294ab98441005bf54be799af9ed3f8b
CRs-fixed: 1075611
2016-10-09 03:11:52 -07:00
Linux Build Service Account
8d2aa30c47 Promotion of location.lnx.2.0-00028.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1055201   Ia27fe0d805f53bf17c86f7c27eaaedd960101370   NMEA report indication to ULP

Change-Id: I50fee4ba0c0c4e49f0df611acde244e80ad85f56
CRs-Fixed: 1055201
2016-09-28 14:13:33 -06:00
Linux Build Service Account
558cdc748e Promotion of location.lnx.2.0-00027.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1067691   I6736e5f4320d4c35bc5bbb8272b45e14f66988c3   GTP WWAN should work even if MSA/MSB is not enabled

Change-Id: Iad7fb41532d49d205831a79a8fc926cc02673702
CRs-Fixed: 1067691
2016-09-23 20:31:03 -06:00
Naresh Munagala
dcd5af2915 NMEA report indication to ULP
Enabled NMEA report indication to to ulp

Change-Id: Ia27fe0d805f53bf17c86f7c27eaaedd960101370
CRs-Fixed: 1055201
2016-09-21 10:28:28 +05:30
Harikrishnan Hariharan
0ac11fcd84 GTP WWAN should work even if MSA/MSB is not enabled
GTP WWAN should work even if MSA/MSB is not enabled in
capabilities. Removing wifi_nif we don't need it any
more.

Change-Id: I6736e5f4320d4c35bc5bbb8272b45e14f66988c3
CRs-Fixed: 1067691
2016-09-16 21:23:41 -07:00
Linux Build Service Account
c220d2d1e7 Promotion of location.lnx.2.0-00025.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1058559   I4e5c3f09c097b835d8a685a8b465eb86dd06cd7a   Fix race condition when GPS app is closed around an SSR

Change-Id: I33e8ccbabe078be7cf522a79c84278219acbda93
CRs-Fixed: 1058559
2016-09-14 10:50:27 -07:00
Linux Build Service Account
e87c4e2344 Promotion of location.lnx.2.0-00024.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1051996   I2cd436d61bab09386aaa813e85591e02f560b41e   Generate GAL NMEA sentences at AP side
1060111   I621e99f5be5524a58f416ff2e1325d921c8d0546   Adding TARGET_NO_GNSS check while creating LocApi
1055694   Ieb2c765a9f1999e9fbc9f69c3b59cef3c03913a8   Update SV ID field as 16 bits in GnssSvPolynomial

Change-Id: I366b3befb342e22d46f01c6eac135a927232dad6
CRs-Fixed: 1051996, 1055694, 1060111
2016-09-09 19:02:20 -06:00
Dante Russo
5b4dbc2e55 Combo Provider 2.0
Part of overall Combo Provider 2.0 changes.
This fix changes getBestWwanPosition API from
sync to async, as the QMI API used can now take
longer to produce a position

CRs-fixed: 994048
Change-Id: I5654f9ab417ffea86ed8653731df1ca47cf7e733
2016-08-30 14:28:36 -07:00
Harikrishnan Hariharan
3493ce50e4 Fix race condition when GPS app is closed around an SSR event
Fix race condition to get avoid stuck in modem if GPS application
is closed right around a SSR event.This fix will prevent resume the
session once HAL loc_stop has been called.

Change-Id: I4e5c3f09c097b835d8a685a8b465eb86dd06cd7a
CRs-Fixed: 1058559
2016-08-30 05:32:50 -07:00
Saurabh Srivastava
7424ac78ed Adding TARGET_NO_GNSS check while creating LocApi
In case target is APQ no WGR, create a dummy LocApiBase
instance.

Change-Id: I621e99f5be5524a58f416ff2e1325d921c8d0546
CRs-Fixed: 1060111
2016-08-29 07:53:38 -07:00
Linux Build Service Account
81d0cbb94d Merge "Generate GAL NMEA sentences at AP side" 2016-08-26 13:55:06 -07:00
Baili Feng
b707704985 Generate GAL NMEA sentences at AP side
Generate GAGSV sentence at AP side when
NMEA Provider is set to AP in gps.conf

Change-Id: I2cd436d61bab09386aaa813e85591e02f560b41e
CRs-fixed: 1051996
2016-08-25 14:22:28 +08:00
Santoshkumar Zalake
43bb1d24be Update SV ID field as 16 bits in GnssSvPolynomial
Change SV ID field in GnssSvPolynomial structure
to support new constellations

Change-Id: Ieb2c765a9f1999e9fbc9f69c3b59cef3c03913a8
CRs-Fixed: 1055694
2016-08-19 04:02:29 -07:00
Linux Build Service Account
5b1ad2d8ee Promotion of location.lnx.2.0-00019.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1048907   I5a847c82170fba3847c0132d196cd27a3757b662   Upgrade LE.UM.0.0 to use location.lnx.2.0-rel
1034009   Ib7efe6b3c68677d60cdcc4efebfc04c4db39de32   deprecate legacy NTP time download

Change-Id: Ib741c17c36b2b311bf8df3c1dee5d82a7cad146c
CRs-Fixed: 1034009, 1048907
2016-08-18 03:32:49 -06:00
Linux Build Service Account
ee55d0b1ef Merge "Upgrade LE.UM.0.0 to use location.lnx.2.0-rel" 2016-08-15 21:56:39 -07:00
Linux Build Service Account
0e26e313b6 Promotion of location.lnx.2.0-00018.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1033674   I1561518c4f4b0c52ab934feb2fa43e9078c91d86   Adding new target APQ-NoWGR handling
1047042   I4a053e13a571f4a373899559d82e144f9bc82582   Remove deprecated api LocEngExtPowerConfig
1038783   I44ade2e48124f992a04956ed8c34218e73face81   Add field for location clients to chose position sharing

Change-Id: Ie37d7e6c2b453e415ef92f8aea732a6a2b39c540
CRs-Fixed: 1047042, 1038783, 1033674
2016-08-12 05:48:28 -06:00
Linux Build Service Account
07440a9459 Merge "deprecate legacy NTP time download" 2016-08-12 01:41:48 -07:00
Linux Build Service Account
6b75bdb230 Merge "Add field for location clients to chose position sharing option" 2016-08-09 09:00:52 -07:00
Ruifeng Xu
a8fcfc76fd deprecate legacy NTP time download
deprecate boot up NTP time download
in legacy XTRA downloader

Change-Id: Ib7efe6b3c68677d60cdcc4efebfc04c4db39de32
CRs-fixed: 1034009
2016-08-08 16:37:38 -07:00
Linux Build Service Account
2e3d64352b Merge "Remove deprecated api LocEngExtPowerConfig" 2016-08-05 05:32:49 -07:00
Linux Build Service Account
2c2293e181 Promotion of location.lnx.2.0-00017.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1013650   Ie02b1284cc5c24f526c82c52ff1ecda066655aac   Added debug messages for SV Info
1036070   Ie9ecc851fe53814f4a3e386b503b61bbca9d156d   Fixed SSR issue for GNSS Measurements

Change-Id: I6a5aed80747df4e67d95264b69e349993d6aaea2
CRs-Fixed: 1036070, 1013650
2016-08-05 01:08:25 -06:00
Baili Feng
f58ae31d1b Remove deprecated api LocEngExtPowerConfig
LocEngExtPowerConfig is no longer necessary.
Remove it from libloc_eng.

CRs-fixed: 1047042
Change-Id: I4a053e13a571f4a373899559d82e144f9bc82582
2016-08-04 10:40:00 +08:00
Bhavna Sharma
cd13c6577d Upgrade LE.UM.0.0 to use location.lnx.2.0-rel
Fix LE compilation issues on location.lnx.2.0-rel
branch.
CRs-Fixed: 1048907

Change-Id: I5a847c82170fba3847c0132d196cd27a3757b662
2016-08-01 16:11:33 -07:00
Saurabh Srivastava
c01fcd784c Adding new target APQ-NoWGR handling
Adding handling for new ro.baseband value provided by target team
If the target does not have WGR (GPS Receiver), we return NULL
GPS and FLP interfaces.

CRs-Fixed: 1033674
Change-Id: I1561518c4f4b0c52ab934feb2fa43e9078c91d86
2016-07-29 11:45:28 +05:30
Linux Build Service Account
7124f9f705 Merge "Fixed SSR issue for GNSS Measurements" 2016-07-25 20:44:08 -07:00
Mike Cailean
4dd7e1c561 Fixed SSR issue for GNSS Measurements
Fixed SSR (sub-system reset) issue when
GNSS Measurements where not available
after an SSR.

Change-Id: Ie9ecc851fe53814f4a3e386b503b61bbca9d156d
CRs-fixed: 1036070
2016-07-25 10:13:02 -07:00
Mike Cailean
fae54f18a2 Added debug messages for SV Info
Added constellation field in the debug messages for SV Info

Change-Id: Ie02b1284cc5c24f526c82c52ff1ecda066655aac
CRs-fixed: 1013650
2016-07-25 09:38:13 -07:00
Linux Build Service Account
de1b72822d Promotion of location.lnx.2.0-00016.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1025194   I1f26fee30d7179883a48c3d067b4c90562e9e914   Fix GPS related KW P1 issues for MDM9x50.
1025224   I067bcf88432d74b49e60eaab86409f178cf45e7d   Add feature set configuration
827856   I7da6f0d5a7d90fd4ad7ef51d9eaee88d2a7a20ac   Removed unused code and unnecessary notice files
855222   I76975455d24f2c84a95dcc1b04f79fea562ea5ba   Adding a number of utilities
1025224   Ic93291d451704ced88bdf45df3cb9215acf6f2de   Add AP Coarse Timestamp Uncertainty configuration parame
826256   I10bc2d112574de0016110e193d6c2cd071b00b2a   Remove reporting gps status from loc eng layer
771597   I463db7ac1c3e2dd6101e457ad723bb16adf5aacb   Enable "auto" target for APQ8960 Automotive ADP platform
937944   I13437d997e96a6403923d49f62f1e7c2f70e9c04   gps: enable measurement/poly reports only when AP DR ena
1025224   I4ef067890e16c2585f8a9c7809c4d7421b895cd0   Add Course TimeStamp & asso. unc to Measurement
1025224   I5ac5ee5c44e72e657b16515e37637c9a5c64e638   Propagate DR enablement feature from LNX.LA.2.7.3
991345   Ieaad5dfa80b26b90e998618b3cbe1e590fc00839   gps: consider nsec while ranking the timer objects
852809   I8ad4e4e8007a2d8b608f3f74503515f062b86c4b   Fix Memory leak in util/loc_cfg.cpp
939706   I25d7466db88a840a8a09e7a476cface48c91d22e   crash in LocTimer wrapper
850144   I958ce8da0e8062549f12808aca4aebcf4a7fb95d   Fix gps.conf capabilities overwrited by carrier
909776   I0d67d1418cb9bfe7f70ae71252901d4c6bb699b3   timer bug fix
694343   Ifa11803df2ed4fc249a5c339acfeeb5d89bf55d5   LCA additions to ULP and log_util defines
884484   I123d9f074ca725703c6e90397160b701033e22f0   NMEA generation change to prevent 2Hz reporting
827856   I7da6f0d5a7d90fd4ad7ef51d9eaee88d2a7a20ac   Removed unused code and unnecessary notice files
860504   Iad1605242daf8fa1d6bcce3e69caff7811d9843a   Set SUPL_ES to 0 in gps.conf
826152   I33862cf8d40db1d667179ef68d18703edc359843   Add glo and bds to used-in-fix mask
1025224   Ib0ab285af7b9bee886c5f7a256d638f2fd7fee9d   Remove DeleteAidingData additions
974489   I838bfa2c66e77381be483c65b2b3bd68008a25b1   fix for compiler warnings
916590   Ic3e0b3d183dceb9e6e2db4c47ec9d6e296b0c3f6   another potential race condition
748687   I11a2ba337433d9a42c903d36fc980ee1a3983a1e   Send GPS tracking fixes to FLP HAL
831075   Ic83276e9d3c0d125a01f50719102fcd7c0455385   Move modem power vote out of hal
992647   Ib886b96b2e95dafc151bead041e5fc3d6740c468   gps: include support to check hardware type property
1025224   Iaf5490cb991865d4b6376b0934b306a31528d90c   Add AP Timestamp for coarse/fine time to position report
1025224   I4e79c71b9e5691e51850adcc52f52b36f8e3d088   Fix implicit declaration errors in gps hal
975372   Ic241d4573bdf2e58c4e264e97bd41b56f882c791   make LocSharedLock::mRef ops atomic
897805   I47d9780d69ce5ee8c183c84baa93ea3c1a00db57   Fix for timerfd_create on older kernel revisions
904627   Iae80b78f049a32da87639f813c6f5126b4ccd072   fixing a crash vulnerability due to race condition
1017254   If814af411dd1c67d7a83b07f45813d57d5f96ca9   Remove target specific logic for DR Fix
902350   Iafd5b91b693baacb9b7064463f8c44f74026f54c   Crash fix with MsgTask API change
790623   Ibcc3703c98e561e0bdfbcc5c8802d1b45c9a511a   Fix bug with switch case
870568   Ie523bce5069416521d49bc0178d2cad2dd1f04da   LocTimer repeated expiration
1025224   Ifc82abadcaa4a859d344251fac065c5e632c8c6f   Disable ESUPL from configuration
820078   I7ace685622904ee2aa12f317540f9c04880acc70   Adding Mutex for Creating Context
959625   If89de03ff69fabb3d57a7b7dafe957eb73302794   gps: add SV polynomial parameter
978745   I7ab0e92c7ed4ce73be11909eefe0d570a1a0fc1e   Adding a new NMEA sentence : $GNGSA.

Change-Id: Ib0f2f90ac044c7f84483a06272c4c09fb1058a5e
CRs-Fixed: 860504, 884484, 748687, 790623, 1025224, 694343, 850144, 904627, 870568, 831075, 902350, 978745, 1025194, 916590, 909776, 992647, 826256, 820078, 975372, 826152, 827856, 937944, 855222, 852809, 991345, 939706, 974489, 897805, 771597, 1017254, 959625
2016-07-21 06:37:30 -06:00
Linux Build Service Account
f1b83e4e48 Promotion of location.lnx.2.0-00013.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
998059   Ia053bf523329fe7c1abf0696b9bffcc6a7d56a53   AGPS config inject can be configured out

Change-Id: I397997fd06d5dc4b0c0533d2114be96296afcacf
CRs-Fixed: 998059
2016-07-12 22:17:56 -07:00
Hema Iyer Sankaranarayanan
0ac496f962 Add field for location clients to chose position sharing option
Add new configuration for location clients to
specify whether position reports can be shared
with other existing clients

Change-Id: I44ade2e48124f992a04956ed8c34218e73face81
Crs-Fixed: 1038783
2016-07-12 13:40:41 -07:00
Bhavna Sharma
8e217e229d Merge remote-tracking branch 'quic/location.lnx.1.0-dev.1.0'
into location.lnx.2.0-dev

CRs-Fixed: 1038354

Change-Id: I87b3a7f33a0bb48783554bf5ecb0140695e40c9d
2016-07-08 12:04:07 -07:00