/libcore/luni/src/test/java/libcore/java/text/ |
D | OldParsePositionTest.java | 19 import java.text.ParsePosition; 23 ParsePosition pp = new ParsePosition(Integer.MAX_VALUE); 27 ParsePosition pp1 = new ParsePosition(0); in test_hashCode() 28 ParsePosition pp2 = new ParsePosition(0); in test_hashCode()
|
D | OldFormatTest.java | 24 import java.text.ParsePosition; 39 public Object parseObject(String source, ParsePosition pos) { in parseObject()
|
D | OldNumberFormatTest.java | 24 import java.text.ParsePosition; 108 new ParsePosition(-1))); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 111 new ParsePosition(1), new Double(23.123), 7, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 114 new ParsePosition(3), new Double(0.123), 7, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 117 new ParsePosition(3), new Double(123.123), 10, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 120 new ParsePosition(0), null, 0, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 124 new ParsePosition(3), new Long(123), 6, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 128 new ParsePosition(1), new Double(-123123.123), 13, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 131 new ParsePosition(0), null, 0, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 134 new ParsePosition(13), null, 13, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | NumberFormatTest.java | 24 import java.text.ParsePosition; 57 public Number parse(String string, ParsePosition p) { in test_small_BigInteger_gets_longValue()
|
D | SimpleDateFormatTest.java | 20 import java.text.ParsePosition; 187 ParsePosition pp = new ParsePosition(0); in assertCannotParse() 194 ParsePosition pp = new ParsePosition(0); in parseDate()
|
D | OldDateFormatTest.java | 22 import java.text.ParsePosition; 40 public Date parse(String source, ParsePosition pos) { in parse() 379 ParsePosition pp = new ParsePosition(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
|
D | DecimalFormatTest.java | 26 import java.text.ParsePosition; 237 df.parse(null, new ParsePosition(0)); in testBug15081434()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParsePositionTest.java | 19 import java.text.ParsePosition; 23 ParsePosition pp; 30 ParsePosition pp1 = new ParsePosition(Integer.MIN_VALUE); in test_ConstructorI() 41 ParsePosition pp2 = new ParsePosition(43); in test_equalsLjava_lang_Object() 108 pp = new ParsePosition(Integer.MAX_VALUE); in setUp()
|
D | DecimalFormatTest.java | 29 import java.text.ParsePosition; 96 Number number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 103 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 107 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 118 number = form.parse("23.1f", new ParsePosition(0)); in test_parse_returnType() 122 number = form.parse("23.0", new ParsePosition(0)); in test_parse_returnType() 125 number = form.parse("-0.0", new ParsePosition(0)); in test_parse_returnType() 130 number = form.parse("9223372036854775807.00", new ParsePosition(0)); in test_parse_returnType() 132 number = form.parse("9223372036854775808.00", new ParsePosition(0)); in test_parse_returnType() 135 number = form.parse("-9223372036854775808.00", new ParsePosition(0)); in test_parse_returnType() [all …]
|
D | ChoiceFormatTest.java | 23 import java.text.ParsePosition; 360 .parse("One", new ParsePosition(0)).intValue()); in test_parseLjava_lang_StringLjava_text_ParsePosition() 362 ParsePosition pos = new ParsePosition(0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 368 pos = new ParsePosition(0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 372 pos = new ParsePosition(2); in test_parseLjava_lang_StringLjava_text_ParsePosition()
|
D | SimpleDateFormatTest.java | 23 import java.text.ParsePosition; 707 format.parse(null, new ParsePosition(0)); in test_parseLjava_lang_StringLjava_text_ParsePosition() 715 ParsePosition position = new ParsePosition(start); in assertParse() 797 ParsePosition pp = new ParsePosition(0); in test_parse_with_spaces() 802 pp = new ParsePosition(0); in test_parse_with_spaces() 807 pp = new ParsePosition(0); in test_parse_with_spaces() 822 ParsePosition pp = new ParsePosition(0); in test_parse_with_spaces() 826 pp = new ParsePosition(0); in test_parse_with_spaces() 830 pp = new ParsePosition(0); in test_parse_with_spaces()
|
D | NumberFormatTest.java | 25 import java.text.ParsePosition; 251 assertNull(NumberFormat.getInstance().parseObject("0", new ParsePosition(-1))); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
|
D | MessageFormatTest.java | 34 import java.text.ParsePosition; 160 ParsePosition pp = new ParsePosition(0); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 839 ParsePosition pos = new ParsePosition(2); in test_parseLjava_lang_StringLjava_text_ParsePosition() 848 result = mf.parse("vm=win,foo,bar", new ParsePosition(0)); in test_parseLjava_lang_StringLjava_text_ParsePosition() 854 result = mf.parse(parse, new ParsePosition(0)); in test_parseLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/luni/src/main/java/java/text/ |
D | ParsePosition.java | 25 public class ParsePosition { class 35 public ParsePosition(int index) { in ParsePosition() method in ParsePosition 53 if (!(object instanceof ParsePosition)) { in equals() 56 ParsePosition pos = (ParsePosition) object; in equals()
|
D | Format.java | 149 ParsePosition position = new ParsePosition(0); in parseObject() 175 public abstract Object parseObject(String string, ParsePosition position); in parseObject() 177 static boolean upTo(String string, ParsePosition position, in upTo() 201 static boolean upToWithQuotes(String string, ParsePosition position, in upToWithQuotes()
|
D | SimpleDateFormat.java | 791 private Date error(ParsePosition position, int offset, TimeZone zone) { in error() 864 ParsePosition position = new ParsePosition(offset); in parse() 889 ParsePosition position = new ParsePosition(offset); in parse() 930 position = new ParsePosition(offset); in parse() 961 final ParsePosition parsePosition = new ParsePosition(offset); in parseFractionalSeconds() 1031 public Date parse(String string, ParsePosition position) { in parse() 1103 private Number parseNumber(int max, String string, ParsePosition position) { in parseNumber() 1132 ParsePosition position = new ParsePosition(offset); in parseNumber() 1183 ParsePosition position = new ParsePosition(offset + 1); in parseTimeZone()
|
D | DateFormat.java | 576 ParsePosition position = new ParsePosition(0); in parse() 608 public abstract Date parse(String string, ParsePosition position); in parse() 634 public Object parseObject(String string, ParsePosition position) { in parseObject()
|
D | MessageFormat.java | 388 ParsePosition position = new ParsePosition(0); in applyPattern() 824 ParsePosition position = new ParsePosition(0); in parse() 851 public Object[] parse(String string, ParsePosition position) { in parse() 855 ParsePosition internalPos = new ParsePosition(0); in parse() 923 public Object parseObject(String string, ParsePosition position) { in parseObject() 927 private int match(String string, ParsePosition position, boolean last, in match() 956 private Format parseVariable(String string, ParsePosition position) { in parseVariable()
|
D | NumberFormat.java | 554 ParsePosition pos = new ParsePosition(0); in parse() 580 public abstract Number parse(String string, ParsePosition position); in parse() 583 public final Object parseObject(String string, ParsePosition position) { in parseObject()
|
D | ChoiceFormat.java | 129 ParsePosition position = new ParsePosition(0); in applyPattern() 375 public Number parse(String string, ParsePosition position) { in parse()
|
D | DecimalFormat.java | 857 public Number parse(String string, ParsePosition position) { in parse()
|
/libcore/luni/src/main/java/java/sql/ |
D | Timestamp.java | 20 import java.text.ParsePosition; 418 ParsePosition pp = new ParsePosition(0); in valueOf()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativeDecimalFormat.java | 28 import java.text.ParsePosition; 395 public Number parse(String string, ParsePosition position) { in parse() 631 …private static native Number parse(long addr, String string, ParsePosition position, boolean parse… in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 246 public Object parseObject(String p1, java.text.ParsePosition p2) { in test_writeObject_Format() 610 public Date parse(String p1, java.text.ParsePosition p2) { in test_writeObject_DateFormat() 748 public Number parse(String p1, java.text.ParsePosition p2) { in test_writeObject_NumberFormat()
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeDecimalFormat.cpp | 322 ParsePosition pp(parsePos); in NativeDecimalFormat_parse()
|