Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java306 final int scrollRange = range - extent; in computeScrollRatio() local
307 offset = Math.min(offset, scrollRange); in computeScrollRatio()
308 return offset / (float) scrollRange; in computeScrollRatio()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java1541 int scrollRange = getScrollForPage(lastIndex) - firstPageScrollX; in wallpaperOffsetForScroll() local
1542 if (scrollRange == 0) { in wallpaperOffsetForScroll()
1549 float offset = Math.min(1, adjustedScroll / (float) scrollRange); in wallpaperOffsetForScroll()
1727 float scrollRange = getScrollForPage(index + 1) - getScrollForPage(index); in updateStateForCustomContent() local
1728 translationX = scrollRange - scrollDelta; in updateStateForCustomContent()
1729 progress = (scrollRange - scrollDelta) / scrollRange; in updateStateForCustomContent()
/packages/apps/Launcher2/src/com/android/launcher2/
DWorkspace.java872 int scrollRange = getScrollRange(); in wallpaperOffsetForCurrentScroll() local
880 adjustedScrollX / (float) scrollRange; in wallpaperOffsetForCurrentScroll()