Commit graph

62 commits

Author SHA1 Message Date
The Android Open Source Project
40b45d7a94 am 16e52e06: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '16e52e065457fa480e0b684500bc1023ad40bc36':
2012-10-31 09:22:33 -07:00
The Android Open Source Project
16e52e0654 Reconcile with jb-mr1-release - do not merge
Change-Id: Ie52cdeb09f0af68d833ccb50e63d72ab5a5efea2
2012-10-31 09:17:34 -07:00
Iliyan Malchev
f0af7289cb am 8ba1fbee: am c74962df: chmod uga-x
* commit '8ba1fbeef87f451a06919b1d596b79ce09b3daa7':
  chmod uga-x
2012-10-29 17:15:55 -07:00
Iliyan Malchev
8ba1fbeef8 am c74962df: chmod uga-x
* commit 'c74962df0d30bdb176472a1775a794fd93b1cd7a':
  chmod uga-x
2012-10-29 14:31:34 -07:00
The Android Automerger
283486517d merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-29 11:20:06 -07:00
Iliyan Malchev
c74962df0d chmod uga-x
find -type f -perm +111 -name \*.[ch]\* -exec chmod uga-x {} \;

Bug: 7428209
Change-Id: I991e3fb62a46f4b4cd727ef4b6a4472b4015ce33
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-27 14:22:13 -07:00
The Android Automerger
6f1ee47d21 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-19 06:59:46 -07:00
woojin.shin
6fa8714c3a am 22809b1a: am 9365bf1f: gps: fix for no gps signals after modem reset
* commit '22809b1a09d3b5817e2a31ecc5d1e2294f6f7dae':
  gps: fix for no gps signals after modem reset
2012-10-18 14:54:44 -07:00
woojin.shin
22809b1a09 am 9365bf1f: gps: fix for no gps signals after modem reset
* commit '9365bf1ffd633b65bad7f95af90dcbb53e41652b':
  gps: fix for no gps signals after modem reset
2012-10-18 14:52:12 -07:00
woojin.shin
9365bf1ffd gps: fix for no gps signals after modem reset
This fixes the problem that GPS doesn't work until reboot after modem reset.

Bug: 7216911
Change-Id: Ibfee6a28850490548da2e0ccaefdabe9b826b5e9
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-18 13:50:31 -07:00
The Android Open Source Project
d2d637cd6d am 6f441d38: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '6f441d38d863a64a463ae3c5ec188e7e2962b9e2':
  disabled agps state machine delete in cleanup
  gps: report session begin/end on gps start/stop
2012-10-02 09:24:27 -07:00
The Android Open Source Project
6f441d38d8 Reconcile with jb-mr1-release - do not merge
Change-Id: Ifbd9be57ffd54239f7d0b9271f262042394b938e
2012-10-02 09:18:57 -07:00
Mekala Natarajan
fb4152c14b disabled agps state machine delete in cleanup
The current cleanup mismatches agps_init(), so that it the agps state
machines will get deleted in the cleanup but never get recreated next
time apgs_init() is called.

Bug 7216641

Change-Id: Iddba9fd0d90c790e658f14c42c8a25d22b8749c0
2012-09-27 18:21:50 -07:00
Ajay Dudani
d12dd7f6cc gps: report session begin/end on gps start/stop
Since modem does not consistently send
SESSON_END/ENGINE_OFF event, always report
SESSION_END on stop gps and SESSION_BEGIN on
start gps so that the icon is turned on/off
correctly.

Bug 7185242

Change-Id: Ib3954529056a653d7057aedb489be1ccee9eaf1d
2012-09-27 18:21:24 -07:00
Brian Muramatsu
586a62cda0 Merge "gps: report session begin/end on gps start/stop" into jb-mr1-dev 2012-09-26 18:41:16 -07:00
Mekala Natarajan
205590ae1b disabled agps state machine delete in cleanup
The current cleanup mismatches agps_init(), so that it the agps state
machines will get deleted in the cleanup but never get recreated next
time apgs_init() is called.

Bug 7216641

Change-Id: Iddba9fd0d90c790e658f14c42c8a25d22b8749c0
2012-09-26 17:21:33 -07:00
Ajay Dudani
56de3d4311 gps: report session begin/end on gps start/stop
Since modem does not consistently send
SESSON_END/ENGINE_OFF event, always report
SESSION_END on stop gps and SESSION_BEGIN on
start gps so that the icon is turned on/off
correctly.

Bug 7185242

Change-Id: Ib3954529056a653d7057aedb489be1ccee9eaf1d
2012-09-26 16:38:31 -07:00
Ajay Dudani
6f36c0ec74 Silence more gps function tracing logs
Change-Id: I33f672950f59ad739362263d212424f8f55ab88b
2012-09-21 19:13:34 -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
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
Ajay Dudani
0620ede4b3 Reduce default logging verbosity to error & warning logs only
Change-Id: I3da98ccc8e1dfc1d0ef9f51bd96d22fc385ba529
2012-09-10 22:03:14 -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
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
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