summaryrefslogtreecommitdiff
path: root/location/java
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-01-15 02:13:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-01-15 02:13:34 +0000
commitce6238e0317da90cdaaf2926f62004be9be53c82 (patch)
treefa7bba47a77def7524ddb6a90591c7049f9b6d6e /location/java
parentc4b07c174cd7be96481405bdb69a3ffd60594a3e (diff)
parentdd73153c68e481164868160075bb9658b436c62b (diff)
Merge "Add getGnssTimeMillis to LocationManagerInternal."
Diffstat (limited to 'location/java')
-rw-r--r--location/java/android/location/LocationManagerInternal.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/location/java/android/location/LocationManagerInternal.java b/location/java/android/location/LocationManagerInternal.java
index 1027f9c0a7be..a6a0e7aa24ff 100644
--- a/location/java/android/location/LocationManagerInternal.java
+++ b/location/java/android/location/LocationManagerInternal.java
@@ -80,4 +80,12 @@ public abstract class LocationManagerInternal {
*/
// TODO: there is no reason for this to exist as part of any API. move all the logic into gnss
public abstract void sendNiResponse(int notifId, int userResponse);
+
+ /**
+ * Returns the GNSS provided time.
+ *
+ * @return LocationTime object that includes the current time, according to the GNSS location
+ * provider, and the elapsed nanos since boot the current time was computed at.
+ */
+ public abstract @Nullable LocationTime getGnssTimeMillis();
}