Commit graph

48 commits

Author SHA1 Message Date
Dante Russo
b4f4652ce2 gps: add support for msm8974
Change-Id: I4a4520bcfb118fea8dfc244efff4837003466d34
2012-08-31 15:48:18 -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
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
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
Mike Lockwood
fba22d5c62 loc_api: rearrange RPC glue to allow having multiple versions of the API.
The API version can be chosen by specifying the AMSS version in the board config
by setting the BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION variable.
The existing GPS_LOC_API_HARDWARE has been renamed BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE

Change-Id: I25aa313d7f291b874d52dfb7edf151e280061438
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-06-17 23:53:00 -07:00
Mike Lockwood
3c865ec2f9 Add more parameters to set_position_mode, notify framework of our capabilities.
Change-Id: Ie53106b89030d48187d17be47482a3c74b837f3e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-14 18:40:30 -04:00
Mike Lockwood
2c115de409 Hold a wake lock while events are pending for the deferred action thread.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-14 14:26:34 -04:00
Mike Lockwood
a4977cd631 Fix deleting aiding data.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-06 05:44:01 -04:00
Mike Lockwood
237c22f03d Enable GPS privacy lock when GPS is disabled.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-06 05:44:01 -04:00
Mike Lockwood
ae1989429b Remove call to loc_apicb_app_deinit() to avoid ARM9 crashes after disabling.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-06 05:44:01 -04:00
Mike Lockwood
300b715b0d loc_api: Repackage as a new GPS HAL module.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-06 05:43:41 -04:00
Jean-Baptiste Queru
4633218609 Add an empty CleanSpec.mk
Change-Id: I304694bc9032ccaa3777885615be15c41447f6a5
2010-03-08 18:04:53 -08:00
The Android Open Source Project
13c7aa73ae Manual no-op merge 2010-02-11 12:39:25 -08:00
The Android Open Source Project
701be40c7e Merge from open-source master 2010-02-11 12:38:18 -08:00
Mike Lockwood
ac4e54a281 loc_api: Process all events in deferred action thread.
It is not safe to call into framework code from an RPC callback.

Change-Id: Idb85590f5648b85ba4dd352136f89652b3128fbe
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-02 14:07:43 -05:00
Mike Lockwood
16b7141d37 Do not build unless BOARD_GPS_LIBRARIES is set to libloc_api
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-02 14:07:38 -05:00
Mike Lockwood
91cfd13d29 loc_api: Send GPS_STATUS_ENGINE_ON and GPS_STATUS_SESSION_END
so GpsLocationProvider will release its wake lock when the GPS shuts down.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-02 14:07:31 -05:00
Mike Lockwood
dd710e32d5 Initial commit of Qualcomm's loc_api GPS library for the MSM platform.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-02 14:07:07 -05:00
The Android Open Source Project
ffaff8a84a empty first commit 2010-02-02 09:49:50 -08:00
Mike Lockwood
24d7556a88 loc_api: Process all events in deferred action thread.
It is not safe to call into framework code from an RPC callback.

Change-Id: Idb85590f5648b85ba4dd352136f89652b3128fbe
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-02 11:51:35 -05:00
Mike Lockwood
a28682a135 Do not build unless BOARD_GPS_LIBRARIES is set to libloc_api
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-22 14:41:54 -05:00
Mike Lockwood
6774225c78 loc_api: Send GPS_STATUS_ENGINE_ON and GPS_STATUS_SESSION_END
so GpsLocationProvider will release its wake lock when the GPS shuts down.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-22 08:47:48 -05:00
Mike Lockwood
b4c4f2016a Initial commit of Qualcomm's loc_api GPS library for the MSM platform.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-21 23:49:31 -05:00
Nico Sallembien
5a9bd01ce3 new project, first commit 2010-01-20 11:13:13 -08:00