Searched refs:parseInt32 (Results 1 – 4 of 4) sorted by relevance
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | TextFormatTest.java | 688 assertEquals(0, TextFormat.parseInt32("0")); in testParseInteger() 689 assertEquals(1, TextFormat.parseInt32("1")); in testParseInteger() 690 assertEquals(-1, TextFormat.parseInt32("-1")); in testParseInteger() 691 assertEquals(12345, TextFormat.parseInt32("12345")); in testParseInteger() 692 assertEquals(-12345, TextFormat.parseInt32("-12345")); in testParseInteger() 693 assertEquals(2147483647, TextFormat.parseInt32("2147483647")); in testParseInteger() 694 assertEquals(-2147483648, TextFormat.parseInt32("-2147483648")); in testParseInteger() 726 assertEquals(0x1234abcd, TextFormat.parseInt32("0x1234abcd")); in testParseInteger() 727 assertEquals(-0x1234abcd, TextFormat.parseInt32("-0x1234abcd")); in testParseInteger() 732 assertEquals(01234567, TextFormat.parseInt32("01234567")); in testParseInteger() [all …]
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | JsonFormat.java | 1655 private int parseInt32(JsonElement json) throws InvalidProtocolBufferException { in parseInt32() method in JsonFormat.ParserImpl 1827 int numericValue = parseInt32(json); in parseEnum() 1867 return parseInt32(json); in parseFieldValue()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | TextFormat.java | 927 final int result = parseInt32(currentToken); in consumeInt32() 2207 static int parseInt32(final String text) throws NumberFormatException { in parseInt32() method in TextFormat
|
D | Descriptors.java | 1461 defaultValue = TextFormat.parseInt32(proto.getDefaultValue()); in crossLink()
|