Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java624 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width); in computeAxisDuration() local
626 distanceInfluenceForSnapDuration(distanceRatio); in computeAxisDuration()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DSlidingChallengeLayout.java415 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / childHeight); in animateChallengeTo() local
417 distanceInfluenceForSnapDuration(distanceRatio); in animateChallengeTo()
DPagedView.java1890 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() local
1892 distanceInfluenceForSnapDuration(distanceRatio); in snapToPageWithVelocity()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java810 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); in smoothScrollTo() local
812 distanceInfluenceForSnapDuration(distanceRatio); in smoothScrollTo()