/openjdk7/jdk/test/java/io/charStreams/ |
H A D | IntGenerator.java | 37 public int next(int max) { argument 38 if (max <= 0) 43 return x % (max + 1);
|
H A D | CharGenerator.java | 32 int min = 0, max = 0xffff; field in class:CharGenerator 38 public CharGenerator(IntGenerator r, int min, int max) { argument 41 this.max = max; 47 c = (char) (r.next(max - min) + min);
|
/openjdk7/hotspot/test/compiler/5091921/ |
H A D | Test6897150.java | 42 static void verify(int max, int a) { argument 43 if ( a != (max - 1)) { 44 System.out.println("Expected: " + (max - 1)); 49 static void loopAndPrint(int max) { argument 52 for (; i < max; i++) { 55 verify(max, a);
|
H A D | Test6559156.java | 52 void doTest1(int expected, int max, int i) { argument 55 (counted <= max) && (counted < expected); 60 " max=" + max + 66 void doTest2(int expected, int max, int i) { argument 70 (counted < expected) && (counted <= max); 75 " max=" + max +
|
H A D | Test6931567.java | 41 private static void booleanInvert(final int max) { argument 45 for (int i = 0; i < max; i++) { 49 for (int i = 0; i < max; i++) {
|
H A D | Test6985295.java | 37 int max = Integer.MAX_VALUE; 38 System.out.println("max = " + max); 41 for(i = min; i <= max; i++) {
|
H A D | Test6992759.java | 52 void doTest(int expected, int max, int i) { argument 55 (counted <= max) && (counted < expected); 60 " max=" + max +
|
H A D | Test6959129.java | 38 int max = Integer.MAX_VALUE; 41 maxmoves = maxMoves(min, max); 74 * between min to max. 76 * For rec1 - Assume that min is bigger than max. 78 public static long maxMoves(int min, int max) { argument 80 for (int n = min; n <= max; n++) {
|
/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | TextRecord.java | 41 public int max; field in class:TextRecord 43 public void init(char[] text, int start, int limit, int min, int max) { argument 48 this.max = max;
|
/openjdk7/langtools/test/tools/javac/generics/inference/5021635/ |
H A D | T6299211.java | 33 java.util.Collections.max(null);
|
/openjdk7/hotspot/test/compiler/6860469/ |
H A D | Test.java | 41 int max = -1; 48 if (ll > max) { 49 max = ll; 53 if (f > max) { 54 f = max; 60 for (int mc = 1 >> max - f; mc <= 0; mc++) { 62 fl[i] = max;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/model/ |
H A D | Multiplicity.java | 47 public final BigInteger max; // null is used to represent "unbounded". field in class:Multiplicity 49 public static Multiplicity create(BigInteger min, BigInteger max ) { 50 if (BigInteger.ZERO.equals(min) && max==null) return STAR; 51 if (BigInteger.ONE.equals(min) && max==null) return PLUS; 52 if (max!=null) { 53 if(BigInteger.ZERO.equals(min) && BigInteger.ZERO.equals(max)) return ZERO; 54 if(BigInteger.ZERO.equals(min) && BigInteger.ONE.equals(max)) return OPTIONAL; 55 if(BigInteger.ONE.equals(min) && BigInteger.ONE.equals(max)) return ONE; 57 return new Multiplicity(min, max); 60 public static Multiplicity create(int min, Integer max ) { 64 Multiplicity(BigInteger min, BigInteger max) argument 69 Multiplicity(int min, int max) argument 73 Multiplicity(int min, Integer max) argument [all...] |
/openjdk7/jdk/src/share/classes/java/lang/management/ |
H A D | MemoryUsage.java | 68 * <td valign=top> <tt>max</tt> </td> 73 * or equal to <tt>max</tt> if <tt>max</tt> is defined. 76 * if <tt>used <= max</tt> would still be true (for example, 98 * max 112 private final long max; field in class:MemoryUsage 122 * @param max the maximum amount of memory in bytes that 127 * <li> the value of <tt>init</tt> or <tt>max</tt> is negative 133 * <li> <tt>committed</tt> is greater than the value of <tt>max</tt> 134 * <tt>max</t 137 MemoryUsage(long init, long used, long committed, long max) argument [all...] |
/openjdk7/jdk/test/java/util/Locale/ |
H A D | HashCodeTest.java | 35 int max = Integer.MIN_VALUE; 43 max = Math.max(hc, max); 53 +", min="+min+", max="+max +", diff="+(max-min));
|
/openjdk7/jdk/test/java/util/Collections/ |
H A D | MinMax.java | 27 * @summary min and max methods fail if size changes in between a call to size 40 if (!Collections.max(s).equals("x")) 41 throw new RuntimeException("2: " + Collections.max(s)); 46 if (!Collections.max(s).equals("y")) 47 throw new RuntimeException("4: " + Collections.max(s)); 52 if (!Collections.max(s).equals("y")) 53 throw new RuntimeException("6: " + Collections.max(s)); 59 if (!Collections.max(s, Collections.reverseOrder()).equals("x")) 60 throw new RuntimeException("2a: " + Collections.max(s)); 65 if (!Collections.max( [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/ |
H A D | SnmpPduBulkType.java | 36 * The <CODE>max-repetitions</CODE> setter. 37 * @param max Maximum repetition. 39 public void setMaxRepetitions(int max); argument 48 * The <CODE>max-repetitions</CODE> getter.
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | DefaultBoundedRangeModel.java | 63 private int max = 100; field in class:DefaultBoundedRangeModel 87 * min <= value <= value+extent <= max 90 public DefaultBoundedRangeModel(int value, int extent, int min, int max) argument 92 if ((max >= min) && 95 ((value + extent) <= max)) { 99 this.max = max; 147 return max; 164 int newValue = Math.max(n, min); 165 if (newValue + extent > max) { [all...] |
/openjdk7/jdk/src/share/classes/sun/print/ |
H A D | SunMinMaxPage.java | 36 public SunMinMaxPage(int min, int max) { argument 38 page_max = max;
|
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SoftLimiter.java | 101 float max = 0; 106 if (bufferL[i] > max) 107 max = bufferL[i]; 108 if (-bufferL[i] > max) 109 max = -bufferL[i]; 113 if (bufferL[i] > max) 114 max = bufferL[i]; 115 if (bufferR[i] > max) 116 max = bufferR[i]; 117 if (-bufferL[i] > max) [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/monitoring/ |
H A D | StatisticsAccumulator.java | 54 protected double max = Double.MIN_VALUE; field in class:StatisticsAccumulator 92 if( value > max) max = value; 113 "Maximum Value = " + max + " " + unit + " " + 167 max = Double.MIN_VALUE; 190 if( max != expectedMax ) { 193 "\nMax Value = " + max + "Expected Max Value = " + expectedMax);
|
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | ColorModelCMYK.java | 80 float max = ColorModelHSL.max(rgb[0], rgb[1], rgb[2]); 81 if (max > 0.0f) { 82 cmyk[0] = 1.0f - rgb[0] / max; 83 cmyk[1] = 1.0f - rgb[1] / max; 84 cmyk[2] = 1.0f - rgb[2] / max; 91 cmyk[3] = 1.0f - max;
|
H A D | ColorModelHSL.java | 104 float max = max(rgb[0], rgb[1], rgb[2]); 107 float summa = max + min; 108 float saturation = max - min; 114 hsl[0] = getHue(rgb[0], rgb[1], rgb[2], max, min); 141 static float max(float red, float green, float blue) { method in class:ColorModelHSL 142 float max = (red > green) ? red : green; 143 return (max > blue) ? max : blue; 152 * @param max th 156 getHue(float red, float green, float blue, float max, float min) argument [all...] |
/openjdk7/jdk/test/java/lang/Math/ |
H A D | MinMax.java | 26 @summary Math.min and Math.max should treat negative zero as strictly 70 go("Math.max(fnz, fnz)", Math.max(fnz, fnz), fnz); 71 go("Math.max(fnz, fpz)", Math.max(fnz, fpz), fpz); 72 go("Math.max(fpz, fnz)", Math.max(fpz, fnz), fpz); 73 go("Math.max(fpz, fpz)", Math.max(fpz, fpz), fpz); 75 go("Math.max( [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/jstat/ |
H A D | HeaderClosure.java | 63 c.setWidth(Math.max(c.getWidth(), 64 Math.max(c.getFormat().length(), len-2))); 69 c.setWidth(Math.max(c.getWidth(), 70 Math.max(c.getFormat().length(), len-1))); 75 c.setWidth(Math.max(c.getWidth(), 76 Math.max(c.getFormat().length(), len-1)));
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftCubicResampler/ |
H A D | Interpolate.java | 103 float max = testResampler(resampler, 0.3f, 0.3f); 104 if(max > 0.005) 105 fail("Interpolation failed, error="+max); 106 max = testResampler(resampler, 0.3f, 0.01f); 107 if(max > 0.005) 108 fail("Interpolation failed, error="+max); 109 max = testResampler(resampler, 1.0f, 0.00f); 110 if(max > 0.005) 111 fail("Interpolation failed, error="+max);
|