summaryrefslogtreecommitdiffstats
path: root/test-runner/android/test
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-05-07 10:12:54 -0400
committerMike Lockwood <lockwood@android.com>2009-05-07 11:02:22 -0400
commit0528b9b26a9d64ba43acd0e334638303d514b8eb (patch)
tree52b5ce3b9887e8b6e5ca7800b3fe41a42144a9f8 /test-runner/android/test
parent90da134befec804852775be7fd4905a1a188ff00 (diff)
downloadframeworks_base-0528b9b26a9d64ba43acd0e334638303d514b8eb.zip
frameworks_base-0528b9b26a9d64ba43acd0e334638303d514b8eb.tar.gz
frameworks_base-0528b9b26a9d64ba43acd0e334638303d514b8eb.tar.bz2
location: Location Manager wakelock cleanup
Location Providers are now responsible for their own wakelocks and scheduling. Also fixed a deadlock in LocationManagerService in the code for releasing wakelocks after client notifications have been received. The fix is to use the Receiver object and mWakeLock for synchronization instead of the global mLock lock. Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'test-runner/android/test')
-rw-r--r--test-runner/android/test/TestLocationProvider.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/test-runner/android/test/TestLocationProvider.java b/test-runner/android/test/TestLocationProvider.java
index 08603e3..dded745 100644
--- a/test-runner/android/test/TestLocationProvider.java
+++ b/test-runner/android/test/TestLocationProvider.java
@@ -169,12 +169,6 @@ public class TestLocationProvider extends ILocationProvider.Stub {
public void removeListener(int uid) {
}
- public void wakeLockAcquired() {
- }
-
- public void wakeLockReleased() {
- }
-
private void updateLocation() {
long time = SystemClock.uptimeMillis();
long multiplier = (time/5000)%500000;