Searched refs:distanceRatio (Results 1 – 4 of 4) sorted by relevance
624 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width); in computeAxisDuration() local626 distanceInfluenceForSnapDuration(distanceRatio); in computeAxisDuration()
415 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / childHeight); in animateChallengeTo() local417 distanceInfluenceForSnapDuration(distanceRatio); in animateChallengeTo()
1890 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() local1892 distanceInfluenceForSnapDuration(distanceRatio); in snapToPageWithVelocity()
810 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); in smoothScrollTo() local812 distanceInfluenceForSnapDuration(distanceRatio); in smoothScrollTo()