diff options
author | David Christie <dnchrist@google.com> | 2013-08-08 12:56:57 -0700 |
---|---|---|
committer | David Christie <dnchrist@google.com> | 2013-08-08 14:06:25 -0700 |
commit | c750c1fb83fbdec895e236dda7207db4da14ec49 (patch) | |
tree | 0b853aa47bad8e6dd2c3eafd1f1bd7437768d170 /location | |
parent | 4104d3295203d8a1f2d15d572293fdc1171631c6 (diff) | |
download | frameworks_base-c750c1fb83fbdec895e236dda7207db4da14ec49.zip frameworks_base-c750c1fb83fbdec895e236dda7207db4da14ec49.tar.gz frameworks_base-c750c1fb83fbdec895e236dda7207db4da14ec49.tar.bz2 |
Update gps status icon to be a "high power" location icon.
Move icon to right side of the screen and synchronize status with
AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION.
Change-Id: Iea2570501cb18be0489669fd4ea240dc63f9567a
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/LocationManager.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index 989178a..e5f1cf5 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -177,6 +177,17 @@ public class LocationManager { */ public static final String EXTRA_GPS_ENABLED = "enabled"; + /** + * Broadcast intent action indicating that a high power location requests + * has either started or stopped being active. The current state of + * active location requests should be read from AppOpsManager using + * {@code OP_MONITOR_HIGH_POWER_LOCATION}. + * + * @hide + */ + public static final String HIGH_POWER_REQUEST_CHANGE_ACTION = + "android.location.HIGH_POWER_REQUEST_CHANGE"; + // Map from LocationListeners to their associated ListenerTransport objects private HashMap<LocationListener,ListenerTransport> mListeners = new HashMap<LocationListener,ListenerTransport>(); |