Searched refs:scrollRange (Results 1 – 3 of 3) sorted by relevance
306 final int scrollRange = range - extent; in computeScrollRatio() local307 offset = Math.min(offset, scrollRange); in computeScrollRatio()308 return offset / (float) scrollRange; in computeScrollRatio()
1541 int scrollRange = getScrollForPage(lastIndex) - firstPageScrollX; in wallpaperOffsetForScroll() local1542 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() local1728 translationX = scrollRange - scrollDelta; in updateStateForCustomContent()1729 progress = (scrollRange - scrollDelta) / scrollRange; in updateStateForCustomContent()
872 int scrollRange = getScrollRange(); in wallpaperOffsetForCurrentScroll() local880 adjustedScrollX / (float) scrollRange; in wallpaperOffsetForCurrentScroll()