diff options
author | Mike Lockwood <lockwood@android.com> | 2009-05-07 10:12:54 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-05-07 11:02:22 -0400 |
commit | 0528b9b26a9d64ba43acd0e334638303d514b8eb (patch) | |
tree | 52b5ce3b9887e8b6e5ca7800b3fe41a42144a9f8 /test-runner/android/test | |
parent | 90da134befec804852775be7fd4905a1a188ff00 (diff) | |
download | frameworks_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.java | 6 |
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; |