Home
last modified time | relevance | path

Searched refs:magnitude (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DWindowOrientationListener.java623 final float magnitude = (float) Math.sqrt(x * x + y * y + z * z); in onSensorChanged() local
624 if (magnitude < NEAR_ZERO_MAGNITUDE) { in onSensorChanged()
632 if (isAcceleratingLocked(magnitude)) { in onSensorChanged()
644 Math.asin(z / magnitude) * RADIANS_TO_DEGREES); in onSensorChanged()
900 private boolean isAcceleratingLocked(float magnitude) { in isAcceleratingLocked() argument
901 return magnitude < MIN_ACCELERATION_MAGNITUDE in isAcceleratingLocked()
902 || magnitude > MAX_ACCELERATION_MAGNITUDE; in isAcceleratingLocked()
/frameworks/base/core/java/android/gesture/
DInstance.java59 float magnitude = (float)Math.sqrt(sum); in normalize() local
61 sample[i] /= magnitude; in normalize()
/frameworks/base/core/java/android/view/
DOrientationEventListener.java124 float magnitude = X*X + Y*Y; in onSensorChanged() local
126 if (magnitude * 4 >= Z*Z) { in onSensorChanged()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd259 accelerometer reads a magnitude of g = 9.81 m/s<sup>2</sup>. Similarly, when the device is in
261 accelerometer reads a magnitude of g = 0 m/s<sup>2</sup>. Therefore, to measure
322 <p>The gravity sensor provides a three dimensional vector indicating the direction and magnitude of
504 <p>Where the magnitude of the rotation vector is equal to sin(θ/2), and the direction of the
Dsensors_position.jd191 same order of magnitude as the gyroscope drifts around the Z axis.</p>