Searched refs:magnitude (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/gesture/
H A DInstance.java59 float magnitude = (float)Math.sqrt(sum);
61 sample[i] /= magnitude;
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DWindowOrientationListener.java191 * absolute magnitude of the acceleration. In particular, there are singularities
192 * in the calculation as the magnitude approaches 0. By performing the low-pass
198 * is facing. The radial distance is referred to as the magnitude below.
303 // that is turning around a corner or a plane taking off) then the magnitude
309 // without gravity to tell us which way is up. A magnitude near 0 produces
404 + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z));
431 + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z));
444 // Calculate the magnitude of the acceleration vector.
445 final float magnitude = FloatMath.sqrt(x * x + y * y + z * z);
446 if (magnitude < NEAR_ZERO_MAGNITUD
681 isAcceleratingLocked(float magnitude) argument
[all...]
/frameworks/base/core/java/android/view/
H A DOrientationEventListener.java124 float magnitude = X*X + Y*Y;
125 // Don't trust the angle if the magnitude is small compared to the y value
126 if (magnitude * 4 >= Z*Z) {

Completed in 261 milliseconds