Commit graph

1336 commits

Author SHA1 Message Date
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
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
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
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
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
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
Linux Build Service Account
8f69a35785 Merge "fixed data items for service and cell info" into location.lnx.3.9 2018-06-07 22:16:57 -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
Linux Build Service Account
53695be16c Merge "Vote for internal modem only" into location.lnx.4.0 2018-06-06 22:36:25 -07:00
Linux Build Service Account
bbfa97a329 Merge "Include filesystem_config header from cutils" into location.lnx.4.0 2018-06-06 15:43:27 -07:00
Kevin Tang
dd85ce83f3 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-06 15:35:57 -07:00
Kevin Tang
4c4660c11b 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-06 14:08:40 -07:00
Mike Cailean
5891ffe9bc 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-06 11:32:54 -07:00
Mike Cailean
745505e5be Vote for internal modem only
Vote for internal modem only in power vote
temporary fix until we process a .jsn file

Change-Id: I732f920a0c18976b0f1323501e0e5541b11d5887
CRs-fixed: 2247589
2018-06-06 11:14:40 -07:00