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
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
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
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