/frameworks/base/core/java/android/util/ |
D | FloatMath.java | 131 public static float hypot(float x, float y) { in hypot() method in FloatMath 132 return (float) Math.hypot(x, y); in hypot()
|
D | MathUtils.java | 106 return (float) Math.hypot(x, y); in dist() 117 return (float) Math.hypot(a, b); in mag()
|
/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/ |
D | Vector2.kt | 21 import kotlin.math.hypot 136 return hypot(x - this.x, y - this.y) in distanceTo() 146 return hypot(x, y) in length()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | FloatMathTest.java | 92 assertEquals((float) Math.hypot(value, value), FloatMath.hypot(value, value), DELTA); in testHypot()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | GestureUtils.java | 85 final float firstMagnitude = (float) Math.hypot(firstDeltaX, firstDeltaY); in isDraggingGesture() 98 final float secondMagnitude = (float) Math.hypot(secondDeltaX, secondDeltaY); in isDraggingGesture()
|
D | MultiTap.java | 140 final double moveDelta = Math.hypot(deltaX, deltaY); in isInsideSlop()
|
/frameworks/native/libs/input/tests/ |
D | MotionPredictor_test.cpp | 107 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(10, -1)); in TEST() 121 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(-50, -18)); in TEST() 142 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(.01, -.001)); in TEST() 156 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(-.0375, -.0155)); in TEST() 171 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(10, -1)); in TEST()
|
/frameworks/base/core/java/android/transition/ |
D | PatternPathMotion.java | 120 float distance = (float) Math.hypot(dx, dy); in setPatternPath() 133 float length = (float) Math.hypot(dx, dy); in getPath()
|
D | Explode.java | 153 double vectorSize = Math.hypot(xVector, yVector); in calculateOut() 167 return Math.hypot(maxX, maxY); in calculateMaxDistance()
|
D | CircularPropagation.java | 103 return Math.hypot(x, y); in distance()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | RelativeTouchListener.kt | 24 import kotlin.math.hypot 130 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onTouch()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipPinchResizingAlgorithm.java | 44 float downDist = (float) Math.hypot(downSecondPoint.x - downPoint.x, in calculateBoundsAndAngle() 46 float dist = (float) Math.hypot(lastSecondPoint.x - lastPoint.x, in calculateBoundsAndAngle()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Painting.kt | 32 fun hypot(x: Float, y: Float): Float { in hypot() method 33 return Math.hypot(x.toDouble(), y.toDouble()).toFloat() in hypot() 191 val d = hypot(s.x - x, s.y - y) in plot()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/ |
D | MagnetizedObject.kt | 33 import kotlin.math.hypot in <lambda>() 347 val dragDistance = hypot(ev.rawX - touchDown.x, ev.rawY - touchDown.y) in <lambda>() 358 val distanceFromTargetCenter = hypot( in <lambda>()
|
/frameworks/base/core/tests/benchmarks/src/android/util/ |
D | FloatMathBenchmark.java | 71 f += FloatMath.hypot(100.123f, 100.123f); in timeFloatMathHypot()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | NormFilter.java | 56 float norm = (float) Math.hypot(xValue, yValue); in onProcess()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 296 float distance = (float) Math.hypot(deltaX, deltaY); in temporalSampling() 382 sum += Math.hypot(dx, dy); in computeTotalLength() 391 return (float) Math.hypot(dx, dy) / totalLen; in computeStraightness() 397 return (float) Math.hypot(dx, dy) / totalLen; in computeStraightness()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/ |
D | PipSurfaceTransactionHelper.java | 157 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in getScaledCornerRadius() 158 / Math.hypot(toBounds.width(), toBounds.height())); in getScaledCornerRadius()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragDetector.java | 98 mIsDragEvent = Math.hypot(dx, dy) > mTouchSlop; in onMotionEvent()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Point.java | 77 return (float)Math.hypot(x, y); in length()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/ |
D | PipSurfaceTransactionHelper.java | 238 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in round() 239 / Math.hypot(toBounds.width(), toBounds.height())); in round()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSurfaceTransactionHelper.java | 241 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in round() 242 / Math.hypot(toBounds.width(), toBounds.height())); in round()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | LoaderDicom.java | 478 float sz = (float) Math.hypot(dzx,Math.hypot(dzy,dzz)); in buildRSVolume() 602 float sz = (float) Math.hypot(dzx,Math.hypot(dzy,dzz)); in buildRSVolume2()
|
/frameworks/base/graphics/java/android/graphics/ |
D | PointF.java | 124 return (float) Math.hypot(x, y); in length()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubblesNavBarMotionEventHandler.java | 80 if (!mInterceptingTouches && Math.hypot(dx, dy) > mTouchSlop) { in onMotionEvent()
|