Commit graph

795 commits

Author SHA1 Message Date
Saurabh Srivastava
059605367a Enabling CLANG compilation
Removing LOCAL_CLANG := false from makefiles.
Couple of instances got added back as part of
LE merge.

Change-Id: I7d18d573c1d12597914124e35cb024df3343f0db
CRs-Fixed: 1021759
2016-05-30 23:09:50 +05:30
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
bc1348c515 Promotion of location.lnx.1.0-00036.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
992647   Ib886b96b2e95dafc151bead041e5fc3d6740c468   gps: include support to check hardware type property
1007417   Icc71de1fab3fd5967901c39a5c11eaea17b7766c   Default apn ip type to ipv4
1005413 1006831   I3a9e2219c1c9b4ca127a4b55f71b0a78a84cdd11   Use QMI_LOC_SET_NMEA_TYPES to set the NMEA sentences req

Change-Id: I9f01953ba3c18819c8a1a90dad18e350ddc93531
CRs-Fixed: 1007417, 1006831, 1005413, 992647
2016-05-06 00:17:15 -06: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
Madhanraj Chelladurai
edc2a648b3 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-27 23:43:17 -07:00
Linux Build Service Account
1fb9826d91 Merge "Default apn ip type to ipv4" into location.lnx.1.0-dev.1.0 2016-04-26 20:37:45 -07:00
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
Linux Build Service Account
9141f54c5a Promotion of location.lnx.1.0-00033.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1004488   Idc93f1ec9b1ccb548d3119e72ce0e3e797f2039f   fixing a LE compilation issue

Change-Id: Ife384c5b41002f8594d79627c67f6ec22d67bf12
CRs-Fixed: 1004488
2016-04-19 06:42:23 -07:00
Kevin Tang
f41f1960c4 fixing a LE compilation issue
missing include of a head file. A late check in for Android introduced
this. This blocks LE mainline switching to component model.

Change-Id: Idc93f1ec9b1ccb548d3119e72ce0e3e797f2039f
CRs-Fixed: 1004488
2016-04-17 12:42:19 -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
Linux Build Service Account
f5aa6dd063 Promotion of location.lnx.1.0-00031.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
999457   Id323dd058eddcf50d6fd9ec8908e9997b30c561b   Adding fix for KW warning

Change-Id: I8ccac5fc5e9aa5558e7311a80be7ba805d203ee8
CRs-Fixed: 999457
2016-04-16 09:39:18 -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
Linux Build Service Account
1c4e135463 Promotion of location.lnx.1.0-00029.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
935146   I9c3f970aa0f0ca0805fdc2e04aa809329b6a2676   Xtra client always reports carrier as 'unknown'
1002114   Id3d6e2c81eb6d5ee549236c591cc75ac32aa948b   gps: Remove dependency on libcutils.so
1002114   Id54e7b212b895c7a521e0252b7c99be8e295b0d9   loc-api: Fixing copyright
604905   I72285c7926814ec85dae64e6634f0c79ea5e6c51   Copy position mode to dummy ULP proxy
1002114   Iab9da5dbd2b0c779e18a6fe4615ad7e705800654   Correct print for xtra server urls.
1002114   I15a477d159375740047cd7386f8c8c5163fdaf87   Add LocApiProxyBase to context
595803   Iba5bbd00d535e7616c3a5de86641087a28e8ebfd   Add SGLTE target field in gps.conf
1002114   Iec0a96e7cdfe55ef5836c92a2ae1cce407f6cd5e   Revert "Merging m_master changes to oe_master".
476773   I8c05bb3ab6fdd3ec80d7fe3427160b2e29d7a0d0   loc_api_v02: Updating to loc api v02 idl Major:0x02, Min
1002114   If986fe059199dd752526dbe837fcf03b4b4d8002   remove link depedency to dsi_netctrl temporarily
420623   I7e05beadec76c3308448b9198fd23c8e8b97394d   Add buffer length check for XTRA data
1002114   Ifb0473f5d05c156f761c72e29f6592b443ee9cb3   loc-api: Making off-target garden-app build and run agai
554340   I029e5c3bbb9d8e89b220ca44e9704b5a1d1451ff   enhance ulp handshake
1002114   Id2415d80fa3cbdc124e0a3bdd2722db7f233ad53   Revert "Revert "Fix compilation issues for m_master merg
605814   I351426591f220075fa7a7cec776f4f86c837a3f6   loc-stub: Create a loc_stub library for stub func
600375   I7c21c5589259df4f1cb7ec2f850e708b2c4faa1a   Emergency SUPL
555829   I03ae100c4b7e65c95bac5841fcf00b27e2940741   Memset the xtra url to assure null termination
940557   I4cbde8d3c49ef4ac287d34a88ea25787b507cdbe   Add the support for geofence dwell
951144   I9bac4caa26e87741e5e82e16a8047af20ac8012b   Sub milli sec part in the relevant NMEA Strings
1002114   Ieffd21d0cb84d88d1304bb82bb5a54137cf967fd   loc-api: Exposing gps_get_hardware_interface to C code
995520   I7940429c369249ab9aa636fe9850c1281cf2dc01   Fix LA compilation issues after merge
975415   I602aa7c8a2db9682a1fe94b7ca892027281deec7   Fix compilation issues for m_master merge into oe_master
551808   I6fb7271ec0be5aec14e9d667c07e5b01b1736c1d   Check mAgpsEnabled for data call
975372   Ic241d4573bdf2e58c4e264e97bd41b56f882c791   make LocSharedLock::mRef ops atomic
951144   I9bac4caa26e87741e5e82e16a8047af20ac8012b   Sub milli sec part in the relevant NMEA Strings
605817   I677f658001329a10ef9b49bd963631a83fb4c85f   loc-pla: Create Platform Library Abstraction layer
533932   Icd626e3e7155d5c2ba871a343430e441924ce93c   Fix ATL handling
726800   Iec37624621d6eb4806eb8e13c807bb4e40584e39   Remove reduntant clearing of GpsLocation memory
605821   I54e1a9c742d1734ffa29e6864901119e0ee600c8   loc-hal:porting from ANDROID_LNX.LA.3.5.1_RB1.04.04.02.0
1002114   I7b540247b246ea4caf710247d2c58b55515dae7c   Revert "Fix compilation issues for m_master merge into o
881265   I3c895adc2ce1cef36032a25e3c6fd63e70350607   encode field separator characters
1002114   I94124bbbeb6d932a21fd6b1f5536d834f7185cd8   gps: Updating copyright.
1002114   Iab525a58ddb6a00e119afe19f4f51b07b7f428f2   Revert "Revert "Merging m_master changes to oe_master"."
1002114   I20960f1c087c9a6bf721ea3e25369590f5b2ce85   loc-api: Merging Makefiles of libloc_api_50001 and loc_a
538124   I716cf169de9dae164a141651af971793099a927d   Changes for liblbs_core
543639   I314fe6bc933e5201e1ac6c6632ee3b53240955b1   Add check for mAgpsEnabled
951152   I4a2bbd51da34e441f148275ec3c2c4fa9ece7599   Reduce TBF limit in GPS HAL
538143   I41be2121493c6a0b35a5726fd546eb0fa5e9b20c   Send status report msg through ULP
1002114   I32e750626704c5d0069723ee1ca949fda4a5505e   Add LocApi to get Zpp fix.
605821   I334ccf21f6e5d045d32c718cb060c67e167be733   Make off-target loc hal libraries built
643816   I803b26bce22f06910dcaa1ee057902b9381667bf   Migrating XTRA from gpsonextra.net to cloud based izatcl
599478   I106e50462ad810ca5baf452d7effc6459c135f6f   Fix for dsi_init failure

Change-Id: Id2616af95cef8449b9eb82ba7138520e5f186609
CRs-Fixed: 935146, 543639, 1002114, 600375, 605821, 940557, 975415, 881265, 951144, 951152, 995520, 599478, 554340, 533932, 538143, 538124, 726800, 595803, 551808, 605814, 605817, 420623, 643816, 975372, 476773, 604905, 555829
2016-04-13 06:08:45 -07:00
Saurabh Srivastava
5573c31749 Adding fix for KW warning
Fix for buffer overflow possibility for the thread name passed in to
pthread_setname_np() method.

Change-Id: Id323dd058eddcf50d6fd9ec8908e9997b30c561b
CRs-Fixed: 999457
2016-04-08 03:25:02 -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
Kevin Tang
1fbe5b2ff4 Merge commit 'refs/changes/97/1557997/2' into HEAD
Change-Id: I89b9c1e262dcd249589b507449d0921d1aabf3e5
CRs-Fixed: 995520
2016-04-06 09:47:14 -07:00
Linux Build Service Account
0493bacf4e Promotion of location.lnx.1.0-00026.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
991345   Ieaad5dfa80b26b90e998618b3cbe1e590fc00839   gps: consider nsec while ranking the timer objects

Change-Id: I3af70f12f1cd2c1cad71b889c82d64c6c51ae65a
CRs-Fixed: 991345
2016-04-06 02:02:11 -07:00
Linux Build Service Account
9e38acda5f Merge 8ef6c3cc1a on remote branch
Change-Id: I467ec5a84fc2b471d6f68936cec88a44c82b6627
2016-04-05 02:47:36 -06: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
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
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
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
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