Searched refs:parseLong (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/ |
D | LongTest.java | 82 assertEquals(0, Long.parseLong("+0", 10)); 83 assertEquals(473, Long.parseLong("+473", 10)); 84 assertEquals(255, Long.parseLong("+FF", 16)); 85 assertEquals(102, Long.parseLong("+1100110", 2)); 86 assertEquals(Long.MAX_VALUE, Long.parseLong("+" + Long.MAX_VALUE, 10)); 87 assertEquals(411787, Long.parseLong("Kona", 27)); 88 assertEquals(411787, Long.parseLong("+Kona", 27)); 89 assertEquals(-145, Long.parseLong("-145", 10)); 92 Long.parseLong("--1", 10); // multiple sign chars 97 Long.parseLong("++1", 10); // multiple sign chars [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | LongTest.java | 203 long l = Long.parseLong("89000000005"); in test_parseLongLjava_lang_String2() 205 assertEquals("Returned incorrect value for 0", 0, Long.parseLong("0")); in test_parseLongLjava_lang_String2() 207 .parseLong("-9223372036854775808") == 0x8000000000000000L); in test_parseLongLjava_lang_String2() 209 .parseLong("9223372036854775807") == 0x7fffffffffffffffL); in test_parseLongLjava_lang_String2() 213 Long.parseLong("9223372036854775808"); in test_parseLongLjava_lang_String2() 222 Long.parseLong("-9223372036854775809"); in test_parseLongLjava_lang_String2() 236 100000000L, Long.parseLong("100000000", 10)); in test_parseLongLjava_lang_StringI() 237 assertEquals("Returned incorrect value from hex string", 68719476735L, Long.parseLong( in test_parseLongLjava_lang_StringI() 240 + Long.parseLong("77777777777"), Long.parseLong("77777777777", in test_parseLongLjava_lang_StringI() 243 .parseLong("0", 16)); in test_parseLongLjava_lang_StringI() [all …]
|
/libcore/luni/src/main/java/java/lang/ |
D | Long.java | 89 this(parseLong(string)); in Long() 320 public static long parseLong(String string) throws NumberFormatException { in parseLong() method in Long 321 return parseLong(string, 10); in parseLong() 340 public static long parseLong(String string, int radix) throws NumberFormatException { in parseLong() method in Long 511 return valueOf(parseLong(string)); in valueOf() 531 return valueOf(parseLong(string, radix)); in valueOf()
|
D | HexStringParser.java | 141 exponent = expSign * Long.parseLong(exponentStr); in parseExponent() 180 mantissa = Long.parseLong(significand, HEX_RADIX); in parseMantissa() 300 …return (strIntegerPart.length() - 1) * 4 + countBitsLength(Long.parseLong(leadingNumber,HEX_RADIX)… in getOffset() 310 return (-i - 1) * 4 + countBitsLength(Long.parseLong(leadingNumber, HEX_RADIX)) - 1; in getOffset()
|
/libcore/tzdata/update/src/main/libcore/tzdata/update/ |
D | TzDataBundleInstaller.java | 122 expectedChecksum = Long.parseLong(line.substring(0, delimiterPos)); in verifySystemChecksums()
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 305 long longValue = Long.parseLong(number, base); in readLiteral()
|
/libcore/luni/src/main/java/java/net/ |
D | HttpCookie.java | 344 long maxAge = Long.parseLong(value); in setAttribute()
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | AbstractPreferences.java | 500 return Long.parseLong(result); in getLong()
|
/libcore/luni/src/main/java/java/util/ |
D | Scanner.java | 1434 longValue = Long.parseLong(intString, radix); in nextLong()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 344 smallValue = Long.parseLong(unscaledBuffer.toString()); in BigDecimal()
|