Lines Matching refs:Math
397 layout(Math.max(0, (int)(width - getLeftInset() - getRightInset())),
398 Math.max(0, (int)(height - getTopInset() - getBottomInset())));
799 float maximumAdjustment = Math.abs(totalSpan - preferred);
801 adjustmentFactor = Math.min(adjustmentFactor, 1.0f);
802 adjustmentFactor = Math.max(adjustmentFactor, -1.0f);
811 spans[i] += Math.round(adjF);
813 totalOffset = (int) Math.min((long) totalOffset + (long) spans[i], Integer.MAX_VALUE);
847 spans[i] = Math.max(min, targetSpan);
903 min = Math.max((int) v.getMinimumSpan(axis), min);
904 pref = Math.max((int) v.getPreferredSpan(axis), pref);
905 max = Math.max((int) v.getMaximumSpan(axis), max);
976 viewSpan = Math.max(Math.min(maxSpan, totalDescent), minSpan);
979 viewSpan = Math.max(Math.min(maxSpan, totalAscent), minSpan);
982 float fitSpan = Math.min(totalAscent / align,
985 viewSpan = Math.max(Math.min(maxSpan, fitSpan), minSpan);
1031 totalAscent.preferred = Math.max(ascent, totalAscent.preferred);
1032 totalDescent.preferred = Math.max(descent, totalDescent.preferred);
1040 totalAscent.minimum = Math.max(ascent, totalAscent.minimum);
1041 totalDescent.minimum = Math.max(descent, totalDescent.minimum);
1046 totalAscent.maximum = Math.max(ascent, totalAscent.maximum);
1047 totalDescent.maximum = Math.max(descent, totalDescent.maximum);
1050 totalAscent.minimum = Math.max(ascent, totalAscent.minimum);
1051 totalDescent.minimum = Math.max(descent, totalDescent.minimum);
1052 totalAscent.maximum = Math.max(ascent, totalAscent.maximum);
1053 totalDescent.maximum = Math.max(descent, totalDescent.maximum);
1060 r.preferred = (int)Math.min((long)totalAscent.preferred + (long)totalDescent.preferred,
1083 r.minimum = Math.round(Math.max(totalAscent.minimum / r.alignment,
1086 r.maximum = Math.round(Math.min(totalAscent.maximum / r.alignment,
1148 Math.max(0, position - 1) : position;