Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java821 int halfScreenSize = getMeasuredWidth() / 2; in dispatchDraw() local
824 int screenCenter = mOverScrollX + halfScreenSize; in dispatchDraw()
1142 final int halfScreenSize = getMeasuredWidth() / 2; in getScrollProgress() local
1146 getRelativeChildOffset(page) + halfScreenSize); in getScrollProgress()
1519 int halfScreenSize = getMeasuredWidth() / 2; in snapToPageWithVelocity() local
1539 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()
1540 float distance = halfScreenSize + halfScreenSize * in snapToPageWithVelocity()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1114 int halfScreenSize = getViewportWidth() / 2; in dispatchDraw() local
1115 int screenCenter = getScrollX() + halfScreenSize; in dispatchDraw()
1471 final int halfScreenSize = getViewportWidth() / 2; in getScrollProgress() local
1473 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress()
2009 int halfScreenSize = getViewportWidth() / 2; in snapToPageWithVelocity() local
2026 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()
2027 float distance = halfScreenSize + halfScreenSize * in snapToPageWithVelocity()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java5002 final float halfScreenSize = width / 2; in calculateDuration() local
5005 float distance = halfScreenSize + halfScreenSize * distanceInfluenceForSnapDuration; in calculateDuration()
5018 Log.e(TAG, "halfScreenSize:" + halfScreenSize + " delta:" + delta + " distanceRatio:" in calculateDuration()