/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ConcatOpTest.java | 59 LongStream.range(0, Long.MAX_VALUE / 2).boxed(), in testSize() 60 LongStream.range(0, Long.MAX_VALUE / 2).boxed())); in testSize() 63 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize() 64 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize() 67 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize() 72 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize() 77 LongStream.range(0, Long.MAX_VALUE / 2), in testLongSize() 78 LongStream.range(0, Long.MAX_VALUE / 2))); in testLongSize() 81 LongStream.range(0, Long.MAX_VALUE), in testLongSize() 82 LongStream.range(0, Long.MAX_VALUE))); in testLongSize() [all …]
|
D | RangeTest.java | 102 int[] inc = IntStream.rangeClosed(Integer.MAX_VALUE - 1, Integer.MAX_VALUE).toArray(); in testIntRange() 104 assertEquals(Integer.MAX_VALUE - 1, inc[0]); in testIntRange() 105 assertEquals(Integer.MAX_VALUE, inc[1]); in testIntRange() 107 inc = IntStream.rangeClosed(Integer.MAX_VALUE, Integer.MAX_VALUE).toArray(); in testIntRange() 109 assertEquals(Integer.MAX_VALUE, inc[0]); in testIntRange() 112 … () -> IntStream.rangeClosed(Integer.MAX_VALUE - 8, Integer.MAX_VALUE).spliterator()); in testIntRange() 117 Spliterator.OfInt s = IntStream.rangeClosed(Integer.MIN_VALUE, Integer.MAX_VALUE). in testIntRange() 192 long[] inc = LongStream.rangeClosed(Long.MAX_VALUE - 1, Long.MAX_VALUE).toArray(); in testLongRange() 194 assertEquals(Long.MAX_VALUE - 1, inc[0]); in testLongRange() 195 assertEquals(Long.MAX_VALUE, inc[1]); in testLongRange() [all …]
|
/libcore/luni/src/main/java/java/math/ |
D | Multiplication.java | 133 if (exp <= Integer.MAX_VALUE) { in powerOf10() 144 BigInteger powerOfFive = bigFivePows[1].pow(Integer.MAX_VALUE); in powerOf10() 146 long longExp = exp - Integer.MAX_VALUE; in powerOf10() 148 intExp = (int) (exp % Integer.MAX_VALUE); in powerOf10() 149 while (longExp > Integer.MAX_VALUE) { in powerOf10() 151 longExp -= Integer.MAX_VALUE; in powerOf10() 155 res = res.shiftLeft(Integer.MAX_VALUE); in powerOf10() 156 longExp = exp - Integer.MAX_VALUE; in powerOf10() 157 while (longExp > Integer.MAX_VALUE) { in powerOf10() 158 res = res.shiftLeft(Integer.MAX_VALUE); in powerOf10() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldParsePositionTest.java | 23 ParsePosition pp = new ParsePosition(Integer.MAX_VALUE); 31 pp1.setIndex(Integer.MAX_VALUE); in test_hashCode() 40 pp.setErrorIndex(Integer.MAX_VALUE); in test_getErrorIndex() 41 assertEquals("getErrorIndex failed.", Integer.MAX_VALUE, in test_getErrorIndex() 43 assertEquals("getErrorIndex failed.", Integer.MAX_VALUE, in test_getErrorIndex()
|
D | OldNumberFormatTest.java | 239 String out = nf1.format(Long.MAX_VALUE); in test_formatLlong() 446 nf1.setMaximumFractionDigits(Integer.MAX_VALUE); in test_getMaximumFractionDigits() 449 + " instead of: " + Integer.MAX_VALUE, in test_getMaximumFractionDigits() 450 result == Integer.MAX_VALUE); in test_getMaximumFractionDigits() 457 nf1.setMinimumFractionDigits(Integer.MAX_VALUE); in test_getMaximumFractionDigits() 460 + " instead of Integer.MAX_VALUE", result == Integer.MAX_VALUE); in test_getMaximumFractionDigits() 465 nf1.setMinimumFractionDigits(Integer.MAX_VALUE); in test_getMinimumFractionDigits() 468 + " instead of: " + Integer.MAX_VALUE, in test_getMinimumFractionDigits() 469 result == Integer.MAX_VALUE); in test_getMinimumFractionDigits() 484 nf1.setMaximumIntegerDigits(Integer.MAX_VALUE); in test_getMaximumIntegerDigits() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldDoubleTest.java | 24 Double d = new Double(Byte.MAX_VALUE); in test_byteValue() 25 assertEquals("Returned incorrect byte value", Byte.MAX_VALUE, d.byteValue()); in test_byteValue() 28 d= new Double(Double.MAX_VALUE); in test_byteValue() 47 assertEquals(Double.MAX_VALUE, new Double("1.7976931348623157E308").doubleValue()); in test_doubleValue() 54 assertEquals(Float.MAX_VALUE, new Double("3.4028235E38").floatValue()); in test_floatValue() 59 assertEquals("Returned incorrect int value", Integer.MAX_VALUE, in test_intValue() 66 assertFalse("Doesn't return false value", Double.isNaN(new Double(Double.MAX_VALUE))); in test_isNaND()
|
D | StrictMathTest.java | 29 testIntExact(Integer.MAX_VALUE, 1); in testIntExact() 30 testIntExact(Integer.MAX_VALUE, -1); in testIntExact() 33 testIntExact(Integer.MAX_VALUE, Integer.MAX_VALUE); in testIntExact() 81 testLongExact(Long.MAX_VALUE, 1); in testLongExact() 82 testLongExact(Long.MAX_VALUE, -1); in testLongExact() 85 testLongExact(Long.MAX_VALUE, Long.MAX_VALUE); in testLongExact() 134 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL() 145 testFloorDivModI(Integer.MAX_VALUE, 1); in testIntFloorDivMod() 146 testFloorDivModI(Integer.MAX_VALUE, -1); in testIntFloorDivMod() 191 testFloorDivModL(Long.MAX_VALUE, 1L); in testLongFloorDivMod() [all …]
|
D | OldFloatTest.java | 33 Float f = new Float(Double.MAX_VALUE); in test_ConstructorD() 64 assertTrue(new Float(Float.MAX_VALUE).hashCode() != new Float(Float.MIN_VALUE).hashCode()); in test_hashCode() 78 assertEquals(Integer.MAX_VALUE, new Float(Float.MAX_VALUE).intValue()); in test_intValue() 84 assertFalse(Float.isNaN(Float.MAX_VALUE)); in test_isNaNF() 89 assertEquals(Long.MAX_VALUE, new Float(Float.MAX_VALUE).longValue()); in test_longValue()
|
D | OldStringBufferTest.java | 95 testBuffer.insert(-1, Double.MAX_VALUE); in test_insertID() 102 testBuffer.insert(testBuffer.length() + 1, Double.MAX_VALUE); in test_insertID() 111 testBuffer.insert(-1, Float.MAX_VALUE); in test_insertIF() 118 testBuffer.insert(testBuffer.length() + 1, Float.MAX_VALUE); in test_insertIF() 127 testBuffer.insert(-1, Integer.MAX_VALUE); in test_insertII() 134 testBuffer.insert(testBuffer.length() + 1, Integer.MAX_VALUE); in test_insertII() 143 testBuffer.insert(-1, Long.MAX_VALUE); in test_insertIJ() 150 testBuffer.insert(testBuffer.length() + 1, Long.MAX_VALUE); in test_insertIJ() 301 testBuffer.subSequence(0, Integer.MAX_VALUE); in test_subSequence() 308 testBuffer.subSequence(Integer.MAX_VALUE, testBuffer.length()); in test_subSequence()
|
D | MathTest.java | 29 testIntExact(Integer.MAX_VALUE, 1); in testIntExact() 30 testIntExact(Integer.MAX_VALUE, -1); in testIntExact() 33 testIntExact(Integer.MAX_VALUE, Integer.MAX_VALUE); in testIntExact() 117 testLongExact(Long.MAX_VALUE, 1); in testLongExact() 118 testLongExact(Long.MAX_VALUE, -1); in testLongExact() 121 testLongExact(Long.MAX_VALUE, Long.MAX_VALUE); in testLongExact() 206 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL() 217 testFloorDivModI(Integer.MAX_VALUE, 1); in testIntFloorDivMod() 218 testFloorDivModI(Integer.MAX_VALUE, -1); in testIntFloorDivMod() 263 testFloorDivModL(Long.MAX_VALUE, 1L); in testLongFloorDivMod() [all …]
|
D | LongTest.java | 40 final long max = Long.MAX_VALUE; in testCompare() 56 assertEquals(1, Long.signum(Long.MAX_VALUE)); 88 assertEquals(Long.MAX_VALUE, Long.parseLong("+" + Long.MAX_VALUE, 10)); 114 assertEquals(Long.MAX_VALUE, Long.decode("+" + Long.MAX_VALUE).longValue());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 1418 f.format("%c", Integer.MAX_VALUE); in test_formatLjava_lang_String$Ljava_lang_Object_CharacterConversion() 1742 { Long.MAX_VALUE, 'a', "So." }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1748 { Long.MAX_VALUE, 'b', "Aug" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1754 { Long.MAX_VALUE, 'c', "So. Aug 17 15:18:47 GMT+08:00 292278994" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1760 { Long.MAX_VALUE, 'd', "17" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1766 { Long.MAX_VALUE, 'e', "17" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1772 { Long.MAX_VALUE, 'h', "Aug" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1778 { Long.MAX_VALUE, 'j', "229" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1784 { Long.MAX_VALUE, 'k', "15" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 1790 { Long.MAX_VALUE, 'l', "3" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineResultTest.java | 95 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_bytesConsumed() 118 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_bytesProduced() 141 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_getHandshakeStatus() 164 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_getStatus() 187 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_toString()
|
/libcore/luni/src/test/java/dalvik/system/ |
D | JniTest.java | 150 final char[] literals = {Character.MAX_VALUE, Character.MIN_VALUE, in testPassingChars() 181 final byte[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, 0, -1}; in testPassingBytes() 209 …final short[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, 0, -1}; in testPassingShorts() 237 final int[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingInts() 238 Integer.MAX_VALUE, Integer.MIN_VALUE, 0, -1}; in testPassingInts() 266 final long[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingLongs() 267 … Integer.MAX_VALUE, Integer.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, 0, -1}; in testPassingLongs() 295 final float[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingFloats() 296 … Integer.MAX_VALUE, Integer.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, in testPassingFloats() 297 Float.MAX_VALUE, Float.MIN_VALUE, Float.MIN_NORMAL, Float.NaN, in testPassingFloats() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 271 assertEquals(Long.MAX_VALUE, in testConvertSaturate() 272 NANOSECONDS.convert(Long.MAX_VALUE / 2, SECONDS)); in testConvertSaturate() 274 NANOSECONDS.convert(-Long.MAX_VALUE / 4, SECONDS)); in testConvertSaturate() 275 assertEquals(Long.MAX_VALUE, in testConvertSaturate() 276 NANOSECONDS.convert(Long.MAX_VALUE / 2, MINUTES)); in testConvertSaturate() 278 NANOSECONDS.convert(-Long.MAX_VALUE / 4, MINUTES)); in testConvertSaturate() 279 assertEquals(Long.MAX_VALUE, in testConvertSaturate() 280 NANOSECONDS.convert(Long.MAX_VALUE / 2, HOURS)); in testConvertSaturate() 282 NANOSECONDS.convert(-Long.MAX_VALUE / 4, HOURS)); in testConvertSaturate() 283 assertEquals(Long.MAX_VALUE, in testConvertSaturate() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | FieldTest.java | 92 protected int intField = Integer.MAX_VALUE; 93 protected final int intFField = Integer.MAX_VALUE; 94 protected static int intSField = Integer.MAX_VALUE; 95 private final int intPFField = Integer.MAX_VALUE; 97 protected short shortField = Short.MAX_VALUE; 98 protected final short shortFField = Short.MAX_VALUE; 99 protected static short shortSField = Short.MAX_VALUE; 100 private final short shortPFField = Short.MAX_VALUE; 107 protected byte byteField = Byte.MAX_VALUE; 108 protected static byte byteSField = Byte.MAX_VALUE; [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 222 @TestAnnotation3(i = Integer.MAX_VALUE) 224 @TestAnnotation3(i = Integer.MAX_VALUE) 227 @TestAnnotation3(i = Integer.MAX_VALUE) 241 @TestAnnotation3(j = Long.MAX_VALUE) 243 @TestAnnotation3(j = Long.MAX_VALUE) 246 @TestAnnotation3(j = Long.MAX_VALUE) 260 @TestAnnotation3(f = Float.MAX_VALUE) 262 @TestAnnotation3(f = Float.MAX_VALUE) 270 @TestAnnotation3(f = Long.MAX_VALUE) 289 @TestAnnotation3(d = Double.MAX_VALUE) [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParsePositionTest.java | 63 assertTrue("getIndex failed.", pp.getIndex() == Integer.MAX_VALUE); in test_getIndex() 70 ParsePosition pp2 = new ParsePosition(Integer.MAX_VALUE); in test_hashCode() 109 pp = new ParsePosition(Integer.MAX_VALUE); in setUp()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | WrappedByteBufferTest.java | 66 ByteBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedByteBuffer_IllegalArg() 72 ByteBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedByteBuffer_IllegalArg() 78 ByteBuffer.wrap((byte[])null, 1, Integer.MAX_VALUE); in testWrappedByteBuffer_IllegalArg()
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | OldPreferenceChangeEventTest.java | 64 pref.putInt("key_int", Integer.MAX_VALUE); in testGetKey() 81 if (pce != null && pce.getNewValue().equals(Integer.toString(Integer.MAX_VALUE))) { in testGetNewValue() 89 pref.putInt("key_int", Integer.MAX_VALUE); in testGetNewValue() 94 pref.putInt("key_int", Integer.MAX_VALUE); in testGetNewValue() 119 pref.putInt("key_int", Integer.MAX_VALUE); in testGetNode()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 578 (this, 0L, streamSize, Integer.MAX_VALUE, 0), in ints() 594 (this, 0L, Long.MAX_VALUE, Integer.MAX_VALUE, 0), in ints() 645 (this, 0L, Long.MAX_VALUE, randomNumberOrigin, randomNumberBound), in ints() 664 (this, 0L, streamSize, Long.MAX_VALUE, 0L), in longs() 680 (this, 0L, Long.MAX_VALUE, Long.MAX_VALUE, 0L), in longs() 731 (this, 0L, Long.MAX_VALUE, randomNumberOrigin, randomNumberBound), in longs() 750 (this, 0L, streamSize, Double.MAX_VALUE, 0.0), in doubles() 767 (this, 0L, Long.MAX_VALUE, Double.MAX_VALUE, 0.0), in doubles() 819 (this, 0L, Long.MAX_VALUE, randomNumberOrigin, randomNumberBound), in doubles()
|
D | Random.java | 627 (this, 0L, streamSize, Integer.MAX_VALUE, 0), in ints() 647 (this, 0L, Long.MAX_VALUE, Integer.MAX_VALUE, 0), in ints() 733 (this, 0L, Long.MAX_VALUE, randomNumberOrigin, randomNumberBound), in ints() 755 (this, 0L, streamSize, Long.MAX_VALUE, 0L), in longs() 775 (this, 0L, Long.MAX_VALUE, Long.MAX_VALUE, 0L), in longs() 871 (this, 0L, Long.MAX_VALUE, randomNumberOrigin, randomNumberBound), in longs() 894 (this, 0L, streamSize, Double.MAX_VALUE, 0.0), in doubles() 915 (this, 0L, Long.MAX_VALUE, Double.MAX_VALUE, 0.0), in doubles() 990 (this, 0L, Long.MAX_VALUE, randomNumberOrigin, randomNumberBound), in doubles()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | InhibitAnyPolicyExtension.java | 94 private int skipCerts = Integer.MAX_VALUE; 113 this.skipCerts = Integer.MAX_VALUE; in InhibitAnyPolicyExtension() 153 this.skipCerts = Integer.MAX_VALUE; in InhibitAnyPolicyExtension() 200 skipCerts = Integer.MAX_VALUE; in set()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FloatConsts.java | 44 public static final float MAX_VALUE = java.lang.Float.MAX_VALUE; field in FloatConsts
|
D | DoubleConsts.java | 44 public static final double MAX_VALUE = java.lang.Double.MAX_VALUE; field in DoubleConsts
|