Commit graph

110 commits

Author SHA1 Message Date
Yingjie Wang
d0825b64ef Fix makefile error for Gnss Hidl
Correct the if-else-endif logic error.

Change-Id: I5d3fa711e911642def689308f73c19f0c46ab632
CRs-fixed: 2411979
2019-03-08 10:23:52 +08:00
Mike Cailean
4149abcc2d Measurement changes in GNSS HIDL2.0
CRs-fixed: 2385560

Change-Id: I5f4548e6df0cb8ac3f2762020dfdbb49a9022854
2019-02-21 21:34:40 -08:00
Mike Cailean
e78728024d SUPL over WiFi changes in GNSS HIDL2.0
Change-Id: I20a2071fd748dea16cd55aa120bc307ebc0645a9
CRs-fixed: 2342192
2019-02-21 13:38:28 -08:00
Yingjie Wang
51dca017c5 GNSS HAL 2.0 implementation
Implement AGnss, AGnssRil, GnssConfiguration,
GnssMeasurement and MeasurementCorrections of GNSS
HAL 2.0 to on par with Android P

Change-Id: Id430e60c2d9cc7333f4b331c7e5a1e9a45a0289a
CRs-Fixed: 2342198
2019-02-05 10:22:08 -08:00
qctecmdr Service
955f05e8e7 Merge "make location.lnx.5.0 build for LE" 2019-01-22 11:12:28 -08:00
Kevin Tang
afcf4af54e make location.lnx.5.0 build for LE
Change-Id: Ia8c39902ae7ce532d5efa9f36058a8f3f0e0b674
CRs-Fixed: 2381679
2019-01-17 14:19:04 -08:00
Yingjie Wang
877b2e40c3 Build dummy QMAA HAL to unblock framework
Build dummy QMAA HAL to unblock framework
when BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
flag is not defined.

Change-Id: I62f71d7964e916619f0157e69a57cd83a62bba54
CRs-Fixed: 2378795
2019-01-16 13:27:33 +08:00
Saurabh Srivastava
400c1e8b57 Launch platform specific processes
Launch processes based on whether the
platform is vendor enhanced or not.

Change-Id: I04c074023e631c4f5d1e16ac166612f323b7a868
CRs-Fixed: 2341030
2019-01-09 20:32:30 -08:00
haohuang
18c99090be Qualcomm Unified Vendor - GPS
Remove remaining build flag checks in all
location vendor modules :
BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET
LW_FEATURE_SET

Change-Id: Ideacd3ae7f6a49ff3da3ca8cd14668c01400484a
CRs-Fixed: 2341041
2019-01-09 20:31:40 -08:00
Mike Cailean
d6b0854a70 Lowered the severity of debug message
Lowered the severity of debug message when
setting callback function for geofencing

Change-Id: I2bbd0648d1dba5d7d655545bb0487223dbccb9cb
CRs-fixed: 2347777
2018-11-13 16:36:26 -08:00
Katz Yamada
5b53be1d9e perf: Reduce NMEA traffic over client IPC
Improve hal daemon performance by reducing
number of NMEA callbacks on IPC. Position and
sv NMEA sentences, generated during one TBF
will be concatenated by hal and sent over
one IPC, then client lib disassemble it into
multiple sentences.

Change-Id: I522e293d7e26fb8a25edb6ed931c4d69186223e8
CRs-Fixed: 2299008
2018-10-05 16:26:02 -07:00
Harikrishnan Hariharan
2f80dcc30c Handling network types not available in IAgnssRil enums
Handling network types not available in IAgnssRil enums like
Bluetooth, Ethernet, Proxy etc. Pass these network type info
to framework, rather than sending the default TYPE_UNKNOWN.

Change-Id: I7e997b82b07ca68d928bef322182031a2d47e532
CRs-Fixed: 2325210
2018-10-03 04:15:35 -07:00
Yingjie Wang
a9049e3aeb Decouple Gnss Hidl impl into 1.0 and 1.1 version
Decouple Gnss Hidl implementation into 1.0 and 1.1 version.
msmnile and later targets would use gnss hidl 1.1, and older
targets would use gnss hidl 1.0

Change-Id: I31fdf932ce55a0547ff69fc3d28dae1d001e8d56
CRs-fixed: 2311903
2018-09-14 15:24:14 +08:00
Kevin Tang
a030bf9baa GNSS_NI_RESPONSE_IGNORE handling
GNSS_NI_RESPONSE_IGNORE inaverdently mapped to NO_RESPONSE,
which is a different reponse code. The two should be handled
differently.

Bug: 111770241
CRs-Fixed: 2296845

Change-Id: If2697f51c07a0272841709bfca247daaa4e963b6
2018-08-14 21:35:21 -07:00
Baili Feng
ffbe00b52b Set interval to large value for all MSA cases
If position mode is MSA, set interval to 590 hours

Change-Id: I552e0da679bf5b817bdc2463b32c8159c98b6e87
CRs-Fixed: 2268571
2018-07-03 15:41:52 -07:00
Saurabh Srivastava
050de4e82e Adding offset for SV ID values
Adding offset to SV ID values
received for blacklisting in HIDL
API.

Change-Id: I16dd5e918e9397a23fa4e142dd94d029970f4217
CRs-Fixed: 2239179
2018-07-01 11:10:07 +05:30
Saurabh Srivastava
f7e3cd59e3 Returning failure on GPS blacklisting
Returning false for HIDL Set Blacklist
API when a GPS constellation SV is
passed in for blacklisting.

Change-Id: I4fdaf226111d9db365af11c0e5bb6fa043c0b6fb
CRs-Fixed: 2234230
2018-07-01 11:05:18 +05:30
Saurabh Srivastava
7a8e0643c3 Checking return for ODCPI CB
Adding return value check for ODCPI
HIDL callback API

CRs-Fixed: 2263480
Change-Id: I652a4717ab08f8a0c64b3bc0f78bae4e8f553513
2018-06-28 13:28:40 +05:30
Baili Feng
2c99ad159f Set interval to large value for single mode
For RECURRENCE_SINGLE mode, set interval to a very large value:
std::numeric_limits<>::max()

Change-Id: Id9f2ddd1948d9660f69a308b3fe6ad6e6dcc6a77
CRs-Fixed: 2260711
2018-06-20 14:26:25 +08:00
Mike Cailean
7dfa87b244 Support Multiband feature
Add carrierFrequency to GNSS Measurements
reporting. Also, add AGC level from QMI LOC
message to GNSS measurements (as opposed to
adding it from NMEA debug messages).

CRs-fixed: 2186144

Change-Id: Ia3995ba9e09ef4c68e8922b7570f7af0eb50098a
2018-06-16 11:27:26 -07:00
Dante Russo
271cfd8a00 Report yearOfHw=2018 when P features are supported
Support of features AGPM or Constellation Control
mean that we report yearOfHW as 2018

Change-Id: I01b7a3ce7f8b38569cf419cf07fef1d55da5f149
CRs-fixed: 2254698
2018-06-13 16:23:59 -07:00
Saurabh Srivastava
98edc19bea FR 48850 - Device based hybrid ODCPI
Adding support for sending ODCPI request
to framework via IGnss interface.

Change-Id: I97ab4f00505705fedc266998602499fd344baf31
CRs-Fixed: 2217664
2018-06-03 22:43:58 +05:30
Saurabh Srivastava
66c682f7d9 FR 45623 - AGPM 1.0
Adding AGPM FR changes to add power
modes support.

CRs-Fixed: 2195518
Change-Id: Ifd1da6194b58ad5590ea755e3f6b237c4b4db2ad
2018-06-02 23:48:20 -07:00
Saurabh Srivastava
eaf7e54b54 FR 45651 - GNSS SV/Constellation Control
Adding support for configuring GNSS SVs
and constellations to be used.

Change-Id: I47d5cd9d08ac9aaf633be2fe3b1bd152a2f4293b
CRs-Fixed: 2184871
2018-06-03 12:15:34 +05:30
Katz Yamada
43699ba79c fix: Incorrect time estimate in debug report
GNSS Time estimate shown in Gnss debug report
is incorrect. It always shows default value
instead of value delivered by PQWM1 message.

Change-Id: Iff471613ac6fa25d213c14b543871b6c3ae7af0a
CRs-Fixed: 2235219
2018-05-07 10:05:34 -07:00
Linux Build Service Account
94904a7184 Merge "Merge location.lnx.3.0 into location.lnx.4.0" 2018-04-27 04:12:20 -07:00
Bhavna Sharma
c2bc685784 Merge location.lnx.3.0 into location.lnx.4.0
CRs-Fixed: 2228694

Change-Id: I114d830bec57040d700a0cebac2d0415c9b9f893
2018-04-20 13:18:43 -07:00
Baili Feng
d856a9414d hidl gnss hal 1.1 implementation
Implement new apis for IGnss 1.1

Change-Id: I2c98c32355f6d9681d51b709697e49ec735fe1cf
CRs-fixed: 2133458
2018-04-10 08:24:34 +08:00
Dante Russo
ab95d2dc2e Merge location.lnx.3.0-180201 to location.lnx.3.9
Catchup merge from tag location.lnx.3.0-18201
CRs-fixed: 2212182
Change-Id: I47f5f9eb06cb6a6ee6be337a2dc43e0d2386113b
2018-04-04 17:54:02 -07:00
Dante Russo
97f3f3905a remove unused variables for compilation
remove unsed variables and fix few compiler issues

CRs-fixed: 2175735
Change-Id: I635a7503326928f43070aa2224bc3c3d6e1ff929
2018-03-02 09:59:29 +05:30
Kevin Tang
85e65f8168 moving AGnssCbIface from static to class member
mAGnssCbIface is a static C++ obj, which ctor may not get
called at load time, but its memory block will only be 0'ed
out.

Change-Id: Ie275f916a01c5eb3bf0a7cfa71b19fe4e0d3e879
CRs-Fixed: 2190347
2018-02-20 19:48:46 -08:00
Kevin Tang
61de97e130 LE clean up
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-16 13:35:38 -08:00
Saurabh Srivastava
cf96869f44 Changing GNSS HAL service class to hal
Changing GNSS HAL service class from main
to hal

Change-Id: I72250b1645981b0ec5a5a8faf3fe16dafb51646a
CRs-Fixed: 2164972
2018-01-10 16:34:18 +05:30
Linux Build Service Account
d519abf0c1 Merge "Replace wall time" 2017-12-25 08:03:44 -08:00
Kevin Tang
03bc75f298 fixing the location api level race condition on callbacks
At the layer right under HIDL impl, where the callback objs
are received from HIDL and used by HAL layer, there is race
condition volnerability which could yield using a incompletely
copied sp obj. Added mutex protection.

Change-Id: I611db590d1fadbe43c74db71a1ea906dbe067c6d
CRs-Fixed: 2144976
2017-12-21 13:29:37 -08:00
Baili Feng
edcf000435 Replace wall time
Replace gettimeofday with clock_gettime
CRs-fixed: 2144315

Change-Id: Ie8472d2aedcd0e63b86cc5ff100ce9bb28fd670c
2017-12-05 16:59:41 +08:00
Yingjie Wang
9fe73f379a Check ret value for HIDL callback method
Judge ret value for niNotifyCb to check HIDL return status

Change-Id: I0cde3716a971941260f2fb12c9e5927bc8c8d548
CRs-fixed: 2147437
2017-11-21 12:20:06 +08:00
Saurabh Srivastava
0107dbe7d3 Invoking HIDL callback via local variable
Copying HIDL callback member variable to
a local variable before invoking.
This is to avoid possible race conditions
with the callback getting updated during
invocation.

Change-Id: Ida9658f4cffafc64754c0cd26541b731cb328155
CRs-Fixed: 2114085
2017-10-27 09:05:29 +08:00
Saurabh Srivastava
57640c9f33 Checking HIDL callback return value
Change-Id: I937f155b80d54396f86fb44d731bc592ae49411e
CRs-Fixed: 2120892
2017-10-16 19:55:47 +05:30
Katz Yamada
f5f0f29c13 Add storing dataitem in systemstatus report
SystemStatus stores incoming dataitem events
received from osagent into its internal
systemstatus report cache.

Change-Id: I129c633b45abfc04c9d9bbbd558db5f6e93c1672
CRs-Fixed: 2093347
2017-10-09 10:04:13 -07:00
Kevin Tang
fb4bbe52f4 fixing conn disconnect handling from GnssLocationProvider
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-20 17:47:48 -07:00
Baili Feng
f69296ba9e Init default agps status callback in GnssAdapter
Call LocNetIfaceAgps_getStatusCb implemented in libloc_net_iface.so,
use the return function as default agps status callback.

Change-Id: I4d966a888e312c2d0fb1a6c9e30752294876e500
CRs-Fixed: 2064002
2017-09-12 14:16:28 +08:00
Vamana Murthi
1b6695633f XC 2.5 : additional changes
Add the XTRAsystemstatus observer to
pass the HAL init info to XTRA-Client

CRs-Fixed: 2093274
Change-Id: I893da1470d4fedafbc7545806ea97667acdf60d3
2017-08-15 14:36:57 -07:00
Linux Build Service Account
c41a43c59f Merge "Fix potential deadlock in measurements report" 2017-08-10 22:42:38 -07:00
Dante Russo
54d6a878fd Fix potential deadlock in measurements report
If Gnss Measurements callback is called at the same time
as Gnss Measurements close is called, this will cause
dead lock.
Remove using mutex in this case and instead use a simple
bool to know whether or not to call into a the callback.

Bug: 63909793
Change-Id: I98d2be5ebd2ee0f36e4d2e31d20a74585089fe31
CRs-fixed: 2089716
2017-08-09 11:50:42 -07:00
Baili Feng
4c9c783989 Clean up compiler warning message
CRs-Fixed: 2070597
Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-08-01 18:17:20 +08:00
Bhavna Sharma
686a5c54b0 Location API for Outdoor Trip Batching
Add / Modify Location API for
Outdoor Trip Batching feature.
Introduce a batch mode to differentiate
between routine and outdoor trip mode.

CRs-Fixed: 2041674

Change-Id: Ia8b2d34457b29c4fe754ab24287a6984ab9a96f5
2017-07-24 09:25:07 -07:00
Dante Russo
1bd0de5d87 Fix yearOfHw as 2016 pre ES SUPL concurrency
Add capability bit for Nmea Debug, which
is a marker for modem support of concurrent
emergency supl session and normal gps session.

CRs-fixed: 2068217
Change-Id: Iea1ee7b56bfdd28643928edf0475cf21257de64c
2017-07-14 11:26:42 -07:00
Linux Build Service Account
978f2b9410 Merge "Update the latest LocationOptions" 2017-07-06 22:31:32 -07:00
Baili Feng
ba171737ab Update the latest LocationOptions
Restore unintentionally removed code.
Call locAPIUpdateTrackingOptions in gnssSetPositionMode.

Change-Id: I35a84c92de6a4b3df16d779fbb79601212d61119
CRs-fixed: 2071240
2017-07-06 17:02:50 +08:00