summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2014-10-02 11:48:08 +0100
committerNeil Fuller <nfuller@google.com>2014-10-02 11:48:08 +0100
commitf7cf5d43aa13405f9d0dd54f6038f710a0423323 (patch)
tree76f33c6e39a9ca49ff9c1d9d776cb86115bc7ff3 /policy
parent92c414724f84e32df3c0f79ce11e37ef3d481611 (diff)
parentee665151a4c6359cbfbb9a6795aa9097c4622083 (diff)
downloadframeworks_base-f7cf5d43aa13405f9d0dd54f6038f710a0423323.zip
frameworks_base-f7cf5d43aa13405f9d0dd54f6038f710a0423323.tar.gz
frameworks_base-f7cf5d43aa13405f9d0dd54f6038f710a0423323.tar.bz2
resolved conflicts for merge of ee665151 to lmp-dev-plus-aosp
Change-Id: I97671e62de26919e391dbb2686511584c59ab990
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/WindowOrientationListener.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/policy/src/com/android/internal/policy/impl/WindowOrientationListener.java b/policy/src/com/android/internal/policy/impl/WindowOrientationListener.java
index 704da33..2f60d55 100644
--- a/policy/src/com/android/internal/policy/impl/WindowOrientationListener.java
+++ b/policy/src/com/android/internal/policy/impl/WindowOrientationListener.java
@@ -23,7 +23,6 @@ import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Handler;
import android.os.SystemProperties;
-import android.util.FloatMath;
import android.util.Log;
import android.util.Slog;
import android.util.TimeUtils;
@@ -446,7 +445,7 @@ public abstract class WindowOrientationListener {
if (LOG) {
Slog.v(TAG, "Raw acceleration vector: "
+ "x=" + x + ", y=" + y + ", z=" + z
- + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z));
+ + ", magnitude=" + Math.sqrt(x * x + y * y + z * z));
}
// Apply a low-pass filter to the acceleration up vector in cartesian space.
@@ -473,7 +472,7 @@ public abstract class WindowOrientationListener {
if (LOG) {
Slog.v(TAG, "Filtered acceleration vector: "
+ "x=" + x + ", y=" + y + ", z=" + z
- + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z));
+ + ", magnitude=" + Math.sqrt(x * x + y * y + z * z));
}
skipSample = false;
}
@@ -487,7 +486,7 @@ public abstract class WindowOrientationListener {
boolean isSwinging = false;
if (!skipSample) {
// Calculate the magnitude of the acceleration vector.
- final float magnitude = FloatMath.sqrt(x * x + y * y + z * z);
+ final float magnitude = (float) Math.sqrt(x * x + y * y + z * z);
if (magnitude < NEAR_ZERO_MAGNITUDE) {
if (LOG) {
Slog.v(TAG, "Ignoring sensor data, magnitude too close to zero.");