summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Nick Pelly <npelly@google.com> 2012-07-18 13:13:37 -0700
committer Nick Pelly <npelly@google.com> 2012-07-20 10:07:07 -0700
commit2eeeec248a38ff33999c83f4b8d5bab7d50e79d2 (patch)
tree2886aaefdd09bbafa7853dbbbb29aa866846045f /opengl/java
parentb8acd060d409f0e81ab3510b429cb86d3f34adb8 (diff)
Improve Location object.
Add getElapsedRealtimeNano(): Currently Location just has getTime() and setTime() based on UTC time. This is entirely unreliable since it is not guaranteed monotonic. There is a lot of code that compares fix age based on deltas - and it is all broken in the case of a system clock change. System clock can change when switching cellular networks (and in some cases when switching towers). Document the meaning of getAccuracy(): It is the horizontal, 95% confidence radius. Make some fields mandatory if they are reported by a LocationProvider: All Locations returned by a LocationProvider must include at the minimum a lat, long, timestamps, and accuracy. This is necessary to perform fused location. There are no public API's for applications to feed locations into a location provider so this should not cause any breakage. If a LocationProvider does not fill in enough fields on a Location object then it is dropped, and logged. Bug: 4305998 Change-Id: I7df77125d8a64e174d7bc8c2708661b4f33461ea
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions