Commit graph

1687 commits

Author SHA1 Message Date
Dante Russo
e22619060b Remove tracking redundanty and assure min interval
A tracking interval should not be less than 100ms
If tracking interval or power mode is updated to
the same value, then start tracking should not be
sent to the modem again.
Fix some issues with multiplex with powerMode

Change-Id: I91e5d0577569b96179a5337af0fc91641dc126db
CRs-fixed: 2190953
2019-02-26 12:33:25 -08:00
Kevin Tang
a928d60188 util to get get symbol from a library
Added dlGetSymFromLib() to provide a utility that dlopen()'s
a library, and get the pointer to a symbol name.

Change-Id: I770eaef18a61aaa458833b3ca778f44b299585f5
CRs-Fixed: 2404939
2019-02-25 16:36:26 -08:00
Dante Russo
90310754f8 Add module android.hardware.gnss@2.0 for build
CRs-fixed: 2404857
Change-Id: I873ce21e1fb4924a1f3bb2e7162791f6d69be51d
2019-02-25 11:15:42 -08:00
Ashish Dhiman
ce952c486a GTP: Remove GTP-WAA and GTP AP CELL feature.
Remove GTP-WAA and GTP_AP_CELL feature as GTP will
support only third party GTP WIFI and legacy GTP
WWAN solution.

CRs-Fixed: 2384327
Change-Id: Id3613bde1716542027978af30084f5e997f28b00
2019-02-25 15:35:47 +05:30
qctecmdr Service
d31be64700 Merge "Enablement of location modules for kona" 2019-02-24 18:29:01 -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
Dante Russo
1d1d0e5722 Enablement of location modules for kona
CRs-fixed: 2403289
Change-Id: Iab273dcb9c0783557df15b1361c08862201bd8ce
2019-02-21 17:05:51 -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
qctecmdr Service
c051c7d112 Merge "GNSS HAL 2.0 implementation" 2019-02-21 09:20:53 -08:00
Naresh Munagala
ae8db6cf15 add remove api for message queue
Change-Id: I278eca90ebb50e291a1b9076caf46f41a074b1d7
CRs-Fixed: 2338245
2019-02-20 08:37:19 -08:00
qctecmdr Service
c0142799d0 Merge "Adding gps_vendor_board.mk" 2019-02-20 08:09:57 -08:00
qctecmdr Service
8e120b1ed9 Merge "New structures and handling of new data in the pipe" 2019-02-19 11:57:34 -08:00
Kevin Tang
9a055d5208 Fix race condition that adapter does not get handleEngineUp
- 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-17 12:32:50 -08:00
Kevin Tang
9b2e79c42e Fix race condition that adapter does not get handleEngineUp
- 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-14 11:08:21 -08:00
Saurabh Srivastava
8926b41ce3 Adding gps_vendor_board.mk
Adding vendor specific board config flags.

Change-Id: Ib16f800f2f9f3e385890088ae36f5d6197f2ee2c
CRs-Fixed: 2398736
2019-02-14 14:25:16 +05:30
Wei Chen
1d823b05ec FR47367: Location client API for External AP
(1) In location data struct, change size_t to uint32_t as size_t
is machine dependent and can not be sent as part of payload
to the other processor.
(2) Change LocIpc ifdef to match with the file name

Change-Id: Ia3f029641106a547e18904be1e3fb56ec09de569
CRs-fixed: 2367517
2019-02-13 10:03:56 -08:00
qctecmdr Service
9e2e7b8004 Merge "Fix build errors with libgps.utils.so" 2019-02-11 09:08:50 -08:00
qctecmdr Service
15ea6ecb3f Merge "Enable support for External AP build" 2019-02-07 17:27:24 -08:00
Mike Cailean
dc0efb4800 Enable support for External AP build
Enable support for build on External AP without
libcutils or any Android library support.

CRs-fixed: 2368435

Change-Id: I978127348fd6b8d90ed5ef0a714c02437dc59ee0
2019-02-07 11:13:58 -08:00
Saurabh Srivastava
d1537fd7b9 Adding gps_vendor_product.mk
Adding vendor specific make flags

Change-Id: Icbc9bc4ac6acb58e887e142f96ef95742127c215
CRs-Fixed: 2389780
2019-02-07 02:16:53 -08:00
Bhavna Sharma
7445c50730 New structures and handling of new data in the pipe
1. KlobucharIonoModel
2. Additional parameters for Glonass
3. Add gps system time to ephemeris reports.

CRs-Fixed: 2388931

Change-Id: Ibd08496c8eda2ce7571cbdd71ff0c179f7376aa7
2019-02-06 12:58:00 -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
Kevin Tang
4b5fd7ed54 process launch switch based on vendor enhanced check is incorrect
Some vendor enhaced processes are not to be launched only if this
is not a vendor enhanced produce. Condition incorrect.

Change-Id: Ieb520d77500f78968cb78b69169b068356f880ab
CRs-Fixed: 2392220
2019-02-01 14:56:46 -08:00
Divya Sharma
2e97d321f9 Fix build errors with libgps.utils.so
set_sched_policy() was moved from libcutils
to libprocessgroup

CRs-fixed: 2390701
Change-Id: I1468dee2b30f79bcdaa4ab3144628fddc69c4e80
2019-01-30 15:50:22 -08:00
Wei Chen
8e04d01cd2 GPS SV meas: new structure to support 10Hz
(1) revise struct of GnssSvMeasurementSet so it can be used
    to send only valid SV measurement via IPC
(2) remove reference to COMPASS system, as COMPASS named is
    replaced by BEIDOU system
(3) correct typo in GNSS_GLOS_MSEC_VALID to GNSS_GLO_MSEC_VALID

CRs-fixed: 2337832

Change-Id: I325346fa414e3a94422cb8ab4cc5b77d6efaf485
2019-01-30 14:29:30 -08:00
qctecmdr Service
9d6d95d096 Merge "LocationAPI must also be freed on destroy call" 2019-01-29 11:07:09 -08:00
Bhavna Sharma
49c60ab27a LocationAPI must also be freed on destroy call
LocationAPI object instance itself must also be freed when
destroy is called.

CRs-Fixed: 2388028

Change-Id: Ie6e1c34e126a10ea58076c0385aecd447233c7aa
2019-01-28 12:05:32 -08:00
Srivastava, Saurabh
5fba9e7dfb Adding SBAS in GSV NMEA
Adding missing constellation handling
for SBAS in GSV NMEA

Change-Id: I51ce3f60fc3bf340936901b753169df34d6db5c2
CRs-Fixed: 2387458
2019-01-24 21:20:44 -08:00
qctecmdr Service
955f05e8e7 Merge "make location.lnx.5.0 build for LE" 2019-01-22 11:12:28 -08:00
qctecmdr Service
8e9a6eacc6 Merge "Build dummy QMAA HAL to unblock framework" 2019-01-21 09:59:20 -08:00
qctecmdr Service
47b591383b Merge "LocIpc could be using data member from a deleted obj" 2019-01-17 14:19:17 -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
Kevin Tang
99e5e01b13 LocIpc could be using data member from a deleted obj
startListeningBlocking is meant to be called under a reader
thread, which is the case if startListeningNonBlocking calls
it. A LocIpc client may delete the LocIpc obj, which would
trigger sending an ABORT msg to the reader thread before it
is subsequently deleted, in which case, it is possible that
when the reader thread comes around to process the ABORT msg,
referencing the data members of the possibly stale obj would
cause unpredictable behaviors.

Change-Id: I441af85c04d92b6fff695c020e3e0b4bd5e90409
CRs-Fixed: 2380093
2019-01-17 14:08:01 -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
qctecmdr Service
7d9edb3c22 Merge "Fix KW P1 related issues" 2019-01-15 10:36:14 -08:00
Kevin Tang
cd387d1e8e LocIpc could be using data member from a deleted obj
startListeningBlocking is meant to be called under a reader
thread, which is the case if startListeningNonBlocking calls
it. A LocIpc client may delete the LocIpc obj, which would
trigger sending an ABORT msg to the reader thread before it
is subsequently deleted, in which case, it is possible that
when the reader thread comes around to process the ABORT msg,
referencing the data members of the possibly stale obj would
cause unpredictable behaviors.

Change-Id: I441af85c04d92b6fff695c020e3e0b4bd5e90409
CRs-Fixed: 2380093
2019-01-14 11:21:02 -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
qctecmdr Service
63dca90436 Merge "Fix issue with setting of thread name" 2019-01-08 13:09:18 -08:00
qctecmdr Service
f575c9c0d1 Merge "fix multiple GPS_LOCK request" 2019-01-04 21:25:14 -08:00
Bhavna Sharma
2332db20a9 Fix issue with setting of thread name
Only first 3 chars of thread name were getting set
because of incorrect length check. This change fixes the issue.

CRs-Fixed: 2376235

Change-Id: Iba4ad44af2e3bfde8da8ae4efdd4b132299ae9b7
2019-01-04 17:21:48 -08:00
Yingjie Wang
abfeea182d Fix KW P1 related issues
Change-Id: Ifc3cb9dcabf2e07439fd596b5ad33b46ea562b3d
CRs-fixed: 2375836
2019-01-04 16:19:24 +08:00
Hoss Zhou
f7c6bf552a fix multiple GPS_LOCK request
donot send GPS_LOCK request when new gpsLock is the
same as last one.

Change-Id: Ifb87018d11aef0383762b9b132742faf3d4d7e79
CRs-fixed: 2360896
2018-12-24 15:23:55 +08:00
Dante Russo
2f34b1ab42 Merge location.lnx.4.0 into location.lnx.5.0
Fastforward from location.lnx.4.0

Change-Id: I08144304a318a075ba27f6b3dc5947606ffcbcef
2018-12-18 14:14:30 -08:00
Hoss Zhou
3203504a28 PZ90 datum support
add a configuration DATUM_TYPE in gps.conf to configure
datum type. Default datum type is WGS84.

Change-Id: Ia8404aa5cf6d49741b9f487f8b086abd095f21ea
CRs-fixed: 2338883
2018-11-30 16:07:06 +08:00
Linux Build Service Account
372ec44be0 Merge "GPS location API: support destroy with callback for completion" 2018-11-28 20:43:25 -08:00
Wei Chen
e232986d84 GPS location API: support destroy with callback for completion
Support Location API destroy function with callback. Location
API client that passes callback to Location API need to wait
for the destroy complete callback to be invoked before releasing
the memory that holds the callback

Change-Id: I29b1c6d46feb79c789e6f1ec1500c941b022a3ac
CRs-fixed: 2349398
2018-11-27 17:07:19 -08:00
Wei Chen
730abcc3d4 GPS NMEA: generate proper nmea during leap second transition
During leap second transition, the hour, minute and seconds
displayed need to be in the format of 23:59:60 to denote
the extra leap second

Change-Id: Ice7c6f934b1251990ba26e2b7e399554a2862eb4
CRs-fixed: 2335188
2018-11-27 14:46:25 -08:00
Linux Build Service Account
9b0abcc59d Merge "Remove XTRA URLs from gps.conf" 2018-11-27 02:05:22 -08:00
Ankur Sharma
dca1724d17 Remove XTRA URLs from gps.conf
Remove default URL's for XTRA from gps.conf

CRs-Fixed:2355372

Change-Id: Iea1caa42e8cd4f84a0d37bb6bcd69655609d368d
2018-11-23 18:18:11 +05:30