Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizePagedView.java1380 float scrollProgress = getScrollProgress(screenCenter, v, i); in screenScrolled() local
1384 float maxScrollProgress = Math.max(0, scrollProgress); in screenScrolled()
1385 float minScrollProgress = Math.min(0, scrollProgress); in screenScrolled()
1398 if (isRtl && (scrollProgress > 0)) { in screenScrolled()
1400 } else if (!isRtl && (scrollProgress < 0)) { in screenScrolled()
1401 alpha = mAlphaInterpolator.getInterpolation(1 - Math.abs(scrollProgress)); in screenScrolled()
1404 alpha = mLeftScreenAlphaInterpolator.getInterpolation(1 - scrollProgress); in screenScrolled()
1413 … boolean isOverscrollingFirstPage = isRtl ? scrollProgress > 0 : scrollProgress < 0; in screenScrolled()
1414 … boolean isOverscrollingLastPage = isRtl ? scrollProgress < 0 : scrollProgress > 0; in screenScrolled()
1419 v.setRotationY(-TRANSITION_MAX_ROTATION * scrollProgress); in screenScrolled()
[all …]
DPagedView.java694 float scrollProgress = getScrollProgress(screenCenter, child, i); in screenScrolled() local
695 float alpha = 1 - Math.abs(scrollProgress); in screenScrolled()
1148 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress() local
1149 scrollProgress = Math.min(scrollProgress, 1.0f); in getScrollProgress()
1150 scrollProgress = Math.max(scrollProgress, -1.0f); in getScrollProgress()
1151 return scrollProgress; in getScrollProgress()
DWorkspace.java879 float scrollProgress = in wallpaperOffsetForCurrentScroll() local
888 float offsetInDips = wallpaperTravelWidth * scrollProgress + in wallpaperOffsetForCurrentScroll()
893 return scrollProgress; in wallpaperOffsetForCurrentScroll()
1196 float scrollProgress = getScrollProgress(screenCenter, child, i);
1197 float alpha = 1 - Math.abs(scrollProgress);
1201 backgroundAlphaInterpolator(Math.abs(scrollProgress)));
1241 float scrollProgress = getScrollProgress(screenCenter, cl, index);
1243 cl.setOverScrollAmount(Math.abs(scrollProgress), isLeftPage);
1244 float rotation = -WORKSPACE_OVERSCROLL_ROTATION * scrollProgress;
1246 setFadeForOverScroll(Math.abs(scrollProgress));
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1050 float scrollProgress = getScrollProgress(screenCenter, child, i); in screenScrolled() local
1051 float alpha = 1 - Math.abs(scrollProgress); in screenScrolled()
1576 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress() local
1577 scrollProgress = Math.min(scrollProgress, getMaxScrollProgress()); in getScrollProgress()
1578 scrollProgress = Math.max(scrollProgress, - getMaxScrollProgress()); in getScrollProgress()
1579 return scrollProgress; in getScrollProgress()
DWorkspace.java1659 float scrollProgress = getScrollProgress(screenCenter, child, i); in updatePageAlphaValues() local
1660 float alpha = 1 - Math.abs(scrollProgress); in updatePageAlphaValues()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java1757 private float getScrollAlpha(float scrollProgress) { in getScrollAlpha() argument
1758 return scrollProgress < 0 ? mAlphaInterpolator.getInterpolation( in getScrollAlpha()
1759 1 - Math.abs(scrollProgress)) : 1.0f; in getScrollAlpha()
1764 private float getScrollScale(float scrollProgress) { in getScrollScale() argument
1766 Math.abs(scrollProgress)); in getScrollScale()