Commit graph

3283 commits

Author SHA1 Message Date
Pandari Sabhapathi
492ae0bcbc hardware/qcom/gps: Enabled Timestamps for on-target logging
timestamp is added for LE on-target logging

Change-Id: I02cd869a5014c9113b4faf142b535e73f17744e5
2013-07-03 17:09:21 -07:00
Pandari Sabhapathi
ca57336da8 hardware/qcom/gps: Fixing gettid issue
extern to C namespace for C functions to use

Change-Id: Ib8eb442653ce62f4a65b2573dd5ed69af7a744ae
2013-07-03 17:08:52 -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
18875a4f8a Merge "Redefine struct returning error strings" 2013-07-02 15:26:04 -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
3a0c1dc804 Redefine struct returning error strings
The struct was not defined in the
NAME_VAL() format and hence was returning
garbage characters in place of error
strings

Change-Id: Ic59e636c8bf99fe91488c312b83f31c36941c202
2013-06-26 17:32:49 -07:00
Linux Build Service Account
e100c681e1 Merge "Add support for SUPL Emergency Services" 2013-06-22 10:22:52 -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
Linux Build Service Account
db2e850287 Merge "Generate position report NMEAs only on final fix" 2013-06-18 06:02:32 -07:00
Linux Build Service Account
a29f2f3024 Merge "Timed Alarm service utility" 2013-06-18 03:48:58 -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
Tushar Janefalkar
7af44a9436 Timed Alarm service utility
The utility launches a separate
thread that holds a mutex for
x milisecs and then calls a callback
function to notify the caller about
the time lapse

Change-Id: If033eed71d28a8736c8393f6ff609ac59d8877d9
2013-06-17 10:36:57 -07:00
Linux Build Service Account
43d4858c9c Merge "gps: Added xtra server query loc api" 2013-06-13 12:11:34 -07:00
Linux Build Service Account
e8fb026bf3 Merge "gps: moving agps/ni/xtra/time features out of afw" 2013-06-13 12:11:33 -07:00
Linux Build Service Account
a01c9c6b63 Merge "Merge branch jb_mr1 into jb_2.6" 2013-06-13 12:11:32 -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
Dante Russo
399f53047e gps: Added xtra server query loc api
In order to prevent the issue where the xtra server url
that stored in gps.conf is incorrect (like xtra.bin instead
of xtra2.bin) for a particular modem, I've made this change
so that the xtra server url can be queried through loc api.
CRs-fixed: 366599

Change-Id: If65de98d837f068fd61a235cbf1104026246e5a9
2013-06-11 15:02:29 -07:00
Dante Russo
926d20ad77 gps: moving agps/ni/xtra/time features out of afw
Moving these features out of afw allows these
features to still work on platforms that do not
allow changes to afw and it also gives us more
control.

Change-Id: I6923b302f93222dc10189c3a6a7b6ba2ec1a3378
2013-06-11 15:00:57 -07:00
Dante Russo
85f672fa71 Merge branch jb_mr1 into jb_2.6
Merged from from label
AU_LINUX_ANDROID_JB_MR1.04.02.02.049.306

Change-Id: Ie2f7fd3d25f8f28f5d1b6e733974bb5f75999ee8
2013-06-11 14:58:24 -07:00
Linux Build Service Account
bb5da9157a Merge "Make Loc Init Asynchronous" 2013-06-10 23:38:28 -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
Dante Russo
838f00b1ef jb_2.6 bring up changes.
Enable gps.conf and remove dependancy on libgeofence.so

Change-Id: I3f58f0b6afcb017504af51699b7030db07051402
2013-06-07 11:05:04 -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
Linux Build Service Account
8b386d2988 Merge "Update LOC API source and header files" 2013-06-03 19:25:25 -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
acddf6d2d6 Merge "Detect APQ8074 HW, fixed" 2013-05-22 00:18:00 -07:00
Kevin Tang
2fe7829e6d Detect APQ8074 HW, fixed
Previously the SOC ID was incorrect. Corrected now.

Change-Id: I49925d3bbffdac8db87524b3483054e93770d75d
2013-05-20 18:32:35 -07:00
Linux Build Service Account
c1470ca5c7 Merge "Detect APQ8074 HW" 2013-05-17 06:43:18 -07:00
Kevin Tang
deda0b3b41 Detect APQ8074 HW
Detect APQ8074 Hardware so as to run in APQ mode.
Choose target as TARGET_APQ8064_STANDALONE
When hardware_platform=apq and SOC id is 126
GPS HAL needs to know so as to disable AGPS
feature.

Change-Id: Iabd95de6b401ff5fc72cfd32de6cea5250c19eb4
2013-05-16 16:15:18 -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
ded83e6045 Merge "Set On Demand Time as default in gps.conf" 2013-05-09 19:41:05 -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
Linux Build Service Account
9dc77fa9e6 Merge "Send data disable to modem during init" 2013-05-01 23:30:06 -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
Linux Build Service Account
49291aa9fe Merge "msm8610 bringup changes" 2013-04-30 01:31:53 -07:00