Home
last modified time | relevance | path

Searched refs:parseInt (Results 1 – 25 of 60) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DIntegerTest.java315 int i = Integer.parseInt("-8900"); in test_parseIntLjava_lang_String2()
317 assertEquals("Returned incorrect value for 0", 0, Integer.parseInt("0")); in test_parseIntLjava_lang_String2()
319 .parseInt("-2147483648") == 0x80000000); in test_parseIntLjava_lang_String2()
321 .parseInt("2147483647") == 0x7fffffff); in test_parseIntLjava_lang_String2()
325 Integer.parseInt("999999999999"); in test_parseIntLjava_lang_String2()
334 Integer.parseInt("2147483648"); in test_parseIntLjava_lang_String2()
343 Integer.parseInt("-2147483649"); in test_parseIntLjava_lang_String2()
357 -8000, Integer.parseInt("-8000", 10)); in test_parseIntLjava_lang_StringI2()
359 255, Integer.parseInt("FF", 16)); in test_parseIntLjava_lang_StringI2()
361 16, Integer.parseInt("20", 8)); in test_parseIntLjava_lang_StringI2()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DIntegerTest.java55 assertEquals(0, Integer.parseInt("+0", 10));
56 assertEquals(473, Integer.parseInt("+473", 10));
57 assertEquals(255, Integer.parseInt("+FF", 16));
58 assertEquals(102, Integer.parseInt("+1100110", 2));
59 assertEquals(2147483647, Integer.parseInt("+2147483647", 10));
60 assertEquals(411787, Integer.parseInt("Kona", 27));
61 assertEquals(411787, Integer.parseInt("+Kona", 27));
62 assertEquals(-145, Integer.parseInt("-145", 10));
65 Integer.parseInt("--1", 10); // multiple sign chars
70 Integer.parseInt("++1", 10); // multiple sign chars
[all …]
/libcore/ojluni/src/main/java/java/sql/
DTimestamp.java225 year = Integer.parseInt(yyyy); in valueOf()
226 month = Integer.parseInt(mm); in valueOf()
227 day = Integer.parseInt(dd); in valueOf()
241 hour = Integer.parseInt(time_s.substring(0, firstColon)); in valueOf()
243 Integer.parseInt(time_s.substring(firstColon+1, secondColon)); in valueOf()
246 Integer.parseInt(time_s.substring(secondColon+1, period)); in valueOf()
253 a_nanos = Integer.parseInt(nanos_s); in valueOf()
257 second = Integer.parseInt(time_s.substring(secondColon+1)); in valueOf()
DTime.java103 hour = Integer.parseInt(s.substring(0, firstColon)); in valueOf()
105 Integer.parseInt(s.substring(firstColon+1, secondColon)); in valueOf()
106 second = Integer.parseInt(s.substring(secondColon+1)); in valueOf()
DDate.java133 int year = Integer.parseInt(yyyy); in valueOf()
134 int month = Integer.parseInt(mm); in valueOf()
135 int day = Integer.parseInt(dd); in valueOf()
/libcore/ojluni/src/main/java/java/lang/
DInteger.java566 public static int parseInt(String s, int radix)
649 public static int parseInt(String s) throws NumberFormatException {
650 return parseInt(s,10);
712 return parseInt(s, radix);
775 return Integer.valueOf(parseInt(s,radix));
801 return Integer.valueOf(parseInt(s, 10));
827 int i = parseInt(integerCacheHighPropValue);
902 this.value = parseInt(s, 10);
DShort.java121 int i = Integer.parseInt(s, radix); in parseShort()
DByte.java155 int i = Integer.parseInt(s, radix); in parseByte()
DPackage.java239 si[i] = Integer.parseInt(sa[i]); in isCompatibleWith()
247 di[i] = Integer.parseInt(da[i]); in isCompatibleWith()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java110 sqlMaxConnections = Integer.parseInt(properties in loadProperties()
112 sqlMaxTasks = Integer.parseInt(properties.getProperty("sqlMaxTasks")); in loadProperties()
/libcore/ojluni/src/main/java/sun/net/
DResourceManager.java62 defmax = Integer.parseInt(prop);
/libcore/ojluni/src/main/java/java/util/prefs/
DBase64.java240 int numRuns = Integer.parseInt(args[0]); in main()
241 int numBytes = Integer.parseInt(args[1]); in main()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DInteger.java88 public static int parseInt(java.lang.String s, int radix) in parseInt() method in Integer
93 public static int parseInt(java.lang.String s) throws java.lang.NumberFormatException { in parseInt() method in Integer
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DInteger.annotated.java52 public static int parseInt(@libcore.util.NonNull java.lang.String s, int radix) throws java.lang.Nu… in parseInt() method in Integer
54 public static int parseInt(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatE… in parseInt() method in Integer
/libcore/ojluni/src/main/java/java/net/
DURLDecoder.java181 int v = Integer.parseInt(s.substring(i+1,i+3),16); in decode()
DCookieManager.java390 val = Integer.parseInt(lst.substring(0, i)); in isInPortList()
401 val = Integer.parseInt(lst); in isInPortList()
DURLStreamHandler.java225 port = Integer.parseInt(nhost.substring(ind+1)); in parseURL()
246 port = Integer.parseInt(host.substring(ind + 1)); in parseURL()
DHttpURLConnection.java729 responseCode = Integer.parseInt in getResponseCode()
/libcore/ojluni/src/main/java/java/math/
DMathContext.java191 setPrecision = Integer.parseInt(val.substring(10, fence)); in MathContext()
/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java161 return Integer.parseInt(propValue); in getDefaultThreadPoolInitialSize()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java638 hour = Integer.parseInt(m.group(1)); in getCustomTimeZone()
640 minute = Integer.parseInt(m.group(3)); in getCustomTimeZone()
/libcore/ojluni/src/main/java/java/util/logging/
DLevel.java364 int x = Integer.parseInt(name); in findLevel()
464 int x = Integer.parseInt(name); in parse()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixUserPrincipals.java153 id = Integer.parseInt(name); in lookupName()
/libcore/ojluni/src/main/java/sun/net/www/
DURLConnection.java205 l = Integer.parseInt(properties.findValue("content-length")); in getContentLength()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java264 now.set(Calendar.HOUR, Integer.parseInt(time.substring(0, c))); in parseLine()
265 now.set(Calendar.MINUTE, Integer.parseInt(time.substring(c + 1))); in parseLine()
441 code = Integer.parseInt(response.substring(0, 3)); in readServerResponse()
606 port = Integer.parseInt(s); in openPassiveDataConnection()
642 port = Integer.parseInt(m.group(3)) + (Integer.parseInt(m.group(2)) << 8); in openPassiveDataConnection()

123