Commit graph

620 commits

Author SHA1 Message Date
Dante Russo
d30694acf6 Rename GnssSvStatus to QtiGnssSvStatus
Change-Id: Ieeeb03af37440214f4762d495d949b4ab59ed237
2016-04-14 12:28:28 -07:00
Linux Build Service Account
9e38acda5f Merge 8ef6c3cc1a on remote branch
Change-Id: I467ec5a84fc2b471d6f68936cec88a44c82b6627
2016-04-05 02:47:36 -06:00
Linux Build Service Account
8ef6c3cc1a Promotion of location.lnx.1.0-00025.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
978745   I7ab0e92c7ed4ce73be11909eefe0d570a1a0fc1e   Adding a new NMEA sentence : $GNGSA.
989476   I2eaba5a89e64088e3383b962dceaaa7e975e997a   Enabling CLANG compilation and fixing all resulting erro

Change-Id: I42005bade478892728a78b2613f41bb5b29980aa
CRs-Fixed: 989476, 978745
2016-03-28 23:38:02 -07:00
Linux Build Service Account
7908e78974 Merge "Enabling CLANG compilation and fixing all resulting errors" into location.lnx.1.0-dev.1.0 2016-03-24 19:04:28 -07:00
Saurabh Srivastava
217e754489 Enabling CLANG compilation and fixing all resulting errors
Removing statement to set LOCAL_CLANG flag explicity to
true. It will be true by default.

Change-Id: I2eaba5a89e64088e3383b962dceaaa7e975e997a
CRs-Fixed: 989476
2016-03-17 12:33:17 +05:30
Linux Build Service Account
f8429aa563 Promotion of location.lnx.1.0-00020.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
974961   I3c8b8ba97c5b2eafa7337d580681044b973c5bea   Additional Position Prameters in position report

Change-Id: I43fde64123dfaa2b93fb0630418f74ce0e0e2ad8
CRs-Fixed: 974961
2016-03-08 07:19:42 -08:00
Saurabh Srivastava
1a2040c1fe Adding a new NMEA sentence : $GNGSA.
Currently only $GPGSA was being generated for GPS satellites.
This change adds $GNGSA for GLONASS satellites as well.

Change-Id: I7ab0e92c7ed4ce73be11909eefe0d570a1a0fc1e
CRs-Fixed: 978745
2016-03-04 15:12:35 +05:30
Linux Build Service Account
5c8127c10d Promotion of location.lnx.1.0-00018.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
953942   I2a5f10fa7d27be9253e9ca6f34c0c886285d1b11   fixes SUPL_MODE

Change-Id: I5d023074630dac4cdd9fd5207fc5c89924dcc509
CRs-Fixed: 953942
2016-03-01 22:27:45 -08:00
Linux Build Service Account
bf0959bbd9 Merge "Additional Position Prameters in position report" into location.lnx.1.0-dev.1.0 2016-03-01 02:55:43 -08:00
Linux Build Service Account
43baa0c25e Promotion of location.lnx.1.0-00016.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
975372   Ic241d4573bdf2e58c4e264e97bd41b56f882c791   make LocSharedLock::mRef ops atomic

Change-Id: I5b9e3ed50b1a7545093cbefe5c46052a5e82fa75
CRs-Fixed: 975372
2016-02-23 03:06:24 -08:00
Kevin Tang
59af75a225 fixes SUPL_MODE
carrier specific SUPL_MODE is not updated upon sim card insert.
gpc_conf must be updated with the new value for config to be
updated.

Change-Id: I2a5f10fa7d27be9253e9ca6f34c0c886285d1b11
CRs-Fixed: 953942
2016-02-22 14:57:09 -08:00
Kevin Tang
6060fb7c6b Additional Position Prameters in position report
Updated gps_extended_c.h to include few
additional position parameters

Change-Id: I3c8b8ba97c5b2eafa7337d580681044b973c5bea
CRs-Fixed: 974961
2016-02-21 21:39:35 -08:00
Kevin Tang
411951c341 make LocSharedLock::mRef ops atomic
The current share() and drop() calls are not thread
safe, which can cause memory heap correuption. This
changes the read / write ops to be atomic.

Change-Id: Ic241d4573bdf2e58c4e264e97bd41b56f882c791
CRs-Fixed: 975372
2016-02-19 12:38:43 -08:00
Linux Build Service Account
4736e4b11d Promotion of location.lnx.1.0-00015.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
974592   Ifb9bfe9b3afff224fd3cfe6ec718f3c3cbe45987   Remove unneeded nmea_cb print

Change-Id: Ibe40352b5da91e31bb9e7f329846e01662f41970
CRs-Fixed: 974592
2016-02-16 08:47:06 -08:00
Dante Russo
41961e47d5 Remove unneeded nmea_cb print
The nmea_cb print can cause excess logging

Change-Id: Ifb9bfe9b3afff224fd3cfe6ec718f3c3cbe45987
CRs-fixed: 974592
2016-02-10 16:34:24 -08:00
Linux Build Service Account
b4b259e05c Promotion of location.lnx.1.0-00011.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
940557   I4cbde8d3c49ef4ac287d34a88ea25787b507cdbe   Add the support for geofence dwell

Change-Id: Ifb4049c0a7d81093caf8a83277abba90fc394ac8
CRs-Fixed: 940557
2016-02-06 08:18:14 -08:00
Jiafei Wen
625c8c6e4e Add the support for geofence dwell
This change adds the support for
geofence dwell mask.

Change-Id: I4cbde8d3c49ef4ac287d34a88ea25787b507cdbe
CRs-Fixed: 940557
2016-01-22 11:24:20 -08:00
Linux Build Service Account
5652401066 Promotion of location.lnx.1.0-00008.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
881265   I3c895adc2ce1cef36032a25e3c6fd63e70350607   encode field separator characters
923601   Ib6bf917f84d1224e296e91b4fb33b41d6e2c2531   Add support for dynamic TBF updating
935146   I9c3f970aa0f0ca0805fdc2e04aa809329b6a2676   Xtra client always reports carrier as 'unknown'
951144   I9bac4caa26e87741e5e82e16a8047af20ac8012b   Sub milli sec part in the relevant NMEA Strings

Change-Id: Iddadd149330bf1bebcdae8fb3a65d8aca93278b4
CRs-Fixed: 923601, 935146, 881265, 951144
2016-01-20 23:33:22 -08:00
Linux Build Service Account
23bfc84541 Merge "Sub milli sec part in the relevant NMEA Strings" into location.lnx.1.0-dev.1.0 2016-01-14 17:36:30 -08:00
Ruifeng Xu
9b9d777c63 encode field separator characters
Replace all separator characters ('/','+','|','%') in the raw string
by their corresponding encodings (%2F","%2B","%7C", "%25")

Change-Id: I3c895adc2ce1cef36032a25e3c6fd63e70350607
CRs-fixed: 881265
2016-01-14 08:24:09 -08:00
Ruifeng Xu
fbbbb4f391 Xtra client always reports carrier as 'unknown'
The problem was caused by populating the carrier upon phone bootup
when the the property maybe not initialized yet. This module is
updated to remove the populating code of carrier in phone bootup.

Change-Id: I9c3f970aa0f0ca0805fdc2e04aa809329b6a2676
CRs-fixed: 935146
2016-01-14 08:23:20 -08:00
Kevin Tang
1c11832352 Sub milli sec part in the relevant NMEA Strings
NMEA Strings should introduce the sub milli sec part in the
relevant NMEA Strings for NHZ Sessions

Change-Id: I9bac4caa26e87741e5e82e16a8047af20ac8012b
CRs-Fixed: 951144
2016-01-06 14:34:30 -08:00
Jiafei Wen
88c17ef7d7 Add support for dynamic TBF updating
This change adds the support for checking
if modem support dynamic TBF updating.

Change-Id: Ib6bf917f84d1224e296e91b4fb33b41d6e2c2531
CRs-Fixed: 923601
2016-01-04 18:30:07 -08:00
Linux Build Service Account
f7ae18656c Merge "Location: reduce memory footprint" 2015-11-12 09:33:30 -08:00
Valeri Atamaniouk
78bb13288e Location: reduce memory footprint
Reduce memory footprint by moving data sets into const
data segments. Update function parameters to accept const
parameters when appropriate.

CRs-fixed: 928770
Change-Id: I42955cf18de2b0541cfaed89359cdcf9ae6fea8a
2015-11-09 11:33:15 +02:00
Bhavna Sharma
c9a243bc15 Move some debug logs to verbose.
While it is important to continue to log events
at debug level logs, logging all data may not be
as important. Moving such logs to verbose level

CRs-Fixed: 936031

Change-Id: I634d173b645180d55d620a24cce2c31aee966b8f
2015-11-06 20:42:13 -08:00
Linux Build Service Account
15ea4fca38 Merge "set LPP CP as default" 2015-10-16 09:09:27 -07:00
Linux Build Service Account
f0a11ae99a Merge "missing util header file" 2015-10-15 10:51:54 -07:00
Kevin Tang
0b4a33bc45 missing util header file
causing the unit test builds failure.

Change-Id: Id65290c0198904eda020b566e6636b0bb772aa1d
2015-10-09 16:10:40 -07:00
Qiang Chen
56a5a75a22 set LPP CP as default
LPP CPP E911 is required by
many carriers on LTE.

Change-Id: If0d3a3107652e114bfdf7fbb59fe648cb3ddd940
CRs-fixed: 919242
2015-10-09 10:47:42 -07:00
Dante Russo
9336256027 Add support for new sockaddr_storage struct
In order to handle ipv6 requests, a new struct
is being used instead of an array to store ipv6
info

CRs-Fixed: 817295
Change-Id: I030d4206c01724f08b311697f0bbefb1f9fd10e6
2015-10-07 10:25:06 -07:00
Linux Build Service Account
7fc64a6c2f Merge "another potential race condition" 2015-10-03 21:37:27 -07:00
Linux Build Service Account
e8c149a153 Merge "Opt out of clang till issues are fixed" 2015-10-03 09:38:13 -07:00
Kevin Tang
9b3aa46ebb another potential race condition
LocTimer on timeout would currently delete timer delegate.
This meddles into the management of LocTimer::stop() call,
and the order of obj delete needs to be synchronized in a
few different places as a result.

This change lets the delete of the timer delegate obj fold
into the stop() handling, which would be easier to synch.

Change-Id: Ic3e0b3d183dceb9e6e2db4c47ec9d6e296b0c3f6
CRs-Fixed: 916590
2015-09-30 14:03:36 -07:00
Linux Build Service Account
f75c6e0f7b Merge "Fix for Cppcheck warnings" 2015-09-24 21:35:41 -07:00
Linux Build Service Account
9f830f906d Merge "Add 3 new fields in GPS and FLP pipe" 2015-09-24 21:35:40 -07:00
Aravind Asam
68104bd701 Opt out of clang till issues are fixed
Needed for moving to clang

Change-Id: I5922c62cb2f6efc297120c5a359c92a82260f3a7
2015-09-24 16:30:36 -07:00
Linux Build Service Account
bd034a21f2 Merge "Sending FLP fixes to ULP" 2015-09-24 05:12:57 -07:00
Vamana Murthi
e9e399737b Fix for Cppcheck warnings
Fixed cppcheck warnings reported by customer

Change-Id: Ia6cf5e940d204111d8354f9eec71ac816a142719
CRs-fixed: 901373
2015-09-24 13:34:17 +05:30
Jiafei Wen
bf80dfb9e9 Add 3 new fields in GPS and FLP pipe
To support next version of GTP AP protocol,
this change adds the support for the below
3 fields in GPS pipe and FLP pipe :
  1). heading_unc
  2). horizontal_reliability
  3). vertical_reliability

Change-Id: If51c38f9159f372c2b2c12fbb55d123958cfee95
CRs-Fixed: 898876
2015-09-23 18:01:06 -07:00
Linux Build Service Account
30173edcf2 Merge "Crash fix with MsgTask API change" 2015-09-23 01:53:49 -07:00
Jiafei Wen
eb01e397ed Sending FLP fixes to ULP
For crowd sourcing, FLP HAL needs to share
with ULP the flp fixes in real time. This
change is making FLP HAL to send flp fixes
to ULP.

Change-Id: I1a852ec69db8eb50de5c18b03205d1b488cfd4b0
CRs-fixed: 874928 878064
2015-09-22 22:37:57 -07:00
Linux Build Service Account
c40ded235a Merge "Set SUPL_ES to 0 in gps.conf" 2015-09-22 15:33:58 -07:00
Kevin Tang
94ecbf6804 Crash fix with MsgTask API change
Removed tCreate and tAssociate from MsgTask. LocThread
now can optionally take a tCreate method. Associator is
replaced with *firstMsg* option to MsgTask, which is a
more generic option, that can associate or do other set
up job at the create of a MsgTask.

The current MsgTask doesn't use tCreate, which exposes
a slight time window for Location HAL when its MsgTask
is NOT associated to DVM heap but a message delivery to
DVM could be attempted during this time.

Change-Id: Iafd5b91b693baacb9b7064463f8c44f74026f54c
CRs-Fixed: 902350
2015-09-21 14:45:58 -07:00
Linux Build Service Account
049cc84d3a Merge "timer bug fix" 2015-09-19 15:13:48 -07:00
Kevin Tang
088a127c31 timer bug fix
when a ticking timer is stopped, currently kernel doesn't
get updated with the next immediate timer's interval. As a
result, kernel timer will expire sooner (with the stopped
timer's interval), and the next timer's client is notified
for this expiration.

Change-Id: I0d67d1418cb9bfe7f70ae71252901d4c6bb699b3
CRs-Fixed: 909776
2015-09-18 09:30:33 -07:00
Ruifeng Xu
9c22ef8bca fixed XTRA bug
The change included the following fixes:
increased buffer size to hold the initial UA string;
use file for saving the initial UA string

Change-Id: I52ef94e57695f1411a34e338e89325de382b09b5
CRs-fixed: 905170
2015-09-11 13:51:26 -07:00
Linux Build Service Account
c1021a05dc Merge "fixing a crash vulnerability due to race condition" 2015-09-11 07:24:11 -07:00
Kevin Tang
9957a19f5f fixing a crash vulnerability due to race condition
LocTimer::stop() can be called from different threads, which must
be protected. Currently there is a race condition between back to
back stop()'s or expire() + stop() events.

Change-Id: Iae80b78f049a32da87639f813c6f5126b4ccd072
CRs-Fixed: 904627
2015-09-09 10:06:50 -07:00
Kevin Tang
623f5a6fc5 adding dev id into xtra user agent
setting XTRA_USER_AGENT at GPS HAL init time, incorporating
Android sw version, manufacturer, model, board.

CRs-Fixed: 788356

Change-Id: I8d9dcc80a0769796a25a0477f5f1598a292fe8b0
2015-09-02 10:09:14 -07:00