From 779b77455fc51382ecafa210b8a805d2a616da55 Mon Sep 17 00:00:00 2001 From: Victoria Lease Date: Wed, 31 Oct 2012 15:54:05 -0700 Subject: fix NLP for COARSE applications, build FLP with SDK In this commit, we provide a means for unbundled location providers to attach an EXTRA_NO_GPS_LOCATION to the Locations that they report. We also build FusedLocation against the SDK rather than the internal tree. Used in conjunction with I394ded497b8de40d1f85618bff282553cdf378cb to fix NLP for applications with only ACCESS_COARSE_LOCATION permission. Bug: 7453355 Change-Id: Ie696f7abff9ef5237740ab87fe9f537a1c812c54 --- location/java/android/location/Location.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'location/java') diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index f057ebcc1e80..4025a7b44710 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"; -- cgit v1.2.3-59-g8ed1b