/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMap8Test.java | 335 sp.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator() 337 sp2.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator() 579 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply() 590 m.forEachKey(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachKeySequentially() 600 m.forEachValue(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachValueSequentially() 610 m.forEach(Long.MAX_VALUE, (Long x, Long y) -> adder.add(x.longValue() + y.longValue())); in testForEachSequentially() 620 …X_VALUE, (Map.Entry<Long,Long> e) -> adder.add(e.getKey().longValue() + e.getValue().longValue())); in testForEachEntrySequentially() 630 m.forEachKey(1L, (Long x) -> adder.add(x.longValue())); in testForEachKeyInParallel() 640 m.forEachValue(1L, (Long x) -> adder.add(x.longValue())); in testForEachValueInParallel() 650 m.forEach(1L, (Long x, Long y) -> adder.add(x.longValue() + y.longValue())); in testForEachInParallel() [all …]
|
D | DoubleAccumulatorTest.java | 96 assertEquals(0, ai.longValue()); in testLongValue() 98 assertEquals(1, ai.longValue()); in testLongValue()
|
D | LongAccumulatorTest.java | 96 assertEquals(0, ai.longValue()); in testLongValue() 98 assertEquals(1, ai.longValue()); in testLongValue()
|
D | DoubleAdderTest.java | 108 assertEquals(0, ai.longValue()); in testLongValue() 110 assertEquals(1, ai.longValue()); in testLongValue()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentHashMap8Test.java | 360 sp.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator() 362 sp2.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator() 604 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply() 615 m.forEachKey(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachKeySequentially() 625 m.forEachValue(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachValueSequentially() 635 m.forEach(Long.MAX_VALUE, (Long x, Long y) -> adder.add(x.longValue() + y.longValue())); in testForEachSequentially() 645 …X_VALUE, (Map.Entry<Long,Long> e) -> adder.add(e.getKey().longValue() + e.getValue().longValue())); in testForEachEntrySequentially() 655 m.forEachKey(1L, (Long x) -> adder.add(x.longValue())); in testForEachKeyInParallel() 665 m.forEachValue(1L, (Long x) -> adder.add(x.longValue())); in testForEachValueInParallel() 675 m.forEach(1L, (Long x, Long y) -> adder.add(x.longValue() + y.longValue())); in testForEachInParallel() [all …]
|
D | DoubleAccumulatorTest.java | 119 assertEquals(0, ai.longValue()); in testLongValue() 121 assertEquals(1, ai.longValue()); in testLongValue()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | LongTest.java | 111 assertEquals(0, Long.decode("+0").longValue()); 112 assertEquals(473, Long.decode("+473").longValue()); 113 assertEquals(255, Long.decode("+0xFF").longValue()); 114 assertEquals(16, Long.decode("+020").longValue()); 115 assertEquals(Long.MAX_VALUE, Long.decode("+" + Long.MAX_VALUE).longValue()); 116 assertEquals(-73, Long.decode("-73").longValue()); 117 assertEquals(-255, Long.decode("-0xFF").longValue()); 118 assertEquals(255, Long.decode("+#FF").longValue()); 119 assertEquals(-255, Long.decode("-#FF").longValue()); 191 long uq = Long.divideUnsigned(dividend.longValue(), divisor.longValue()); [all …]
|
D | OldFloatTest.java | 89 assertEquals(Long.MAX_VALUE, Float.valueOf(Float.MAX_VALUE).longValue()); in test_longValue() 90 assertEquals(0, Float.valueOf(Float.MIN_VALUE).longValue()); in test_longValue()
|
D | IntegerTest.java | 209 for (long longValue : LONG_VALUES) { in testParseUnsignedInt() 213 () -> Integer.parseUnsignedInt(Long.toBinaryString(longValue), 2)); in testParseUnsignedInt() 216 () -> Integer.parseUnsignedInt(Long.toOctalString(longValue), 8)); in testParseUnsignedInt() 219 () -> Integer.parseUnsignedInt(Long.toUnsignedString(longValue), 10)); in testParseUnsignedInt() 222 () -> Integer.parseUnsignedInt(Long.toHexString(longValue), 16)); in testParseUnsignedInt() 227 () -> Integer.parseUnsignedInt(Long.toUnsignedString(longValue, r), r)); in testParseUnsignedInt()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFields.java | 42 public long longValue = 0; field in Support_GetPutFields 82 longValue = 6700654321L; in initTestValues() 99 longValue == other.longValue && in equals() 113 longValue = getField.get("longValue", (long) 0); in readObject() 127 putField.put("longValue", longValue); in writeObject()
|
D | Support_GetPutFieldsDeprecated.java | 44 public long longValue = 0; field in Support_GetPutFieldsDeprecated 84 longValue = 1560732321L; in initTestValues() 101 longValue == other.longValue && in equals() 114 longValue = getField.get("longValue", (long) 0); in readObject() 128 putField.put("longValue", longValue); in writeObject()
|
D | Support_GetPutFieldsDefaulted.java | 53 public long longValue = 0; field in Support_GetPutFieldsDefaulted 93 longValue = 1234567890L; in initTestValues() 110 longValue == other.longValue && in equals() 124 longValue = getField.get("longValue", (long) 1234567890L); in readObject()
|
/libcore/ojluni/src/test/java/lang/Long/ |
D | Unsigned.java | 380 quotient = Long.divideUnsigned(dividend.longValue(), divisor.longValue()); in testDivideAndRemainder() 387 … remainder = Long.remainderUnsigned(dividend.longValue(), divisor.longValue()); in testDivideAndRemainder() 393 quotient = Long.divideUnsigned(dividend.longValue(), divisor.longValue()); in testDivideAndRemainder() 398 longQuotient.longValue(), in testDivideAndRemainder() 401 Long.toUnsignedString(dividend.longValue()), in testDivideAndRemainder() 402 Long.toUnsignedString(divisor.longValue()))); in testDivideAndRemainder() 404 remainder = Long.remainderUnsigned(dividend.longValue(), divisor.longValue()); in testDivideAndRemainder() 409 longRemainder.longValue(), in testDivideAndRemainder() 412 Long.toUnsignedString(dividend.longValue()), in testDivideAndRemainder() 413 Long.toUnsignedString(divisor.longValue()))); in testDivideAndRemainder()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | LongTest.java | 73 "0xFF").longValue()); in test_decodeLjava_lang_String2() 75 "-89000").longValue()); in test_decodeLjava_lang_String2() 77 .longValue()); in test_decodeLjava_lang_String2() 79 .longValue()); in test_decodeLjava_lang_String2() 82 Long.decode("-9223372036854775808").longValue() == 0x8000000000000000L); in test_decodeLjava_lang_String2() 85 Long.decode("-0x8000000000000000").longValue() == 0x8000000000000000L); in test_decodeLjava_lang_String2() 88 Long.decode("9223372036854775807").longValue() == 0x7fffffffffffffffL); in test_decodeLjava_lang_String2() 91 Long.decode("0x7fffffffffffffff").longValue() == 0x7fffffffffffffffL); in test_decodeLjava_lang_String2() 93 .longValue() == 07654321765432l); in test_decodeLjava_lang_String2() 418 .longValue()); in test_valueOfLjava_lang_String2() [all …]
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | LongValueExactTests.java | 50 for (String longValue : testStrings) { in longValueExactTests() 52 BigDecimal bd = new BigDecimal(longValue); in longValueExactTests() 55 … Assert.fail("Unexpected exception for longValueExact(" + longValue + "): " + e.getMessage()); in longValueExactTests()
|
D | IntegralValueTests.java | 213 long longValue = bd.longValue(); in integralValuesTest() local 214 if (longValue != (long)expected) { in integralValuesTest() 215 failures += reportError(bd, expected, longValue, isInt); in integralValuesTest() 227 private static int reportError(BigDecimal bd, Number expected, long longValue, boolean isInt) { in reportError() argument 237 bd.toString(), bd.scale(), expected, longValue, simpleIntValue(bd)); in reportError() 240 bd.toString(), bd.scale(), expected, longValue, simpleLongValue(bd)); in reportError() 246 return bd.toBigInteger().longValue(); in simpleLongValue()
|
D | FloatDoubleValueTests.java | 50 Assert.assertFalse(bd.doubleValue() != i || bd.longValue() != i, in testDoubleValue0() 55 Assert.assertFalse(bd.floatValue() != i || bd.longValue() != i, in testFloatValue0()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 119 return value1.longValue(); in test_derive() 122 return value2.longValue(); in test_derive() 125 return value3.longValue(); in test_derive() 128 return value4.longValue(); in test_derive() 196 return value1.longValue(); in test_normalized() 205 assertEquals(temporal.getLong(expectedField), expectedVal.longValue()); in test_normalized()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | RSAOtherPrimeInfoTest.java | 114 assertEquals(3L, ropi.getCrtCoefficient().longValue()); in testGetCrtCoefficient() 126 assertEquals(1L, ropi.getPrime().longValue()); in testGetPrime() 138 assertEquals(2L, ropi.getExponent().longValue()); in testGetExponent()
|
D | RSAPrivateKeySpecTest.java | 58 assertEquals(1234567890L, rpks.getModulus().longValue()); in testGetModulus() 69 assertEquals(3L, rpks.getPrivateExponent().longValue()); in testGetPrivateExponent()
|
/libcore/ojluni/src/main/java/java/util/ |
D | UUID.java | 341 long mostSigBits = Long.decode(components[0]).longValue(); in fromStringJava8() 343 mostSigBits |= Long.decode(components[1]).longValue(); in fromStringJava8() 345 mostSigBits |= Long.decode(components[2]).longValue(); in fromStringJava8() 347 long leastSigBits = Long.decode(components[3]).longValue(); in fromStringJava8() 349 leastSigBits |= Long.decode(components[4]).longValue(); in fromStringJava8()
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 318 long longValue = Long.parseLong(number, base); in readLiteral() local 319 if (longValue <= Integer.MAX_VALUE && longValue >= Integer.MIN_VALUE) { in readLiteral() 320 return (int) longValue; in readLiteral() 322 return longValue; in readLiteral()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | ConcurrentHashMapTest.java | 59 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply() 67 (Long.valueOf(in.getKey().longValue() + 1), in apply() 86 return in.getKey().longValue(); in applyAsLong() 104 return (key.longValue() + 1); in applyAsLong() 165 assertEquals((long)MAP_SIZE * (MAP_SIZE + 1) / 2, result.getKey().longValue()); in testTransformReduceEntriesSequentially() 173 assertEquals((long)MAP_SIZE * (MAP_SIZE + 1) / 2, result.getKey().longValue()); in testTransformReduceEntriesInParallel() 364 set.forEach((Integer x) -> adder.add(x.longValue())); in testKeySetViewForEach()
|
/libcore/luni/src/test/java/libcore/sun/misc/ |
D | UnsafeTest.java | 153 long longValue = unsafe.getLong(tf, longFieldOffset); in test_getLong_Relative() local 154 assertEquals(tf.longVar, longValue); in test_getLong_Relative() 219 long longValue = 9000; in test_putLong_Relative() local 220 unsafe.putLong(tf, longFieldOffset, longValue); in test_putLong_Relative() 221 assertEquals(longValue, tf.longVar); in test_putLong_Relative()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Number.java | 75 public abstract long longValue(); in longValue() method in Number
|