diff options
author | Mike Lockwood <lockwood@android.com> | 2009-10-08 15:45:03 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-10-08 17:24:21 -0400 |
commit | 03d246779ea65fc2bd10d0b4f32620f45211133a (patch) | |
tree | c0bba5558070d24e11c324af60f716f580229703 /test-runner/android/test/TestLocationProvider.java | |
parent | 9d5b58991ef90e91b3c942c80ae3502ed62d10aa (diff) | |
download | frameworks_base-03d246779ea65fc2bd10d0b4f32620f45211133a.zip frameworks_base-03d246779ea65fc2bd10d0b4f32620f45211133a.tar.gz frameworks_base-03d246779ea65fc2bd10d0b4f32620f45211133a.tar.bz2 |
GPS: Fix problem with SUPL when SUPL APN is already active.
Use ConnectivityManager.CONNECTIVITY_ACTION broadcast in LocationManagerService
to notify GPS when SUPL connection is ready instead of TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED,
which is not sent in all cases.
Expand LocationProvider.updateNetworkState() to include NetworkInfo object.
Fixes bug b/2155661
Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'test-runner/android/test/TestLocationProvider.java')
-rw-r--r-- | test-runner/android/test/TestLocationProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test-runner/android/test/TestLocationProvider.java b/test-runner/android/test/TestLocationProvider.java index 2ea020e..dc07585 100644 --- a/test-runner/android/test/TestLocationProvider.java +++ b/test-runner/android/test/TestLocationProvider.java @@ -22,6 +22,7 @@ import android.location.ILocationManager; import android.location.ILocationProvider; import android.location.Location; import android.location.LocationProvider; +import android.net.NetworkInfo; import android.os.Bundle; import android.os.RemoteException; import android.os.SystemClock; @@ -156,7 +157,7 @@ public class TestLocationProvider extends ILocationProvider.Stub { public void setMinTime(long minTime) { } - public void updateNetworkState(int state) { + public void updateNetworkState(int state, NetworkInfo info) { } public void updateLocation(Location location) { |