Home
last modified time | relevance | path

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

/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/services/core/java/com/android/server/policy/
DWindowOrientationListener.java645 final float magnitude = (float) Math.sqrt(x * x + y * y + z * z); in onSensorChanged() local
646 if (magnitude < NEAR_ZERO_MAGNITUDE) { in onSensorChanged()
654 if (isAcceleratingLocked(magnitude)) { in onSensorChanged()
666 Math.asin(z / magnitude) * RADIANS_TO_DEGREES); in onSensorChanged()
924 private boolean isAcceleratingLocked(float magnitude) { in isAcceleratingLocked() argument
925 return magnitude < MIN_ACCELERATION_MAGNITUDE in isAcceleratingLocked()
926 || magnitude > MAX_ACCELERATION_MAGNITUDE; in isAcceleratingLocked()
/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/core/java/android/util/
DHalf.java508 public static @HalfFloat short copySign(@HalfFloat short magnitude, @HalfFloat short sign) { in copySign() argument
509 return (short) ((sign & FP16_SIGN_MASK) | (magnitude & FP16_COMBINED)); in copySign()
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h638 double magnitude = 2.0 * sqrt( (sinMean * sinMean) + (cosMean * cosMean )); variable
644 return magnitude;
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java10785 final double magnitude = Math.sqrt(scrollVector.x * scrollVector.x + scrollVector.y in normalize() local
10787 scrollVector.x /= magnitude; in normalize()
10788 scrollVector.y /= magnitude; in normalize()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java11310 final float magnitude = (float) Math.sqrt(scrollVector.x * scrollVector.x in normalize() local
11312 scrollVector.x /= magnitude; in normalize()
11313 scrollVector.y /= magnitude; in normalize()