diff options
author | Laurent Tu <laurentt@google.com> | 2012-10-30 14:54:02 -0700 |
---|---|---|
committer | Laurent Tu <laurentt@google.com> | 2012-11-01 15:22:22 -0700 |
commit | 7ab7f538924371a9dd4be7a27a6ae3b4c04b301c (patch) | |
tree | b78dc6cc0bdd8c32726a3e28c6df6e24cffaf06b /packages/FusedLocation | |
parent | 465c37533ac1fb76d76b062452ae19afb84aab0a (diff) | |
download | frameworks_base-7ab7f538924371a9dd4be7a27a6ae3b4c04b301c.zip frameworks_base-7ab7f538924371a9dd4be7a27a6ae3b4c04b301c.tar.gz frameworks_base-7ab7f538924371a9dd4be7a27a6ae3b4c04b301c.tar.bz2 |
Hide new location APIs and undeprecate old ones
Hide all new location APIs related to LocationRequest/Geofence and
undeprecate all deprecated APIs consequently to the LocationRequest and
Geofence introduction. Also introduce LocationRequestUnbundled for
LocationProviders to use.
Change-Id: I5b116c7d342041f45b341c88a4b6813571118018
Diffstat (limited to 'packages/FusedLocation')
-rw-r--r-- | packages/FusedLocation/src/com/android/location/fused/FusionEngine.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java b/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java index 60de79c..f137373 100644 --- a/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java +++ b/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java @@ -21,13 +21,13 @@ import java.io.PrintWriter; import java.util.HashMap; import com.android.location.provider.LocationProviderBase; +import com.android.location.provider.LocationRequestUnbundled; import com.android.location.provider.ProviderRequestUnbundled; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; -import android.location.LocationRequest; import android.os.Bundle; import android.os.Looper; import android.os.Parcelable; @@ -161,10 +161,10 @@ public class FusionEngine implements LocationListener { long networkInterval = Long.MAX_VALUE; long gpsInterval = Long.MAX_VALUE; - for (LocationRequest request : mRequest.getLocationRequests()) { + for (LocationRequestUnbundled request : mRequest.getLocationRequests()) { switch (request.getQuality()) { - case LocationRequest.ACCURACY_FINE: - case LocationRequest.POWER_HIGH: + case LocationRequestUnbundled.ACCURACY_FINE: + case LocationRequestUnbundled.POWER_HIGH: if (request.getInterval() < gpsInterval) { gpsInterval = request.getInterval(); } @@ -172,9 +172,9 @@ public class FusionEngine implements LocationListener { networkInterval = request.getInterval(); } break; - case LocationRequest.ACCURACY_BLOCK: - case LocationRequest.ACCURACY_CITY: - case LocationRequest.POWER_LOW: + case LocationRequestUnbundled.ACCURACY_BLOCK: + case LocationRequestUnbundled.ACCURACY_CITY: + case LocationRequestUnbundled.POWER_LOW: if (request.getInterval() < networkInterval) { networkInterval = request.getInterval(); } |