Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DResolverDrawerLayout.java679 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / height);
681 distanceInfluenceForSnapDuration(distanceRatio);
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1696 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() local
1698 distanceInfluenceForSnapDuration(distanceRatio); in snapToPageWithVelocity()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt3606 val distanceRatio = delta / width in calculateDuration() constant
3607 val distanceInfluenceForSnapDuration = distanceInfluenceForSnapDuration(distanceRatio) in calculateDuration()
3622 distanceRatio + " distance:" + distance + " velocity:" + velocity + in calculateDuration()