Commit graph

1608 commits

Author SHA1 Message Date
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
Bhavna Sharma
2900a1c570 body frame uncertainty parameters in position report
added uncertainty parameters for longAccel, latAccel, vertAccel,
yawRate and pitch.

Change-Id: I804dc0b370dd78402a6641f5a16e5ee7a53ff9a1
CRs-Fixed: 2262454
2018-07-17 14:54:53 -07:00
Bhavna Sharma
27114f21cc Changed to allow only locclient group to access
hal daemon

Move hal daemon socket creation to loc_client directory
Define uid/gid for locclient

CRs-Fixed: 2260194

Change-Id: Icaac885c19cd65b11254bb93b6a938b2d4595761
2018-07-11 16:53:14 -07:00
Saurabh Srivastava
aa6481f638 Print QZSS SV ID with offset
Adding QZSS SV ID offset for
logging.

Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4
CRs-Fixed: 2272374
2018-07-04 08:12:39 -07:00
Linux Build Service Account
f487bbb4ec Merge "Merge remote-tracking branch 'quic/location.lnx.3.9' into HEAD" 2018-07-03 22:57:50 -07:00
Linux Build Service Account
b658d82b1a Merge "Set interval to large value for all MSA cases" 2018-07-03 19:28:03 -07:00
Dante Russo
395c8110d6 Assure event mask is set properly to get positions
The event mask can be retrieved in the context of
client thread as zero and then queued up to go to
msg task thread. By the time the msg is actually
handled in msg task thread, the actual event
mask at LOC API layer may have already changed, but
this mask would then be overridden by zero. This
can cause no modem events to ever come, including
position reports.

The fix is to not retrieve the event mask in the
client thread, but instead wait for msg to be
handled in msg task thread before retrieving it.

Change-Id: I48562d028bbfa187732686c060b5cdd62c6d5a89
CRs-fixed: 2219519
2018-07-03 18:04:09 -07:00
Kevin Tang
feabf98840 Merge remote-tracking branch 'quic/location.lnx.3.9' into HEAD
Change-Id: I27b0712c0e34908ed07edd290661def5ef9917ea
CRs-Fixed: 2272544
2018-07-03 16:45:42 -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
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
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
Linux Build Service Account
95e5a78305 Merge "Add a getLocationOptions() function in TrackingOptions" 2018-07-02 15:10:42 -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
Harikrishnan Hariharan
59269e171e Add a getLocationOptions() function in TrackingOptions
Add a getLocationOptions() function in TrackingOptions to
return the LocationOptions object data associated with this
class. This is for use in client_api and location-hal-daemon.

Change-Id: Id725e1961dc390b8dac908575bb1686b16756057
CRs-Fixed: 2270936
2018-06-30 20:32:10 -07:00
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
Linux Build Service Account
3463e547e7 Merge "Checking return for ODCPI CB" 2018-06-28 19:49:34 -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
864d805332 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:43:43 -07:00
Linux Build Service Account
075e7acc0a Merge "fixed data items for service and cell info" 2018-06-28 08:49:23 -07:00
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
Hoss Zhou
1e871997d6 Fix: wrong string format operator
a log print in LocCloseMsg print a string without
dereferenced address, and it will cause null pointer
dereference.

Change-Id: I0daf7cbf09033e065e07825f842320ae5d2508cb
CRs-Fixed: 2259999
2018-06-28 14:13:22 +08:00
Kevin Tang
802e89fcdf fixed data items for service and cell info
which right now are not keeping any data into the SSOO's table,
therefore it is not able to determine if the new data arrives is
different than the current one. This results in not passing the
following data updates to the clients.

Change-Id: Ieb94e959228d9a9f8d43b090f3328208387d864f
CRs-Fixed: 2239616
2018-06-27 18:22:31 -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
Saurabh Srivastava
2ef3437f19 Checking return for ODCPI CB
Adding return value check for ODCPI
HIDL callback API.

CRs-Fixed: 2263480
Change-Id: I652a4717ab08f8a0c64b3bc0f78bae4e8f553513
2018-06-26 14:38:32 +05:30
Linux Build Service Account
309ff25859 Merge "Correct the nmea sv info in the first fix" 2018-06-25 09:53:28 -07:00
Yingjie Wang
81736d37ab Correct the nmea sv info in the first fix
Use the sv used info from postion report to correct nmea GPGSA in
the first fix and decouple from the sv report.

Change-Id: Ibc94f5b51f4112951a2bb13d83b757fa4088eb5c
CRs-fixed: 2261346
2018-06-22 14:15:22 -07:00
Yingjie Wang
ce82e3ba4a Correct the nmea sv info in the first fix
Use the sv used info from postion report to correct nmea GPGSA in
the first fix and decouple from the sv report.

Change-Id: Ibc94f5b51f4112951a2bb13d83b757fa4088eb5c
CRs-fixed: 2261346
2018-06-22 07:08:12 +08: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
Linux Build Service Account
0b9f927fa3 Merge "Set interval to large value for single mode" 2018-06-20 19:48:13 -07:00
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
383a8afbb2 Fixed wrongly changed year in header
Change-Id: I61d6406c9a45f5215bebb0a398319e159e490c69
CRs-fixed: 2206014
2018-06-19 10:06:15 -07:00
Linux Build Service Account
9676e39aa9 Merge "body frame uncertainty parameters in position report" 2018-06-19 09:53:38 -07:00
Bhavna Sharma
dc1e6f6f34 Changed to allow only locclient group to access
hal daemon

Move hal daemon socket creation to loc_client directory
Define uid/gid for locclient

CRs-Fixed: 2260194

Change-Id: Icaac885c19cd65b11254bb93b6a938b2d4595761
2018-06-18 19:20:13 -07:00
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
Bhavna Sharma
aac86a158a body frame uncertainty parameters in position report
added uncertainty parameters for longAccel, latAccel, vertAccel,
yawRate and pitch.

Change-Id: I804dc0b370dd78402a6641f5a16e5ee7a53ff9a1
CRs-Fixed: 2262454
2018-06-18 09:53:17 -07: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
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
Linux Build Service Account
f7981a3c11 Merge "SUPL connection enhancements" into location.lnx.4.0 2018-06-11 21:55:21 -07:00
Linux Build Service Account
7ebdafbe04 Merge "DataItem changes to fix incorrect NetworkInfo connect handling" into location.lnx.4.0 2018-06-11 18:28:13 -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
Kevin Tang
ccdb671f87 DataItem changes to fix incorrect NetworkInfo connect handling
NetworkInfoBaase added a type to allTypes protected method so
that derived class can use it. Also, the SystemStatusNetworkInfo
no longer compares names in its equal(), as it only is going to
return false when comparing GnssLocationProvider NetworkInfo and
OsAgent NetworkInfo.

Change-Id: I363f27f4ed7be4aab2a4c4c033d5dff69d0a47d9
CRs-Fixed: 2251564
2018-06-09 14:40:15 -07:00
Kevin Tang
2c817bdc58 Revert "Replace MONOTONIC clock with BOOTTIME clock"
This reverts commit e9c3f04f86.

Change-Id: Iabdead2a535b26bc3f7df1987265c4e2aea4f62e
CRs-Fixed: 2241735
2018-06-09 01:55:22 -07:00