Lines Matching refs:size
68 int size = parseSize(args[1]);
69 int incr = (args.length > 2 ? parseSize(args[2]) : size);
79 while (size >= incr) {
81 size -= incr;
105 private static int parseSize(String size) throws Exception {
107 if (size.equals("DEFAULT"))
109 if (size.equals("DEFAULT+1"))
111 if (size.equals("DEFAULT+1M"))
113 if (size.equals("DEFAULT-1"))
115 if (size.equals("DEFAULT/2"))
118 int idx = 0, len = size.length();
122 if (Character.isDigit(size.charAt(i))) idx++;
127 throw new RuntimeException("No digits detected: " + size);
129 int result = Integer.parseInt(size.substring(0, idx));
133 switch(size.charAt(i)) {
140 throw new RuntimeException("Unrecognized size: " + size);