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

123456

/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());
H A DOldNumberFormatTest.java245 String out = nf1.format(Long.MAX_VALUE);
459 nf1.setMaximumFractionDigits(Integer.MAX_VALUE);
462 + " instead of: " + Integer.MAX_VALUE,
463 result == Integer.MAX_VALUE);
470 nf1.setMinimumFractionDigits(Integer.MAX_VALUE);
473 + " instead of Integer.MAX_VALUE", result == Integer.MAX_VALUE);
478 nf1.setMinimumFractionDigits(Integer.MAX_VALUE);
481 + " instead of: " + Integer.MAX_VALUE,
482 result == Integer.MAX_VALUE);
[all...]
/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 DCharacterTest.java30 for (int c = '\u0080'; c <= Character.MAX_VALUE; ++c) {
41 assertFalse(Character.isBmpCodePoint(Integer.MAX_VALUE));
98 Character.getName(Integer.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;
H A DOldStringTest.java53 testString.charAt(Integer.MAX_VALUE);
250 assertTrue("Returned incorrect string array for limit Integer.MAX_VALUE",
251 Arrays.equals(results[1], str.split(pattern, Integer.MAX_VALUE)));
300 hw1.substring(Integer.MAX_VALUE);
316 hw1.substring(Integer.MAX_VALUE, hw1.length());
323 hw1.substring(0, Integer.MAX_VALUE);
337 hw1.subSequence(0, Integer.MAX_VALUE);
344 hw1.subSequence(Integer.MAX_VALUE, hw1.length());
394 String.valueOf(t, 0, 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);
H A DOldBigDecimalScaleOperationsTest.java48 a.movePointRight(Integer.MAX_VALUE - 2);
72 a.scaleByPowerOfTen(Integer.MAX_VALUE - 2);
/libcore/support/src/test/java/tests/support/
H A DThrowingReader.java60 throwAt = Integer.MAX_VALUE;
/libcore/luni/src/main/java/java/nio/channels/
H A DFileChannel.java163 * {@code fileChannel.lock(0L, Long.MAX_VALUE, false);}
185 return lock(0L, Long.MAX_VALUE, false);
570 * {@code fileChannel.tryLock(0L, Long.MAX_VALUE, false);}
587 return tryLock(0L, Long.MAX_VALUE, false);
/libcore/luni/src/main/java/java/text/
H A DNumberFormat.java696 maximumFractionDigits < Byte.MAX_VALUE ? (byte) maximumFractionDigits
697 : Byte.MAX_VALUE);
701 maximumIntegerDigits < Byte.MAX_VALUE ? (byte) maximumIntegerDigits
702 : Byte.MAX_VALUE);
704 minimumFractionDigits < Byte.MAX_VALUE ? (byte) minimumFractionDigits
705 : Byte.MAX_VALUE);
709 minimumIntegerDigits < Byte.MAX_VALUE ? (byte) minimumIntegerDigits : Byte.MAX_VALUE);

Completed in 262 milliseconds

123456