Commit graph

4945 commits

Author SHA1 Message Date
Linux Build Service Account
b3a5168ac1 Merge "Fix for the crash that was caused when accessing UlpProxy" 2013-08-22 19:38:36 -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
7d8ec9155e Merge "Remove ENABLE_WIPER parameter" 2013-08-21 03:48:11 -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
c610c40055 Merge "Replace sysdev path" 2013-08-20 10:01:56 -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
Satya Durga Srinivasu Prabhala
cb12f393d2 Replace sysdev path
sysdev gets deprecated in 3.10 Kernel. Hence, replacing
sysdev path with relevant path/s.

Change-Id: I8fbb1959ba4dfba34fdac6d271e59fd25237f899
2013-08-15 12:22:32 -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
Linux Build Service Account
6e83f87256 Merge "Remove masks for Glonass" 2013-08-12 09:24:01 -07:00
Tushar Janefalkar
7d128bf31e Remove masks for Glonass
Masks for deleting aiding data
of Glonass satellites have been
moved to gps.h. Also added NAME_VAL
pairs for BDS

Change-Id: I6b5e427e3bac3936f98137ddc1c25cb35f324231
CRs-fixed: 498642
2013-08-12 03:12:40 -07:00
Linux Build Service Account
e3c48121c1 Merge "Return NULL AGPS interface on APQ target." 2013-08-11 23:10:22 -07:00
Linux Build Service Account
259c58fd27 Merge "removed ulp dependency." 2013-08-11 23:10:22 -07:00
Linux Build Service Account
f88f2d844e Merge "corresponding to izat_core and LBSAdapter changes." 2013-08-11 23:10:21 -07:00
Linux Build Service Account
d6db816507 Merge "Revert "Revert "Location Hal Design Level Change for FLP Requirement""." 2013-08-11 23:10:21 -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
Kevin Tang
61fedb4567 removed ulp dependency.
ULP will no longer be loaded and init'ed from loc eng
HAL. GPS HAL will look for ULP once it completes init
and waits for a msg back once it hears from ULP. This
is done with introduction of UlpProxy. Default proxy
is a no op proxy.

Change-Id: If0be0b5744f9de20f12c2f0b9704dea66aa454c0
(cherry picked from commit 2eb4ddcae94283df6c6be450c4c070ffd8ff9cd7)
2013-08-09 11:44:34 -07:00
Kevin Tang
3535edcfb0 corresponding to izat_core and LBSAdapter changes.
Removed makefile dependency to AndrodRuntime; Renamed
library to be loaded from liblocation to libizat_core;
Made some class private access to protected for the
needs of inheritance; piggy bagged some optimizations.

Change-Id: Id7e3127baa1833cbad7739f50808941c733b87f2
(cherry picked from commit c039ceaec84b25573d710b31831c9b06d4f3d1c6)
2013-08-09 11:44:27 -07:00
Kevin Tang
11adbb371f Revert "Revert "Location Hal Design Level Change for FLP Requirement"".
This reverts commit 55a6841843.
(cherry picked from commit 363ed1a6b09d7426bfd3726becd2d713da57fa80)

Change-Id: I19153a904dd7587dfd517dcc86f51f4b1110289a
2013-08-09 11:44:12 -07:00
Linux Build Service Account
8f25d495f6 Merge "Revert "Location Hal Design Level Change for FLP Requirement"" 2013-08-07 08:39:10 -07:00
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
Linux Build Service Account
66f58f5b05 Merge "Location Hal Design Level Change for FLP Requirement" 2013-08-04 01:16:57 -07:00
Linux Build Service Account
37daadb831 Merge "A mechanism to detect APQ chip set" 2013-08-04 01:16:56 -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
Linux Build Service Account
e7cafab287 Merge "Disable xtra url query off by default" 2013-07-25 01:20:53 -07:00
Dante Russo
0d78c70622 Disable xtra url query off by default
In some targets, the xtra url query can cause modem to
crash on bootup.

Change-Id: Ib224b382892257737598b1cc40f78ddcd4b90fd2
2013-07-24 04:14:16 -07:00
Gohulan Balachandran
caff225a0b Fix merge damage. 2013-07-23 20:45:47 -06:00
Linux Build Service Account
cb9f83cecd Merge "made a convenient msg_q_init2" 2013-07-23 20:12:54 -06:00
Kevin Tang
d42eeebb5a made a convenient msg_q_init2
the original msg_q_init takes a q handle in the parameter list
which makes it inconvenient for chain statement. This really
adds nothing be making it slightly convenient

Change-Id: I1e7f931d6b278c804ec6f7d87c1a79a3ffcceb75
2013-07-23 20:12:54 -06:00
Linux Build Service Account
60fe2fd64e Merge "Checking Geofence Mask in gps.conf" 2013-07-23 20:12:53 -06: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
Linux Build Service Account
2077be9e0a Merge "Merge up to MR1 tip" 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
Linux Build Service Account
2ad8c6a200 Merge "Removed all ULP specific constructs from HAL" 2013-07-23 20:06:01 -06:00
Linux Build Service Account
83914b1999 Merge "Fixes ULP and FLP operation when GPS not enabled" 2013-07-23 20:06:00 -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
Linux Build Service Account
197c2755f1 Merge "Return the correct value from loc_eng_init" 2013-07-23 20:05:59 -06:00
Linux Build Service Account
97b0048346 Merge "Make Loc Init Asynchronous" 2013-07-23 20:05:59 -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
Linux Build Service Account
4822d3ba89 Merge "Added more delete assistance data flags" 2013-07-23 20:05:58 -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
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