Commit graph

344 commits

Author SHA1 Message Date
Nilesh Gharde
ff98fecec4 AP Default Setting CRM Builds SM8250 and Beyond
loc_service_mask should not be populated with any
SAP(Basic or Premium) value if the SAP value is 
MODEM_DEFAULT.

Change-Id: I665bb90e4a814dc31bed566cc0b2ecffcfae52ac
CRs-Fixed: 2457874
2019-06-13 22:38:59 -07:00
qctecmdr
aadcd5f7dc Merge "SV used in fix satellites are not updated for B2A-Q" 2019-06-12 11:44:32 -07:00
qctecmdr
3bbb89aee1 Merge "Fix to use explicit sized structures" 2019-06-11 10:55:39 -07:00
Mike Cailean
64514a5734 SV used in fix satellites are not updated for B2A-Q
Change-Id: If9d6f4ff694572f22b95b3ccb6015ebcb6310ffa
CRs-fixed: 2468528
2019-06-10 15:26:01 -07:00
qctecmdr
d17a81974b Merge "modify DTM talker id" 2019-06-07 15:35:28 -07:00
Kevin Tang
0677be4e46 Removing LocIpc::createLocIpcQsock* APIs
Qrtr and Qsock bot have createLocIpc*Sender and Recver
APIs in LocIpc. But Qrtr is really next gen of Qsock.
The two will not co-exist. Their existence depends on
kernel versions, i.e. 4.9 and earlier is Qsock; while
4.14 and later is Qrtr. Having 2 sets of APIs doesn't
make sense, as client would have to know what are the
right ones to use, which there is really only one set
of backing implementations.

Change-Id: Ia473f282bb271ae213d7dc5020b0b8c7b0a8cb8f
CRs-Fixed: 2466857
2019-06-06 16:21:18 -07:00
Bhavna Sharma
980dbf59b6 Fix to use explicit sized structures
Cross processor communication needs explicit sized structures.
Avoid using platform defined values like size_t which may
vary from 32-bit to 64-bit.
Also use explicitly defined timespec32_t structure that will
only use uint32_t fields.

CRs-Fixed: 2428163

Change-Id: Ida72f53ac672d9c9b86879bb9861cecefe6f8c6d
2019-06-06 13:23:56 -07:00
Hoss Zhou
1e4aefd8b6 modify DTM talker id
Change-Id: I1844cc64767c0e6b324331f2016091ed1053e360
CRs-Fixed: 2455848
2019-05-27 16:07:40 +08:00
Nilesh Gharde
210d3ca227 Addressing format related to formating
Added formating related issue as
genuine errors fixes

Change-Id: Ie01e9ce3bf838a37871a4779ae1403b4dca3d87c
CRs-Fixed: 2447200
2019-05-18 09:12:29 -07:00
qctecmdr
edf991e3b9 Merge "Set yearOfHw to 2019 if Location Privacy feature is supported" 2019-05-09 16:00:16 -07:00
Saurabh Srivastava
331c6d9893 Adding NAVIC support
NAVIC constellation support added.

Change-Id: I30a61f53089177d4e02b617dc9b785c13e2ef6ee
CRs-Fixed: 2399619
2019-05-09 10:20:33 -07:00
Bhavna Sharma
2ba3f04c57 LocIpc redesign
LocIpc now doesn't have any impelementation of sockets,
but a framework that provides threading for any sockets
that can be wrapped into LocIpcSender and LocIpcRever
APIs.

Also updated XtraSystemStatusObserver to using the new
LocIpc and LocIpcLocalSender and LocIpcLocalRecver.

Change-Id: I506c77198f9ce1e7d4dfd5e596dc0ac21d928e34
CRs-Fixed: 2443124
2019-05-09 07:34:22 -07:00
Mike Cailean
b884edb7c8 Set yearOfHw to 2019 if Location Privacy feature
is supported

Change-Id: If5ee31603491c83652082ce295abfcf9c9fec511
CRs-fixed: 2446241
2019-05-06 10:12:52 -07:00
Wei Chen
e8c1730e91 GPS exteneded: add dir name and file prefix for ext ap client
Add directory to be reserved for hal daemon to keep track of
location client sitting on external application processor

Change-Id: I192fb011c786bab1752f0e604b86041a9f4cdc33
CRs-fixed: 2436612
2019-05-05 21:12:31 -07:00
Mike Cailean
76e761da5a SV "in-use" flags are not being set correctly for
multiband enabled devices

Change-Id: I875b535063c6aa6ecb713c7b6abff123d8402d62
CRs-fixed: 2443087
2019-05-01 17:03:17 -07:00
Mike Cailean
d6d55a4948 Send SUPL notification to the framework for
E911 sessions only (older modems)

Change-Id: Icd317f6e4b042c31afc63011596689d5fb35135f
CRs-fixed: 2441292
2019-04-30 09:27:41 -07:00
Mike Cailean
cd1031a520 Update proxyAppPackageName field in nfw notification
Change-Id: I993a6d9227b03626bc254675944df28cc578a6c7
CRs-fixed: 2437418
2019-04-23 15:01:14 -07:00
qctecmdr
3d5fbdc402 Merge "LocIpc derefs nullptr if stopping blocking listener" 2019-04-22 10:24:24 -07:00
qctecmdr
1fb5c0caf5 Merge "Streamline measurements processing" 2019-04-17 20:45:32 -07:00
Hoss Zhou
a65b865a1b modify NMEA according to version 4.11
1.modify BDS/QZSS/NavIC system id and signal id
2.add GNS sentence

Change-Id: I81c5c6806e8c4cdf2aee32415b0cfa3a3b1b0cd1
CRs-Fixed: 2432122
2019-04-15 19:03:16 -07:00
Kevin Tang
07db01d9af LocIpc derefs nullptr if stopping blocking listener
LocIpcRunnable is created only for nonBlocking listeners.
But stopListening would use LocIpcRunnable not knowing if
this is a blocking or nonblocking listener. LocIpcRunnable
is no longer a shared resource between the two threads. We
use a copy of string to keep the needed socket name.

Change-Id: Ib5c57a89f630807d6d03f3fbc698a56b9ffddf4d
CRs-Fixed: 2431397
2019-04-08 13:36:36 -07:00
Mike Cailean
b95f05cc73 Streamline measurements processing
Consolidate the translation from QMI LOC into one
place in order to minimize traffic

Change-Id: I73c2f25e94544a2b69d4227c63548ef11b6a4d91
CRs-fixed: 2430668
2019-04-08 11:17:31 -07:00
qctecmdr
449fdb73e2 Merge "Add HAL support for network handle" 2019-03-31 20:11:37 -07:00
Hoss Zhou
582337b7fb add sufficient delimiter for blank GSA sentence
Change-Id: I96e7dec543a4bfb326e5c72d9e943a57d183cf87
CRs-Fixed: 2416152
2019-03-31 09:27:09 -07:00
Kevin Tang
546e88fc04 Add HAL support for network handle
Add HAL support for modifications to the
network status information passed in.

Change-Id: I99defc6a419d9f21ce74469a1aa016cc7fade4a5
CRs-Fixed: 2397433
2019-03-26 18:40:03 -07:00
qctecmdr Service
01869b4004 Merge "Improved Location NI Privacy" 2019-03-22 17:36:07 -07:00
qctecmdr Service
52c9486628 Merge "GTP: Remove GTP-WAA and GTP AP CELL feature." 2019-03-21 21:52:24 -07:00
Mike Cailean
b046241ec2 Improved Location NI Privacy
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-03-21 14:57:28 -07:00
Kevin Tang
5a9cc5ae72 Merge remote-tracking branch 'quic/location.lnx.4.0' into HEAD
CRs-fixed: 2414738

Change-Id: Ic8d1cd5bb37d1ad26c2749e46be279942e28ac05
2019-03-14 17:43:05 -07: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
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
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
8e120b1ed9 Merge "New structures and handling of new data in the pipe" 2019-02-19 11:57:34 -08:00
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
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
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
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
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
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
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