Commit graph

1388 commits

Author SHA1 Message Date
Kevin Tang
0a19651316 GPS: unify buffer size passed to retrieve string with loc cfg
Loc cfg parsing routines assuming that string buffer size is
LOC_MAX_PARAM_STRING. Changes are to make sure that
caller to loc cfg routine does use that buffer of size
LOC_MAX_PARAM_STRING.

Change-Id: Icecf6bf017e6dda1da0766adc746f60d471653d0
CRs-fixed: 2301437
2018-08-24 16:57:57 -07:00
Bhavna Sharma
d2980eb906 GpsLocationExtended: Add heading rate support
Add heading rate for DRE engines to report heading rate

Change-Id: I3ea5921a0cac1b0f7efdaabc2e26d58295deda68
CRs-fixed: 2297348
2018-08-22 09:52:44 -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
Linux Build Service Account
a190b2c116 Merge "GNSS_NI_RESPONSE_IGNORE handling" 2018-08-20 18:45:20 -07:00
Linux Build Service Account
1bc192e57f Merge "Filter DataItems with suitable way." 2018-08-20 00:38:28 -07:00
Linux Build Service Account
3b52c3ac19 Merge "Add support for multiband data" 2018-08-17 19:20:37 -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
Baili Feng
de454e21f6 Filter DataItems with suitable way.
We should carefully modify unordered_set when traversing it.
Update the iterator with the return value of erase function.

Change-Id: I777f42b077502f617a513128db9a4f3b7c9a322c
CRs-Fixed: 2288358
2018-08-16 19:11:13 +08:00
Kevin Tang
a030bf9baa GNSS_NI_RESPONSE_IGNORE handling
GNSS_NI_RESPONSE_IGNORE inaverdently mapped to NO_RESPONSE,
which is a different reponse code. The two should be handled
differently.

Bug: 111770241
CRs-Fixed: 2296845

Change-Id: If2697f51c07a0272841709bfca247daaa4e963b6
2018-08-14 21:35:21 -07:00
Linux Build Service Account
329de0d44f Merge "SAP:update SENSOR_CONTROL_MODE configuration" 2018-08-14 03:46:00 -07:00
Bhavna Sharma
2124941746 Add support for multiband data
CRs-Fixed: 2289264

Change-Id: I5339870e8be3247b445203dad39e6f8522a64575
2018-08-13 11:18:18 -07:00
Linux Build Service Account
4088ca58bc Merge "Disable GTP CELL and GTP WAA feature." 2018-08-10 02:21:30 -07:00
Katz Yamada
8a752aa1b3 Systemsatus - add support older version of PQWME
Add support of older (shorter) version of PQWME
strings from modem. Systemstatus currently discards
those shorter strings. This change is to fill out
all zeros in those missing fields instead of
discarding the whole sentence.

Change-Id: I31c42b6de53c3002f598cfd815304086bba056f9
CRs-Fixed: 2153513
2018-08-08 20:42:19 -07:00
Ashish Dhiman
f8f7e876e3 Disable GTP CELL and GTP WAA feature.
Disable GTP_CELL and GTP WAA feature as it will not work with
GTP_AP_MODE 4

CRs-Fixed: 2288722
Change-Id: I88cbb05030c1588fb2be30c3de41839208bb14c0
2018-08-08 04:07:02 -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
Linux Build Service Account
148224c378 Merge "Delete LocApiBase and derived class on msgTask thread" 2018-07-31 04:01:57 -07:00
Kevin Tang
a8f926020f Delete LocApiBase and derived class on msgTask thread
Direct delete of the API obj on caller thread could result
in a race condition that caller still has close() or other
handling running at the same time the API object is being
or already deleted.

CRs-Fixed: 2275383

Change-Id: I5d3de204befec3c22c73cece8516e90800abbd35
2018-07-30 16:17:37 -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
Linux Build Service Account
19c10059bc Merge "Added FDCL_2 feature support bit" 2018-07-27 07:45:39 -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
Kevin Tang
6a12f3743f Added FDCL_2 feature support bit
Added FDCL_2 feature support bit

Change-Id: Icae2cf89f06f8d1d8d87c8115fe8efce9ccc566a
CRs-Fixed: 2191059
2018-07-25 16:40:28 -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
Dante Russo
06d93da4a1 Deprecate reading of ro.lean property
ro.lean property is no longer used, so remove
reading logic of this property. If ro.lean is
added in the future, it will need vendor prefix.
Change-Id: I6b5e891f6d59c0809f9136541bbfb6696cbf4d5a
CRs-fixed: 2282702
2018-07-23 17:58:04 -07:00
Linux Build Service Account
6bb4b271cf Merge "Add a timer for better handling of ODCPI/DBH" 2018-07-23 13:58:14 -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
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