Commit graph

4751 commits

Author SHA1 Message Date
Kevin Tang
cb119e6f52 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.

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

Change-Id: I369e461ca4ca61cea3a9729c84d24af4ffa8e51d
CRs-fixed: 472843
2013-07-23 20:05:58 -06:00
Dante Russo
112647bd23 Added more delete assistance data flags
Removed FEATURE_DELEXT flag that is no longer
needed after adding the flags for this feature
to gps_extended.h

Change-Id: Id8a095309892e2eb328a02ef17e4aa1b1b54e815
2013-07-23 20:05:57 -06:00
Linux Build Service Account
cd94ada8be Merge "Add support for having no qcom proprietary" 2013-07-23 20:05:56 -06:00
Dante Russo
c326530244 Add support for having no qcom proprietary
qcom bsp will handle xtra/agps/ni/time through
qcom propreitary service, and non-qcom bsp will handle
xtra/gps/ni/time through android framework.
xtra url will be queried from modem on qcom bsp,
and read from gps.conf from non-qcom bsp.

Change-Id: Ib54a1596caa65f7aa0358f639640c3d1074980e7
2013-07-23 20:05:56 -06:00
Linux Build Service Account
013dbdc8c0 Merge "Move loc_api_v02 to vendor/qcom-opensource/location" 2013-07-23 20:05:55 -06:00
Dante Russo
3156a1d44a Move loc_api_v02 to vendor/qcom-opensource/location
Change-Id: I70a427826c90114f895df4a666c6450fd4c3df54
2013-07-23 20:05:48 -06:00
Linux Build Service Account
cc92e0ccd4 Merge "Handle SSR based on service list" 2013-07-10 22:23:24 -07:00
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
aefb3e1625 Merge "hardware/qcom/gps: fixing build failure" 2013-07-09 05:27:09 -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
cba31f9da6 Merge "hardware/qcom/gps: Enabled Timestamps for on-target logging" 2013-07-09 05:27:07 -07:00
Linux Build Service Account
ae4939cda4 Merge "hardware/qcom/gps: Fixing gettid issue" 2013-07-09 05:27:06 -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
Tushar Janefalkar
dbc7464692 Handle SSR based on service list
No longer waiting on signal to determine
whether or not the service it up

Change-Id: I04602eb49bafd4485ff625c92ba2b64f8c711641
2013-07-08 15:05:24 -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
207b8ee9a5 hardware/qcom/gps: fixing build failure
minor fix for LE: missing loc-api include path

Change-Id: I73f99e2159016d2cb65feb407bb3c38a481fdbf5
2013-07-03 17:10:14 -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
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