Commit graph

255 commits

Author SHA1 Message Date
Tushar Janefalkar
a55881f51b Use regular ATL callflow for SUPL ES
Added a new gps.conf parameter which can
be used to decide whether or not to use
data services to bring up call using emergency
PDN or use default SUPL PDN

Change-Id: I604a1489e66339eb2c27019dafab640f7a15cd84
CRs-fixed: 685639
2014-09-22 16:49:57 -07:00
Linux Build Service Account
e3900d7339 Merge "Remove reduntant clearing of GpsLocation memory" 2014-09-21 15:49:51 -07:00
Dante Russo
9d0c2d5627 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
2014-09-18 17:18:36 -07:00
Pandari Sabhapathi
5cef7caea3 Migrating XTRA from gpsonextra.net to cloud based izatcloud.net
*Added logic to remove xtra1.gpsonextra.net from URLs
received from modem.
*Added logic to override modem URLs with those configured
in gps.conf
*Replaced all instances of xtra{1,2,3}.gpsonextra.net domain URLs
in gps.conf with xtrapath{1,2,3}.izatcloud.net URLs.
*Replaced all commented instances of xtra.bin in gps.conf with xtra2.bin.

CRs-fixed: 643816

Change-Id: I803b26bce22f06910dcaa1ee057902b9381667bf
2014-09-11 16:43:11 -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
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
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
Dante Russo
a857b72129 Add raw uncertainty to inject position api
New qmi loc api v02 adds a raw uncertainty to the
inject position api, which will be used by the
geofence engine.

Change-Id: I307619006c799c31121941ac5c11bf62f4691c86
CRs-fixed: 682963
2014-06-24 17:04:30 -07:00
Linux Build Service Account
0f6ba69df4 Merge "Revert "Avoid GPS build for MSM8916 64bit"" 2014-06-12 13:26:52 -07:00
Kevin Tang
6fc3071b05 KW warnings
dlsym on gps_geofence_get_interface should check NULL,
and gmtime return should also check NULL

Change-Id: I23ab17f016ad9f4667ac197c12f016433c48af90
CRs-Fixed: 674884
2014-06-03 16:14:56 -07:00
Linux Build Service Account
c1f630ca55 Merge "Inject feature config" 2014-05-14 03:06:10 -07:00
Linux Build Service Account
aa3acb3da2 Merge "NI Emergency overrides a pending NI" 2014-05-08 20:06:52 -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
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
a33a1fbee8 Merge "Only output NMEA for GNSS/Sensor/Hybrid locations" 2014-04-16 21:48:07 -07:00
Dante Russo
bbb724335f NI Emergency overrides a pending NI
Network Initiated notify verify request that is
the emergency type should override any pending
Network Initiaed notify verify session.

CRs-fixed: 563670

Change-Id: I2d05449a8ebaa1dfa08f4c839422a7adbd1b871d
2014-04-11 09:06:02 -07:00
Linux Build Service Account
61e32edfdd Merge "Avoid GPS build for MSM8916 64bit" 2014-04-11 00:32:08 -07:00
Tushar Janefalkar
a6e2f769a8 Fix wrong log tag
The log tag for ATL open success was
mistakenly set as ATL closed

Change-Id: I755fb2545226e09135935956796c951a7e33dab9
CRs-fixed: 645283
2014-04-08 12:14:18 -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
Linux Build Service Account
971493d8bb Merge "Close MDM node on shutdown" 2014-04-03 11:37:55 -07:00
Linux Build Service Account
638bbddfef Merge "Change to CPI logic" 2014-04-02 10:21:08 -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
Dante Russo
fea5de1caf Only output NMEA for GNSS/Sensor/Hybrid locations
We don't want to output even blank NMEA for Wifi
or Cell based locations.

Change-Id: I5848686c23c4a5911be1d7150fee4879cd180c65
CRs-fixed: 640049
2014-03-31 18:02:14 -07:00
Bhavna Sharma
7170b25778 Change to CPI logic
CPI should not be dependent on persist.gps.qc_nlp_in_use
property. It should only be dependent on whether CPI is enabled
or not.
Reduce confidence in position if required.

CRs-Fixed: 639153

Change-Id: I9e54ab1ac605143843a2e19607ff8e2e20704d01
2014-03-28 17:11:46 -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
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
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
38f7146444 MDM shutdown for Fusion device
Use mdmdetect library to detect
presence of an mdm and open/close the
device node if present

CRs-fixed: 605216

Change-Id: I81d5b35ff8259e775dc6cb9d5c531fe06ae77ba0
2014-02-21 10:25:59 -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
83755b9d6a Merge "Copy position mode to dummy ULP proxy" 2014-02-11 20:10:29 -08:00
Tushar Janefalkar
e870707275 Fix for dsi_init failure
Init DS only when the agps
stack is available

Change-Id: I106e50462ad810ca5baf452d7effc6459c135f6f
CRs-fixed: 599478
2014-02-11 12:53:13 -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
Kevin Tang
c019f61276 move location data files under /data/misc/location
Different location daemons each has its own locations for data,
pipe, or sockets files. Centralize them all under the same dir,
namely /data/misc/location

CRs-Fixed: 595946

Change-Id: I532e2b0b4bcd100bab600724a12a1e6ba9ebf119
2014-02-10 10:44:26 -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
Dante Russo
6fd90ead05 Remove libandroid_runtime from makefile
Since libandroid_runtime is not used anymore, it
can be removed from the makefile, which will save
space in the binary.

Change-Id: Iadb3f0378e41af658d7b0256721508c5e7de4daf
CRs-fixed: 590483
2013-12-18 11:36:12 -08:00
Linux Build Service Account
493ecbb4bb Merge "Remove unused code under libloc_api" 2013-12-13 11:32:12 -08:00
Linux Build Service Account
3afeb4fd86 Merge "Update NMEA SV numbers" 2013-12-12 00:09:00 -08:00
Tushar Janefalkar
4996c5e955 Remove unused code under libloc_api
This folder of sources is no longer
used and is removed

Change-Id: I0b02f56e27346f20f890bc8105e77995e63c0350
CRs-fixed: 566508
2013-12-11 15:38:42 -08:00
Jiafei Wen
64cecc6a31 Update NMEA SV numbers
for GPGSV and GLGSV, the SV number
should be seperate for each.

CRs-Fixed: 570728
Change-Id: Ica350094d7220f1ec33cf02686a541c4191afe1d
2013-12-11 10:51:42 -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
Linux Build Service Account
8557c7afdf Merge "Added NULL check before function call" 2013-11-23 21:28:49 -08:00
Ashwin Kumar
9d9c284fbf Added NULL check before function call
Added NULL check before calling nmea call back
function to prevent segmentation fault in case
no nmea call back is registered.

Change-Id: If2371f4522e12312630043c3953405f583829068
CRs-fixed: 578444
2013-11-20 14:12:57 +05:30
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
Satheesh Jayakumar
e9d4048168 Fixes loc_ext and AFW concurrency issues
Part of changes so that loc_ext stack gets its own QMI_LOC client.
CRs-Fixed: 565281

Change-Id: I7dda3cd8e90e699f11391ea621a785f775978e41
2013-11-15 15:36:43 -08:00
Dante Russo
a0c2f679ee Memset the xtra url to assure null termination
Fixes a potential crash in jni layer caused by
invalid characters in the string.

CRs-fixed: 555829

Change-Id: I03ae100c4b7e65c95bac5841fcf00b27e2940741
2013-11-12 16:55:59 -08: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