Commit graph

79 commits

Author SHA1 Message Date
Linux Build Service Account
d8c914cddc Merge "GARDEn: porting LE enhancement to Android - fix build error" 2013-07-09 05:27:10 -07:00
Linux Build Service Account
d98fd75d04 Merge "hardware/qcom/gps: Read gps.conf file for config information" 2013-07-09 05:27:08 -07:00
Linux Build Service Account
3222962c41 Merge "hardware/qcom/gps: Porting HAL and Loc API 2.0" 2013-07-09 05:27:05 -07:00
Linux Build Service Account
9ea3e99ee4 Merge "Adds logic to pass through PIP User setting" 2013-07-04 11:09:42 -07:00
Satheesh Jayakumar
fed389ab35 GARDEn: porting LE enhancement to Android - fix build error
Add platform abstraction layer into include path

Change-Id: I1e27a60f3afcc259449d264697bd39c03ef9609f
2013-07-03 17:12:46 -07:00
Pandari Sabhapathi
a5e2030015 hardware/qcom/gps: Read gps.conf file for config information
gps.conf needs to be initialized for native GARDEn test

Change-Id: I08a3dd46ff42786f81636ab6929fdfa6d19b1400
2013-07-03 17:09:46 -07:00
Satheesh Jayakumar
0590a64deb hardware/qcom/gps: Porting HAL and Loc API 2.0
- Wrote makefiles, config and other files
- Made code changes to minimize android dependencies

Change-Id: I350de6378684f5db81a36cc4c6d014c5a8189d4c
2013-07-03 17:08:14 -07:00
Linux Build Service Account
ccb5b579ee Merge "Return ATL Close failure if no handle found" 2013-06-29 06:33:19 -07:00
Linux Build Service Account
01f026694e Merge "DEBUG_LEVEL 0 to produce no logs" 2013-06-29 06:32:12 -07:00
Tushar Janefalkar
b8fb0677fa Return ATL Close failure if no handle found
When a request to RELEASE ATL finds no
active subscribers, return ATL close
failure

Change-Id: I591d5456d5ce1218cc82bf7ba430176ec4f13174
CRs-fixed: 502024
2013-06-28 14:00:20 -07:00
Tushar Janefalkar
6fa0e8a983 DEBUG_LEVEL 0 to produce no logs
In accordance to gps.conf, debug level of 0 now
produces no logs at all. In addition, if the
parameter DEBUG_LEVEL is commented in gps.conf,
logs will be printed according to Android's logging
levels

CRs-fixed: 503157
Change-Id: I26ca2be67fbc7ce2bf633f66d9b88ca6450e9d27
2013-06-26 18:23:57 -07:00
Tushar Janefalkar
0f66892e50 Add support for SUPL Emergency Services
Introduced support for handling modem request
to start an emergency call using QMI WDS profiles
or fallback to an ATL request if the call does
not succeed.

Change-Id: I29b617687db0d3f26610bc74f8dc95940574f52d
2013-06-20 10:21:41 -07:00
Linux Build Service Account
711863f2f3 Merge "Return the correct value from loc_eng_init" 2013-06-20 06:01:17 -07:00
Tushar Janefalkar
c3f16206d7 Return the correct value from loc_eng_init
The function was returning an error code
which was causing GPSLocationProvider to
fail initialization

CRs-fixed: 501318
Change-Id: Icec707c3b9edc60bd07914b130077f9a96c5e794
2013-06-18 15:05:40 -07:00
Tushar Janefalkar
6bc10c567a Generate position report NMEAs only on final fix
Position report NMEAs will be generated only
if the position report is a final fix and not
an intermediate fix. Blank NMEAs will be sent
otherwise.

CRs-fixed: 467575
Change-Id: I60e63faf3e4503f5a6ce93211d4017aa7695b78b
2013-06-17 14:22:00 -07:00
Linux Build Service Account
4ff37ed47f Merge "Fixes ULP and FLP operation when GPS not enabled" 2013-06-12 18:17:07 -07:00
Kevin Tang
b05358920c Make Loc Init Asynchronous
GPS-enable gets too heavy at powerup, when loc_init is
synchronous, where loc goes to get the hardware handle
if AP init happens faster than the GPS hardware. The
loc init calling thread is from Android framework, and
it locks a mutex that in turn could lock up system server
main thread upon race conditions.

The second half of loc init, i.e. the reinit, is now moved
to loc worker thread. This should help release some of the
powerup timing pressure on the framework threads.

Add a message just for asynchrous Loc Init so as to execute
init specifically.

Change-Id: I369e461ca4ca61cea3a9729c84d24af4ffa8e51d
CRs-fixed: 472843
2013-06-07 13:39:24 -07:00
Satheesh Jayakumar
bc1fb0bce5 Fixes ULP and FLP operation when GPS not enabled
Changes to ensure FLP positioning call flow works
even if GPS is disabled on the Android settings
menu.
CRs-Fixed: 476628

Change-Id: I54b9f9861a14f7c42f45c48e57e9558f14a4de92
2013-06-04 18:45:24 -07:00
Satheesh Jayakumar
313788ea59 Adds logic to pass through PIP User setting
Changes to manage user preference for Precise Indoor
Positioning Control through settings on the OS UI menu
CRs-Fixed: 492707

Change-Id: I6a0cc0a92c35d05122efce310274f20590a16118
2013-06-03 17:16:07 -07:00
Tushar Janefalkar
a021ad35de Update LOC API source and header files
Updated LOC API source and header files
since the new version had updated masks
that were required for loc eng

Change-Id: Ia0d57770a737ef6d05e881ac0512eb174e7c9fd1
2013-05-30 18:37:06 -07:00
Linux Build Service Account
692686e3c2 Merge "Ulp: Fixes an initialization bug for ULP call-backs" 2013-05-10 15:24:35 -07:00
Satheesh Jayakumar
9e74deb689 Ulp: Fixes an initialization bug for ULP call-backs
Changes that caches ULP call backs if ULP initialization
precedes AFW initialization.
CRs-Fixed: 477557

Change-Id: Ic2f9de538c5b63958b0bbba5790bf00b52474dc4
2013-05-10 11:32:55 -07:00
Linux Build Service Account
d91966b649 Merge "gps: use single recurrence for MSA requests" 2013-05-10 11:08:31 -07:00
Linux Build Service Account
08f7f00ef5 Merge "Change data type of HEPE to float" 2013-05-09 15:14:27 -07:00
Dante Russo
38474f1f1d gps: use single recurrence for MSA requests
To allow ulp to select MSA for single shot
location requests, change the recurrence type
for MSA requests to SINGLE.

CRs-fixed: 479303

Change-Id: I97043233e0590b25bc63f3709b2bbb3dfd22cbd0
2013-05-09 11:21:34 -07:00
Linux Build Service Account
3bba831981 Merge "Cache data availability before gps is enabled" 2013-05-08 22:23:52 -07:00
Tushar Janefalkar
22538a7f38 Cache data availability before gps is enabled
This is so that data disable is not
sent to the modem by default if data
is enabled

Change-Id: I383443fc0321380c22382ba7d7f85dacf948853a
CRs-fixed: 460376
2013-05-08 18:02:22 -07:00
Linux Build Service Account
d58a6ac3a2 Merge "GPS HAL: expose altitude and speed uncertainty" 2013-05-08 05:12:49 -07:00
Linux Build Service Account
17031f28b1 Merge "MSB is not falling back to standlone." 2013-05-07 11:19:40 -07:00
Kevin Tang
0a760c9f3b GPS HAL: expose altitude and speed uncertainty
Expose altitude and speed uncertainty from GPS fix via extended
info.

Change-Id: I0a478aa25d4b0a98793c946ba5fb883520a4ce58
2013-05-06 18:40:33 -07:00
Ashwin Kumar
bd64ccd874 MSB is not falling back to standlone.
No support for SUPl,starting MSB it wouldn.t request a PD.
Disabled the MSA and MSB for this PL.
This fix is needed because this PL doesnot have a modem.

Change-Id: I8fa1145db07f681c0f6e733da253f06f01f7edd6
CRs-Fixed: 471589
2013-05-01 03:23:59 -07:00
Tushar Janefalkar
fc56628d06 Send data disable to modem during init
This is to avoid data being enabled
when data roaming is turned off.

Change-Id: If2c2f89669d872bfd4e8579f682d0c61904fe7c8
CRs-fixed: 460376
2013-04-30 11:17:12 -07:00
Satheesh Jayakumar
8dd8689be2 gps.conf: Removed the option to configure ulp on/off
Since the switch for ulp in gps.conf did not truly turn QCA
implementation for Fused Location Provider on/off this change
removes this redundant parameter from gps.conf

Change-Id: I677c42a00e6b0d156c2e4c3b65da13a55eb97279
CRs-Fixed: 461273
2013-04-09 14:33:42 -07:00
Kevin Tang
b2490777c1 removed exe bit of the file access mod
find . -type f -executable -exec chmod -x {} \;

Change-Id: Ib6e09bc4bf1d8e4cde63c1df0b15877bf42525b8
2013-04-05 11:12:28 -07:00
Tushar Janefalkar
a50977f5e2 Correction in checksum calculation for NMEA
The number of bytes to be written for
the checksum exceeded the buffer length.
This change corrects makes the correction.

Change-Id: If90c6f5b2006a013a096a767334deac1555553f1
CRs-fixed: 468553
2013-04-01 09:44:10 -07:00
Tushar Janefalkar
d2873a0baf Split gps configuration file (change 1/2)
gps.conf now split into
izat.conf: proprietary items
sap.conf : sensor assisted positioning items
gps.conf : items used in open source
           (gps.conf moved to open source)

CRs-fixed: 461129
Change-Id: I819230ee3bb13aad0b91f7d33bfb9e57b6d1abe1
2013-03-19 15:57:50 -07:00
Tushar Janefalkar
5049a47797 Utility to identify target HW
Earlier this identification was done in loc.cpp
This change moves that to a separate utility.
Also included is a change to not return
a handle to the GPS interface if the target
is found to be MPQ8064.
This change is a re-cherry-pick from
change id - I98d5619d2e6e63711a9b56f0af2b3ddd27372871

Change-Id: I058d206c37245b44f1cf74d6065e7ce46f50baf7
CRs-Fixed: 418009
2013-03-18 15:49:52 -07:00
Tushar Janefalkar
842b4c3e68 Change data type of HEPE to float
This is to accomodate values of accuracy
that exceed 65535

CRs-fixed: 449184
Change-Id: Icc89c4bbb6975027083fd906bdc2d0ca40060431
2013-03-05 11:01:31 -08:00
Satheesh Jayakumar
9f8bcc3b14 Ulp: Adds interfacing b/w FusedLocationProv & ULP engine
Changes for providing the plumbing from UlpService down
to the native UlpEngine.
Change-Id: I67e48fad47675d9fa9a3026763daa0f248369f60
CRs-Fixed: 443444
2013-01-29 17:24:01 -08:00
Amol Mahesh
e03abb4da8 LOC: Enable loc_eng_dmn_conn_loc_api_server for all targets
Enable loc_eng_dmn_conn_loc_api_server for all targets irrespective
of the ro.baseband property.

Change-Id: Ieb9e505f27d0fc7abf4a94bac64dee60cccc4302
2013-01-24 14:32:42 -08:00
Duy Truong
a987332d29 Update copyright to The Linux Foundation
Change-Id: I727bdeb29904eebf15b7ef8eb0070d69107537a8
2013-01-10 08:07:21 -08:00
Dante Russo
7118024952 Merge jb into jb_2.5
Features ULP, IPV6, DELEXT disabled

Conflicts:
	loc_api/Android.mk
	loc_api/libloc_api-rpc-50001/*
	loc_api/libloc_api_50001/*
	loc_api/loc_api_v02/*
	loc_api/ulp/inc/ulp.h
	utils/*

Change-Id: I846352d0addca89d4ffc3b114b774926b23e930d
2012-12-14 16:45:15 -08:00
Linux Build Service Account
63b6b8f224 Merge "Utility to identify target HW" 2012-11-20 00:58:26 -08:00
Linux Build Service Account
3d02619c3e Merge "OTDOA support" 2012-11-20 00:58:22 -08:00
Kevin Tang
e065604f30 OTDOA support
(must have CR 370306 as dependency)
CRs-Fixed: 402746

Change-Id: I505becab45f643b352e8ff3aeb242b15b623cb7b
2012-11-15 15:42:13 -08:00
Neethu Joseph
8e9cb23386 Loc_Api: Support A-GLONASS Position protocol
Support to read A-GLONASS Prosition protocol from gps.conf

Change-Id: If91d6754aaee73c1360728793f4cc2ef1f015fe7
CRs-fixed: 378515
2012-11-15 12:06:07 -08:00
Tushar Janefalkar
63c5ac48c7 Utility to identify target HW
Earlier this identification was done in loc.cpp
This change moves that to a separate utility.
Also included is a change to not return
a handle to the GPS interface if the target
is found to be MPQ8064.

CRs-Fixed: 418009
Change-Id: I98d5619d2e6e63711a9b56f0af2b3ddd27372871
2012-11-12 10:28:15 -08:00
Tushar Janefalkar
e4f800932f Add NULL checks for callbacks
As a security measure, callbacks
are checked to make sure they are
not NULL pointers.

Change-Id: I391e1cc373e8098449303709d8d1b67d305fb633
CRs-Fixed: 404438
2012-11-05 10:20:16 -08:00
Iliyan Malchev
c74962df0d chmod uga-x
find -type f -perm +111 -name \*.[ch]\* -exec chmod uga-x {} \;

Bug: 7428209
Change-Id: I991e3fb62a46f4b4cd727ef4b6a4472b4015ce33
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-27 14:22:13 -07:00
Kevin Tang
0529b2b9bb XTWiFi: disable coarse position injection when XTWiFi NLP is in use
Disable coarse position injection from GPS HAL when XTWiFi
Network Location Provider is in use. This is needed to avoid self
learning loop inside modem.

Change-Id: I0526317221d3490c41d0d8d901fbfa4d93e9a0b0
CRs-Fixed: 409409
2012-10-17 14:49:56 -07:00