/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | IntegerTest.java | 315 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/ |
D | IntegerTest.java | 55 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/ |
D | Timestamp.java | 225 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()
|
D | Time.java | 103 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()
|
D | Date.java | 133 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/ |
D | Integer.java | 566 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);
|
D | Short.java | 121 int i = Integer.parseInt(s, radix); in parseShort()
|
D | Byte.java | 155 int i = Integer.parseInt(s, radix); in parseByte()
|
D | Package.java | 239 si[i] = Integer.parseInt(sa[i]); in isCompatibleWith() 247 di[i] = Integer.parseInt(da[i]); in isCompatibleWith()
|
/libcore/luni/src/test/java/tests/support/ |
D | Support_SQL.java | 110 sqlMaxConnections = Integer.parseInt(properties in loadProperties() 112 sqlMaxTasks = Integer.parseInt(properties.getProperty("sqlMaxTasks")); in loadProperties()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ResourceManager.java | 62 defmax = Integer.parseInt(prop);
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | Base64.java | 240 int numRuns = Integer.parseInt(args[0]); in main() 241 int numBytes = Integer.parseInt(args[1]); in main()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Integer.java | 88 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/ |
D | Integer.annotated.java | 52 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/ |
D | URLDecoder.java | 181 int v = Integer.parseInt(s.substring(i+1,i+3),16); in decode()
|
D | CookieManager.java | 390 val = Integer.parseInt(lst.substring(0, i)); in isInPortList() 401 val = Integer.parseInt(lst); in isInPortList()
|
D | URLStreamHandler.java | 225 port = Integer.parseInt(nhost.substring(ind+1)); in parseURL() 246 port = Integer.parseInt(host.substring(ind + 1)); in parseURL()
|
D | HttpURLConnection.java | 729 responseCode = Integer.parseInt in getResponseCode()
|
/libcore/ojluni/src/main/java/java/math/ |
D | MathContext.java | 191 setPrecision = Integer.parseInt(val.substring(10, fence)); in MathContext()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ThreadPool.java | 161 return Integer.parseInt(propValue); in getDefaultThreadPoolInitialSize()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 638 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/ |
D | Level.java | 364 int x = Integer.parseInt(name); in findLevel() 464 int x = Integer.parseInt(name); in parse()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixUserPrincipals.java | 153 id = Integer.parseInt(name); in lookupName()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | URLConnection.java | 205 l = Integer.parseInt(properties.findValue("content-length")); in getContentLength()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 264 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()
|