Home
last modified time | relevance | path

Searched refs:totalDistance (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/core/java/android/widget/
H A DScroller.java462 double totalDistance = getSplineFlingDistance(velocity); in fling() local
463 mDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
470 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
475 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
H A DOverScroller.java756 double totalDistance = 0.0; in fling() local
760 totalDistance = getSplineFlingDistance(velocity); in fling()
763 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
829 final double totalDistance = getSplineFlingDistance(velocity); in startAfterEdge() local
830 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationContentView.java752 int totalDistance = Math.abs(endHeight - startHeight); in calculateTransformationAmount() local
753 if (totalDistance == 0) { in calculateTransformationAmount()
760 float amount = (float) progress / (float) totalDistance; in calculateTransformationAmount()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationStackScrollLayout.java5495 float totalDistance = getIntrinsicPadding(); in calculateAppearFractionBypass() local
5496 return MathUtils.smoothStep(0, totalDistance, pulseHeight); in calculateAppearFractionBypass()