Lines Matching defs:Math
545 validatedPage = Math.max(mTempVisiblePagesRange[0],
546 Math.min(newPage, mTempVisiblePagesRange[1]));
549 validatedPage = Math.max(0, Math.min(validatedPage, getPageCount() - 1));
654 x = Math.min(x, mFreeScrollMaxScrollX);
655 x = Math.max(x, mFreeScrollMinScrollX);
818 int maxSize = Math.max(dm.widthPixels + mInsets.left + mInsets.right,
1042 float alpha = 1 - Math.abs(scrollProgress);
1133 range[1] = Math.max(0, getChildCount() - 1);
1430 final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX());
1499 final int xDiff = (int) Math.abs(x - mLastMotionX);
1500 final int yDiff = (int) Math.abs(y - mLastMotionY);
1502 final int touchSlop = Math.round(touchSlopScale * mTouchSlop);
1511 mTotalMotionX += Math.abs(mLastMotionX - x);
1541 screenCenter = Math.min(getScrollX() + halfScreenSize, screenCenter);
1542 screenCenter = Math.max(halfScreenSize, screenCenter);
1563 totalDistance = Math.abs(getScrollForPage(adjacentPage) - getScrollForPage(page));
1567 scrollProgress = Math.min(scrollProgress, getMaxScrollProgress());
1568 scrollProgress = Math.max(scrollProgress, - getMaxScrollProgress());
1616 if (Math.abs(f) >= 1) {
1617 f /= Math.abs(f);
1628 f = f / (Math.abs(f)) * (overScrollInfluenceCurve(Math.abs(f)));
1631 if (Math.abs(f) >= 1) {
1632 f /= Math.abs(f);
1635 int overScrollAmount = (int) Math.round(OVERSCROLL_DAMP_FACTOR * f * screenSize);
1654 f = f / (Math.abs(f)) * (overScrollInfluenceCurve(Math.abs(f)));
1707 int d = Math.abs(dragX - pageX);
1769 mTotalMotionX += Math.abs(deltaX);
1774 if (Math.abs(deltaX) >= 1.0f) {
1892 boolean isSignificantMove = Math.abs(deltaX) > pageWidth *
1895 mTotalMotionX += Math.abs(mLastMotionX + mLastMotionXRemainder - x);
1898 Math.abs(velocityX) > mFlingThresholdVelocity;
1905 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD &&
1906 Math.signum(velocityX) != Math.signum(deltaX) && isFling) {
1947 int nextPage = Math.max(0, mCurrentPage - 1);
1957 int nextPage = Math.min(getChildCount() - 1, mCurrentPage + 1);
2119 return Math.min(index, getChildCount() - 1);
2132 int distanceFromScreenCenter = Math.abs(childCenter - screenCenter);
2173 f *= 0.3f * Math.PI / 2.0f;
2174 return (float) Math.sin(f);
2185 if (Math.abs(velocity) < mMinFlingVelocity || isInOverScroll()) {
2196 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize));
2200 velocity = Math.abs(velocity);
2201 velocity = Math.max(mMinSnapVelocity, velocity);
2206 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
2259 duration = Math.abs(delta);
2399 return Math.max(0, page - 1);
2403 return Math.min(page + 1, count - 1);
2445 setCurrentPage(Math.min(getPageCount() - 1, currentPage));
2587 float theta = (float) Math.acos(((vel.x * upVec.x) + (vel.y * upVec.y)) /
2589 if (theta <= Math.toRadians(FLING_TO_DELETE_MAX_FLING_DEGREES)) {
2661 int lastIndex = Math.min(mTempVisiblePagesRange[1], getPageCount() - 1);
2695 v.setAlpha(Math.max(v.getAlpha(), 0.01f));
2745 mOffset = Math.min(0.5f, (float) (AnimationUtils.currentAnimationTimeMillis() -
2749 return Math.min(1f, mOffset + t);