Lines Matching defs:min

145      * @param min the minimum size >= 0
150 public SizeRequirements(int min, int pref, int max, float a) {
151 minimum = min;
186 total.minimum = (int) Math.min((long) total.minimum + (long) req.minimum, Integer.MAX_VALUE);
187 total.preferred = (int) Math.min((long) total.preferred + (long) req.preferred, Integer.MAX_VALUE);
188 total.maximum = (int) Math.min((long) total.maximum + (long) req.maximum, Integer.MAX_VALUE);
226 int min = (int) Math.min((long) totalAscent.minimum + (long) totalDescent.minimum, Integer.MAX_VALUE);
227 int pref = (int) Math.min((long) totalAscent.preferred + (long) totalDescent.preferred, Integer.MAX_VALUE);
228 int max = (int) Math.min((long) totalAscent.maximum + (long) totalDescent.maximum, Integer.MAX_VALUE);
230 if (min > 0) {
231 alignment = (float) totalAscent.minimum / min;
234 return new SizeRequirements(min, pref, max, alignment);
308 long min = 0;
312 min += children[i].minimum;
317 expandedTile(allocated, min, pref, max, children, offsets, spans, forward);
319 compressedTile(allocated, min, pref, max, children, offsets, spans, forward);
323 private static void compressedTile(int allocated, long min, long pref, long max,
329 float totalPlay = Math.min(pref - allocated, pref - min);
330 float factor = (pref - min == 0) ? 0.0f : totalPlay / (pref - min);
342 totalOffset = (int) Math.min((long) totalOffset + (long) spans[i], Integer.MAX_VALUE);
357 private static void expandedTile(int allocated, long min, long pref, long max,
363 float totalPlay = Math.min(allocated - pref, max - pref);
375 spans[i] = (int) Math.min((long) req.preferred + (long) play, Integer.MAX_VALUE);
376 totalOffset = (int) Math.min((long) totalOffset + (long) spans[i], Integer.MAX_VALUE);
384 spans[i] = (int) Math.min((long) req.preferred + (long) play, Integer.MAX_VALUE);
469 int ascent = Math.min(totalAscent, maxAscent);
470 int descent = Math.min(totalDescent, maxDescent);
473 spans[i] = (int) Math.min((long) ascent + (long) descent, Integer.MAX_VALUE);