/openjdk10/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);
|
/openjdk10/hotspot/test/compiler/c2/ |
H A D | Test6897150.java | 43 static void verify(int max, int a) { argument 44 if ( a != (max - 1)) { 45 System.out.println("Expected: " + (max - 1)); 50 static void loopAndPrint(int max) { argument 53 for (; i < max; i++) { 56 verify(max, a);
|
H A D | Test6559156.java | 53 void doTest1(int expected, int max, int i) { argument 56 (counted <= max) && (counted < expected); 61 " max=" + max + 67 void doTest2(int expected, int max, int i) { argument 71 (counted < expected) && (counted <= max); 76 " max=" + max +
|
H A D | Test6992759.java | 53 void doTest(int expected, int max, int i) { argument 56 (counted <= max) && (counted < expected); 61 " max=" + max +
|
H A D | Test6931567.java | 42 private static void booleanInvert(final int max) { argument 46 for (int i = 0; i < max; i++) { 50 for (int i = 0; i < max; i++) {
|
H A D | Test6985295.java | 38 int max = Integer.MAX_VALUE; 39 System.out.println("max = " + max); 42 for(i = min; i <= max; i++) {
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/regexp/joni/ |
H A D | MinMaxLen.java | 24 int max; /* max byte length */ field in class:MinMaxLen 29 MinMaxLen(final int min, final int max) { argument 31 this.max = max; 34 /* 1000 / (min-max-dist + 1) */ 49 if (max == INFINITE_DISTANCE) { 52 final int d = max - min; 87 return min == other.min && max == other.max; 90 set(final int min, final int max) argument [all...] |
/openjdk10/jdk/src/java.desktop/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;
|
/openjdk10/langtools/test/tools/javac/generics/inference/5021635/ |
H A D | T6299211.java | 33 java.util.Collections.max(null);
|
/openjdk10/hotspot/test/compiler/loopopts/ |
H A D | Test6860469.java | 45 int max = -1; 52 if (ll > max) { 53 max = ll; 57 if (f > max) { 58 f = max; 64 for (int mc = 1 >> max - f; mc <= 0; mc++) { 66 fl[i] = max;
|
/openjdk10/jaxws/src/jdk.xml.bind/share/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...] |
/openjdk10/jdk/src/java.management/share/classes/java/lang/management/ |
H A D | MemoryUsage.java | 72 * <th scope="row" style="vertical-align:top"> {@code max} </th> 77 * or equal to {@code max} if {@code max} is defined. 80 * if {@code used <= max} would still be true (for example, 102 * max 116 private final long max; field in class:MemoryUsage 126 * @param max the maximum amount of memory in bytes that 131 * <li> the value of {@code init} or {@code max} is negative 137 * <li> {@code committed} is greater than the value of {@code max} 138 * {@code max} i 141 MemoryUsage(long init, long used, long committed, long max) argument [all...] |
/openjdk10/hotspot/test/native/runtime/ |
H A D | test_semaphore.cpp | 49 static void test_semaphore_many(uint value, uint max, uint increments) { argument 54 for (uint i = value; i + increments <= max; i += increments) { 65 static void test_semaphore_trywait(uint value, uint max) { argument 68 for (uint i = 0; i < max; ++i) { 90 for (uint max = 0; max < 10; max++) { 91 for (uint value = 0; value < max; value++) { 92 for (uint inc = 1; inc <= max - value; inc++) { 93 test_semaphore_many(value, max, in [all...] |
/openjdk10/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/ |
H A D | DoubleJVMOption.java | 46 private double max; field in class:DoubleJVMOption 56 max = Double.MAX_VALUE; 60 * Initialize double option with passed name, min and max values 64 * @param max maximum value of the option 66 public DoubleJVMOption(String name, double min, double max) { argument 69 this.max = max; 95 * @param max new maximum value 98 void setMax(String max) { argument 99 this.max [all...] |
/openjdk10/nashorn/test/script/basic/ |
H A D | JDK-8008298.js | 81 if (Math.max(2, 28) != 28) { 82 fail("Math.max failed for int values"); 85 if (Math.max(2147483649, 2147483648) != 2147483649) { 86 fail("Math.max failed for long values"); 89 if (Math.max(0.0, -2.5) != 0.0) { 90 fail("Math.max failed for double values");
|
/openjdk10/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...] |
/openjdk10/langtools/src/jdk.jshell/share/classes/jdk/jshell/ |
H A D | GeneralWrap.java | 60 return wrapped().substring(Math.max(0, pos - 10), Math.max(0, Math.min(len, pos))) 62 + wrapped().substring(Math.max(0, Math.min(len, pos)), Math.max(0, Math.min(len, pos + 10)));
|
/openjdk10/jdk/src/java.base/share/classes/java/util/ |
H A D | DoubleSummaryStatistics.java | 31 * A state object for collecting statistics such as count, min, max, sum, and 69 private double max = Double.NEGATIVE_INFINITY; field in class:DoubleSummaryStatistics 74 * max and zero average. 89 max = Math.max(max, value); 105 max = Math.max(max, other.max); [all...] |
H A D | IntSummaryStatistics.java | 31 * A state object for collecting statistics such as count, min, max, sum, and 69 private int max = Integer.MIN_VALUE; field in class:IntSummaryStatistics 73 * {@code Integer.MAX_VALUE} min, {@code Integer.MIN_VALUE} max and zero 88 max = Math.max(max, value); 101 max = Math.max(max, other.max); [all...] |
H A D | LongSummaryStatistics.java | 32 * A state object for collecting statistics such as count, min, max, sum, and 70 private long max = Long.MIN_VALUE; field in class:LongSummaryStatistics 74 * {@code Long.MAX_VALUE} min, {@code Long.MIN_VALUE} max and zero 99 max = Math.max(max, value); 113 max = Math.max(max, other.max); [all...] |
/openjdk10/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/ |
H A D | EventFilterSupportTest.java | 84 // Without the fix, will cause a StackOverflowException if 'max' is high 86 private static void testNextEvent(int max) argument 88 System.out.println("\nTest nextEvent (" + max + ")..."); 89 XMLEventReader reader = createXmlReader(max); 104 // Without the fix, will cause a StackOverflowException if 'max' is high 106 private static void testNextTag(int max) argument 108 System.out.println("\nTest nextTag (" + max + ")..."); 109 XMLEventReader reader = createXmlReader(max); 122 private static XMLEventReader createXmlReader(int max) argument 124 TestInputStream ts = new TestInputStream(max); 140 final int max; field in class:EventFilterSupportTest.TestInputStream 142 TestInputStream(int max) argument 191 final int max; field in class:EventFilterSupportTest.TagFilter 193 TagFilter(int max) argument [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/ |
H A D | DefaultBoundedRangeModel.java | 65 private int max = 100; field in class:DefaultBoundedRangeModel 89 * min <= value <= value+extent <= max 95 * @param max an int giving the maximum value 97 public DefaultBoundedRangeModel(int value, int extent, int min, int max) argument 99 if ((max >= min) && 102 ((value + extent) <= max)) { 106 this.max = max; 154 return max; 171 int newValue = Math.max( [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/sun/print/ |
H A D | SunMinMaxPage.java | 38 public SunMinMaxPage(int min, int max) { argument 40 page_max = max;
|
/openjdk10/jdk/src/java.desktop/share/classes/com/sun/media/sound/ |
H A D | SoftLimiter.java | 108 float max = 0; 113 if (bufferL[i] > max) 114 max = bufferL[i]; 115 if (-bufferL[i] > max) 116 max = -bufferL[i]; 120 if (bufferL[i] > max) 121 max = bufferL[i]; 122 if (bufferR[i] > max) 123 max = bufferR[i]; 124 if (-bufferL[i] > max) [all...] |