diff options
| author | 2021-01-15 02:13:34 +0000 | |
|---|---|---|
| committer | 2021-01-15 02:13:34 +0000 | |
| commit | ce6238e0317da90cdaaf2926f62004be9be53c82 (patch) | |
| tree | fa7bba47a77def7524ddb6a90591c7049f9b6d6e /location/java | |
| parent | c4b07c174cd7be96481405bdb69a3ffd60594a3e (diff) | |
| parent | dd73153c68e481164868160075bb9658b436c62b (diff) | |
Merge "Add getGnssTimeMillis to LocationManagerInternal."
Diffstat (limited to 'location/java')
| -rw-r--r-- | location/java/android/location/LocationManagerInternal.java | 8 |
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(); } |