Commit graph

226 commits

Author SHA1 Message Date
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
Tushar Janefalkar
82159c5002 Check mAgpsEnabled for data call
Check AGPS flag to ensure the request
is handled by the right adapter

Change-Id: I6fb7271ec0be5aec14e9d667c07e5b01b1736c1d
CRs-fixed: 551808
2013-10-23 10:58:06 -07: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
Linux Build Service Account
1f94c20487 Merge "Null check for malloc allocation" 2013-10-20 00:13:23 -07:00
Tushar Janefalkar
efdc209caf Null check for malloc allocation
Add NULL check after memory allocation

Change-Id: Id5dc6d2e5b13aa7979067ab22963df96b32e49c5
CRs-fixed: 561182
2013-10-16 16:54:06 -07:00
Kevin Tang
c7b006cecc Correct print for xtra server urls.
The offset calculation on the 2nd and 3rd server urls
were wrong. The are off by 1 and 2 bytes respectively.

Change-Id: Iab9da5dbd2b0c779e18a6fe4615ad7e705800654
2013-10-04 18:59:00 -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
eb726cbd2e Add check for mAgpsEnabled
requestSuplES did not have
the check for mAgpsEnabled

Change-Id: I314fe6bc933e5201e1ac6c6632ee3b53240955b1
CRs-fixed: 543639
2013-09-23 16:56:04 -07:00
Dante Russo
530086a52d Fix ATL handling
Always register for ATL events reguardless of hw target
or MSA/MSB capabilities. For APQ target, do not handle
certain types of ATL events that it doen't support.
For APQ target, use only position mode of Standalone.

CRs-fixed: 533932
Change-Id: Icd626e3e7155d5c2ba871a343430e441924ce93c
2013-09-10 15:57:08 -07:00
Satheesh Jayakumar
b7b7fb9230 Fixes a bug in the reporting for MSA sessions
Changes to ensure that positions reported with TECH_MASK_HYBRID
are also updated to the location clients.
CRs-Fixed: 537773

Change-Id: I09c7d440369d8fc37abd069fbefc2c7e23414ab1
2013-09-09 16:45:35 -07:00
Linux Build Service Account
3453226028 Merge "Bug fixed in AGPS checks" 2013-09-06 11:09:06 -07:00
Linux Build Service Account
5e3119dca0 Merge "Adding check of on_demand_time for inject time" 2013-09-05 22:12:11 -07:00
Linux Build Service Account
a7e56b7346 Merge "Avoid multiple xtra download after booting" 2013-09-05 22:11:28 -07:00
Jiafei Wen
9f6259f0bc Avoid multiple xtra download after booting
To avoid multiple xtra data auto-downloading, the change
delete the 3 xtra URL in gps.conf used by
GpsLocationProvider. Meanwhile, GPS HAL become to
allow GLP send Xtra data to modem.

CRs: 537744

Change-Id: I27f3122f4ecd1d4da4323e9c59bd0358f3d635f2
2013-09-05 11:15:54 -07:00
Tushar Janefalkar
a75c8b33d5 Bug fixed in AGPS checks
Fixed conditional check from
MSA|MSA to MSA|MSB. Bug was
introduced in commit 782431a
CRs-Fixed: 533849

Change-Id: I7931563e08c5c875b49cc9ada2969a34373a2890
2013-09-05 09:39:49 -07:00
Satheesh Jayakumar
ef7a8694d7 Small fixes to conditionally launch the BIT Interface thread
Changes to launch the BIT service request handler thread only if
AggpsExt is present. Small formatting fixes for pritining the IP
address.

Change-Id: Iaf3b9bd6d967ba35b04b591750784c5f221ee539
2013-09-04 09:29:10 -07:00
Jiafei Wen
50fa10247a Adding check of on_demand_time for inject time
Before injecting time, check the gps ON_DEMAND_TIME
capability. if it is disabled, it will not sent time
inject command.

Change-Id: Ie51cf1f65e086bdb49d6159051c3d66700b25d78
2013-09-03 11:31:24 -07:00
Linux Build Service Account
b6ddfac888 Merge "Initialize DS client in the msg thread" 2013-08-29 08:07:52 -07:00
Tushar Janefalkar
e399053ebb Initialize DS client in the msg thread
In order to avoid a synchronous call
from Location Manager to the data layer,
the call to initialize the data client is
sent as a msg to the MsgTask so that it
gets handled in a separate thread
CRs-fixed: 535079
Change-Id: I3d7a72c32eb629572178c90dc4f55c3d74443332
2013-08-27 16:50:46 -07:00
Linux Build Service Account
b58cab8e26 Merge "Add API to read and write GPS lock values" 2013-08-27 12:53:45 -07:00
Kevin Tang
05b385d8e0 Separated NMEA GSV for GPS and GLONASS
Generate GPGSV and GLGSV sentence separately
rather than combination according to satelite
prn number.

CRs-Fixed: 491156
Change-Id: Ie2bc60ae680a75cbe95702a7f842c1546a3a2f21
2013-08-26 19:09:43 -07:00
Linux Build Service Account
b1e5bb90ac Merge "conditionally handle the XTRA download request" 2013-08-24 10:28:06 -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
Satheesh Jayakumar
961d1bdae7 Fix for the crash that was caused when accessing UlpProxy
Changes to ensure that we dont free UlpProxy object
by mistake when loc_init is invoked twice.
CRs-Fixed: 532599
Change-Id: I0989368b67614181b3d834e61690211497663352
2013-08-21 17:54:22 -07:00
Linux Build Service Account
af92ecd030 Merge "Resolved On-Demand XTRA time injection issue" 2013-08-21 00:30:12 -07:00
Linux Build Service Account
aaf8825ad9 Merge "Remove ENABLE_WIPER parameter" 2013-08-20 06:42:41 -07:00
Ashwin Kumar
42211a946a Resolved On-Demand XTRA time injection issue
Resolved issue where XTRA data was being requested instead
of time during On-Demand time injection.
CRs-Fixed: 530415

Change-Id: Ibf057073dc4eddc011f5df5c13d60eb552eec8c9
2013-08-20 12:06:59 +05:30
Kevin Tang
3184198803 conditionally handle the XTRA download request
This may be a temporary fix to filter the reqeust here,
because this point the xtra data is already downloaded.
Next we should look at how to save the download itself.

Change-Id: I0efba22df3d8d330c03a157a07c7ee490a22027d
2013-08-19 13:57:20 -07:00
Tushar Janefalkar
aa6fbdba9e Remove ENABLE_WIPER parameter
ENABLE_WIPER parameter is no longer
included in gps.conf and used in the
HAL code. So it is removed to avoid
confusion.
CRs-fixed: 520700

Change-Id: Ic0ffb762d7d27019407a9f5b4600d6ea9693b401
2013-08-13 15:53:43 -07:00
Tushar Janefalkar
782431aff0 Return NULL AGPS interface on APQ target.
The AGPS interface will be returned
as null if MSA and MSB capabilities
are not set in gps config

Change-Id: I388654c9f527bfed128f431ccb8956e19be0f7f2
(cherry picked from commit 50891ecfe09b19a130b675ddc818ecf4ae31a3da)
2013-08-09 11:44:41 -07:00