diff options
author | Philip Milne <pmilne@google.com> | 2012-09-26 11:29:25 -0700 |
---|---|---|
committer | Philip Milne <pmilne@google.com> | 2012-09-26 11:29:25 -0700 |
commit | 4118012da9a22694b3353040a485f8cdc27e2f17 (patch) | |
tree | 310eddfb0c3ee5d1205dfbc2c72dd91fb9ffc40f /packages/FusedLocation | |
parent | 2832136bb6fcace61ef078051e94aa0a841aac15 (diff) | |
download | frameworks_base-4118012da9a22694b3353040a485f8cdc27e2f17.zip frameworks_base-4118012da9a22694b3353040a485f8cdc27e2f17.tar.gz frameworks_base-4118012da9a22694b3353040a485f8cdc27e2f17.tar.bz2 |
Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()
Change-Id: Ie38952bbaace080e81e41e61350cda172951d548
Diffstat (limited to 'packages/FusedLocation')
-rw-r--r-- | packages/FusedLocation/src/com/android/location/fused/FusionEngine.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java b/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java index b83521a..2cf795d 100644 --- a/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java +++ b/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java @@ -215,7 +215,7 @@ public class FusionEngine implements LocationListener { } private static double weighAge(Location loc) { - long ageSeconds = SystemClock.elapsedRealtimeNano() - loc.getElapsedRealtimeNano(); + long ageSeconds = SystemClock.elapsedRealtimeNanos() - loc.getElapsedRealtimeNanos(); ageSeconds /= 1000000000L; if (ageSeconds < 0) ageSeconds = 0; return Math.exp(-ageSeconds * AGE_DECAY_CONSTANT_S); @@ -266,7 +266,7 @@ public class FusionEngine implements LocationListener { // fused time - now fused.setTime(System.currentTimeMillis()); - fused.setElapsedRealtimeNano(SystemClock.elapsedRealtimeNano()); + fused.setElapsedRealtimeNanos(SystemClock.elapsedRealtimeNanos()); // fuse altitude if (mGpsLocation.hasAltitude() && !mNetworkLocation.hasAltitude() && |