Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java535 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / height);
537 distanceInfluenceForSnapDuration(distanceRatio);
DViewPager.java787 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); in smoothScrollTo() local
789 distanceInfluenceForSnapDuration(distanceRatio); in smoothScrollTo()
DRecyclerView.java4812 final float distanceRatio = Math.min(1.f, 1.f * delta / containerSize); in computeScrollDuration() local
4814 * distanceInfluenceForSnapDuration(distanceRatio); in computeScrollDuration()
/frameworks/support/customview/src/main/java/androidx/customview/widget/
DViewDragHelper.java644 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width); in computeAxisDuration() local
646 * distanceInfluenceForSnapDuration(distanceRatio); in computeAxisDuration()
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
DViewPager.java985 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); in smoothScrollTo() local
987 * distanceInfluenceForSnapDuration(distanceRatio); in smoothScrollTo()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DRecyclerView.java5163 final float distanceRatio = Math.min(1.f, 1.f * delta / containerSize); in computeScrollDuration() local
5165 * distanceInfluenceForSnapDuration(distanceRatio); in computeScrollDuration()