Home
last modified time | relevance | path

Searched refs:MAX_VALUE (Results 1 – 25 of 164) sorted by relevance

1234567

/dalvik/libcore/math/src/main/java/java/math/
DMultiplication.java148 if (exp <= Integer.MAX_VALUE) { in powerOf10()
159 BigInteger powerOfFive = bigFivePows[1].pow(Integer.MAX_VALUE); in powerOf10()
161 long longExp = exp - Integer.MAX_VALUE; in powerOf10()
163 intExp = (int)(exp % Integer.MAX_VALUE); in powerOf10()
164 while (longExp > Integer.MAX_VALUE) { in powerOf10()
166 longExp -= Integer.MAX_VALUE; in powerOf10()
170 res = res.shiftLeft(Integer.MAX_VALUE); in powerOf10()
171 longExp = exp - Integer.MAX_VALUE; in powerOf10()
172 while (longExp > Integer.MAX_VALUE) { in powerOf10()
173 res = res.shiftLeft(Integer.MAX_VALUE); in powerOf10()
[all …]
/dalvik/dx/tests/072-dex-switch-edge-cases/
DBlort.java51 case Integer.MAX_VALUE: return 0; in test4()
71 case Integer.MAX_VALUE: return 1; in test6()
81 case Integer.MAX_VALUE: return 1; in test7()
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DParsePositionTest.java89 pp.setErrorIndex(Integer.MAX_VALUE); in test_getErrorIndex()
90 assertEquals("getErrorIndex failed.", Integer.MAX_VALUE, in test_getErrorIndex()
92 assertEquals("getErrorIndex failed.", Integer.MAX_VALUE, in test_getErrorIndex()
107 assertTrue("getIndex failed.", pp.getIndex() == Integer.MAX_VALUE); in test_getIndex()
125 pp1.setIndex(Integer.MAX_VALUE); in test_hashCode()
181 pp = new ParsePosition(Integer.MAX_VALUE); in setUp()
DNumberFormatTest.java57 out = format.format(new Long(Long.MAX_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
68 .valueOf(Long.MAX_VALUE)), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
80 big = new java.math.BigInteger(String.valueOf(Long.MAX_VALUE)) in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
503 String out = nf1.format(Long.MAX_VALUE); in test_formatLlong()
891 nf1.setMaximumFractionDigits(Integer.MAX_VALUE); in test_getMaximumFractionDigits()
894 + " instead of: " + Integer.MAX_VALUE, in test_getMaximumFractionDigits()
895 result == Integer.MAX_VALUE); in test_getMaximumFractionDigits()
902 nf1.setMinimumFractionDigits(Integer.MAX_VALUE); in test_getMaximumFractionDigits()
905 + " instead of Integer.MAX_VALUE", result == Integer.MAX_VALUE); in test_getMaximumFractionDigits()
919 nf1.setMinimumFractionDigits(Integer.MAX_VALUE); in test_getMinimumFractionDigits()
[all …]
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
DFormatterTest.java1697 f.format("%c", Integer.MAX_VALUE); in test_formatLjava_lang_String$Ljava_lang_Object_CharacterConversion()
2058 {Long.MAX_VALUE, 'a', "So"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2064 {Long.MAX_VALUE, 'b', "Aug"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2071 … {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()
2077 {Long.MAX_VALUE, 'd', "17"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2083 {Long.MAX_VALUE, 'e', "17"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2089 {Long.MAX_VALUE, 'h', "Aug"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2095 {Long.MAX_VALUE, 'j', "229"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2101 {Long.MAX_VALUE, 'k', "15"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2107 {Long.MAX_VALUE, 'l', "3"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
[all …]
DArraysTest.java186 -Double.MAX_VALUE, -2d, -Double.MIN_VALUE, -0d, 0d, in test_binarySearch$DD()
187 Double.MIN_VALUE, 2d, Double.MAX_VALUE, in test_binarySearch$DD()
226 -Float.MAX_VALUE, -2f, -Float.MIN_VALUE, -0f, 0f, in test_binarySearch$FF()
227 Float.MIN_VALUE, 2f, Float.MAX_VALUE, Float.POSITIVE_INFINITY, in test_binarySearch$FF()
398 Arrays.fill(d, Byte.MAX_VALUE); in test_fill$BB()
401 d[i] == Byte.MAX_VALUE); in test_fill$BB()
415 byte val = Byte.MAX_VALUE; in test_fill$BIIB()
466 Arrays.fill(d, Short.MAX_VALUE); in test_fill$SS()
469 d[i] == Short.MAX_VALUE); in test_fill$SS()
483 short val = Short.MAX_VALUE; in test_fill$SIIS()
[all …]
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
DSSLEngineResultTest.java113 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_bytesConsumed()
142 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_bytesProduced()
171 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_getHandshakeStatus()
200 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_getStatus()
229 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; in test_toString()
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
DWrappedByteBufferTest.java77 ByteBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedByteBuffer_IllegalArg()
83 ByteBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedByteBuffer_IllegalArg()
89 ByteBuffer.wrap((byte[])null, 1, Integer.MAX_VALUE); in testWrappedByteBuffer_IllegalArg()
DWrappedCharBufferTest1.java77 CharBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedCharBuffer_IllegalArg()
83 CharBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedCharBuffer_IllegalArg()
DWrappedDoubleBufferTest.java75 DoubleBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedDoubleuffer_IllegalArg()
81 DoubleBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedDoubleuffer_IllegalArg()
DWrappedFloatBufferTest.java75 FloatBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedFloatBuffer_IllegalArg()
81 FloatBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedFloatBuffer_IllegalArg()
/dalvik/libcore/luni/src/main/java/java/lang/
DMath.java1017 } else if (d == Double.MAX_VALUE || d == -Double.MAX_VALUE) { in ulp()
1021 return nextafter(d, Double.MAX_VALUE) - d; in ulp()
1049 } else if (f == Float.MAX_VALUE || f == -Float.MAX_VALUE) { in ulp()
1053 return nextafterf(f, Float.MAX_VALUE) - f; in ulp()
DStrictMath.java1008 } else if (d == Double.MAX_VALUE || d == -Double.MAX_VALUE) { in ulp()
1012 return nextafter(d, Double.MAX_VALUE) - d; in ulp()
1040 } else if (f == Float.MAX_VALUE || f == -Float.MAX_VALUE) { in ulp()
1044 return nextafterf(f, Float.MAX_VALUE) - f; in ulp()
/dalvik/libcore/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTest.java251 @TestAnnotation3(i = Integer.MAX_VALUE)
253 @TestAnnotation3(i = Integer.MAX_VALUE)
256 @TestAnnotation3(i = Integer.MAX_VALUE)
270 @TestAnnotation3(j = Long.MAX_VALUE)
272 @TestAnnotation3(j = Long.MAX_VALUE)
275 @TestAnnotation3(j = Long.MAX_VALUE)
289 @TestAnnotation3(f = Float.MAX_VALUE)
291 @TestAnnotation3(f = Float.MAX_VALUE)
299 @TestAnnotation3(f = Long.MAX_VALUE)
318 @TestAnnotation3(d = Double.MAX_VALUE)
[all …]
/dalvik/libcore/text/src/main/java/java/text/
DNumberFormat.java717 maximumFractionDigits < Byte.MAX_VALUE ? (byte) maximumFractionDigits
718 : Byte.MAX_VALUE);
724 maximumIntegerDigits < Byte.MAX_VALUE ? (byte) maximumIntegerDigits
725 : Byte.MAX_VALUE);
729 minimumFractionDigits < Byte.MAX_VALUE ? (byte) minimumFractionDigits
730 : Byte.MAX_VALUE);
736 minimumIntegerDigits < Byte.MAX_VALUE ? (byte) minimumIntegerDigits
737 : Byte.MAX_VALUE);
/dalvik/libcore/archive/src/main/java/java/util/zip/
DInflater.java196 return (totalIn <= Integer.MAX_VALUE ? (int) totalIn in getTotalIn()
197 : Integer.MAX_VALUE); in getTotalIn()
213 return (totalOut <= Integer.MAX_VALUE ? (int) totalOut in getTotalOut()
214 : Integer.MAX_VALUE); in getTotalOut()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DStringBuffer2Test.java166 sb.append(Double.MAX_VALUE); in test_appendD()
428 sb.ensureCapacity(Integer.MAX_VALUE); in test_ensureCapacityI()
587 testBuffer.insert(15, Double.MAX_VALUE); in test_insertID()
589 "This is a test " + Double.MAX_VALUE + "buffer")); in test_insertID()
591 testBuffer.insert(-1, Double.MAX_VALUE); in test_insertID()
598 testBuffer.insert(testBuffer.length() + 1, Double.MAX_VALUE); in test_insertID()
617 testBuffer.insert(15, Float.MAX_VALUE); in test_insertIF()
620 + String.valueOf(Float.MAX_VALUE) + "buffer"; in test_insertIF()
626 testBuffer.insert(-1, Float.MAX_VALUE); in test_insertIF()
633 testBuffer.insert(testBuffer.length() + 1, Float.MAX_VALUE); in test_insertIF()
[all …]
DStrictMathTest.java55 StrictMath.pow(Double.MAX_VALUE, 0.0)); in test_pow()
57 StrictMath.pow(Double.MAX_VALUE, -0.0)); in test_pow()
59 StrictMath.pow(Double.MAX_VALUE, Double.NaN)); in test_pow()
406 5.643803094122362E102, StrictMath.cbrt(Double.MAX_VALUE)); in test_cbrt_D()
511 Double.POSITIVE_INFINITY, StrictMath.cosh(Double.MAX_VALUE)); in test_cosh_D()
572 Double.POSITIVE_INFINITY, StrictMath.expm1(Double.MAX_VALUE)); in test_expm1_D()
647 1.7976931348623157E308, StrictMath.hypot(Double.MAX_VALUE, 211370.35)); in test_hypot_DD()
750 StrictMath.log10(Double.MAX_VALUE)); in test_log10_D()
788 StrictMath.log1p(Double.MAX_VALUE)); in test_log1p_D()
857 assertEquals("Returned incorrect value.", Integer.MAX_VALUE, in test_maxII()
[all …]
DLongTest.java55 assertEquals("Returned incorrect byte value", -1, new Long(Long.MAX_VALUE) in test_byteValue()
398 .toBinaryString(Long.MAX_VALUE) in test_toBinaryStringJ()
418 Long.MAX_VALUE)); in test_toHexStringJ()
437 Long.MAX_VALUE)); in test_toOctalStringJ()
456 assertEquals("Returned incorrect String", "9223372036854775807", new Long(Long.MAX_VALUE) in test_toString2()
476 … assertEquals("Returned incorrect String", "9223372036854775807", Long.toString(Long.MAX_VALUE) in test_toStringJ2()
525 "9223372036854775807").longValue() == Long.MAX_VALUE); in test_valueOfLjava_lang_String2()
581 "9223372036854775807", 10).longValue() == Long.MAX_VALUE); in test_valueOfLjava_lang_StringI()
585 16).longValue() == Long.MAX_VALUE); in test_valueOfLjava_lang_StringI()
630 assertEquals(new Long(Long.MAX_VALUE), Long.valueOf(Long.MAX_VALUE)); in test_valueOfJ()
[all …]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DFieldTest.java97 protected int intField = Integer.MAX_VALUE;
98 protected final int intFField = Integer.MAX_VALUE;
99 protected static int intSField = Integer.MAX_VALUE;
100 private final int intPFField = Integer.MAX_VALUE;
102 protected short shortField = Short.MAX_VALUE;
103 protected final short shortFField = Short.MAX_VALUE;
104 protected static short shortSField = Short.MAX_VALUE;
105 private final short shortPFField = Short.MAX_VALUE;
112 protected byte byteField = Byte.MAX_VALUE;
113 protected static byte byteSField = Byte.MAX_VALUE;
[all …]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
DArraysTest.java49 -Double.MAX_VALUE, -2d, -Double.MIN_VALUE, -0d, 0d, in test_binarySearch$DD()
50 Double.MIN_VALUE, 2d, Double.MAX_VALUE, in test_binarySearch$DD()
75 -Float.MAX_VALUE, -2f, -Float.MIN_VALUE, -0f, 0f, in test_binarySearch$FF()
76 Float.MIN_VALUE, 2f, Float.MAX_VALUE, Float.POSITIVE_INFINITY, in test_binarySearch$FF()
102 Arrays.fill(d, Double.MAX_VALUE); in test_equals$D$D()
107 Arrays.fill(x, Double.MAX_VALUE); in test_equals$D$D()
131 Arrays.fill(d, Float.MAX_VALUE); in test_equals$F$F()
136 Arrays.fill(x, Float.MAX_VALUE); in test_equals$F$F()
167 …double[] specials1 = new double[]{Double.NaN, Double.MAX_VALUE, Double.MIN_VALUE, 0d, -0d, Double.… in test_sort$D()
168 ….POSITIVE_INFINITY, -0d, Double.NEGATIVE_INFINITY, Double.MIN_VALUE, Double.NaN, Double.MAX_VALUE}; in test_sort$D()
[all …]
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
DTimeUnitTest.java159 assertEquals(Long.MAX_VALUE, in testConvertSaturate()
160 TimeUnit.NANOSECONDS.convert(Long.MAX_VALUE / 2, in testConvertSaturate()
163 TimeUnit.NANOSECONDS.convert(-Long.MAX_VALUE / 4, in testConvertSaturate()
173 assertEquals(Long.MAX_VALUE, in testToNanosSaturate()
174 TimeUnit.MILLISECONDS.toNanos(Long.MAX_VALUE / 2)); in testToNanosSaturate()
176 TimeUnit.MILLISECONDS.toNanos(-Long.MAX_VALUE / 3)); in testToNanosSaturate()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDHGenParameterSpecTest.java70 int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec()
71 int[] exponents = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec()
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
DRandomAccessFileTest.java171 fcr.lock(0L, Long.MAX_VALUE, false); in test_ConstructorLjava_lang_StringLjava_lang_String()
526 raf.writeByte(Byte.MAX_VALUE); in test_read_writeByte()
528 raf.writeByte(Byte.MAX_VALUE + 1); in test_read_writeByte()
536 Byte.MAX_VALUE, raf.readByte()); in test_read_writeByte()
586 raf.writeChar(Character.MAX_VALUE); in test_read_writeChar()
588 raf.writeChar(Character.MAX_VALUE + 1); in test_read_writeChar()
596 Character.MAX_VALUE, raf.readChar()); in test_read_writeChar()
644 raf.writeDouble(Double.MAX_VALUE); in test_read_writeDouble()
649 Double.MAX_VALUE, raf.readDouble()); in test_read_writeDouble()
695 raf.writeFloat(Float.MAX_VALUE); in test_read_writeFloat()
[all …]
/dalvik/dx/src/com/android/dx/dex/code/
DDop.java51 if ((opcode < DalvOps.MIN_VALUE) || (opcode > DalvOps.MAX_VALUE)) { in Dop()
55 if ((family < DalvOps.MIN_VALUE) || (family > DalvOps.MAX_VALUE)) { in Dop()

1234567