summaryrefslogtreecommitdiffstats
path: root/location/java/android/location/GpsNavigationMessageEvent.java
diff options
context:
space:
mode:
authordestradaa <destradaa@google.com>2014-11-07 00:07:30 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-07 00:07:30 +0000
commit031550a31e56bb8300ba9d1225004581ec156777 (patch)
tree7ff7ec53077c87bfda0f28fd6ca0ff64bb7f2007 /location/java/android/location/GpsNavigationMessageEvent.java
parent587cdde2e2bf7e833e433c1edd6e8078832e327c (diff)
parent9ed36c42d8c3731b8ca631292881110eb8897cec (diff)
downloadframeworks_base-031550a31e56bb8300ba9d1225004581ec156777.zip
frameworks_base-031550a31e56bb8300ba9d1225004581ec156777.tar.gz
frameworks_base-031550a31e56bb8300ba9d1225004581ec156777.tar.bz2
am 9ed36c42: Merge "Add support for GPS measurement/navigation message capabilities. b/16727892 b/16815124" into lmp-mr1-dev automerge: 992b9aa
* commit '9ed36c42d8c3731b8ca631292881110eb8897cec': Add support for GPS measurement/navigation message capabilities. b/16727892 b/16815124
Diffstat (limited to 'location/java/android/location/GpsNavigationMessageEvent.java')
-rw-r--r--location/java/android/location/GpsNavigationMessageEvent.java30
1 files changed, 27 insertions, 3 deletions
diff --git a/location/java/android/location/GpsNavigationMessageEvent.java b/location/java/android/location/GpsNavigationMessageEvent.java
index 50ffa75..b61dac0 100644
--- a/location/java/android/location/GpsNavigationMessageEvent.java
+++ b/location/java/android/location/GpsNavigationMessageEvent.java
@@ -21,9 +21,6 @@ import android.os.Parcel;
import android.os.Parcelable;
import java.security.InvalidParameterException;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
/**
* A class implementing a container for data associated with a navigation message event.
@@ -32,6 +29,24 @@ import java.util.Collections;
* @hide
*/
public class GpsNavigationMessageEvent implements Parcelable {
+
+ /**
+ * The system does not support tracking of GPS Navigation Messages. This status will not change
+ * in the future.
+ */
+ public static int STATUS_NOT_SUPPORTED = 0;
+
+ /**
+ * GPS Navigation Messages are successfully being tracked, it will receive updates once they are
+ * available.
+ */
+ public static int STATUS_READY = 1;
+
+ /**
+ * GPS provider or Location is disabled, updated will not be received until they are enabled.
+ */
+ public static int STATUS_GPS_LOCATION_DISABLED = 2;
+
private final GpsNavigationMessage mNavigationMessage;
/**
@@ -42,7 +57,16 @@ public class GpsNavigationMessageEvent implements Parcelable {
* @hide
*/
public interface Listener {
+
+ /**
+ * Returns the latest collected GPS Navigation Message.
+ */
void onGpsNavigationMessageReceived(GpsNavigationMessageEvent event);
+
+ /**
+ * Returns the latest status of the GPS Navigation Messages sub-system.
+ */
+ void onStatusChanged(int status);
}
public GpsNavigationMessageEvent(GpsNavigationMessage message) {