summaryrefslogtreecommitdiffstats
path: root/packages/FusedLocation
diff options
context:
space:
mode:
authorPhilip Milne <pmilne@google.com>2012-09-24 11:38:29 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-24 11:38:29 -0700
commit53fe75677212d0eb45e256a78599d7866256bc6a (patch)
tree9e2bacbd6cf9fa125447b697c9531d7a3583b8ac /packages/FusedLocation
parent2f6d8829524dfca3a77e9a57c3b9c3862209877d (diff)
downloadframeworks_base-53fe75677212d0eb45e256a78599d7866256bc6a.zip
frameworks_base-53fe75677212d0eb45e256a78599d7866256bc6a.tar.gz
frameworks_base-53fe75677212d0eb45e256a78599d7866256bc6a.tar.bz2
Revert "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()"
This reverts commit 2f6d8829524dfca3a77e9a57c3b9c3862209877d Change-Id: Id5af767a09fc319127c4ebef837c5b7a7f75cb01
Diffstat (limited to 'packages/FusedLocation')
-rw-r--r--packages/FusedLocation/src/com/android/location/fused/FusionEngine.java4
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 d2dfe3b..1c22c7a 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.elapsedRealtimeNanos() - loc.getElapsedRealtimeNano();
+ long ageSeconds = SystemClock.elapsedRealtimeNano() - 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.elapsedRealtimeNanos());
+ fused.setElapsedRealtimeNano(SystemClock.elapsedRealtimeNano());
// fuse altitude
if (mGpsLocation.hasAltitude() && !mNetworkLocation.hasAltitude() &&