Commit graph

1219 commits

Author SHA1 Message Date
Madhanraj Chelladurai
4b345c82ac gps: include support to check hardware type property
automotive platform introduced a new android property called
ro.hardware.type to detect automotive platform for the
purpose of having automotive specific features.

Added changes in loc_target to detect auto platform.

Change-Id: Ib886b96b2e95dafc151bead041e5fc3d6740c468
CRs-Fixed: 992647
2016-04-05 10:39:55 +05:30
Linux Build Service Account
804a1ec944 Merge "gps: consider nsec while ranking the timer objects" 2016-03-31 10:49:08 -07:00
Madhanraj Chelladurai
c4c29c3ca7 gps: consider nsec while ranking the timer objects
We need to consider nsec as well while ranking timer objects

Change-Id: Ieaad5dfa80b26b90e998618b3cbe1e590fc00839
CRs-Fixed: 991345
2016-03-31 10:25:22 -07: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
Naresh Munagala
70326c9146 Merge branch 'oe_master' into location.lnx-1
Change-Id: I08afb24e8b909ac173a14d741458df2ee023d960
CRs-Fixed: 995520
2016-03-28 14:51:47 +05:30
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
Madhanraj Chelladurai
14f0dc1b52 gps: consider nsec while ranking the timer objects
We need to consider nsec as well while ranking timer objects

Change-Id: Ieaad5dfa80b26b90e998618b3cbe1e590fc00839
CRs-Fixed: 991345
2016-03-18 10:56:42 +05:30
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
Deven Patel
285d395703 Revert "Revert "Fix compilation issues for m_master merge into oe_master"."
This reverts commit fa7a874eb0

Change-Id: Id2415d80fa3cbdc124e0a3bdd2722db7f233ad53
2016-03-15 12:20:25 -07:00
Deven Patel
a376de4826 Revert "Revert "Merging m_master changes to oe_master"."
This reverts commit a29688ff34

Change-Id: Iab525a58ddb6a00e119afe19f4f51b07b7f428f2
2016-03-15 12:20:01 -07:00
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
Deven Patel
a29688ff34 Revert "Merging m_master changes to oe_master".
This reverts commit 1aeb6bad84

Change-Id: Iec0a96e7cdfe55ef5836c92a2ae1cce407f6cd5e
2016-03-07 10:55:20 -08:00
Deven Patel
fa7a874eb0 Revert "Fix compilation issues for m_master merge into oe_master".
This reverts commit ecb67363ee

Change-Id: I7b540247b246ea4caf710247d2c58b55515dae7c
2016-03-07 10:52:46 -08:00
Saurabh Srivastava
e83eaa3a9a 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 03:52:32 -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
Kevin Tang
a05f77fa0b 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-03-02 21:45:22 -08:00
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
02cad4d981 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-23 01:47:33 -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
Ashish Dhiman
fff5a01dfe fix for compiler warnings
Change-Id: I838bfa2c66e77381be483c65b2b3bd68008a25b1
CRs-Fixed: 974489
2016-02-10 16:15:03 +05:30
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
Kevin Tang
ecb67363ee Fix compilation issues for m_master merge into oe_master
Fixed compilation issues for M upgrade

Change-Id: I602aa7c8a2db9682a1fe94b7ca892027281deec7
2016-02-04 10:06:28 -08:00
Kevin Tang
1aeb6bad84 Merging m_master changes to oe_master
Merging LA m_master changes to oe_master

merge head - 89f41a9b16

Change-Id: I9010487f1d6f3d2e30a568b441bc5f9b719a0fb1
2016-02-04 10:03:40 -08:00
Kevin Tang
89f41a9b16 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-30 06:56: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
Ashish Dhiman
f96e5dca06 gps: add SV polynomial parameter
enhancedIOD parameter in QMI needs to be added to HLOS driver
structures, and appropriate fix in structure members

Change-Id: If89de03ff69fabb3d57a7b7dafe957eb73302794
2016-01-07 12:13:08 +05:30
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
Kevin Tang
db367819e2 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-04 18:22:39 -08:00
Kevin Tang
46f999155d Reduce TBF limit in GPS HAL
Currently Location HAL forces TBF of 1 second or larger
even though ALM permits lower values. GPS HAL shall have
smaller limits as Modem code actually controls minimum
TBF value

Change-Id: I4a2bbd51da34e441f148275ec3c2c4fa9ece7599
CRs-Fixed: 951152
2016-01-04 16:17:34 -08:00
Linux Build Service Account
3a056d690f Merge "encode field separator characters" 2015-12-16 13:16:33 -08:00
ethan.kim
05ee1cc69d Set SUPL_ES to 0 in gps.conf
Disabled checking for emergency to accept SUPL

CRs-fixed: 860504

Change-Id: Iad1605242daf8fa1d6bcce3e69caff7811d9843a
2015-12-16 15:53:49 +05:30
Linux Build Service Account
4cfa967043 Merge "Add the support for geofence dwell" 2015-12-02 01:11:08 -08:00
Dante Russo
29a9152e50 NMEA generation change to prevent 2Hz reporting
GPGGA/GPRMC/GPGSA can be reported two times per
second in some cases where we lose all satellite
signals. We should report these NMEA sentences only
from position report to prevent this.

CRs-fixed: 884484

Change-Id: I123d9f074ca725703c6e90397160b701033e22f0
2015-11-27 13:06:47 +05:30
Linux Build Service Account
1e19c369f9 Merge "Add buffer length check for XTRA data" 2015-11-26 12:23:11 -08:00
Tushar Janefalkar
a4e5f9c150 Add buffer length check for XTRA data
To prevent reading beyond the length of
the buffer that contains XTRA data, a
check has been introduced assuming an
approximate limit for the size of the
data

Change-Id: I7e05beadec76c3308448b9198fd23c8e8b97394d
CRs-fixed: 420623
2015-11-26 00:32:17 -08:00
Dante Russo
557a4aa998 Remove reduntant clearing of GpsLocation memory
GpsLocation memory will now be cleared inside the
Loc Api handler itself, so no need to do it a second
time before calling into the Loc Api handler.

Change-Id: Iec37624621d6eb4806eb8e13c807bb4e40584e39
CRs-fixed: 726800
2015-11-25 22:30:10 -08:00
Jiafei Wen
34c44606e9 Add the support for geofence dwell
This change adds the support for
geofence dwell mask.

Change-Id: I4cbde8d3c49ef4ac287d34a88ea25787b507cdbe
CRs-Fixed: 940557
2015-11-25 19:10:06 -08:00
Vamana Murthi
fd7b78112e gps: enable measurement/poly reports only when AP DR enabled
GNSS Measurements and Polynomial reports need to be enabled
only when AP DR (EXTERNAL_DR_ENABLED=1) is enabled
in gps.conf

Change-Id: I13437d997e96a6403923d49f62f1e7c2f70e9c04
CRs-Fixed: 937944
2015-11-23 19:46:50 +05:30
Linux Build Service Account
f7ae18656c Merge "Location: reduce memory footprint" 2015-11-12 09:33:30 -08:00