Commit graph

176 commits

Author SHA1 Message Date
Kevin Tang
033a0fa1c6 modem generated NMEA won't get reported
when NMEA_PROVIDER_MP (i.e. NMEA_PROVIDER=1 in gps.conf),
nmea is dropped at GnssAdpater::reportNmeaEvent

Change-Id: Ib200780a887589e8e495b2e012e0649aba275c5c
CRs-Fixed: 2297257
2018-08-23 10:08:10 -07:00
Linux Build Service Account
3ee9378ffd Merge "Replace unsafe functions" 2018-08-22 01:12:40 -07:00
Linux Build Service Account
3379b6645d Merge "Add jammer indication" 2018-08-21 14:29:45 -07:00
Mike Cailean
4599ab400c Replace unsafe functions
Replace strncpy with strlcpy

Change-Id: Iade6b1201db75fb15da37431183cb372cd1ad41a
CRs-fixed: 2298929
2018-08-17 10:29:48 -07:00
Mike Cailean
75cfd43bfd Add jammer indication
Add AGC and jammer indication

Change-Id: I93641864338beec368e7a56b3a20b158ea892202
CRs-fixed: 2239155
2018-08-17 09:15:20 -07:00
Linux Build Service Account
329de0d44f Merge "SAP:update SENSOR_CONTROL_MODE configuration" 2018-08-14 03:46:00 -07:00
Hoss Zhou
4bab73548d Fix: Xtra connection initialization issue
HAL sends an empty field to Xtra when connections
is not updated.

Change-Id: I42c456581a1a968887880154f1ffffee12421354
CRs-Fixed: 2259165
2018-08-06 14:17:12 -07:00
Hoss Zhou
f2f6ca70c5 SAP:update SENSOR_CONTROL_MODE configuration
set SENSOR_CONTROL_MODE to MODEM_DEFAULT to make INS
use its default setting.

remove SENSOR_PROVIDER and SENSOR_USAGE.

Change-Id: I99d48d4600a6bca8e64ae0d1ff065af762888b2e
CRs-Fixed: 2285242
2018-08-05 14:52:50 -07:00
Linux Build Service Account
6f17924602 Merge "Skip position filtering for telematics" 2018-08-05 05:29:31 -07:00
Linux Build Service Account
230751d957 Merge "Cache the SUPL server and port on each update" 2018-08-03 10:05:06 -07:00
Dante Russo
12b3302094 Skip position filtering for telematics
When engine hub is loaded, e.g.: if any of the
engine services are enabled in izat.conf, position
filtering is skipped and all position (valid or
invalid) will be reported to requesting client

Change-Id: Idc340478c977d8da441211d4c81580987b0f4a29
CRs-fixed: 2290155
2018-08-02 14:34:57 -07:00
Bhavna Sharma
2a005b5816 Cache the SUPL server and port on each update
CRs-Fixed: 2286256

Change-Id: I7adb584ff6f81c6a7f50f5ec4e9a4a094414e297
2018-07-30 12:23:12 -07:00
Dante Russo
26e542da6d Modify ODCPI timer from 30s to 10s
ODCPI timer is modified to match location
request duration that was changed from 30s
to 10s in frameworks.

Change-Id: If1380635b0b87d55bf9a00197b806b3de48b6f4f
CRs-fixed: 2282588
2018-07-25 17:29:31 -07:00
Linux Build Service Account
04f0a9a45d Merge "Merge remote-tracking branch 'quic/location.lnx.3.0.c5' into location.lnx.4.0" 2018-07-24 21:53:37 -07:00
Bhavna Sharma
92e990faf8 Merge remote-tracking branch 'quic/location.lnx.3.0.c5' into
location.lnx.4.0

CRs-Fixed: 2282734

Change-Id: I5911f47d796591474eb19be527499daf758bff03
2018-07-23 13:11:31 -07:00
Dante Russo
48b4774ece Add a timer for better handling of ODCPI/DBH
Prevent more than one ODCPI request into
frameworks each 30 seconds.
Request ODCPI every 30 seconds while modem
is actively requesting it
Allow location injections for ODCPI even
outside ODCPI session.
Emergency ODCPI requests override normal ODCPI
requests

Change-Id: Ie2de6a5d42e749fce2e45cd672fc1d667b3f3347
CRs-fixed: 2246658
2018-07-19 10:45:29 -07:00
Linux Build Service Account
5b00f53189 Merge "GPS: block CPI injection for those fixes orginate from modem" 2018-07-03 16:04:21 -07:00
Kevin Tang
56c4dd4420 GPS: block CPI injection for those fixes orginate from modem
GNSS adapter to block CPI injection for CPI originates from modem.
One source of the fix is QNP fix from modem. Only fixes that
comes within time threshold and with latitude and longitude
falls within the same proximity will be blocked.

Change-Id: If67a164d1e1c75735979f048a9f8dc93f0b0a41f
CRs-fixed: 2260721
2018-07-03 10:45:56 -07:00
Saurabh Srivastava
889d1eed23 Fixing error population logic
Updating error vector population logic
in GNSS Update config command.

Change-Id: Ia328ad112056ecc20221ca10ba91c72f3182830a
CRs-Fixed: 2261813
2018-07-02 23:28:50 -07:00
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
Linux Build Service Account
4819ca816f Merge "Get AGC from PQWM1 regardless of time validity" 2018-06-29 10:23:19 -07:00
Linux Build Service Account
4ff9a6a2a2 Merge "Don't send ACK to modem for a 2nd close request" 2018-06-29 10:23:17 -07:00
Linux Build Service Account
021821ce54 Merge "Added optional MO SUPL SLP" 2018-06-29 01:39:07 -07:00
Mike Cailean
1d42da7b67 Get AGC from PQWM1 regardless of time validity
Eliminated time valid dependency when processing
PQWM1 message to get AGC

Bug: 110460486

Change-Id: I962272a749599db7a9dc84e00da9e1152686c366
CRs-fixed: 2267159
2018-06-28 13:44:40 -07:00
Mike Cailean
cbf99f8905 Don't send ACK to modem for a 2nd close request
For the case the modem sends a close request for
the same connection handle do not process the
request and do not ACK to the modem

CRs-fixed: 2269123

Change-Id: I027c3e79965bb0f9ab311093904e6dded1aa5d03
2018-06-27 17:48:37 -07:00
Bhavna Sharma
ee8213f3ce Populate some more fields for end client.
These are the fields populated:

North, East, Up velocity and their uncertainties
North and East standard deviation
Gps Time, Leap Sec and time uncertainty
Gps Measurement usage info

CRs-Fixed: 2249350

Change-Id: I8936b1c47be25fdc792322592f8ea5466a3fa6fd
2018-06-27 13:50:31 -07:00
Mike Cailean
d12b82b4e4 Added optional MO SUPL SLP
Change-Id: I89c3e697b92dfe04d403c073e779906d21cefd69
CRs-fixed: 2259090
2018-06-26 18:31:01 -07:00
Naresh Munagala
02cddf0f26 GNSS hal: propagate position dynamics uncertainty
Support for uncertainty of positition dynamics, including
uncertainty of forward, sideward, upward accelation,
and uncertainty of heading and pitch

Change-Id: I33fbfd0344d4beb7eabaa629b0c0993fe368293b
CRs-fixed: 2263818
2018-06-21 10:44:51 +05:30
Bhavna Sharma
f50e02a555 GNSS adapter: Do not send SPE NMEA to engine hub
Engine service does not need SPE NMEA report.

Change-Id: I809fa2857eec8292269b640928a44d8cc54308ed
CRs-fixed: 2232811
2018-06-18 15:19:28 -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
Mike Cailean
b150a53ee3 Handle updating the carrier configuration
Set GPS_LOCK for cases where the modem has
two SIMs

Change-Id: I2745b9469b2f755b0a24be2a7f4ae514c35a37cb
CRs-fixed: 2018029
2018-06-12 09:46:49 -07:00
Mike Cailean
88688a85a3 SUPL connection enhancements
Adding enhancement to ATL messages to allow
sending bearer type and apn type mask values.

CRs-fixed: 2206014

Change-Id: I28f6583d842e82c9e26d40be55312f8aaf01193e
2018-06-11 14:13:04 -07:00
Bhavna Sharma
6c80f04dba Populate some more fields for end client.
These are the fields populated:

North, East, Up velocity and their uncertainties
North and East standard deviation
Gps Time, Leap Sec and time uncertainty
Gps Measurement usage info

CRs-Fixed: 2249350

Change-Id: I8936b1c47be25fdc792322592f8ea5466a3fa6fd
2018-06-08 17:00:17 -07:00
haohuang
17015dd790 Add spoof report mask in location object
Add the spoof mask report in location object
in position report and ZPP position report in
LocApiV02. Propagate this mask to the location
object in Location API module.

Change-Id: I5df87d389d5315c55ed2afce1f440a0486e4bebd
CRs-fixed: 2236154
2018-06-07 21:56:37 -07:00
Kevin Tang
8cc52b448c changes to work without ULP module
Rework the module with ULP module being removed

Change-Id: I5ac81e8c1c734352b3087545b83f4812fa3e8aff
CRs-fixed: 2235309
2018-06-07 12:04:42 -07:00
Mike Cailean
ed7d229dea Add AGC value for QZSS measurement report
Add AGC value for QZSS measurement report
to Android framework - value is the same as GPS

Change-Id: I1e3106d99d124945be7f1bda725a413be11a75e6
CRs-fixed: 2245786
2018-06-04 23:21:32 -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
Bhavna Sharma
21308b61a8 GNSS adapter: Do not send SPE NMEA to engine hub
Engine service does not need SPE NMEA report.

Change-Id: I809fa2857eec8292269b640928a44d8cc54308ed
CRs-fixed: 2232811
2018-05-29 11:49:16 -07:00
Saurabh Srivastava
d462c0add3 FR 46082 - SUPL Network Setup Improvements
Adding enhancement to ATL messages to allow
sending bearer type and apn type mask values.

CRs-Fixed: 2209227
Change-Id: I09a294946610f26de4760a0fba6f13083f8752f3
2018-05-29 04:28:47 -07:00
Kevin Tang
365919e004 location.lnx.4.0 catchup
Change-Id: I248620cfd849d39ccfb8bbd11e2cf049df889346
CRs-Fixed: 2247713
2018-05-23 17:59:04 -07:00
Kevin Tang
80e09f69b6 Fixed a number of issues with NetworkInfoDataItemBase
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-14 12:24:06 -07:00
Kevin Tang
7bbc063ad2 Fixed a number of issues with NetworkInfoDataItemBase
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-05 21:34:17 -07:00
Linux Build Service Account
ded23bec43 Merge "GPS Adapter: GNSS adapter change to go with engine hub aggregator" 2018-05-04 08:46:23 -07:00
Katz Yamada
5d6ee83608 fix: Add intermediate fixes in gnss debug report
Include intermediate location fix info in gnss
debug report that is cached in SystemStatus in
addition to final fixes, so that the gnss debug
report should always hold the latest information.

Change-Id: I60aef92cf6d143a1b4f4b510ca2113887d051dcc
CRs-Fixed: 2230415
2018-05-03 13:14:53 -07:00
Katz Yamada
f8bd86f012 fix: Add intermediate fixes in gnss debug report
Include intermediate location fix info in gnss
debug report that is cached in SystemStatus in
addition to final fixes, so that the gnss debug
report should always hold the latest information.

Change-Id: I60aef92cf6d143a1b4f4b510ca2113887d051dcc
CRs-Fixed: 2230415
2018-05-03 11:41:51 -07:00
Bhavna Sharma
f6b613a827 Addition of new LocApi thread
1. LocApiBase to create its own MsgTask thread to allow QMI calls
to be made asynchronously. It shall no longer share the adapter's thread.
2. Implementation of new LocApiResponse classes for generic response type
from LocApi layer to Adapter layers
3. GnssAdapter modified to handle the asynchronous nature of LocApi calls.

CRs-Fixed: 2218658

Change-Id: I6e401a89f16791ec144763ac5f070b7ee1dad931
2018-04-27 10:39:21 -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
Linux Build Service Account
23d026b988 Merge "fix: Default values in GNSS Debug Data" 2018-04-23 15:42:13 -07:00