Searched refs:parseIntWithBase (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ParseUtilsTest.java | 48 assertEquals(1, ParseUtils.parseIntWithBase(null, 10, 1)); in testParseIntWithBase() 49 assertEquals(1, ParseUtils.parseIntWithBase("", 10, 1)); in testParseIntWithBase() 50 assertEquals(1, ParseUtils.parseIntWithBase("1x", 10, 1)); in testParseIntWithBase() 51 assertEquals(2, ParseUtils.parseIntWithBase("2", 10, 1)); in testParseIntWithBase() 52 assertEquals(10, ParseUtils.parseIntWithBase("10", 10, 1)); in testParseIntWithBase() 53 assertEquals(3, ParseUtils.parseIntWithBase("10", 3, 1)); in testParseIntWithBase() 55 assertEquals(3, ParseUtils.parseIntWithBase("+10", 3, 1)); in testParseIntWithBase() 56 assertEquals(-3, ParseUtils.parseIntWithBase("-10", 3, 1)); in testParseIntWithBase()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ParseUtils.java | 33 return parseIntWithBase(value, 10, defValue); in parseInt() 37 public static int parseIntWithBase(@Nullable String value, int base, int defValue) { in parseIntWithBase() method in ParseUtils
|
D | DumpUtils.java | 316 final int id = ParseUtils.parseIntWithBase(filterString, 16, -1); in filterRecord()
|