Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java582 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / height);
584 distanceInfluenceForSnapDuration(distanceRatio);
DViewPager.java793 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); in smoothScrollTo() local
795 distanceInfluenceForSnapDuration(distanceRatio); in smoothScrollTo()
DRecyclerView.java4813 final float distanceRatio = Math.min(1.f, 1.f * delta / containerSize); in computeScrollDuration() local
4815 * distanceInfluenceForSnapDuration(distanceRatio); in computeScrollDuration()