From 2f6d8829524dfca3a77e9a57c3b9c3862209877d Mon Sep 17 00:00:00 2001 From: Philip Milne Date: Fri, 21 Sep 2012 14:21:27 -0700 Subject: Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos() Change-Id: I71c24ea10093ece07a0780e97bc641ff548c1a44 --- .../FusedLocation/src/com/android/location/fused/FusionEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/FusedLocation') diff --git a/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java b/packages/FusedLocation/src/com/android/location/fused/FusionEngine.java index 1c22c7a..d2dfe3b 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.getElapsedRealtimeNano(); 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.setElapsedRealtimeNano(SystemClock.elapsedRealtimeNanos()); // fuse altitude if (mGpsLocation.hasAltitude() && !mNetworkLocation.hasAltitude() && -- cgit v1.1