Commit graph

238 commits

Author SHA1 Message Date
Jiafei Wen
d538916928 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-03-01 10:38:19 -08: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
Hans Chang
33552b272d AU_LINUX_ANDROID_LA.AF.1.1.05.00.02.164.175 based on quic/aosp/LA.AF.1.1
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlTQKUkACgkQoUgPZYCpAfGAUgCgyH0kEyUtVhZ09+T3w4VfnZqK
 Id8An3JkWK9QhlXZ9Q2zT8T7LR5/T2ls
 =8mx/
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_LA.AF.1.1.05.00.02.164.175' into 111

AU_LINUX_ANDROID_LA.AF.1.1.05.00.02.164.175 based on quic/aosp/LA.AF.1.1

* tag 'AU_LINUX_ANDROID_LA.AF.1.1.05.00.02.164.175':
  GNSS measurement
  Added new events and masks for GDT AP
  gps.conf parameters are in sap.conf table
  Enable "auto" target for APQ8960 Automotive ADP platform
  support reinjecting supl url for sim hot swap
  Remove Redundant Log
  Report 2D speed rather than 3D speed.

Conflicts:
	core/gps_extended_c.h

Change-Id: Ibe1207ac07a2931003f5fa34ae68d8c1e6512eeb
2015-02-08 15:50:40 -08:00
Kevin Tang
2794061c73 Propagate DR enablement feature from LNX.LA.2.7.3
Change Summary:
* Changes taken from change#812357;
* Structure definitions for GNSS SV Measurement and GNSS SV
  Polynomial to report it to ULP and to external DR module;
* New function additions in LocApiBase, LocAdapterBase and
  LocEngAdapter to report SV Measurement and SV Polynomial;
* definition and changes to detect "auto" platform in loc_target;
* enable SV Measurement and SV Polynomial report for "auto"
  platform;

Change-Id: I5ac5ee5c44e72e657b16515e37637c9a5c64e638
2015-01-24 15:35:16 -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
Dongmei Wang
3e16bc32b5 Make off-target loc hal libraries built
CRs-fixed: 605821

Change-Id: I334ccf21f6e5d045d32c718cb060c67e167be733
2014-12-04 23:09:20 -08:00
Dongmei Wang
91ece00117 loc-hal:porting from ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.040
It contains the following changes:
- porting from AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.040
- updated package loc-api files according to the merge
- rename loc-api to loc-hal
- dynamically load liblbs_core.so.1 file for LE platforms
- print a warning message when loading the lbs_core library fails

CRs-fixed: 605821

Change-Id: I54e1a9c742d1734ffa29e6864901119e0ee600c8
2014-12-04 23:07:12 -08:00
Jiafei Wen
a328080552 Remove Redundant Log
This change removes redundant log
printing, including SV info and
position report.

Change-Id: Ifcf827f73e6c940e3fcb93402bc7a4b22e9a9d4e
CRs-fixed: 765333
2014-12-02 12:00:51 -08:00
Kevin Tang
1ca544cfb5 SUPL_MODE needs to be factored in for ULP
GpsLocationProvider gets SUPL_MODE, and passes is to
GPS HAL along with other configs upon sim hot swap.
GPS HAL needs to parse it out and factor in that
information in for ULP so that ULP can make correct
decision w.r.t. position mode when gnss positioning
is needed.

Change-Id: I1a14dd9d9e47b5d7ea072ae08ee99bbb7c69dbe0
CRs-Fixed: 749794
2014-11-12 19:02:58 -08:00
Kevin Tang
af2762ceca GPS_LOCK configuration support
GPS_LOCK is defined as a bit mask in the higher layer
defined in gps.conf. GPS HAL reads from gps.conf, yet
this can be reconfigured by gps.h defined new API to
a different value. The current value will be used at
cleanup() time, to optionally lock gps modem to the
configured mode.

This changs also sets SUPL URL to NULL if hostname
comes with set_server() API is a NULL string.

Also optimized configuration_update() implementation
so that no all items will go through the reconfigu
scan.

Also added SUPL_MODE as a parameter in gps.conf which
can be uncommented to over-write the value from config.xml.
This can be used for testing purposes

Bug: 16131208
Bug: 17288144

CRs-fixed: 736966
Change-Id: I12a89b12ff82b6efd7b5567d2fcd6a7e79414c71
2014-10-20 15:00:31 -07:00
Jiafei Wen
90378134ea Checking messages supported or not
When device boots up, get a list of message
supported by modem, based on which some adapeters
will be able to update register masks.

CRs-fixed: 601349
Change-Id: I6af282f8e551f1f3c6bf8795e968fdbc7b0a9fa3
2014-10-04 12:27:26 -07:00
Zhoulu Luo
9fe51b7593 AU_LINUX_ANDROID_KK.04.04.04.010.161 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlQYPVMACgkQoUgPZYCpAfFH4gCeMO6B2RcmkK4FiGKyMAGyby70
 q1kAoKNW3qC2PpZ2TR02ASrbkjfuyjJv
 =+Hrp
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.161' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.161 based on quic/aosp/kk

Conflicts:
	loc_api/libloc_api_50001/loc_eng.cpp
	loc_api/libloc_api_50001/loc_eng.h

Change-Id: Ib51f82aa83a2aa7ea63a10efffe5e7eef8a5d135
2014-09-18 12:26:41 -07:00
Linux Build Service Account
8a5b0aaa29 Merge "add support for apq8026_lw" 2014-08-31 08:23:48 -07:00
Dante Russo
06ccada997 add support for apq8026_lw
LW gets a stripped down feature set

Change-Id: If46a2e369e8bc8adb33629a0d0bccffb60da9d10
2014-08-27 12:27:58 -07:00
Sudhir Sharma
11a39d65a8 AU_LINUX_ANDROID_KK.04.04.04.010.110 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlP0pJ4ACgkQoUgPZYCpAfEsUwCdGjNzYIPjaZVFcZdeL246BVXQ
 PZ8AnibMuxZm7CO5PzCHKg3tJQdA0msp
 =x/5c
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.110' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.110 based on quic/aosp/kk

Change-Id: Ibdbb06bff5d0c6bd1aec3f6243ae864b70818277
2014-08-22 16:44:20 -07:00
Linux Build Service Account
b39a4aaa01 Merge "agps cert install api implementation" 2014-08-20 10:42:12 -07:00
Sudhir Sharma
2e5ca6dde7 AU_LINUX_ANDROID_KK.04.04.04.010.094 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlPoLFcACgkQoUgPZYCpAfHA3gCgxHO4Ygg/L4/AivXneonD8kls
 t80AoOVB7Ts81w7Qea3Ui7jhoq/jbRui
 =UdP7
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.094' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.094 based on quic/aosp/kk

Change-Id: I0b9428f15516e1f6b6cd625caa2e4af86b9c1c5e
2014-08-11 13:38:27 -07:00
Kevin Tang
2abe41d44f Fix for CR 692085, error mapping incorrect in one of the cases
eLOC_CLIENT_FAILURE_INTERNAL returned from loc_api_v02 was mapped
to LOC_API_ADAPTER_ERR_FAILUR, however in loc_eng_start_handle it
is LOC_API_ADAPTER_ERR_GENERAL_FAILURE that is being checked for.
Created a new error ID LOC_API_ADAPTER_ERR_INTERNAL specifically
for this error case.

Change-Id: Ib2ad6e983d6c598ec57f1a2584166da2be95946b
CRs-Fixed: 706520
2014-08-07 18:14:43 -07:00
Dante Russo
5cdfc25284 agps cert install api implementation
Implementation of the install agps certificate
API for installing certificates at runtime.

Change-Id: I49239b612381e81bd8a4c0a5773783572d4b2d9a
2014-08-06 11:45:10 -07:00
Tushar Janefalkar
6925f8a04a Revert "Revert "Remove masks for Glonass""
This reverts commit 08237e52b6.

Change-Id: I4e507ef8777d45825234914841562e7f2901bae0
2014-08-05 15:00:31 -07:00
Kevin Tang
8977164eee fixing the SSR recovery race condition
There is a race condition where when startFix is
called right at the time when modem or griffon
subsystem is down, GPS HAL doesn't get the correct
error code, and therefore the right handling.

Mapped ENGINE_DOWN to ENGINE_OFFLINE, as they are
the same; and modified loc_eng_start_handler to
update the state upon the right error code.

There is a one problem though. General failure is
also handled as SSR. This is because of an unhandled
race condition in the kernel, so the error code
returned and propagated is not deterministic enough
for us to tell if this is SSR. Until that fix is in
place, we might have to treat general failure as SSR
although the side effect should be none. Only
semantically incorrect.

Change-Id: If93823f08428275da171bb22d73a06e38365585b
CR-Fixed: 692085
2014-07-30 18:02:41 -07:00
Sudhir Sharma
aa9a96e724 AU_LINUX_ANDROID_KK.04.04.04.010.073 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlPXonYACgkQoUgPZYCpAfEVqgCg0nHy46bwOfBa0LPbxt0PTV4r
 MGsAnAlTanVV1UfX/HzMGmdNyA0D0VZ4
 =Wxhx
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.073' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.073 based on quic/aosp/kk

Change-Id: I5ae2317a9d43cde94c587cb292212f1435472607
2014-07-29 17:07:10 -07:00
Tushar Janefalkar
c091f138ef Add support for XTRA_VERSION_CHECK QMI LOC msg
A new QMI LOC msg is introduced which injects into
the modem a value that determines whether or not
the version of XTRA is to be checked

Change-Id: I0ef579332d064713ce73d80e66dc8c6fef1c1638
CRs-fixed: 649860
2014-07-21 10:45:06 -07:00
Tushar Janefalkar
cd5c8489bc Changes for GPS HAL compilation
Remove dependence on android_runtime and
return invalid value if gps daemon is not
responding

CRs-fixed: 649065

Change-Id: I16dbf1bffe6193114c1da08730f0627377179a2a
2014-07-03 15:08:51 -07:00
Tushar Janefalkar
fd8712acd2 Add option to fallback to LocApiV02
In case the lbs or izat libs are not
present, fall back to LocApiV02 to
obtain the qmi client handle. This
change will enable basic GPS functionality
without lbs or izat lib dependencies

CRs-fixed: 649065

Change-Id: Ic2c8418d785e891ad0a660a615cd5111fafc4ff2
2014-07-03 15:07:08 -07:00
Tushar Janefalkar
c828f0a56a Changes for GPS HAL compilation
Remove dependence on android_runtime and
return invalid value if gps daemon is not
responding

Change-Id: I16dbf1bffe6193114c1da08730f0627377179a2a
2014-06-17 13:46:56 -07:00
Tushar Janefalkar
08237e52b6 Revert "Remove masks for Glonass"
This reverts commit 7d128bf31e

Change-Id: I4e8a42e253237fbf23f02da996b94555653001f5
2014-06-17 11:23:10 -07:00
Tushar Janefalkar
e8958a3aab Add option to fallback to LocApiV02
In case the lbs or izat libs are not
present, fall back to LocApiV02 to
obtain the qmi client handle. This
change will enable basic GPS functionality
without lbs or izat lib dependencies

Change-Id: Ic2c8418d785e891ad0a660a615cd5111fafc4ff2
2014-06-17 11:20:01 -07:00
Dante Russo
9ffb10553d Revert "Avoid GPS build for MSM8916 64bit"
This reverts commit 0daddfd2fd.

Change-Id: I3138bb2d600618cfec5ec7588d5359b15a07cbad
2014-06-17 11:18:48 -07:00
Linux Build Service Account
0f6ba69df4 Merge "Revert "Avoid GPS build for MSM8916 64bit"" 2014-06-12 13:26:52 -07:00
Linux Build Service Account
c1f630ca55 Merge "Inject feature config" 2014-05-14 03:06:10 -07:00
Linux Build Service Account
8244c7075a Merge "Sending HW FLP request to ULP" 2014-05-09 01:05:25 -07:00
Pandari Sabhapathi
e0895bfa00 Sending HW FLP request to ULP
ULP Should be informed of all sessions in progress.
-Added methods to ULP Proxy for the purpose of reporting
batching sessions to ULP

CRs-fixed: 657554

Change-Id: I6e1d9728a0462b86c4ffe73bd5a6ac98e7c0fafe
2014-05-08 10:56:31 -07:00
Dante Russo
c7265bbe1d Revert "Avoid GPS build for MSM8916 64bit"
This reverts commit 0daddfd2fd.

Change-Id: I3138bb2d600618cfec5ec7588d5359b15a07cbad
2014-05-07 17:12:49 -07:00
Bhavna Sharma
89c671f187 Logging correction when printing IPV6 bearer type
Entry for AGPS_APN_BEARER_IPV6 was missing from NAME_VAL.

CRs-Fixed: 660143

Change-Id: If439dbc6b47c0483cf9b5d9ea37307c69953bfed
2014-05-06 11:39:15 -07:00
Tushar Janefalkar
9e585cb7bf Inject feature config
This change injects feature config
through using the first available
context

CRs-fixed: 616544

Change-Id: Idea5bd8acfff729589c071f20bec18679c89ab25
2014-05-05 12:10:59 -07:00
Linux Build Service Account
3c8b3ff4fd Merge "Assure associate callback is called in msgTask" 2014-04-18 13:42:24 -07:00
Dante Russo
996a633c02 Assure associate callback is called in msgTask
If MsgTask thread is created before context that
has associator is initialized, the associator
callback was not getting called.

CRs-fixed: 650061

Change-Id: I45d81e1b49fc8dcbc93d1ceef4fef38468ecb4f8
2014-04-16 10:36:03 -07:00
Linux Build Service Account
61e32edfdd Merge "Avoid GPS build for MSM8916 64bit" 2014-04-11 00:32:08 -07:00
Dante Russo
f9a26b2a68 Inject location only on CPI disabled
Includes inject API from GPS HAL and FLP HAL

CRs-fixed: 640452

Change-Id: Ied947e2862fb9ecca0142f9608cdcc889cac8a2b
2014-04-03 14:41:53 -07:00
Tushar Janefalkar
25244b3660 Close MDM node on shutdown
Added call to close mdm power node
as part of procedure to shutdown

CRs-fixed: 640576

Change-Id: Ie0c05272249401f6cf13e9443417b0ba5de1be52
2014-04-01 14:38:34 -07:00
Linux Build Service Account
6af016354e Merge "Adds power voting for QCA1530 SoC" 2014-03-31 02:18:49 -07:00
Valeri Atamaniouk
ec1fa23bc5 Adds power voting for QCA1530 SoC
When ALM is enabled, GPS HAL performs power vote for QCA1530 SoC
using engine lock mechanics.

Change-Id: I97c5c0460843fc1ad995932f97eeadb7b83fcb3b
2014-03-26 21:31:37 +02:00
Tushar Janefalkar
68d41f9b2c Cache geofence breach location
Report location from geofence breach
to LMS

CRs-fixed: 637615

Change-Id: I01a4272200e554e18878658ecb4f70740074b75e
2014-03-24 15:00:37 -07:00
Ashwin Kumar
0daddfd2fd Avoid GPS build for MSM8916 64bit
Avoid GPS compilation for MSM8916 64bit targets

CRs-fixed: 628263

Change-Id: I5fde20c25de005feb1c24017107858d4f19eed4f
2014-03-21 22:32:30 +05:30
Linux Build Service Account
10d4f74e8e Merge "Copy position mode to dummy ULP proxy" 2014-03-05 22:28:09 -08:00
Linux Build Service Account
dc4419cb2e Merge "Add sendMsg to LocApiBase for utility" 2014-02-27 07:21:02 -08:00
Dante Russo
a2e85b1df7 Add sendMsg to LocApiBase for utility
It is useful for LocApiBase derived classes to have
access to sending messages to the message handling
thread without going through an adapter

Change-Id: If60c473bfb504aab68ec661ecdfb012ef410c9cf
CRs-fixed: 615958
2014-02-26 17:40:14 -08:00
Pandari Sabhapathi
6645560aba Renaming class members for improved readability
Renaming class members to reflect their true purpose

CRs-fixed: 601353

Change-Id: I1eb2bc111a52845c515d1b9ca10fb800402c7c3d
2014-02-24 11:23:58 -08:00
Jiafei Wen
7e546e6afe Emergency SUPL
This change is for the new added emergency
SUPL session. Adding a new field in gps.conf
named SUPL_ES, which is for emergency supl NI.

CRs-fixed: 600375

Change-Id: I7c21c5589259df4f1cb7ec2f850e708b2c4faa1a
2014-02-17 02:03:57 -08:00
Linux Build Service Account
d77629b0a0 Merge "Changes to inject sensor provider info to modem" 2014-02-13 23:07:48 -08:00
Hema Iyer Sankaranarayanan
e767a55d87 Changes to inject sensor provider info to modem
Changes to inject the sensor provider config info
to modem.

CRs-fixed: 604557

Change-Id: I3875e295f30d863a540efe22d6daf264d8d81476
2014-02-13 11:39:37 -08:00
Linux Build Service Account
2cd6734005 Merge "Add support for batched geofence breach reports" 2014-02-12 09:30:59 -08:00
Tushar Janefalkar
48c29f5a8f Copy position mode to dummy ULP proxy
To avoid the race condition between
when the fix criteria is set and checked,
the position mode is copied to the dummy
ULP proxy and it is used to inform ULP
when a true proxy is registered

Change-Id: I72285c7926814ec85dae64e6634f0c79ea5e6c51
CRs-fixed: 604905
2014-02-10 16:47:04 -08:00
Tushar Janefalkar
e620608cd7 Copy position mode to dummy ULP proxy
To avoid the race condition between
when the fix criteria is set and checked,
the position mode is copied to the dummy
ULP proxy and it is used to inform ULP
when a true proxy is registered

Change-Id: I72285c7926814ec85dae64e6634f0c79ea5e6c51
CRs-fixed: 604905
2014-02-10 16:46:39 -08:00
Tushar Janefalkar
b521eb94ae Add support for batched geofence breach reports
QMI_LOC added a new msg that sends geofence
breach reports in batches instead of individual
breach reports. This change adds constants to
support this new msg

Change-Id: Ic2f0bb66181ceda371a8a7a8d8681d62207835d1
CRs-fixed: 604766
2014-02-04 11:54:01 -08:00
Linux Build Service Account
7a08af9585 Merge "Emergency SUPL" 2014-02-03 21:59:59 -08:00
Jiafei Wen
39bc6e266b Emergency SUPL
This change is for the new added emergency
SUPL session. Adding a new field in gps.conf
named SUPL_ES, which is for emergency supl NI.

CRs-fixed: 600375

Change-Id: I7c21c5589259df4f1cb7ec2f850e708b2c4faa1a
2014-02-03 15:48:04 -08:00
Bhavna Sharma
dd90495f7b Add a new LocAdapterProxyBase class
LocAdapterProxyBase bridges the LocAdapterBase and
IzatAdapterBase to communicate SSR events.

CRs-Fixed: 598430

Change-Id: I8aa54f207e474974fa6fd5330c1545f94720a5cb
2014-01-27 20:41:56 -08:00
Linux Build Service Account
50a76390ba Merge "Adds ZPP Feature Implementation" 2013-12-06 16:32:55 -08:00
Linux Build Service Account
899247c295 Merge "Modem Batching Implementation" 2013-12-06 13:28:46 -08:00
Linux Build Service Account
0f62c03d04 Merge "Print default implementation at debug level" 2013-12-02 20:23:10 -08:00
Satheesh Jayakumar
6fc806515a Adds ZPP Feature Implementation
Changes for enabling Zero Power positioning feature in the
location services subsystem.It involves modifications to
HAL and ULP engine.
CRs-Fixed: 457060

Change-Id: I62187e66d44c5b40e1b2a41cafc0cb3e7c94f6d8
2013-11-26 18:10:03 -08:00
Dante Russo
97699b4f49 Print default implementation at debug level
The default implementation print was being printed
at warning level, which can create log spam.

Change-Id: I2d8c15fa0b8c647da57fbec6d0b7016117a82d7b
CRs-fixed: 576609
2013-11-22 10:36:09 -08:00
Hema Iyer Sankaranarayanan
b5ed3d8505 Changes to conditionally check and inject coarse position
Changes to GPS HAL to determine if wiper available before it does
CPI injection.

Change-Id: Ic481c020bf51ae55b001ab28a0b1caaa5de47cdd
2013-11-19 17:40:52 -08:00
Jiafei Wen
48f07a0e06 Modem Batching Implementation
Modem released new batching location feature, which adds
new masks for batching. this change is corresponding
to new masks.

Change-Id: I8bd8e978a0f1066130049b8b2fc669298691d935
2013-11-07 13:25:07 -08:00
Linux Build Service Account
d32cd2946d Merge "Add LocApiProxyBase to context" 2013-11-02 02:26:24 -07:00
Jiafei Wen
747f69507a Add LocApiProxyBase to context
This is so that the izat adapters
can get access to LocApiProxy through
the context.

Change-Id: I15a477d159375740047cd7386f8c8c5163fdaf87
2013-10-28 17:42:55 -07:00
Linux Build Service Account
c00eaa276e Merge "apq8084: qca1530 configuration handling is added." 2013-10-28 15:36:41 -07:00
Linux Build Service Account
0561631818 Merge "Send status report msg through ULP" 2013-10-24 21:38:13 -07:00
Valeri Atamaniouk
3b4d23e9cc apq8084: qca1530 configuration handling is added.
Provide function for qca1530 detection. Rename 'get_target' to
'loc_get_target'. Fix loc_get_target state detection to avoid double
detection. Fix few minor code defects.

Change-Id: I3daaff99598771742572aab407475474fad41e93
2013-10-25 06:47:17 +03:00
Kevin Tang
7546fd88b9 enhance ulp handshake
send ULP the position mode if it is valid when ULP handle
is first received. This helps handling a race condition
where ULP handshake happens when a GPS session is about
to happen or already happening.

Change-Id: I029e5c3bbb9d8e89b220ca44e9704b5a1d1451ff
CRs-Fixed: 554340
2013-10-21 13:36:28 -07:00
hsankara
7d6ed07fad Changes to add new bit mask to support wifi ap info injection
Changes to add a new bit mask for supporting wifi ap info injection
to modem

Change-Id: I7b94fcdbb9cda7996af73811636e270da7f8df7e
2013-10-16 10:46:24 -07:00
Tushar Janefalkar
e0e4cde06b Send status report msg through ULP
In order to preserve the ordering of
position reports and status reports from
the GPS engine, status reports are sent
through the ULP too

CRS-Fixed: 538143

Change-Id: I41be2121493c6a0b35a5726fd546eb0fa5e9b20c
2013-10-04 10:51:55 -07:00
Tushar Janefalkar
4dbc22bd57 Changes for liblbs_core
Added new module liblbs_core to make
LocApiV02 independent of pre-built binaries.
This patch provies the necessary changes to
support the new module
CRs-fixed: 538124

Change-Id: I716cf169de9dae164a141651af971793099a927d
2013-09-25 11:08:29 -07:00
Kevin Tang
81c423125c Add LocApi to get Zpp fix.
Added get zpp fix API so that different other features can
make use of this feature in the AP space.

Change-Id: I32e750626704c5d0069723ee1ca949fda4a5505e
2013-09-17 10:47:44 -07:00
Dante Russo
311e38bcfe Missing check to build inside libloc_core
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE needs to be
checked inside all gps hal module makefiles.
libloc_core was missing this check.

Change-Id: Ica508bcd2dc0747e354f43d7d87af5b2b06d1437
2013-09-11 15:15:34 -07:00
Satheesh Jayakumar
cdeaa6e0f6 Fixes a bug in sessionCheck() for all adapters
Changes to ensure the code breaks out of the adapter session
check loop once any one of them is in session.

Change-Id: I73b3a5f4954050abf5ce3d4c5a04245c894725f2
CRs-Fixed: 534811
2013-08-29 15:44:18 -07:00
Tushar Janefalkar
112751962e Add API to read and write GPS lock values
This change adds an interface to set and get
values for the GPS lock

Change-Id: I8c83b693fe4c3e6edc9cc5c8c5cbf8471e332c86
2013-08-22 18:28:02 -07:00
Tushar Janefalkar
7d128bf31e Remove masks for Glonass
Masks for deleting aiding data
of Glonass satellites have been
moved to gps.h. Also added NAME_VAL
pairs for BDS

Change-Id: I6b5e427e3bac3936f98137ddc1c25cb35f324231
CRs-fixed: 498642
2013-08-12 03:12:40 -07:00
Kevin Tang
61fedb4567 removed ulp dependency.
ULP will no longer be loaded and init'ed from loc eng
HAL. GPS HAL will look for ULP once it completes init
and waits for a msg back once it hears from ULP. This
is done with introduction of UlpProxy. Default proxy
is a no op proxy.

Change-Id: If0be0b5744f9de20f12c2f0b9704dea66aa454c0
(cherry picked from commit 2eb4ddcae94283df6c6be450c4c070ffd8ff9cd7)
2013-08-09 11:44:34 -07:00
Kevin Tang
3535edcfb0 corresponding to izat_core and LBSAdapter changes.
Removed makefile dependency to AndrodRuntime; Renamed
library to be loaded from liblocation to libizat_core;
Made some class private access to protected for the
needs of inheritance; piggy bagged some optimizations.

Change-Id: Id7e3127baa1833cbad7739f50808941c733b87f2
(cherry picked from commit c039ceaec84b25573d710b31831c9b06d4f3d1c6)
2013-08-09 11:44:27 -07:00
Kevin Tang
11adbb371f Revert "Revert "Location Hal Design Level Change for FLP Requirement"".
This reverts commit 55a6841843.
(cherry picked from commit 363ed1a6b09d7426bfd3726becd2d713da57fa80)

Change-Id: I19153a904dd7587dfd517dcc86f51f4b1110289a
2013-08-09 11:44:12 -07:00
Sridhar Gujje
55a6841843 Revert "Location Hal Design Level Change for FLP Requirement"
This reverts commit a915406668

Change-Id: I7f677a9540a64a60b5f4ed898ba6bed8b3482687
2013-08-07 03:27:20 -07:00
Kevin Tang
a915406668 Location Hal Design Level Change for FLP Requirement
Changes can be highlighted with below summary:
* Split the original LocApiAdapter to LocAdapter and LocApi.
  Now different adapter implementations can flexibly connect
  to different LocApi;
* LocApi continues to abstract the API binding to RPC or QMI;
* MsgTask which creates and owns a msg Q and a thread, and it
  define a LocMsg base msg class. The handler pulls a msg out
  of the Q and calls its proc() method. This makes it possible
  for msg sender to keep the data in the msg encapsulated, as
  it no longer requires a central msg handler who must under-
  stand all data format. This used to be where all the compile
  time dependencies are tangled together;
* Added Context to bundle MsgTask and LocApi;
* Added LocDualContext specifically for the FLP Location Hal
  architecture requirement;
* Placed all the base classes of the above in loc_core folder
  / loc_core namespace / libloc_core.so, so other libraries
  can easily use derive from here without having to pull in
  the loc_eng implementation, which is a large library to
  include or link to;

Change-Id: I40abfba96dea76757c98530c1f5e076b34ba4ac7
2013-08-02 19:29:22 -07:00