diff options
author | Mike Lockwood <lockwood@android.com> | 2009-04-17 18:03:44 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-04-17 18:06:18 -0400 |
commit | 98cb66797422c4ccdee6f1a07636146d784a471b (patch) | |
tree | aed685bfa6fd15157085e3a1bb259ac4115ead15 /location | |
parent | 981980e5da71e794d33eaea8c12bfe6e14745e90 (diff) | |
download | frameworks_base-98cb66797422c4ccdee6f1a07636146d784a471b.zip frameworks_base-98cb66797422c4ccdee6f1a07636146d784a471b.tar.gz frameworks_base-98cb66797422c4ccdee6f1a07636146d784a471b.tar.bz2 |
More Location Manager cleanup:
Move LocationCollector support out of GpsLocationProvider.
Don't disable GPS when screen is off.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location')
-rw-r--r-- | location/java/com/android/internal/location/GpsLocationProvider.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java index f133b4f..c825724 100644 --- a/location/java/com/android/internal/location/GpsLocationProvider.java +++ b/location/java/com/android/internal/location/GpsLocationProvider.java @@ -22,7 +22,6 @@ import android.content.Intent; import android.content.IntentFilter; import android.location.Criteria; import android.location.IGpsStatusListener; -import android.location.ILocationCollector; import android.location.ILocationManager; import android.location.Location; import android.location.LocationManager; @@ -207,8 +206,6 @@ public class GpsLocationProvider extends LocationProviderImpl { // current setting - 5 minutes private static final long RETRY_INTERVAL = 5*60*1000; - private ILocationCollector mCollector; - private class TelephonyBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); @@ -272,10 +269,6 @@ public class GpsLocationProvider extends LocationProviderImpl { } } - public void setLocationCollector(ILocationCollector collector) { - mCollector = collector; - } - /** * Returns true if the provider requires access to a * data network (e.g., the Internet), false otherwise. @@ -729,16 +722,6 @@ public class GpsLocationProvider extends LocationProviderImpl { } reportLocationChanged(mLocation); - - // Send to collector - if ((flags & LOCATION_HAS_LAT_LONG) == LOCATION_HAS_LAT_LONG - && mCollector != null) { - try { - mCollector.updateLocation(mLocation); - } catch (RemoteException e) { - Log.w(TAG, "mCollector.updateLocation failed"); - } - } } if (mStarted && mStatus != AVAILABLE) { |