Commit graph

284 commits

Author SHA1 Message Date
Linux Build Service Account
17e8653d96 Merge "LPPe feature support." 2016-06-21 00:41:28 -07:00
Linux Build Service Account
023ea00a29 Merge "Enable/disable PDN for emergency SUPL at runtime" 2016-06-21 00:41:22 -07:00
Kevin Tang
5ceb69dc42 Enable/disable PDN for emergency SUPL at runtime
This feature makes AGPS enable/disable PDN for
emergency SUPL according to new setting in
gps.conf when SIM is replaced at runtime

Change-Id: Idbc086b938ded02ba702ea080ded69e9b4761e46
CRs-fixed: 1026702
2016-06-20 10:37:36 -07:00
Bhavna Sharma
310aa84028 LPPe feature support.
Add two new configuration parameters for LPPe, one
to configure technologies for LPPe in Control-Plane and one
to configure technologies for LPPe in User-Plane

Crs-Fixed: 974312

Change-Id: If664a6dc90a993171ca1221f074ecc1ecd06a106
2016-06-15 15:33:22 -07:00
Kevin Tang
2fc8de7ad4 making SUPL ES run time configurable
SUPL ES gets updated as part of the sim specific
AGPS config hot swap update. We keep that lastest
SUPL ES and send that as part of the NI request,
to let NI handler to know the config status.

Change-Id: I566725d5db9b3abdbd9a423b86c10b819217f4f6
CRs-Fixed: 1024879
2016-06-14 16:27:28 -07:00
Ruifeng Xu
0aa6e3aee9 multiple XTRA downloaders could be triggered on boot up
Disable loc xtra apis to allow only one XTRA downloader
when other XTRA downloader is enabled.

Change-Id: I0183608f801cdc6a7d7db730d5d633e556c95386
CRs-fixed: 1022064
2016-06-13 12:05:33 -07:00
Linux Build Service Account
e090bfde99 Merge "Move local gps/sap configuration to Context" into location.lnx.2.0-dev 2016-05-28 23:37:56 -07:00
Dante Russo
183e295b9b Move local gps/sap configuration to Context
gps/sap configuration is moved from a global
variable in loc eng to a static in ContextBase,
so that it is more accessible without having to
link with loc eng for access.

CRs-fixed: 1012772

Change-Id: I74bf456b44fab3a2db016ef4c4b4b3a2b8cde1b2
2016-05-27 15:56:43 -07:00
Harikrishnan Hariharan
05f58605e1 Return the correct length of nmea sentence.
Return the correct length of nmea sentence in the
function loc_eng_nmea_put_checksum(). The correct
length is length of NMEA string including ‘$’
character alongwith length of checksum.

Change-Id: I45a086190008df79a93b9386bc69d9c50e47c93b
CRs-Fixed: 1020044
2016-05-25 13:20:32 +05:30
Vamana Murthi
35877af173 Merge remote-tracking branch 'origin/location.lnx.1.0-rel.1.0' into HEAD
git merge upto CRT tag location.lnx.1.0-00036 to private_n_location.lnx

Change-Id: I922daaa9a8c2745095ec9d425192d3649657e76c
CRs-Fixed: 1015000
2016-05-12 18:11:31 -07:00
Linux Build Service Account
7bf29855bf Merge "XTRA Client 2.0" 2016-04-29 15:19:56 -07:00
Linux Build Service Account
83144d0f32 Merge "Use QMI_LOC_SET_NMEA_TYPES to set the NMEA sentences required." into location.lnx.1.0-dev.1.0 2016-04-29 14:38:14 -07:00
Harikrishnan Hariharan
2d9840bcee Use QMI_LOC_SET_NMEA_TYPES to set the NMEA
sentences required.

If NMEA_PROVIDER=1, HLOS needs to use the QMI type
QMI_LOC_SET_NMEA_TYPES to set the type of NMEA
sentences it needs. This will register for all
possible NMEA sentences and instructs modem to
send whatever it supports.

Change-Id: I3a9e2219c1c9b4ca127a4b55f71b0a78a84cdd11
CRs-Fixed: 1005413 1006831
2016-04-29 23:13:33 +05:30
Dante Russo
04e6ca93b9 Default apn ip type to ipv4
If a apn ip type is not found for a agps
data connection, default to using ipv4
instead of invalid.

CRs-fixed: 1007417

Change-Id: Icc71de1fab3fd5967901c39a5c11eaea17b7766c
2016-04-26 16:31:16 -07:00
Kevin Tang
f97a97d0d1 fixed a copy paste error
should NULL check set_system_info_cb instead.

Change-Id: If3a4f4bdb3025d92c1fcd2af320fd370d51301aa
2016-04-16 23:41:45 -07:00
Ruifeng Xu
d4c4fbf56b XTRA Client 2.0
This project implemented XTRA "Enhancements" grouped as XTRA Client 2.0.
1. Added NTP_SERVER config into gps.conf
2. Removed XTRA Client 2.0 Phase 1 code changes
3. Disabled public api to delete aiding data in user build

CRs-fixed: 917950
Change-Id: I18b31da74c9fe0c24d0ced3770f099197ad32d9a
2016-04-15 16:10:34 -07:00
Mike Cailean
c3a4fba9b8 Support GnssMeasurement
Support the new GnssMeasurement and GnssClock
data structures for the new gps.h

Change-Id: I40e00711501432760c82d27fb82702b1bf57ebb6
2016-04-14 12:45:53 -07:00
Dante Russo
d30694acf6 Rename GnssSvStatus to QtiGnssSvStatus
Change-Id: Ieeeb03af37440214f4762d495d949b4ab59ed237
2016-04-14 12:28:28 -07:00
Naresh Munagala
8f54f693ee Fix LA compilation issues after merge
Fixed compilation issues for LA after merging
oe_master with location.lnx.1.0-dev.1.0.

Change-Id: I7940429c369249ab9aa636fe9850c1281cf2dc01
CRs-Fixed: 995520
2016-04-06 09:48:43 -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
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
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
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
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
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
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
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
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
Linux Build Service Account
3a056d690f Merge "encode field separator characters" 2015-12-16 13:16:33 -08:00
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
Ruifeng Xu
c53037dc6a 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
2015-11-10 17:35:59 -08:00
Ruifeng Xu
30c54b87d9 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
2015-11-09 16:22:55 -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
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
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
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
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
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
Linux Build Service Account
f2f492bd5b Merge "Handle race condition in HAL post SSR" 2015-08-25 08:05:05 -07:00
Linux Build Service Account
5501f7e1a2 Merge "memory management fixes" 2015-08-21 08:44:24 -07:00
Hema Iyer Sankaranarayanan
a50aaae62e Handle race condition in HAL post SSR
Post SSR, ensure necessary config injection is done before restarting
an existing tracking session

Change-Id: I1bec8ff1cab3a9762e73a13958fe91c62f40fb92
CRs-fixed: 888187
2015-08-20 13:18:27 -07:00