/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | LongTest.java | 41 Long l = new Long(127); in test_byteValue() 43 assertEquals("Returned incorrect byte value", -1, new Long(Long.MAX_VALUE) in test_byteValue() 52 assertTrue("-2 compared to 1 gave non-negative answer", new Long(-2L) in test_compareToLjava_lang_Long() 53 .compareTo(new Long(1L)) < 0); in test_compareToLjava_lang_Long() 54 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Long(-2L) in test_compareToLjava_lang_Long() 55 .compareTo(new Long(-2L))); in test_compareToLjava_lang_Long() 56 assertTrue("3 compared to 2 gave non-positive answer", new Long(3L) in test_compareToLjava_lang_Long() 57 .compareTo(new Long(2L)) > 0); in test_compareToLjava_lang_Long() 60 new Long(0).compareTo(null); in test_compareToLjava_lang_Long() 72 assertEquals("Returned incorrect value for hex string", 255L, Long.decode( in test_decodeLjava_lang_String2() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | LongTest.java | 30 assertNull(Long.getLong("testIncLong")); in testSystemProperties() 31 assertEquals(new Long(4), Long.getLong("testIncLong", 4L)); in testSystemProperties() 32 assertEquals(new Long(4), Long.getLong("testIncLong", new Long(4))); in testSystemProperties() 39 final long min = Long.MIN_VALUE; in testCompare() 41 final long max = Long.MAX_VALUE; in testCompare() 42 assertTrue(Long.compare(max, max) == 0); in testCompare() 43 assertTrue(Long.compare(min, min) == 0); in testCompare() 44 assertTrue(Long.compare(zero, zero) == 0); in testCompare() 45 assertTrue(Long.compare(max, zero) > 0); in testCompare() 46 assertTrue(Long.compare(max, min) > 0); in testCompare() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMap8Test.java | 564 static ConcurrentHashMap<Long, Long> longMap; 566 static ConcurrentHashMap<Long, Long> longMap() { in longMap() 568 longMap = new ConcurrentHashMap<Long, Long>(SIZE); in longMap() 570 longMap.put(Long.valueOf(i), Long.valueOf(2 *i)); in longMap() 576 …tic class AddKeys implements BiFunction<Map.Entry<Long,Long>, Map.Entry<Long,Long>, Map.Entry<Long… 577 public Map.Entry<Long,Long> apply(Map.Entry<Long,Long> x, Map.Entry<Long,Long> y) { in apply() argument 578 return new AbstractMap.SimpleEntry<Long,Long> in apply() 579 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply() 580 Long.valueOf(1L)); in apply() 589 ConcurrentHashMap<Long, Long> m = longMap(); in testForEachKeySequentially() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentHashMap8Test.java | 589 static ConcurrentHashMap<Long, Long> longMap; 591 static ConcurrentHashMap<Long, Long> longMap() { in longMap() 593 longMap = new ConcurrentHashMap<Long, Long>(SIZE); in longMap() 595 longMap.put(Long.valueOf(i), Long.valueOf(2 *i)); in longMap() 601 …tic class AddKeys implements BiFunction<Map.Entry<Long,Long>, Map.Entry<Long,Long>, Map.Entry<Long… 602 public Map.Entry<Long,Long> apply(Map.Entry<Long,Long> x, Map.Entry<Long,Long> y) { in apply() argument 603 return new AbstractMap.SimpleEntry<Long,Long> in apply() 604 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply() 605 Long.valueOf(1L)); in apply() 614 ConcurrentHashMap<Long, Long> m = longMap(); in testForEachKeySequentially() [all …]
|
D | TimeUnitTest.java | 132 Long.MAX_VALUE, Long.MIN_VALUE, in testConvert() 304 assertEquals(Long.MAX_VALUE, in testConvertSaturate() 305 NANOSECONDS.convert(Long.MAX_VALUE / 2, SECONDS)); in testConvertSaturate() 306 assertEquals(Long.MIN_VALUE, in testConvertSaturate() 307 NANOSECONDS.convert(-Long.MAX_VALUE / 4, SECONDS)); in testConvertSaturate() 308 assertEquals(Long.MAX_VALUE, in testConvertSaturate() 309 NANOSECONDS.convert(Long.MAX_VALUE / 2, MINUTES)); in testConvertSaturate() 310 assertEquals(Long.MIN_VALUE, in testConvertSaturate() 311 NANOSECONDS.convert(-Long.MAX_VALUE / 4, MINUTES)); in testConvertSaturate() 312 assertEquals(Long.MAX_VALUE, in testConvertSaturate() [all …]
|
D | TimeUnit8Test.java | 138 LongStream.of(Long.MAX_VALUE, Long.MIN_VALUE)) in testConvertDuration_roundtripDurationOfNanos() 153 Duration maxDuration = Duration.ofSeconds(Long.MAX_VALUE, 999_999_999); in testConvertDuration_nearOverflow() 154 Duration minDuration = Duration.ofSeconds(Long.MIN_VALUE, 0); in testConvertDuration_nearOverflow() 163 () -> Duration.of(Long.MAX_VALUE, cu), in testConvertDuration_nearOverflow() 164 () -> Duration.of(Long.MIN_VALUE, cu)); in testConvertDuration_nearOverflow() 168 Duration max = Duration.of(Long.MAX_VALUE, cu); in testConvertDuration_nearOverflow() 169 Duration min = Duration.of(Long.MIN_VALUE, cu); in testConvertDuration_nearOverflow() 170 assertEquals(Long.MAX_VALUE, u.convert(max)); in testConvertDuration_nearOverflow() 171 assertEquals(Long.MAX_VALUE - 1, u.convert(max.minus(1, NANOS))); in testConvertDuration_nearOverflow() 172 assertEquals(Long.MAX_VALUE - 1, u.convert(max.minus(1, cu))); in testConvertDuration_nearOverflow() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | ConcurrentHashMapTest.java | 51 static final long SEQUENTIALLY = Long.MAX_VALUE; 55 static class SumKeys implements BiFunction<Map.Entry<Long,Long>, 56 Map.Entry<Long,Long>, Map.Entry<Long,Long>> { 57 public Map.Entry<Long,Long> apply(Map.Entry<Long,Long> x, Map.Entry<Long,Long> y) { in apply() argument 58 return new AbstractMap.SimpleEntry<Long,Long> in apply() 59 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply() 60 Long.valueOf(1L)); in apply() 64 static class IncrementKey implements Function<Map.Entry<Long, Long>, Map.Entry<Long, Long>> { 65 public Map.Entry<Long, Long> apply(Map.Entry<Long, Long> in) { in apply() argument 66 return new AbstractMap.SimpleEntry<Long, Long> in apply() [all …]
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | CompareToTests.java | 62 {valueOf(Long.MAX_VALUE), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 63 {valueOf(Long.MAX_VALUE).negate(), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 65 {valueOf(Long.MAX_VALUE-1), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 66 {valueOf(Long.MAX_VALUE-1).negate(), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 68 {valueOf(Long.MIN_VALUE), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 69 {valueOf(Long.MIN_VALUE).negate(), valueOf(Long.MAX_VALUE), ONE}, in compareToTests() 71 {valueOf(Long.MIN_VALUE+1), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 72 {valueOf(Long.MIN_VALUE+1).negate(), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 74 {valueOf(Long.MAX_VALUE), valueOf(Long.MIN_VALUE), ONE}, in compareToTests() 75 {valueOf(Long.MAX_VALUE).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests() [all …]
|
/libcore/ojluni/src/test/java/lang/String/CompactString/ |
D | Numbers.java | 75 { Long.toBinaryString(Long.MAX_VALUE), in numbers() 77 { Long.toBinaryString(Long.MIN_VALUE), in numbers() 79 { Long.toOctalString(Long.MAX_VALUE), "777777777777777777777" }, in numbers() 80 { Long.toOctalString(Long.MIN_VALUE), "1000000000000000000000" }, in numbers() 81 { Long.toHexString(Long.MAX_VALUE), "7fffffffffffffff" }, in numbers() 82 { Long.toHexString(Long.MIN_VALUE), "8000000000000000" }, in numbers() 83 { Long.toString(Long.MAX_VALUE, 2), in numbers() 85 { Long.toString(Long.MIN_VALUE, 2), in numbers() 87 { Long.toString(Long.MAX_VALUE, 8), "777777777777777777777" }, in numbers() 88 { Long.toString(Long.MIN_VALUE, 8), "-1000000000000000000000" }, in numbers() [all …]
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | CompareToTests.java | 74 {valueOf(Long.MAX_VALUE), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 75 {valueOf(Long.MAX_VALUE).negate(), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 77 {valueOf(Long.MAX_VALUE-1), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 78 {valueOf(Long.MAX_VALUE-1).negate(), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 80 {valueOf(Long.MIN_VALUE), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 81 {valueOf(Long.MIN_VALUE).negate(), valueOf(Long.MAX_VALUE), ONE}, in compareToTests() 83 {valueOf(Long.MIN_VALUE+1), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests() 84 {valueOf(Long.MIN_VALUE+1).negate(), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 86 {valueOf(Long.MAX_VALUE), valueOf(Long.MIN_VALUE), ONE}, in compareToTests() 87 {valueOf(Long.MAX_VALUE).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 163 Duration.ofSeconds(Long.MAX_VALUE, 1000000000); in factory_seconds_long_long_tooBig() 219 Duration test = Duration.ofNanos(Long.MAX_VALUE); in factory_nanos_max() 220 assertEquals(test.getSeconds(), Long.MAX_VALUE / 1000000000); in factory_nanos_max() 221 assertEquals(test.getNano(), Long.MAX_VALUE % 1000000000); in factory_nanos_max() 226 Duration test = Duration.ofNanos(Long.MIN_VALUE); in factory_nanos_min() 227 assertEquals(test.getSeconds(), Long.MIN_VALUE / 1000000000 - 1); in factory_nanos_min() 228 assertEquals(test.getNano(), Long.MIN_VALUE % 1000000000 + 1000000000); in factory_nanos_min() 243 Duration test = Duration.ofMinutes(Long.MAX_VALUE / 60); in factory_minutes_max() 244 assertEquals(test.getSeconds(), (Long.MAX_VALUE / 60) * 60); in factory_minutes_max() 250 Duration test = Duration.ofMinutes(Long.MIN_VALUE / 60); in factory_minutes_min() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigDecimalTest.java | 51 String maxLong = Long.toString(Long.MAX_VALUE); in testGetPrecision() 53 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() 143 checkDivide("1", Long.MAX_VALUE, Long.MAX_VALUE / 2 + 1, 0, RoundingMode.DOWN); in testDivideRounding() [all …]
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | DivModTests.java | 190 testLongFloorDivMod(Long.MAX_VALUE, 1, Long.MAX_VALUE, 0L); in testLongFloorDivMod() 191 testLongFloorDivMod(Long.MAX_VALUE, -1, -Long.MAX_VALUE, 0L); in testLongFloorDivMod() 192 testLongFloorDivMod(Long.MAX_VALUE, 3L, Long.MAX_VALUE / 3L, 1L); in testLongFloorDivMod() 193 testLongFloorDivMod(Long.MAX_VALUE - 1L, 3L, (Long.MAX_VALUE - 1L) / 3L, 0L); in testLongFloorDivMod() 194 testLongFloorDivMod(Long.MIN_VALUE, 3L, Long.MIN_VALUE / 3L - 1L, 1L); in testLongFloorDivMod() 195 testLongFloorDivMod(Long.MIN_VALUE + 1L, 3L, Long.MIN_VALUE / 3L - 1L, 2L); in testLongFloorDivMod() 196 testLongFloorDivMod(Long.MIN_VALUE + 1, -1, Long.MAX_VALUE, 0L); in testLongFloorDivMod() 197 testLongFloorDivMod(Long.MAX_VALUE, Long.MAX_VALUE, 1L, 0L); in testLongFloorDivMod() 198 testLongFloorDivMod(Long.MAX_VALUE, Long.MIN_VALUE, -1L, -1L); in testLongFloorDivMod() 199 testLongFloorDivMod(Long.MIN_VALUE, Long.MIN_VALUE, 1L, 0L); in testLongFloorDivMod() [all …]
|
D | MultiplicationTests.java | 71 private static boolean check(BiFunction<Long,Long,Long> reference, in check() argument 72 BiFunction<Long,Long,Long> multiply, long x, long y) { in check() 102 private static int test(BiFunction<Long,Long,Boolean> chk) { in test() argument 116 {Long.MAX_VALUE, Long.MAX_VALUE}, in test() 117 {Long.MAX_VALUE, -Long.MAX_VALUE}, in test() 118 {-Long.MAX_VALUE, Long.MAX_VALUE}, in test() 119 {Long.MAX_VALUE, Long.MIN_VALUE}, in test() 120 {Long.MIN_VALUE, Long.MAX_VALUE}, in test() 121 {Long.MIN_VALUE, Long.MIN_VALUE} in test()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | MultiplicationTests.java | 96 {Long.MAX_VALUE, Long.MAX_VALUE}, in testMultiplyHigh() 97 {Long.MAX_VALUE, -Long.MAX_VALUE}, in testMultiplyHigh() 98 {-Long.MAX_VALUE, Long.MAX_VALUE}, in testMultiplyHigh() 99 {Long.MAX_VALUE, Long.MIN_VALUE}, in testMultiplyHigh() 100 {Long.MIN_VALUE, Long.MAX_VALUE}, in testMultiplyHigh() 101 {Long.MIN_VALUE, Long.MIN_VALUE} in testMultiplyHigh()
|
D | ExactArithTests.java | 178 testLongExactTwice(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact() 179 testLongExactTwice(Long.MAX_VALUE, Long.MAX_VALUE); in testLongExact() 180 testLongExactTwice(Long.MIN_VALUE, 1); in testLongExact() 181 testLongExactTwice(Long.MAX_VALUE, 1); in testLongExact() 182 testLongExactTwice(Long.MIN_VALUE, 2); in testLongExact() 183 testLongExactTwice(Long.MAX_VALUE, 2); in testLongExact() 184 testLongExactTwice(Long.MIN_VALUE, -1); in testLongExact() 185 testLongExactTwice(Long.MAX_VALUE, -1); in testLongExact() 186 testLongExactTwice(Long.MIN_VALUE, -2); in testLongExact() 187 testLongExactTwice(Long.MAX_VALUE, -2); in testLongExact() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | LongPipeline.java | 57 extends AbstractPipeline<E_IN, Long, LongStream> 68 LongPipeline(Supplier<? extends Spliterator<Long>> source, in LongPipeline() 81 LongPipeline(Spliterator<Long> source, in LongPipeline() 100 private static LongConsumer adapt(Sink<Long> sink) { in adapt() 118 private static Spliterator.OfLong adapt(Spliterator<Long> s) { in adapt() 140 public final <P_IN> Node<Long> evaluateToNode(PipelineHelper<Long> helper, in evaluateToNode() 143 IntFunction<Long[]> generator) { in evaluateToNode() 149 public final <P_IN> Spliterator<Long> wrap(PipelineHelper<Long> ph, in wrap() 158 … public final Spliterator.OfLong lazySpliterator(Supplier<? extends Spliterator<Long>> supplier) { in lazySpliterator() 164 public final boolean forEachWithCancel(Spliterator<Long> spliterator, Sink<Long> sink) { in forEachWithCancel() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ConcatOpTest.java | 59 LongStream.range(0, Long.MAX_VALUE / 2).boxed(), in testSize() 60 LongStream.range(0, Long.MAX_VALUE / 2).boxed())); in testSize() 63 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize() 64 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize() 67 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize() 72 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize() 77 LongStream.range(0, Long.MAX_VALUE / 2), in testLongSize() 78 LongStream.range(0, Long.MAX_VALUE / 2))); in testLongSize() 81 LongStream.range(0, Long.MAX_VALUE), in testLongSize() 82 LongStream.range(0, Long.MAX_VALUE))); in testLongSize() [all …]
|
D | RangeTest.java | 192 long[] inc = LongStream.rangeClosed(Long.MAX_VALUE - 1, Long.MAX_VALUE).toArray(); in testLongRange() 194 assertEquals(Long.MAX_VALUE - 1, inc[0]); in testLongRange() 195 assertEquals(Long.MAX_VALUE, inc[1]); in testLongRange() 197 inc = LongStream.rangeClosed(Long.MAX_VALUE, Long.MAX_VALUE).toArray(); in testLongRange() 199 assertEquals(Long.MAX_VALUE, inc[0]); in testLongRange() 202 () -> LongStream.rangeClosed(Long.MAX_VALUE - 8, Long.MAX_VALUE).spliterator()); in testLongRange() 216 terminal(s -> s.reduce(0, Long::sum)).exercise(); in testLongRangeReduce() 222 terminal(s -> s.reduce(0, Long::sum)).exercise(); in testLongInfiniteRangeLimit() 244 Spliterator.OfLong s = LongStream.range(Long.MIN_VALUE, Long.MAX_VALUE).spliterator(); in testLongLongRange() 246 assertEquals(s.estimateSize(), Long.MAX_VALUE); in testLongLongRange() [all …]
|
/libcore/ojluni/src/test/java/lang/Long/ |
D | Unsigned.java | 30 package test.java.lang.Long; 51 Long.parseUnsignedLong(Long.toBinaryString(datum), 2), in testRoundtrip() 56 Long.parseUnsignedLong(Long.toOctalString(datum), 8), in testRoundtrip() 61 Long.parseUnsignedLong(Long.toHexString(datum), 16), in testRoundtrip() 114 long libraryResult = Long.compareUnsigned(i, j); in testUnsignedCompare() 115 long libraryResultRev = Long.compareUnsigned(j, i); in testUnsignedCompare() 128 Long.signum(libraryResult), in testUnsignedCompare() 129 Long.signum(localResult), in testUnsignedCompare() 135 Long.signum(libraryResult), in testUnsignedCompare() 136 -Long.signum(libraryResultRev), in testUnsignedCompare() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Long.java | 75 public final class Long extends Number class 76 implements Comparable<Long>, Constable, ConstantDesc { 96 public static final Class<Long> TYPE = (Class<Long>) Class.getPrimitiveClass("long"); 398 int mag = Long.SIZE - Long.numberOfLeadingZeros(val); in toUnsignedString0() 721 long limit = -Long.MAX_VALUE; in parseLong() 728 limit = Long.MIN_VALUE; in parseLong() 803 long limit = -Long.MAX_VALUE; in parseLong() 810 limit = Long.MIN_VALUE; in parseLong() 1168 public static Long valueOf(String s, int radix) throws NumberFormatException { in valueOf() 1169 return Long.valueOf(parseLong(s, radix)); in valueOf() [all …]
|
/libcore/ojluni/src/test/java/util/Map/ |
D | ToArray.java | 48 Map<Integer, Long>[] maps = (Map<Integer, Long>[]) new Map[]{ in testToArray() 60 for (Map<Integer, Long> map : maps) { in testToArray() 67 private static final Long[] VALUES = new Long[TEST_SIZE]; 72 VALUES[each] = Long.valueOf(each + TEST_SIZE); 77 private static void testMap(Map<Integer, Long> map) { in testMap() 101 Map.Entry<Integer,Long>[] entries = map.entrySet().toArray(new Map.Entry[TEST_SIZE]); in testMap() 102 Arrays.sort( entries,new Comparator<Map.Entry<Integer,Long>>() { in testMap() 103 public int compare(Map.Entry<Integer,Long> o1, Map.Entry<Integer,Long> o2) { in testMap()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Long.java | 33 public final class Long extends java.lang.Number implements java.lang.Comparable<java.lang.Long> { class 35 public Long(long value) { in Long() method in Long 39 public Long(java.lang.String s) throws java.lang.NumberFormatException { in Long() method in Long 110 public static java.lang.Long valueOf(java.lang.String s, int radix) in valueOf() 115 public static java.lang.Long valueOf(java.lang.String s) in valueOf() 120 public static java.lang.Long valueOf(long l) { in valueOf() 124 public static java.lang.Long decode(java.lang.String nm) in decode() 169 public static java.lang.Long getLong(java.lang.String nm) { in getLong() 173 public static java.lang.Long getLong(java.lang.String nm, long val) { in getLong() 177 public static java.lang.Long getLong(java.lang.String nm, java.lang.Long val) { in getLong() [all …]
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 78 cmp(Long.MAX_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, 1); in main() 79 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() 91 cmp(Instant.MAX, Long.MAX_VALUE, DAYS, -1); in main() 92 cmp(Instant.MAX, Long.MAX_VALUE, HOURS, -1); in main() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 134 this.maxNanos = Long.MAX_VALUE / s; in TimeUnit() 137 this.maxMicros = Long.MAX_VALUE / ur; in TimeUnit() 140 this.maxMillis = Long.MAX_VALUE / mr; in TimeUnit() 143 this.maxSecs = Long.MAX_VALUE / sr; in TimeUnit() 159 else if (d > (m = Long.MAX_VALUE / (r = src / dst))) in cvt() 160 return Long.MAX_VALUE; in cvt() 162 return Long.MIN_VALUE; in cvt() 240 : (secs > 0) ? Long.MAX_VALUE : Long.MIN_VALUE; in convert() 256 return Long.MAX_VALUE; in toNanos() 258 return Long.MIN_VALUE; in toNanos() [all …]
|