Lines Matching refs:abs
897 final int xDist = Math.abs(mScroller.getFinalPos() - mScroller.getCurrPos()); in onInterceptTouchEvent()
949 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineScrollingStart()
956 mTotalMotionX += Math.abs(mLastMotionX - x); in determineScrollingStart()
992 totalDistance = Math.abs(getScrollForPage(adjacentPage) - getScrollForPage(page)); in getScrollProgress()
1137 mTotalMotionX += Math.abs(deltaX); in onTouchEvent()
1142 if (Math.abs(deltaX) >= 1.0f) { in onTouchEvent()
1164 boolean isSignificantMove = Math.abs(deltaX) > pageWidth * in onTouchEvent()
1167 mTotalMotionX += Math.abs(mLastMotionX + mLastMotionXRemainder - x); in onTouchEvent()
1177 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD && in onTouchEvent()
1268 return Math.abs(velocityX) > mFlingThresholdVelocity; in shouldFlingForVelocity()
1373 int distanceFromScreenCenter = Math.abs(childCenter - screenCenter); in getPageNearestToCenterOfScreen()
1415 if (Math.abs(velocity) < mMinFlingVelocity) { in snapToPageWithVelocity()
1425 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()
1429 velocity = Math.abs(velocity); in snapToPageWithVelocity()
1435 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in snapToPageWithVelocity()
1494 duration = Math.abs(delta); in snapToPage()
1526 return Math.abs(delta) > 0; in snapToPage()