Home | History | Annotate | Download | only in launcher2

Lines Matching defs:Math

351         mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
455 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
551 maxChildHeight = Math.max(maxChildHeight, child.getMeasuredHeight());
578 int spacing = Math.max(offset, widthSize - offset -
695 float alpha = 1 - Math.abs(scrollProgress);
807 range[0] = Math.min(leftScreen, rightScreen);
808 range[1] = Math.max(leftScreen, rightScreen);
1041 final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX());
1104 final int xDiff = (int) Math.abs(x - mLastMotionX);
1105 final int yDiff = (int) Math.abs(y - mLastMotionY);
1107 final int touchSlop = Math.round(touchSlopScale * mTouchSlop);
1116 mTotalMotionX += Math.abs(mLastMotionX - x);
1149 scrollProgress = Math.min(scrollProgress, 1.0f);
1150 scrollProgress = Math.max(scrollProgress, -1.0f);
1171 if (Math.abs(f) >= 1) {
1172 f /= Math.abs(f);
1175 int overScrollAmount = (int) Math.round(f * screenSize);
1192 f = f / (Math.abs(f)) * (overScrollInfluenceCurve(Math.abs(f)));
1195 if (Math.abs(f) >= 1) {
1196 f /= Math.abs(f);
1199 int overScrollAmount = (int) Math.round(OVERSCROLL_DAMP_FACTOR * f * screenSize);
1218 f = f / (Math.abs(f)) * (overScrollInfluenceCurve(Math.abs(f)));
1258 mTotalMotionX += Math.abs(deltaX);
1263 if (Math.abs(deltaX) >= 1.0f) {
1292 boolean isSignificantMove = Math.abs(deltaX) > pageWidth *
1295 mTotalMotionX += Math.abs(mLastMotionX + mLastMotionXRemainder - x);
1298 Math.abs(velocityX) > mFlingThresholdVelocity;
1304 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD &&
1305 Math.signum(velocityX) != Math.signum(deltaX) && isFling) {
1332 int nextPage = Math.max(0, mCurrentPage - 1);
1342 int nextPage = Math.min(getChildCount() - 1, mCurrentPage + 1);
1484 int distanceFromScreenCenter = Math.abs(childCenter - screenCenter);
1513 f *= 0.3f * Math.PI / 2.0f;
1514 return (float) Math.sin(f);
1518 whichPage = Math.max(0, Math.min(whichPage, getChildCount() - 1));
1528 if (Math.abs(velocity) < mMinFlingVelocity) {
1539 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize));
1543 velocity = Math.abs(velocity);
1544 velocity = Math.max(mMinSnapVelocity, velocity);
1549 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
1550 duration = Math.min(duration, MAX_PAGE_SNAP_DURATION);
1560 whichPage = Math.max(0, Math.min(whichPage, getPageCount() - 1));
1583 duration = Math.abs(delta);
1713 return Math.max(0, page - 1);
1717 return Math.min(page + 1, count - 1);
1760 setCurrentPage(Math.min(getPageCount() - 1, currentPage));
1902 float offset = Math.max(0f, Math.min(1f, (float) scrollPos / mMaxScrollX));