Commit graph

4720 commits

Author SHA1 Message Date
Ajay Dudani
6f36c0ec74 Silence more gps function tracing logs
Change-Id: I33f672950f59ad739362263d212424f8f55ab88b
2012-09-21 19:13:34 -07:00
Kevin Tang
af0b025a0a QMI LOC and Loc API update:
Inject motion data and Get NI Geofence List;
subsystem restart over QMUXD;
CR 368109
SGLTE CID / OOS / NI SUPL INIT

Change-Id: I3bd77e87de61c2c2565bbb151d661c717367c0ed
2012-09-20 19:05:59 -07:00
Linux Build Service Account
48cd8b423b Merge "gps: AP NMEA generation" 2012-09-19 13:33:15 -07:00
Linux Build Service Account
6947e9cb07 Merge "gps: launch GSS on bootup even if GPS is disabled" 2012-09-19 02:54:55 -07:00
Dante Russo
a3409617b6 gps: AP NMEA generation
Generate NMEA sentences on the AP

Change-Id: Ifc9e9263868ab4dec450bef35c53c441c881a072
2012-09-17 07:34:08 -07:00
Ajay Dudani
ca3538229b gps: Fix typo in checking for qmi-framework
b/7175603

This caused one of the gps related libraries to be not built in the full tree,
causing GPS failure

Change-Id: Iff51c1a588a22f0b46b075ebf27d2b6493b97e40
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-09-16 15:51:00 -07:00
Ajay Dudani
197fe088f7 dynamically build and load adapter libs
This is to support bringup efforts. This change will decouple
the dependencies between GPS HAL and proprietary QMI headers,
so that we can build HAL without any proprietary repos.

Change-Id: I7b836d09f4ac6b1a1bdb38f8d6a2bfb90bb5bf01
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-09-15 13:44:20 -07:00
Linux Build Service Account
24d928186f Merge "gps: control session state evt from HAL, not modem" 2012-09-15 12:15:05 -07:00
Ajay Dudani
ac8fa07a02 gps: control session state evt from HAL, not modem
Suppress the registering for QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02
event from modem, that is normally responsible for generating
GPS_STATUS_SESSION_BEGIN and GPS_STATUS_SESSION_END, and instead
initiate these events from hal from when we get GPS_STATUS_ENGINE_ON
and GPS_STATUS_ENGINE_OFF.

Change-Id: I9d220bef7ee4f989a3982d888ed46279861f612d
2012-09-14 17:49:49 -07:00
Dante Russo
4d0a381848 gps: launch GSS on bootup even if GPS is disabled
Move the launching of GSS from loc_init to
get_gps_interface, since loc_init is only called
by AFW when GPS is enabled.

CRs-fixed: 399637
Change-Id: I7cf8500f6a345f3bef71f717c595ea734da2bff2
2012-09-14 13:47:20 -07:00
Linux Build Service Account
4b16112ce5 Merge "GPS: fix the issue that GNSS position report are dropped in PPC based target" 2012-09-11 15:57:13 -07:00
Vineela Tummalapalli
06ce79b8fa GPS: fix the issue that GNSS position report are dropped in PPC based target
Change-Id: I94fb2bd12ac8751cbd2366a4cc5fde4b52d17f64
CRs-Fixed: 395398
2012-09-11 18:35:28 +05:30
Ajay Dudani
0620ede4b3 Reduce default logging verbosity to error & warning logs only
Change-Id: I3da98ccc8e1dfc1d0ef9f51bd96d22fc385ba529
2012-09-10 22:03:14 -07:00
Dante Russo
02d13cc646 gps: control session state evt from HAL, not modem
Suppress the registering for QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02
event from modem, that is normally responsible for generating
GPS_STATUS_SESSION_BEGIN and GPS_STATUS_SESSION_END, and instead
initiate these events from hal from when we get GPS_STATUS_ENGINE_ON
and GPS_STATUS_ENGINE_OFF

Change-Id: I9d220bef7ee4f989a3982d888ed46279861f612d
CRs-fixed: 370904
2012-09-10 16:58:40 -07:00
Dante Russo
d3b220c611 gps: fix SSR issue
If service list check fails initially while the modem
is not up yet, the rc is not updated after client gets
signaled that the modem is now up.

Change-Id: I5fe05ddad7764874eda45521e9394bfbee0eb85f
CRs-fixed: 385158
2012-09-07 15:13:43 -07:00
Linux Build Service Account
8c9ee75ac6 Merge "gps: add support for msm8974" into jb 2012-09-05 11:39:45 -07:00
Linux Build Service Account
0d9f485c56 Merge "build: Include path to TARGET_OUT_HEADERS in LOCAL_C_INCLUDES" into jb 2012-09-02 11:04:47 -07:00
Linux Build Service Account
23559d02ae Merge "loc_api: Fix QUIPS position being dropped at GPS HAL" into jb 2012-09-01 12:01:52 -07:00
Dante Russo
b4f4652ce2 gps: add support for msm8974
Change-Id: I4a4520bcfb118fea8dfc244efff4837003466d34
2012-08-31 15:48:18 -07:00
Neethu Joseph
332389d67f loc_api: Fix QUIPS position being dropped at GPS HAL
Change-Id: I10606597f39b29fd4b3a8acfacd9a8c17aa9713f
2012-08-29 12:16:57 -07:00
Linux Build Service Account
5a1211b42f Merge "loc_api: Send position technology mask to ulp" into jb 2012-08-26 04:32:23 -07:00
Neethu Joseph
7ce61c42e2 loc_api: Send position technology mask to ulp
Sends the technology mask of the position report to ulp and blocks
the injected wifi fix from getting reported as final

Change-Id: I3a9b390d3d6d9be1a913731d6e8d8ee1d3ced686
2012-08-21 09:38:26 -07:00
woojin.shin
0a49d62c7a gps: enable nmea callback
Add code for calling NMEA callback for receiving NMEA.

Change-Id: I04689cbc166e3db9d4479bf85636363a87176468
2012-08-21 09:04:45 -07:00
Nagender Telkar
b1595d72cb build: Include path to TARGET_OUT_HEADERS in LOCAL_C_INCLUDES
Change-Id: I5cd48e37ef747a021329f8d166320ee88ef2fd3e
2012-08-18 21:48:19 -07:00
Dante Russo
72e3b852de loc_api_v02: Initialize the QMI notifier before looking for service
Looking for a service results in opening and closing the IPC Router
socket. This in turn involves IPC Router to trigger loading & unloading
the modem. Sometimes this causes the race condition between modem unload
and modem coming out of reset.

CRs-fixed: 384906
Change-Id: I61767d3eeab5867f64f94c5d4cdee4272de2dc44
2012-08-15 15:54:24 -07:00
Linux Build Service Account
f2738552cc Merge "gps: merge ics tip into jb" into jb 2012-08-08 21:08:19 -07:00
Dante Russo
cd9e934abe gps: merge ics tip into jb
Merges the following change lists:
Ibdd65ec497ad6996c5d55ca907a995ed63b797cf
I75266b7102f8cd06db7b9bf038ee24c0dfbed822
I398704add524a807ddc088dfd28520dad7668784

Change-Id: I29275e65fc98568625eded942587c87b4ac8d1b9
2012-08-08 14:33:55 -07:00
Jessica Gonzalez
1c7db235ba Merge commit 'android-cts-4.1_r1' into HEAD 2012-08-01 16:26:52 -07:00
Dante Russo
3088fe9117 gps: jb porting with qcom enhanced features
based from AU_LINUX_ANDROID_ICS.04.00.04.00.205

Change-Id: I0af1da1438a136e98b59110641ce5c7714da220b
2012-07-18 15:13:16 -07:00
Dante Russo
3c2630ef2a gps: initial merge to jb
based from AU_LINUX_ANDROID_ICS.04.00.01.00.007
with qcom enhanced features flagged out

Change-Id: I2bc03fe4447047fd7c9a7d000040dadb8bb34647
2012-07-12 21:58:21 -07:00
Anup Dasari
a2fc84b219 Add optional flag in make file
Change-Id: I099cd597c77641bdf2a98732f87484ec6d70f9a9
2012-07-10 22:35:56 +05:30
Ajay Dudani
f77c85bb51 gps: Initial implementation of msm gps hal
Change-Id: Icf126a0bbb9dec414144b9b405694e41777920d5
2012-07-09 15:43:56 -07:00
Mike Lockwood
80698b8a3d Merge remote-tracking branch 'goog/ics-aah' 2012-04-03 10:47:43 -07:00
Nick Kralevich
7573253c26 remove HAL_MODULE_INFO_SYM const
HAL_MODULE_INFO_SYM was declared as read-only, but
the struct is written to by libhardware.  This causes
a segfault when -Wl,-z,relro is enabled.

Fixed.

Change-Id: Ied24f54a294ea705b06754a419823d595e3def62
2012-03-01 17:07:59 -08:00
Steve Block
8b3fe9b3cf Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I9d2c4a1a9b0edda94f2eeacc1f4d270bf4d66804
2012-01-08 10:17:54 +00:00
Steve Block
2ce3102288 Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: Ia13cca6426a15037e01069954308e95f31c17336
2012-01-05 23:27:52 +00:00
Steve Block
b72262b057 Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: I3fc8b0f9a0da503ff9e79a166a08e13e0ce9730d
2012-01-04 20:07:13 +00:00
Steve Block
b80e8ff4f8 Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I5a8da519f9d62f6b2978313462e32cba4cec6304
2012-01-03 22:31:41 +00:00
Ed Heyl
a8ee4007d3 keep previous history after reset to mr1 plus aah changes (ics-aah-wip) 2011-10-28 19:05:54 +00:00
Ed Heyl
a5c763db53 undo reset to ics-mr1 until we have a better method 2011-10-26 21:53:25 +00:00
Ed Heyl
1f2724c30f reset to ics-mr1, but keep history 2011-10-26 18:50:22 +00:00
Steve Block
17adf129e8 am 7c2f7b69: (-s ours) Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
* commit '7c2f7b69f91e660f872d0ca15ab14b32d23e53d4':
  Rename LOGV(_IF) to ALOGV(_IF)  DO NOT MERGE
2011-10-26 04:48:27 -07:00
Steve Block
7c2f7b69f9 Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: Idd9e9b1c42806438a86507d614c64aa42ef42e16
2011-10-25 18:16:19 +01:00
Iliyan Malchev
13e995a1fe hardware/qcom/gps: remove LOCAL_PRELINK_MODULE
Change-Id: Ief16d1230650afb07a395a03c7ecefa9b6434376
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-03-14 14:24:25 -07:00
Mike Lockwood
a162c43519 Fix threading problem that resulted in the wakelock being held too long.
In some circumstances we were calling wait after we had been signalled, causing
us to wait until we are signalled again (while holding a wakelock).
Now we only want to wait in the deferred action thread if no events are pending
and only hold the wakelock while not waiting.

BUG: 3127617

Change-Id: I4c6886b2bbdcbcb2c0cf348d89bc5408f0d875b9
Signed-off-by: Mike Lockwood <lockwood@google.com>
2010-10-27 15:18:59 -04:00
Mike Lockwood
0b602e40b8 Fix recursive use of mutex introduced in previous change.
Change-Id: I2ef4e1187a03f28712d16920b275d39963ff5ac7
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-26 00:09:25 -04:00
Mike Lockwood
bd3166c592 Work around a problem stopping the GPS engine while an AGPS data call is active
Sometimes the engine does not send us the GPS_STATUS_ENGINE_OFF message,
so we end up blinking the GPS icon forever.  Deferring the loc_eng_stop call
until the AGPS activity is done works around this problem.

Change-Id: Iad0d15323ff909c0d371f9db3a6e899e51375a99
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-25 23:36:16 -04:00
Mike Lockwood
9391343952 loc_api: Disable code that completely shuts down our connection with the GPS
This avoids a race condition that can crash the BP if the GPS is disabled
in settings while it is running.

This also fixes a problem with the GPS icon in the status bar not
getting removed when the GPS is disabled.

BUG: 3005091

Change-Id: I539eef716231cefae3d4d0a8203135da9827b45d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-09-22 14:27:57 -04:00
Mike Lockwood
5153d56321 loc_api: Use create_thread_cb for all threads that call back into the framework.
Change-Id: I07c2d5664d3f1a167af56ddd76b60393de170931
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-06-20 14:31:24 -07:00
Mike Lockwood
c6419effb6 librpc: XDRs and glue code for AMSS 1240
Change-Id: Ic69d0085ab8793c6d32f811892cb3e0375b2ef6c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-06-17 23:55:20 -07:00