Commit graph

130 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
4cfa967043 Merge "Add the support for geofence dwell" 2015-12-02 01:11:08 -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
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
Linux Build Service Account
9f830f906d Merge "Add 3 new fields in GPS and FLP pipe" 2015-09-24 21:35:40 -07:00
Linux Build Service Account
bd034a21f2 Merge "Sending FLP fixes to ULP" 2015-09-24 05:12:57 -07:00
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
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
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
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
082ad3c25d Merge "Move the flp definitions to gps-noship" 2015-08-21 08:44:22 -07:00
Jiafei Wen
87b6a3fff4 Move the flp definitions to gps-noship
This change moves those definitions related to FLP form
gps_extented_c.h to gps-noship.

Change-Id: I3da452fa3e885af509199cae9fe1b1f24ff48100
CRs-fixed: 801916
2015-08-18 14:47:47 -07:00
Tushar Janefalkar
cc9f8dc03b Add new event mask for timezone.
Modem sends this event to request for
injection of timezone and offset from
UTC

Change-Id: I664db892bf08f7df9680322405df4c38198cb465
CRs-fixed: 868532
2015-08-17 14:07:29 -07:00
Linux Build Service Account
7b819b2b03 Merge "Clear passing up memory for LocApiBase function" 2015-08-13 20:06:26 -07:00
Qiang Chen
923698ad8a Clear passing up memory for LocApiBase function
GpsLocation object need to be cleared in case
the base calss member function being called so
that no bad values will be passed up.

Change-Id: I224ecebb3e4137c1baddd99ce0211a0f60d3e5b4
CRs-fixed: 879356
2015-08-06 18:27:07 -07:00
Kevin Tang
bb5d2d4bfb Adding a number of utilities
LocHeap, LocThread, LocTimer, and moved MsgTask to
utils. Also added are LocRankable and LocRunnable
abstract classes.

Change-Id: I76975455d24f2c84a95dcc1b04f79fea562ea5ba
CRs-Fixed: 855222
2015-08-04 14:29:48 -07:00
Dante Russo
d0faf18e26 Remove DeleteAidingData additions
The additions of more Satellite types that
require gps.h changes are removed.

Change-Id: Ib0ab285af7b9bee886c5f7a256d638f2fd7fee9d
2015-07-16 10:08:11 -07:00
Dante Russo
2572d24770 Move modem power vote out of hal.
The modem power vote feature needs to move
out of hal as it has non-aosp dependency.

CRs-fixed: 831075

Change-Id: Ic83276e9d3c0d125a01f50719102fcd7c0455385
2015-07-16 10:07:49 -07:00
Dante Russo
1b07337c5a LCA additions to ULP and log_util defines.
1. Add two new ulp location sources (PIP and NLP)
ULP_LOCATION_IS_FROM_NLP to mark locations from NLP
ULP_LOCATION_IS_FROM_PIP to mark locations from PIP
2. Introduce a macro for printing exit log with error

CRs-Fixed: 694343

Change-Id: Ifa11803df2ed4fc249a5c339acfeeb5d89bf55d5
2015-07-16 10:07:13 -07:00
Linux Build Service Account
e768ded5ed Merge "Fix implicit declaration errors in gps hal." into private_m_master 2015-07-15 05:01:32 -07:00
Dante Russo
fb8732c9f5 Add compile flag to disable unsupported features.
Allows compilation on builds that have no support
for certain features

Change-Id: I067bcf88432d74b49e60eaab86409f178cf45e7d
2015-07-15 15:22:08 +05:30
Dante Russo
99606eb414 Fix implicit declaration errors in gps hal.
Including string.h and stdlib.h to fix compiler
errors

Change-Id: I4e79c71b9e5691e51850adcc52f52b36f8e3d088
2015-07-15 15:18:06 +05:30
Bhavna Sharma
f72e672afe Revert "Add new event mask for timezone"
This reverts commit 4e8b3506bf

Change-Id: I09a7ec9fdbeda62636df2a43bc6f3a633b978e99
2015-06-25 21:44:50 -07:00
Linux Build Service Account
2ba5e06544 Merge "Add new event mask for timezone" 2015-06-25 02:25:44 -07:00
Dante Russo
dd823bc93e Add glo and bds to used-in-fix mask
The used-in-fix mask is only keeping track
of GPS SVs, so add a used-in-fix mask for
GlONASS SVs and BDS SVs as well to avoid
NMEA generation issues

CRs-fixed: 826152

Change-Id: I33862cf8d40db1d667179ef68d18703edc359843
2015-06-22 17:43:36 -07:00
Tushar Janefalkar
4e8b3506bf Add new event mask for timezone
Modem sends this event to request for
injection of timezone and offset from
UTC

Change-Id: Ie94f660efc3163cbde243a9bccb94d37785349b3

CRs-fixed: 846501
2015-06-01 10:42:46 -07:00
Jiafei Wen
a284b9a83b Adding Mutex for Creating Context
Adding lock for creating foreground context
and background context, preventing any possible
race condition.

CRs-fixed: 820078
Change-Id: I7ace685622904ee2aa12f317540f9c04880acc70
2015-04-09 11:00:22 -07:00
Jiafei Wen
9431a6cb33 Send GPS tracking fixes to FLP HAL
FLP HAL accepts GPS tracking fixes for tracking,
so this change sends the tracking fixes to FLP
HAL while flp tracking is undergoing. Also, this
change adds batching options flags and batching
succeed/failure definitions.

CRs-fixed: 748687
Change-Id: I11a2ba337433d9a42c903d36fc980ee1a3983a1e
2015-02-13 12:03:37 -08:00
Dante Russo
407848e5cf GNSS measurement
Implementation of GNSS Measurements support.
In GPS HAL, Only GPS Measurements report
will be collected from modem.

CRs-fixed: 771496

Change-Id: Ief4368099df4ff573ad1a764f4156d63685e936d
2015-01-16 13:22:20 -08:00
Ruifeng Xu
98e1f83ff4 Added new events and masks for GDT AP
These events and masks are for bulk data transfer between AP and MP.

CRs-fixed:766059

Change-Id: Id795316a9b114d6984969ad9eadb8d2c66b1743b
2014-12-19 16:28:21 -08:00
Linux Build Service Account
3aa99e9fc5 Merge "Remove Redundant Log" 2014-12-09 20:44:38 -08:00
Dongmei Wang
836bdc4386 loc-pla: Create Platform Library Abstraction layer
Defined PLA functions to enable gps libraries to call
platform-dependent library calls transparantly. Removed
fake files and replaced the fake function with defined
PLA functions.

CRs-fixed: 605817

Change-Id: I677f658001329a10ef9b49bd963631a83fb4c85f
2014-12-05 15:15:33 -08:00