/libcore/luni/src/test/java/libcore/java/lang/ |
D | LongTest.java | 108 assertEquals(0, Long.decode("+0").longValue()); 109 assertEquals(473, Long.decode("+473").longValue()); 110 assertEquals(255, Long.decode("+0xFF").longValue()); 111 assertEquals(16, Long.decode("+020").longValue()); 112 assertEquals(Long.MAX_VALUE, Long.decode("+" + Long.MAX_VALUE).longValue()); 113 assertEquals(-73, Long.decode("-73").longValue()); 114 assertEquals(-255, Long.decode("-0xFF").longValue()); 115 assertEquals(255, Long.decode("+#FF").longValue()); 116 assertEquals(-255, Long.decode("-#FF").longValue());
|
D | OldFloatTest.java | 89 assertEquals(Long.MAX_VALUE, new Float(Float.MAX_VALUE).longValue()); in test_longValue() 90 assertEquals(0, new Float(Float.MIN_VALUE).longValue()); in test_longValue()
|
/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/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 …]
|
D | ByteTest.java | 339 assertEquals(-1L, new Byte((byte) -1).longValue()); in test_longValue() 340 assertEquals(0L, new Byte((byte) 0).longValue()); in test_longValue() 341 assertEquals(1L, new Byte((byte) 1).longValue()); in test_longValue() 530 assertEquals("Returned incorrect long value", 127L, new Byte((byte) 127).longValue());
|
D | ShortTest.java | 660 assertEquals(-1L, new Short((short) -1).longValue()); in test_longValue() 661 assertEquals(0L, new Short((short) 0).longValue()); in test_longValue() 662 assertEquals(1L, new Short((short) 1).longValue()); in test_longValue()
|
/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 | 56 assertEquals(1234567890L, rpks.getModulus().longValue()); in testGetModulus() 67 assertEquals(3L, rpks.getPrivateExponent().longValue()); in testGetPrivateExponent()
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 305 long longValue = Long.parseLong(number, base); in readLiteral() local 306 if (longValue <= Integer.MAX_VALUE && longValue >= Integer.MIN_VALUE) { in readLiteral() 307 return (int) longValue; in readLiteral() 309 return longValue; in readLiteral()
|
D | JSONObject.java | 744 long longValue = number.longValue(); in numberToString() local 745 if (doubleValue == (double) longValue) { in numberToString() 746 return Long.toString(longValue); in numberToString()
|
D | JSON.java | 76 return ((Number) value).longValue(); in toLong()
|
/libcore/luni/src/main/java/java/lang/ |
D | Number.java | 74 public abstract long longValue(); in longValue() method in Number
|
D | Byte.java | 179 public long longValue() { in longValue() method in Byte
|
D | Short.java | 178 public long longValue() { in longValue() method in Short
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 1086 long rem = remainder.longValue(); in divideBigIntegers() 1087 long divisor = scaledDivisor.longValue(); in divideBigIntegers() 1101 return valueOf(quotient.longValue() + compRem,scale); in divideBigIntegers() 2401 public long longValue() { in longValue() method in BigDecimal 2407 return ((scale <= -64) || (scale > approxPrecision()) ? 0L : toBigInteger().longValue()); in longValue() 2576 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue() 2585 bits = mantissa.longValue() << -discardedSize; in doubleValue() 2818 return bigInteger.longValue(); in valueExact() 2837 private static int safeLongToInt(long longValue) { in safeLongToInt() argument 2838 if (longValue < Integer.MIN_VALUE || longValue > Integer.MAX_VALUE) { in safeLongToInt() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicLongTest.java | 244 assertEquals(0L, ai.longValue()); in testLongValue() 247 assertEquals(x, ai.longValue()); in testLongValue()
|
D | AtomicIntegerTest.java | 241 assertEquals(0L, ai.longValue()); in testLongValue() 244 assertEquals((long)x, ai.longValue()); in testLongValue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerConvertTest.java | 620 long aNumber = new BigInteger(aBytes).longValue(); in testLongValuePositive1() 631 long aNumber = new BigInteger(aBytes).longValue(); in testLongValuePositive2() 642 long aNumber = new BigInteger(aBytes).longValue(); in testLongValueNegative1() 653 long aNumber = new BigInteger(aBytes).longValue(); in testLongValueNegative2()
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 231 public long longValue() { in longValue() method in AtomicInteger
|
D | AtomicLong.java | 245 public long longValue() { in longValue() method in AtomicLong
|
/libcore/luni/src/main/java/java/util/ |
D | Formatter.java | 1431 IntegralToString.appendLong((StringBuilder) out, ((Long) arg).longValue()); in transform() 1681 value = ((Long) arg).longValue(); in transformFromInteger() 1683 value = ((Integer) arg).longValue(); in transformFromInteger() 1685 value = ((Short) arg).longValue(); in transformFromInteger() 1687 value = ((Byte) arg).longValue(); in transformFromInteger() 1819 date = new Date(((Long) arg).longValue()); in transformFromDateTime() 2169 long l = b.longValue(); in transformG() 2183 l = b.movePointRight(4).longValue(); in transformG() 2187 l = b.movePointRight(precision + 1).longValue(); in transformG() 2191 l = b.movePointRight(precision).longValue(); in transformG()
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | OldPreferencesTest.java | 38 private static final String longValue; field in OldPreferencesTest 51 longValue = value.toString(); 438 pref.put(longKey, longValue); in testPut() 440 pref.put(longKey + 1, longValue); in testPut() 445 pref.put(longKey, longValue + 1); in testPut() 452 pref.put(longKey, longValue + 1); in testPut() 458 pref.put(longKey, longValue); in testPut()
|
/libcore/luni/src/main/java/java/io/ |
D | EmulatedFieldsForDumping.java | 214 output.writeLong(fieldValue != null ? ((Long) fieldValue).longValue() : 0); in write()
|