Searched refs:MAX_VALUE (Results 1 - 25 of 161) sorted by relevance

1234567

/libcore/luni/src/test/java/libcore/java/text/
H A DOldParsePositionTest.java23 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 DOldFieldPositionTest.java54 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 DMultiplication.java114 * 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 DOldLongTest.java65 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 DOldDoubleTest.java24 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 DOldFloatTest.java33 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 DOldIntegerTest.java56 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 DOldStringBufferTest.java95 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 DLongTest.java23 final long max = Long.MAX_VALUE;
39 assertEquals(1, Long.signum(Long.MAX_VALUE));
H A DByteTest.java23 final byte max = Byte.MAX_VALUE;
H A DIntegerTest.java23 final int max = Integer.MAX_VALUE;
H A DShortTest.java23 final short max = Short.MAX_VALUE;
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DWrappedCharBufferTest1.java67 CharBuffer.wrap(array, Integer.MAX_VALUE, 1);
73 CharBuffer.wrap(array, 1, Integer.MAX_VALUE);
H A DWrappedByteBufferTest.java66 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 DWrappedDoubleBufferTest.java65 DoubleBuffer.wrap(array, Integer.MAX_VALUE, 1);
71 DoubleBuffer.wrap(array, 1, Integer.MAX_VALUE);
H A DWrappedFloatBufferTest.java65 FloatBuffer.wrap(array, Integer.MAX_VALUE, 1);
71 FloatBuffer.wrap(array, 1, Integer.MAX_VALUE);
H A DWrappedIntBufferTest.java65 IntBuffer.wrap(array, Integer.MAX_VALUE, 1);
71 IntBuffer.wrap(array, 1, Integer.MAX_VALUE);
H A DWrappedLongBufferTest.java65 LongBuffer.wrap(array, Integer.MAX_VALUE, 1);
71 LongBuffer.wrap(array, 1, Integer.MAX_VALUE);
H A DWrappedShortBufferTest.java65 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 DDHGenParameterSpecTest.java43 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 DRandomAccessFileTest.java41 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 DOldPreferenceChangeEventTest.java43 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 DSSLEngineResultTest.java95 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 DAnnotationTest.java222 @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 DOldBigIntegerConstructorsTest.java57 bi_s.intValue() == Integer.MAX_VALUE);

Completed in 308 milliseconds

1234567