Commit graph

101 commits

Author SHA1 Message Date
Sridhar Gujje
55a6841843 Revert "Location Hal Design Level Change for FLP Requirement"
This reverts commit a915406668

Change-Id: I7f677a9540a64a60b5f4ed898ba6bed8b3482687
2013-08-07 03:27:20 -07:00
Kevin Tang
a915406668 Location Hal Design Level Change for FLP Requirement
Changes can be highlighted with below summary:
* Split the original LocApiAdapter to LocAdapter and LocApi.
  Now different adapter implementations can flexibly connect
  to different LocApi;
* LocApi continues to abstract the API binding to RPC or QMI;
* MsgTask which creates and owns a msg Q and a thread, and it
  define a LocMsg base msg class. The handler pulls a msg out
  of the Q and calls its proc() method. This makes it possible
  for msg sender to keep the data in the msg encapsulated, as
  it no longer requires a central msg handler who must under-
  stand all data format. This used to be where all the compile
  time dependencies are tangled together;
* Added Context to bundle MsgTask and LocApi;
* Added LocDualContext specifically for the FLP Location Hal
  architecture requirement;
* Placed all the base classes of the above in loc_core folder
  / loc_core namespace / libloc_core.so, so other libraries
  can easily use derive from here without having to pull in
  the loc_eng implementation, which is a large library to
  include or link to;

Change-Id: I40abfba96dea76757c98530c1f5e076b34ba4ac7
2013-08-02 19:29:22 -07:00
Tushar Janefalkar
e5e62728a2 A mechanism to detect APQ chip set
The current changes to default the operation mode
to Standalone by the CHIP ID. A new method is used
for solving this issue.

CRs-Fixed: 510462
Change-Id: I58fd85e2c28bf824edeaef62660c62c34761bd37
2013-08-02 19:01:02 -07:00
Jiafei Wen
b86a09596e Checking Geofence Mask in gps.conf
Check the CAPABILITIES in gps.conf to see if the geofence is
enabled or not. If it is not enabled, the function of getting
geofence interface will return null.

Change-Id: I6500cedd775d83b4701fbe2b3a111c170c8a34be
CRs-fixed: 513494
2013-07-23 20:12:52 -06:00
Gohulan Balachandran
efd4e124a6 Merge up to MR1 tip
Point merged in is cc92e0ccd4

Change-Id: I3b782716fee9ed519b77a4e415fa08155bdce76a
2013-07-23 20:12:17 -06:00
Satheesh Jayakumar
002d6ba629 Removed all ULP specific constructs from HAL
Changed the communication path from ULP JNI to libulp
engine to avoid the GPS HAL layer. This improves modularity,
removes dependencies and promote easier integration for OEMs.

Change-Id: I6bc883499b8ed3649cfc194038057a19ba2fd4f6
2013-07-23 20:06:00 -06:00
Satheesh Jayakumar
a7aa6a45fb 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-07-23 20:06:00 -06:00
Tushar Janefalkar
af3b8cb4a9 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-07-23 20:05:59 -06:00
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
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
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
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
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
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
Iliyan Malchev
2a9f38e7bf Merge "gps: geofence hal integration" into jb-mr2-dev 2013-04-10 18:20:17 +00:00
Ying Wang
ce5efcc57f Add liblog
Bug: 8580410
Change-Id: Ife86cba2312cf83f263b07bfe8f3b655ec7d1a70
2013-04-09 21:59:18 -07:00
Dante Russo
23d1e163c3 gps: geofence hal integration
Change-Id: Ia5b9c4d12c85d7d7c06b2b6037a568a43f0e8b2c
2013-04-09 21:11:27 -07:00