/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldParsePositionTest.java | 23 ParsePosition pp = new ParsePosition(Integer.MAX_VALUE); 31 pp1.setIndex(Integer.MAX_VALUE); 40 pp.setErrorIndex(Integer.MAX_VALUE); 41 assertEquals("getErrorIndex failed.", Integer.MAX_VALUE, 43 assertEquals("getErrorIndex failed.", Integer.MAX_VALUE,
|
H A D | OldFieldPositionTest.java | 54 fpos.setBeginIndex(Integer.MAX_VALUE); 55 assertEquals("beginIndex should have been set to Integer.MAX_VALUE", 56 Integer.MAX_VALUE, fpos.getBeginIndex()); 71 fpos.setEndIndex(Integer.MAX_VALUE); 72 assertEquals("endIndex should have been set to Integer.MAX_VALUE", 73 Integer.MAX_VALUE, fpos.getEndIndex());
|
/libcore/luni/src/main/java/java/math/ |
H A D | Multiplication.java | 114 * an exponent equals to: {@code Integer.MAX_VALUE - Integer.MIN_VALUE}. 142 if (exp <= Integer.MAX_VALUE) { 153 BigInteger powerOfFive = bigFivePows[1].pow(Integer.MAX_VALUE); 155 long longExp = exp - Integer.MAX_VALUE; 157 intExp = (int)(exp % Integer.MAX_VALUE); 158 while (longExp > Integer.MAX_VALUE) { 160 longExp -= Integer.MAX_VALUE; 164 res = res.shiftLeft(Integer.MAX_VALUE); 165 longExp = exp - Integer.MAX_VALUE; 166 while (longExp > Integer.MAX_VALUE) { [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldLongTest.java | 65 assertEquals(Long.MAX_VALUE, new Long(Long.MAX_VALUE).floatValue(), 0F); 70 assertEquals(-1, new Long(Long.MAX_VALUE).intValue()); 75 assertEquals(Long.MAX_VALUE, new Long(Long.MAX_VALUE).longValue()); 80 assertEquals(-1, new Long(Long.MAX_VALUE).shortValue());
|
H A D | OldDoubleTest.java | 24 Double d = new Double(Byte.MAX_VALUE); 25 assertEquals("Returned incorrect byte value", Byte.MAX_VALUE, d.byteValue()); 28 d= new Double(Double.MAX_VALUE); 47 assertEquals(Double.MAX_VALUE, new Double("1.7976931348623157E308").doubleValue()); 54 assertEquals(Float.MAX_VALUE, new Double("3.4028235E38").floatValue()); 59 assertEquals("Returned incorrect int value", Integer.MAX_VALUE, 66 assertFalse("Doesn't return false value", Double.isNaN(new Double(Double.MAX_VALUE)));
|
H A D | OldFloatTest.java | 33 Float f = new Float(Double.MAX_VALUE); 64 assertTrue(new Float(Float.MAX_VALUE).hashCode() != new Float(Float.MIN_VALUE).hashCode()); 78 assertEquals(Integer.MAX_VALUE, new Float(Float.MAX_VALUE).intValue()); 84 assertFalse(Float.isNaN(Float.MAX_VALUE)); 89 assertEquals(Long.MAX_VALUE, new Float(Float.MAX_VALUE).longValue());
|
H A D | OldIntegerTest.java | 56 assertEquals(Integer.MAX_VALUE, new Integer(Integer.MAX_VALUE).intValue()); 61 assertEquals(Integer.MAX_VALUE, new Integer(Integer.MAX_VALUE).longValue()); 66 assertEquals(-1, new Integer(Integer.MAX_VALUE).shortValue());
|
H A D | OldStringBufferTest.java | 95 testBuffer.insert(-1, Double.MAX_VALUE); 102 testBuffer.insert(testBuffer.length() + 1, Double.MAX_VALUE); 111 testBuffer.insert(-1, Float.MAX_VALUE); 118 testBuffer.insert(testBuffer.length() + 1, Float.MAX_VALUE); 127 testBuffer.insert(-1, Integer.MAX_VALUE); 134 testBuffer.insert(testBuffer.length() + 1, Integer.MAX_VALUE); 143 testBuffer.insert(-1, Long.MAX_VALUE); 150 testBuffer.insert(testBuffer.length() + 1, Long.MAX_VALUE); 301 testBuffer.subSequence(0, Integer.MAX_VALUE); 308 testBuffer.subSequence(Integer.MAX_VALUE, testBuffe [all...] |
H A D | LongTest.java | 23 final long max = Long.MAX_VALUE; 39 assertEquals(1, Long.signum(Long.MAX_VALUE));
|
H A D | ByteTest.java | 23 final byte max = Byte.MAX_VALUE;
|
H A D | IntegerTest.java | 23 final int max = Integer.MAX_VALUE;
|
H A D | ShortTest.java | 23 final short max = Short.MAX_VALUE;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
H A D | WrappedCharBufferTest1.java | 67 CharBuffer.wrap(array, Integer.MAX_VALUE, 1); 73 CharBuffer.wrap(array, 1, Integer.MAX_VALUE);
|
H A D | WrappedByteBufferTest.java | 66 ByteBuffer.wrap(array, 1, Integer.MAX_VALUE); 72 ByteBuffer.wrap(array, Integer.MAX_VALUE, 1); 78 ByteBuffer.wrap((byte[])null, 1, Integer.MAX_VALUE);
|
H A D | WrappedDoubleBufferTest.java | 65 DoubleBuffer.wrap(array, Integer.MAX_VALUE, 1); 71 DoubleBuffer.wrap(array, 1, Integer.MAX_VALUE);
|
H A D | WrappedFloatBufferTest.java | 65 FloatBuffer.wrap(array, Integer.MAX_VALUE, 1); 71 FloatBuffer.wrap(array, 1, Integer.MAX_VALUE);
|
H A D | WrappedIntBufferTest.java | 65 IntBuffer.wrap(array, Integer.MAX_VALUE, 1); 71 IntBuffer.wrap(array, 1, Integer.MAX_VALUE);
|
H A D | WrappedLongBufferTest.java | 65 LongBuffer.wrap(array, Integer.MAX_VALUE, 1); 71 LongBuffer.wrap(array, 1, Integer.MAX_VALUE);
|
H A D | WrappedShortBufferTest.java | 65 ShortBuffer.wrap(array, Integer.MAX_VALUE, 1); 71 ShortBuffer.wrap(array, 1, Integer.MAX_VALUE);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | DHGenParameterSpecTest.java | 43 int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; 44 int[] exponents = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE};
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | RandomAccessFileTest.java | 41 raf.seek(Long.MAX_VALUE); 50 raf.setLength(Long.MAX_VALUE); 60 long moreThanFourGig = ((long) Integer.MAX_VALUE) + 1L;
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldPreferenceChangeEventTest.java | 43 pref.putInt("key_int", Integer.MAX_VALUE); 60 if (pce != null && pce.getNewValue().equals(Integer.toString(Integer.MAX_VALUE))) { 68 pref.putInt("key_int", Integer.MAX_VALUE); 73 pref.putInt("key_int", Integer.MAX_VALUE); 98 pref.putInt("key_int", Integer.MAX_VALUE);
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLEngineResultTest.java | 95 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; 118 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; 141 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; 164 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; 187 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE [all...] |
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
H A 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/luni/src/test/java/libcore/java/math/ |
H A D | OldBigIntegerConstructorsTest.java | 57 bi_s.intValue() == Integer.MAX_VALUE);
|