Home
last modified time | relevance | path

Searched refs:hypot (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/core/java/android/util/
DFloatMath.java130 public static float hypot(float x, float y) { in hypot() method in FloatMath
131 return (float) Math.hypot(x, y); in hypot()
DMathUtils.java105 return (float) Math.hypot(x, y); in dist()
116 return (float) Math.hypot(a, b); in mag()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureUtils.java85 final float firstMagnitude = (float) Math.hypot(firstDeltaX, firstDeltaY); in isDraggingGesture()
98 final float secondMagnitude = (float) Math.hypot(secondDeltaX, secondDeltaY); in isDraggingGesture()
DMultiTap.java140 final double moveDelta = Math.hypot(deltaX, deltaY); in isInsideSlop()
DSecondFingerMultiTap.java156 final double moveDelta = Math.hypot(deltaX, deltaY); in isSecondFingerInsideSlop()
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java120 float distance = (float) Math.hypot(dx, dy); in setPatternPath()
133 float length = (float) Math.hypot(dx, dy); in getPath()
DExplode.java153 double vectorSize = Math.hypot(xVector, yVector); in calculateOut()
167 return Math.hypot(maxX, maxY); in calculateMaxDistance()
DCircularPropagation.java103 return Math.hypot(x, y); in distance()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DRelativeTouchListener.kt26 import kotlin.math.hypot
125 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onDown()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipPinchResizingAlgorithm.java44 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/
DPainting.kt32 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/
DMagnetizedObject.kt36 import kotlin.math.hypot in <lambda>()
341 val dragDistance = hypot(ev.rawX - touchDown.x, ev.rawY - touchDown.y) in <lambda>()
352 val distanceFromTargetCenter = hypot( in <lambda>()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
DPipSurfaceTransactionHelper.java135 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in getScaledCornerRadius()
136 / Math.hypot(toBounds.width(), toBounds.height())); in getScaledCornerRadius()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java194 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in round()
195 / Math.hypot(toBounds.width(), toBounds.height())); in round()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DNormFilter.java56 float norm = (float) Math.hypot(xValue, yValue); in onProcess()
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java71 f += FloatMath.hypot(100.123f, 100.123f); in timeFloatMathHypot()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java296 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/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java77 return (float)Math.hypot(x, y); in length()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java478 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/
DPointF.java123 return (float) Math.hypot(x, y); in length()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java157 float distance = (float) Math.hypot(xDist, yDist); in onTouchEvent()
210 double distance = Math.hypot(x - iconX, y - iconY); in isOnIcon()
489 float bLen = (float) Math.hypot(bX, bY); in getCurrentVelocity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGuts.java319 float r = (float) Math.hypot(horz, vert); in animateOpen()
356 float r = (float) Math.hypot(horz, vert); in animateClose()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java123 float zoom = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
140 mDistDown = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
/frameworks/base/core/java/android/widget/
DScroller.java434 float hyp = (float) Math.hypot(dx, dy); in fling()
451 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java123 float zoom = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
140 mDistDown = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()

1234