Home
last modified time | relevance | path

Searched refs:MIN_VALUE (Results 1 – 25 of 225) sorted by relevance

123456789

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java224 Duration test = Duration.ofNanos(Long.MIN_VALUE); in factory_nanos_min()
225 assertEquals(test.getSeconds(), Long.MIN_VALUE / 1000000000 - 1); in factory_nanos_min()
226 assertEquals(test.getNano(), Long.MIN_VALUE % 1000000000 + 1000000000); in factory_nanos_min()
248 Duration test = Duration.ofMinutes(Long.MIN_VALUE / 60); in factory_minutes_min()
249 assertEquals(test.getSeconds(), (Long.MIN_VALUE / 60) * 60); in factory_minutes_min()
260 Duration.ofMinutes(Long.MIN_VALUE / 60 - 1); in factory_minutes_tooSmall()
282 Duration test = Duration.ofHours(Long.MIN_VALUE / 3600); in factory_hours_min()
283 assertEquals(test.getSeconds(), (Long.MIN_VALUE / 3600) * 3600); in factory_hours_min()
294 Duration.ofHours(Long.MIN_VALUE / 3600 - 1); in factory_hours_tooSmall()
316 Duration test = Duration.ofDays(Long.MIN_VALUE / 86400); in factory_days_min()
[all …]
DTCKPeriod.java101 assertPeriod(Period.ofYears(Integer.MIN_VALUE), Integer.MIN_VALUE, 0, 0); in factory_ofYears_int()
114 assertPeriod(Period.ofMonths(Integer.MIN_VALUE), 0, Integer.MIN_VALUE, 0); in factory_ofMonths_int()
127 assertPeriod(Period.ofWeeks(Integer.MIN_VALUE / 7), 0, 0, (Integer.MIN_VALUE / 7) * 7); in factory_ofWeeks_int()
140 assertPeriod(Period.ofDays(Integer.MIN_VALUE), 0, 0, Integer.MIN_VALUE); in factory_ofDays_int()
280 {"P" + Integer.MIN_VALUE + "Y", Period.ofYears(Integer.MIN_VALUE)}, in data_factory_parseSuccess()
294 {"P" + Integer.MIN_VALUE + "M", Period.ofMonths(Integer.MIN_VALUE)}, in data_factory_parseSuccess()
320 {"P" + Integer.MIN_VALUE + "D", Period.ofDays(Integer.MIN_VALUE)}, in data_factory_parseSuccess()
356 assertEquals(expected.getYears() == Integer.MIN_VALUE || in factory_parse_minus()
357 expected.getMonths() == Integer.MIN_VALUE || in factory_parse_minus()
358 expected.getDays() == Integer.MIN_VALUE, true); in factory_parse_minus()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java53 String minLong = Long.toString(Long.MIN_VALUE); in testGetPrecision()
135 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.DOWN); in testDivideRounding()
136 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.UP); in testDivideRounding()
137 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.FLOOR); in testDivideRounding()
138 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.CEILING); in testDivideRounding()
139 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_EVEN); in testDivideRounding()
140 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_UP); in testDivideRounding()
141 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_DOWN); in testDivideRounding()
146 checkDivide("0.50", Long.MIN_VALUE / 2, Long.MIN_VALUE, 2, RoundingMode.HALF_UP); in testDivideRounding()
147 checkDivide("0.5000", Long.MIN_VALUE / 2, Long.MIN_VALUE, 4, RoundingMode.HALF_UP); in testDivideRounding()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DStrictMathTest.java31 testIntExact(Integer.MIN_VALUE, 1); in testIntExact()
32 testIntExact(Integer.MIN_VALUE, -1); in testIntExact()
34 testIntExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntExact()
83 testLongExact(Long.MIN_VALUE, 1); in testLongExact()
84 testLongExact(Long.MIN_VALUE, -1); in testLongExact()
86 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
134 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL()
147 testFloorDivModI(Integer.MIN_VALUE, 1); in testIntFloorDivMod()
148 testFloorDivModI(Integer.MIN_VALUE, -1); in testIntFloorDivMod()
193 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod()
[all …]
DMathTest.java31 testIntExact(Integer.MIN_VALUE, 1); in testIntExact()
32 testIntExact(Integer.MIN_VALUE, -1); in testIntExact()
34 testIntExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntExact()
119 testLongExact(Long.MIN_VALUE, 1); in testLongExact()
120 testLongExact(Long.MIN_VALUE, -1); in testLongExact()
122 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
206 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL()
219 testFloorDivModI(Integer.MIN_VALUE, 1); in testIntFloorDivMod()
220 testFloorDivModI(Integer.MIN_VALUE, -1); in testIntFloorDivMod()
265 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod()
[all …]
DOldAndroidStrictMathTest.java121 1.7031839360032603E-108, StrictMath.cbrt(Double.MIN_VALUE)); in testCbrtD()
175 .cosh(Double.MIN_VALUE)); in testCosh_D()
211 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, StrictMath in testExpm1D()
212 .expm1(Double.MIN_VALUE)); in testExpm1D()
257 -5413.7185, Double.MIN_VALUE)); in testHypotDD()
311 StrictMath.log10(Double.MIN_VALUE)); in testLog10D()
339 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, in testLog1pD()
340 StrictMath.log1p(Double.MIN_VALUE)); in testLog1pD()
472 assertEquals(1.0, StrictMath.signum(Double.MIN_VALUE), 0D); in testSignumD()
474 assertEquals(-1.0, StrictMath.signum(-Double.MIN_VALUE), 0D); in testSignumD()
[all …]
DOldDoubleTest.java26 d= new Double(Byte.MIN_VALUE); in test_byteValue()
27 assertEquals("Returned incorrect byte value", Byte.MIN_VALUE, d.byteValue()); in test_byteValue()
48 assertEquals(Double.MIN_VALUE, new Double("4.9E-324").doubleValue()); in test_doubleValue()
55 assertEquals(Float.MIN_VALUE, new Double("1.4E-45").floatValue()); in test_floatValue()
61 assertEquals("Returned incorrect int value", Integer.MIN_VALUE, in test_intValue()
DOldAndroidMathTest.java181 1.7031839360032603E-108, Math.cbrt(Double.MIN_VALUE), 0D); in testCbrtD()
222 assertEquals("Should return 1.0", 1.0, Math.cosh(Double.MIN_VALUE), 0D); in testCoshD()
257 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, Math in testExpm1D()
258 .expm1(Double.MIN_VALUE), 0D); in testExpm1D()
301 -5413.7185, Double.MIN_VALUE), 0D); in testHypotDD()
340 assertEquals(-323.3062153431158, Math.log10(Double.MIN_VALUE)); in testLog10D()
364 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, Math in testLog1pD()
365 .log1p(Double.MIN_VALUE), 0D); in testLog1pD()
496 assertEquals(1.0, Math.signum(Double.MIN_VALUE), 0D); in testSignumD()
498 assertEquals(-1.0, Math.signum(-Double.MIN_VALUE), 0D); in testSignumD()
[all …]
DOldFloatTest.java64 assertTrue(new Float(Float.MAX_VALUE).hashCode() != new Float(Float.MIN_VALUE).hashCode()); in test_hashCode()
79 assertEquals(0, new Float(Float.MIN_VALUE).intValue()); in test_intValue()
85 assertFalse(Float.isNaN(Float.MIN_VALUE)); in test_isNaNF()
90 assertEquals(0, new Float(Float.MIN_VALUE).longValue()); in test_longValue()
DByteTest.java21 final byte min = Byte.MIN_VALUE; in test_compare()
44 for(int i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; i++) {
53 for(int i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; i++) { in testToUnsignedLong()
DShortTest.java21 final short min = Short.MIN_VALUE; in test_compare()
44 for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++) {
53 for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++) { in testToUnsignedLong()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java137 assertEquals(1.7031839360032603E-108, Math.cbrt(Double.MIN_VALUE), 0D); in test_cbrt_D()
157 Double.MIN_NORMAL, Double.MIN_NORMAL / 2, Double.MIN_VALUE, +0.0,
158 0.0, -0.0, -Double.MIN_VALUE, -Double.MIN_NORMAL / 2,
229 Float.MIN_NORMAL, Float.MIN_NORMAL / 2, Float.MIN_VALUE, +0.0f,
230 0.0f, -0.0f, -Float.MIN_VALUE, -Float.MIN_NORMAL / 2,
330 assertEquals("Should return 1.0", 1.0, Math.cosh(Double.MIN_VALUE), 0D); in test_cosh_D()
371 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, Math in test_expm1_D()
372 .expm1(Double.MIN_VALUE), 0D); in test_expm1_D()
412 -Double.MIN_NORMAL / 2, Double.MIN_VALUE, -Double.MIN_VALUE, +0.0,
458 … Float.MIN_VALUE, -Float.MIN_VALUE, +0.0f, 0.0f, -0.0f, Float.NaN, 1, Float.MIN_NORMAL * 1.5f };
[all …]
DStrictMathTest.java156 1.7031839360032603E-108, StrictMath.cbrt(Double.MIN_VALUE)); in test_cbrt_D()
348 .cosh(Double.MIN_VALUE)); in test_cosh_D()
390 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, StrictMath in test_expm1_D()
391 .expm1(Double.MIN_VALUE)); in test_expm1_D()
483 -5413.7185, Double.MIN_VALUE)); in test_hypot_DD()
546 StrictMath.log10(Double.MIN_VALUE)); in test_log10_D()
577 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, in test_log1p_D()
578 StrictMath.log1p(Double.MIN_VALUE)); in test_log1p_D()
1012 assertEquals(64.0, StrictMath.scalb(Double.MIN_VALUE, 1080)); in test_scalb_DI()
1043 Double.MIN_VALUE, 8000)); in test_scalb_DI()
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DJniTest.java150 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/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java634 hf = uc.getHeaderFieldDate("Content-Encoding", Long.MIN_VALUE);
636 Long.MIN_VALUE, hf);
637 hf = uc.getHeaderFieldDate("Content-Length", Long.MIN_VALUE);
639 Long.MIN_VALUE, hf);
640 hf = uc.getHeaderFieldDate("Content-Type", Long.MIN_VALUE);
642 Long.MIN_VALUE, hf);
643 hf = uc.getHeaderFieldDate("content-type", Long.MIN_VALUE);
645 Long.MIN_VALUE, hf);
646 hf = uc.getHeaderFieldDate("Date", Long.MIN_VALUE);
649 hf = uc.getHeaderFieldDate("SERVER", Long.MIN_VALUE);
[all …]
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java79 cmp(Long.MAX_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, 1); in main()
80 cmp(Long.MIN_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, -1); in main()
81 cmp(Long.MIN_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, -1); in main()
83 cmp(Instant.MIN, Long.MIN_VALUE, DAYS, 1); in main()
84 cmp(Instant.MIN, Long.MIN_VALUE, HOURS, 1); in main()
85 cmp(Instant.MIN, Long.MIN_VALUE, MINUTES, 1); in main()
86 cmp(Instant.MIN, Long.MIN_VALUE, SECONDS, 1); in main()
118 to(Long.MIN_VALUE, unit); in main()
135 long value = Long.MIN_VALUE; in main()
237 overflow(Long.MIN_VALUE, in main()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DFieldTest.java1181 f.setByte(x, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB()
1192 f.setByte(null, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB()
1203 f.setByte(null, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB()
1205 assertEquals("Returned incorrect byte field value", Byte.MIN_VALUE, in test_setByteLjava_lang_ObjectB()
1231 f.setChar(x, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC()
1242 f.setChar(null, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC()
1253 f.setChar(null, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC()
1256 Character.MIN_VALUE, val); in test_setCharLjava_lang_ObjectC()
1270 f.setDouble(x, Double.MIN_VALUE); in test_setDoubleLjava_lang_ObjectD()
1275 assertEquals("Returned incorrect double field value", Double.MIN_VALUE, in test_setDoubleLjava_lang_ObjectD()
[all …]
/libcore/luni/src/test/java/libcore/libcore/util/
DFP16Test.java45 assertEquals(MIN_VALUE, toHalf(5.96046e-8f)); in testSingleToHalf()
102 assertEquals("0x0.1p-14", toHexString(MIN_VALUE)); in testHexString()
147 assertFalse(FP16.isNormalized(MIN_VALUE)); in testIsNormalized()
224 assertEquals(POSITIVE_ZERO, FP16.rint(MIN_VALUE)); in testRint()
277 assertTrue(FP16.less(MIN_VALUE, MIN_NORMAL)); in testLess()
278 assertFalse(FP16.less(MIN_NORMAL, MIN_VALUE)); in testLess()
283 assertTrue(FP16.less(MIN_VALUE, (short) 0x3ff)); in testLess()
296 assertTrue(FP16.lessEquals(MIN_VALUE, MIN_NORMAL)); in testLessEquals()
297 assertFalse(FP16.lessEquals(MIN_NORMAL, MIN_VALUE)); in testLessEquals()
302 assertTrue(FP16.lessEquals(MIN_VALUE, (short) 0x3ff)); in testLessEquals()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java32 Timestamp t1 = new Timestamp(Long.MIN_VALUE); in testToString()
35 Timestamp t2 = new Timestamp(Long.MIN_VALUE + 1); in testToString()
38 Timestamp t3 = new Timestamp(Long.MIN_VALUE + 807); in testToString()
41 Timestamp t4 = new Timestamp(Long.MIN_VALUE + 808); in testToString()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java52 { Year.MIN_VALUE, 365, -Year.MIN_VALUE + 1, 12, 31 }, in test_dateYear()
71 { Year.MIN_VALUE - 1, 1 }, in test_dateYear_invalidValues()
73 { Integer.MIN_VALUE, 1 }, in test_dateYear_invalidValues()
/libcore/ojluni/src/main/java/sun/misc/
DDoubleConsts.java45 public static final double MIN_VALUE = java.lang.Double.MIN_VALUE; field in DoubleConsts
DFloatConsts.java45 public static final float MIN_VALUE = java.lang.Float.MIN_VALUE; field in FloatConsts
/libcore/luni/src/test/java/libcore/android/system/
DStructTimevalTest.java61 { Long.MIN_VALUE, /* -9223372036854775808 */ in interestingMillisValues()
62 (Long.MIN_VALUE / MS_PER_SEC) - 1L, /* -9223372036854776 */ in interestingMillisValues()
63 US_PER_SEC - (-(Long.MIN_VALUE % MS_PER_SEC) * US_PER_MS), /* 192000 */ in interestingMillisValues()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstant.java87 {"Long.MIN_VALUE+1", Long.MIN_VALUE + 1}, in provider_sampleEpochMillis()
88 {"Long.MIN_VALUE", Long.MIN_VALUE} in provider_sampleEpochMillis()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDHGenParameterSpecTest.java43 int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec()
44 int[] exponents = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec()

123456789