diff options
author | Victoria Lease <violets@google.com> | 2012-11-01 15:07:56 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-01 15:07:56 -0700 |
commit | 1e701979a031f42ee0fa0a07b151f6c61314e2e4 (patch) | |
tree | ba0fad267efd6abc3fa812f3122af7449ac0257f /location | |
parent | 7e1a45d8af9d02fc552d65f2abcaefe3096b2c9c (diff) | |
parent | 779b77455fc51382ecafa210b8a805d2a616da55 (diff) | |
download | frameworks_base-1e701979a031f42ee0fa0a07b151f6c61314e2e4.zip frameworks_base-1e701979a031f42ee0fa0a07b151f6c61314e2e4.tar.gz frameworks_base-1e701979a031f42ee0fa0a07b151f6c61314e2e4.tar.bz2 |
Merge "fix NLP for COARSE applications, build FLP with SDK" into jb-mr1-dev
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/Location.java | 8 | ||||
-rw-r--r-- | location/lib/java/com/android/location/provider/LocationProviderBase.java | 17 |
2 files changed, 25 insertions, 0 deletions
diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index f057ebc..4025a7b 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -60,11 +60,19 @@ public class Location implements Parcelable { public static final int FORMAT_SECONDS = 2; /** + * Bundle key for a version of the location that has been fed through + * LocationFudger. Allows location providers to flag locations as being + * safe for use with ACCESS_COARSE_LOCATION permission. + * * @hide */ public static final String EXTRA_COARSE_LOCATION = "coarseLocation"; /** + * Bundle key for a version of the location containing no GPS data. + * Allows location providers to flag locations as being safe to + * feed to LocationFudger. + * * @hide */ public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation"; diff --git a/location/lib/java/com/android/location/provider/LocationProviderBase.java b/location/lib/java/com/android/location/provider/LocationProviderBase.java index b0e5d2c..8a5a739 100644 --- a/location/lib/java/com/android/location/provider/LocationProviderBase.java +++ b/location/lib/java/com/android/location/provider/LocationProviderBase.java @@ -23,6 +23,8 @@ import java.io.PrintWriter; import android.content.Context; import android.location.ILocationManager; import android.location.Location; +import android.location.LocationManager; +import android.location.LocationRequest; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; @@ -58,6 +60,21 @@ public abstract class LocationProviderBase { private final ProviderProperties mProperties; private final IBinder mBinder; + /** + * Bundle key for a version of the location containing no GPS data. + * Allows location providers to flag locations as being safe to + * feed to LocationFudger. + */ + public static final String EXTRA_NO_GPS_LOCATION = Location.EXTRA_NO_GPS_LOCATION; + + /** + * Name of the Fused location provider. + * + * <p>This provider combines inputs for all possible location sources + * to provide the best possible Location fix. + */ + public static final String FUSED_PROVIDER = LocationManager.FUSED_PROVIDER; + private final class Service extends ILocationProvider.Stub { @Override public void enable() { |