Lines Matching refs:Math
875 mHoursWidth = Math.max(HOURS_MARGIN, computeMaxStringWidth(mHoursWidth, ampm, p)
877 mHoursWidth = Math.max(MIN_HOURS_WIDTH, mHoursWidth);
1233 mHoursTextHeight = (int) Math.abs(p.ascent());
1244 MAX_UNEXPANDED_ALLDAY_HEIGHT = Math.min(MAX_UNEXPANDED_ALLDAY_HEIGHT, height / 6);
1245 MAX_UNEXPANDED_ALLDAY_HEIGHT = Math.max(MAX_UNEXPANDED_ALLDAY_HEIGHT,
1260 mMinCellHeight = Math.max((height - DAY_HEADER_HEIGHT) / 24, (int) MIN_EVENT_HEIGHT);
1288 allDayHeight = Math.max(mAnimateDayHeight, MAX_UNEXPANDED_ALLDAY_HEIGHT);
1311 mExpandAllDayRect.left = Math.max((mHoursWidth - allDayIconWidth) / 2,
1313 mExpandAllDayRect.right = Math.min(mExpandAllDayRect.left + allDayIconWidth, mHoursWidth
1824 float progress = Math.abs(xOffSet) / width;
1876 long duration = calculateDuration(width - Math.abs(xOffSet), width, velocity);
2127 final int firstDay = Math.max(event.startDay, mFirstJulianDay);
2128 final int lastDay = Math.min(event.endDay, mLastJulianDay);
2513 int length = Math.min(mCellHeight, width) - NEW_EVENT_MARGIN * 2;
2514 length = Math.min(length, NEW_EVENT_MAX_LENGTH);
2526 r.top + Math.abs(p.getFontMetrics().ascent) + EVENT_TEXT_TOP_MARGIN , p);
2665 lineY = Math.max(lineY, mViewStartY);
2678 lineY = Math.max(lineY, mViewStartY);
2744 maxWidthF = Math.max(width, maxWidthF);
3440 r.top = Math.max((int) event.top + EVENT_RECT_TOP_MARGIN, visibleTop);
3441 r.bottom = Math.min((int) event.bottom - EVENT_RECT_BOTTOM_MARGIN, visibleBot);
3472 int floorHalfStroke = (int) Math.floor(EVENT_RECT_STROKE_WIDTH / 2.0f);
3473 int ceilHalfStroke = (int) Math.ceil(EVENT_RECT_STROKE_WIDTH / 2.0f);
3474 r.top = Math.max((int) event.top + EVENT_RECT_TOP_MARGIN + floorHalfStroke, visibleTop);
3475 r.bottom = Math.min((int) event.bottom - EVENT_RECT_BOTTOM_MARGIN - ceilHalfStroke,
3772 maxADHeight = Math.min(maxADHeight,
3786 Math.min(maxADHeight, (int)(mMaxAlldayEvents * MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT));
3810 Math.min(maxADHeight, (int)(mMaxAlldayEvents * MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT));
3994 int absDistanceX = Math.abs(distanceX);
3995 int absDistanceY = Math.abs(distanceY);
4169 mStartingSpanY = Math.max(MIN_Y_SPAN, Math.abs(detector.getCurrentSpanY()));
4184 float spanY = Math.max(MIN_Y_SPAN, Math.abs(detector.getCurrentSpanY()));
4301 if (Math.abs(mViewStartX) > mHorizontalSnapBackThreshold) {
4910 if (Math.abs(distanceX) < Math.abs(distanceY)) {
4928 if (Math.abs(velocityX) < Math.abs(velocityY)) {
5007 velocity = Math.abs(velocity);
5008 velocity = Math.max(MINIMUM_SNAP_VELOCITY, velocity);
5016 long duration = 6 * Math.round(1000 * Math.abs(distance / velocity));
5035 f *= 0.3f * Math.PI / 2.0f;
5036 return (float) Math.sin(f);