/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | FieldPositionTest.java | 20 import java.text.FieldPosition; 29 FieldPosition fpos = new FieldPosition(DateFormat.MONTH_FIELD); in test_ConstructorI() 41 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH); in test_ConstructorLjava_text_Format$Field() 53 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH, in test_ConstructorLjava_text_Format$FieldI() 61 FieldPosition fpos2 = new FieldPosition(DateFormat.Field.HOUR1, in test_ConstructorLjava_text_Format$FieldI() 68 FieldPosition fpos3 = new FieldPosition(DateFormat.Field.TIME_ZONE, in test_ConstructorLjava_text_Format$FieldI() 82 FieldPosition fpos = new FieldPosition(1); in test_equalsLjava_lang_Object() 83 FieldPosition fpos1 = new FieldPosition(1); in test_equalsLjava_lang_Object() 86 FieldPosition fpos2 = new FieldPosition(2); in test_equalsLjava_lang_Object() 99 FieldPosition fpos3 = new FieldPosition(DateFormat.Field.ERA, 1); in test_equalsLjava_lang_Object() [all …]
|
D | NumberFormatTest.java | 22 import java.text.FieldPosition; 36 FieldPosition pos; in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 41 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 46 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 51 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 57 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 64 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 71 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 78 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 83 pos = new FieldPosition(0); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
|
D | Support_Format.java | 21 import java.text.FieldPosition; 40 FieldPosition pos = new FieldPosition(field); in t_FormatWithField()
|
D | ChoiceFormatTest.java | 21 import java.text.FieldPosition; 251 FieldPosition field = new FieldPosition(0); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() 269 …ls(0, new ChoiceFormat("|").format(Double.NaN, new StringBuffer(), new FieldPosition(6)).length()); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() 270 …assertEquals(0, new ChoiceFormat("|").format(1, new StringBuffer(), new FieldPosition(6)).length()… in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() 282 FieldPosition field = new FieldPosition(0); in test_formatJLjava_lang_StringBufferLjava_text_FieldPosition()
|
D | DecimalFormatTest.java | 27 import java.text.FieldPosition; 523 form.format(new Object(), new StringBuffer(), new FieldPosition(0)); in test_formatObject_errorCases() 529 form.format(null, new StringBuffer(), new FieldPosition(0)); in test_formatObject_errorCases() 538 form.format(new Double(1.9), null, new FieldPosition(0)); in test_formatObject_errorCases() 552 form.format(new Object(), new StringBuffer(), new FieldPosition(0)); in test_formatObject_errorCases() 562 FieldPosition pos = new FieldPosition(0); in test_formatObject() 567 pos = new FieldPosition(0); in test_formatObject() 572 pos = new FieldPosition(0); in test_formatObject() 578 pos = new FieldPosition(0); in test_formatObject() 585 pos = new FieldPosition(0); in test_formatObject() [all …]
|
D | MessageFormatTest.java | 29 import java.text.FieldPosition; 333 FieldPosition pos = new FieldPosition(-1); in test_ConstructorLjava_lang_String() 558 new FieldPosition(0)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 562 new FieldPosition(MessageFormat.Field.ARGUMENT)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 569 …format.format(new Object[] { new Double(1.6), new Integer(3), date }, buffer, new FieldPosition(Me… in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 579 new FieldPosition(MessageFormat.Field.ARGUMENT)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 586 new FieldPosition(MessageFormat.Field.ARGUMENT)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 601 format.format(objects, new StringBuffer(), new FieldPosition(DateFormat.Field.AM_PM)); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
|
D | SimpleDateFormatTest.java | 21 import java.text.FieldPosition; 393 dateFormat.format(null, new StringBuffer(), new FieldPosition(1)); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 401 FieldPosition position = new FieldPosition(field); in assertFormat()
|
/libcore/luni/src/main/java/java/text/ |
D | FieldPosition.java | 32 public class FieldPosition { class 42 public FieldPosition(int field) { in FieldPosition() method in FieldPosition 49 public FieldPosition(Format.Field attribute) { in FieldPosition() method in FieldPosition 57 public FieldPosition(Format.Field attribute, int field) { in FieldPosition() method in FieldPosition 68 if (!(object instanceof FieldPosition)) { in equals() 71 FieldPosition pos = (FieldPosition) object; in equals()
|
D | Format.java | 93 return format(object, new StringBuffer(), new FieldPosition(0)) in format() 118 FieldPosition field); in format()
|
D | NumberFormat.java | 213 return format(value, new StringBuffer(), new FieldPosition(0)).toString(); in format() 235 public abstract StringBuffer format(double value, StringBuffer buffer, FieldPosition field); in format() 245 return format(value, new StringBuffer(), new FieldPosition(0)).toString(); in format() 267 public abstract StringBuffer format(long value, StringBuffer buffer, FieldPosition field); in format() 294 public StringBuffer format(Object object, StringBuffer buffer, FieldPosition field) { in format()
|
D | SimpleDateFormat.java | 471 ArrayList<FieldPosition> fields = new ArrayList<FieldPosition>(); in formatToCharacterIteratorImpl() 480 for (FieldPosition pos : fields) { in formatToCharacterIteratorImpl() 515 FieldPosition field, List<FieldPosition> fields) { in formatImpl() 567 private void append(StringBuffer buffer, FieldPosition position, in append() 568 List<FieldPosition> fields, char format, int count) { in append() 680 position = new FieldPosition(dateFormatField); in append() 773 FieldPosition p = new FieldPosition(0); in appendMilliseconds() 787 numberFormat.format(Integer.valueOf(value), buffer, new FieldPosition(0)); in appendNumber() 818 public StringBuffer format(Date date, StringBuffer buffer, FieldPosition fieldPos) { in format()
|
D | DateFormat.java | 296 public final StringBuffer format(Object object, StringBuffer buffer, FieldPosition field) { in format() 314 return format(date, new StringBuffer(), new FieldPosition(0)).toString(); in format() 335 public abstract StringBuffer format(Date date, StringBuffer buffer, FieldPosition field); in format()
|
D | DecimalFormat.java | 668 private void checkBufferAndFieldPosition(StringBuffer buffer, FieldPosition position) { in checkBufferAndFieldPosition() 678 public StringBuffer format(double value, StringBuffer buffer, FieldPosition position) { in format() 685 public StringBuffer format(long value, StringBuffer buffer, FieldPosition position) { in format() 692 public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) { in format()
|
D | MessageFormat.java | 516 formatImpl((Object[]) object, buffer, new FieldPosition(0), fields); in formatToCharacterIterator() 549 FieldPosition field) { in format() 554 FieldPosition position, List<FieldContainer> fields) { in formatImpl() 555 FieldPosition passedField = new FieldPosition(0); in formatImpl() 607 FieldPosition position, List<FieldContainer> fields) { in handleArgumentField() 701 FieldPosition field) { in format()
|
D | ChoiceFormat.java | 239 FieldPosition field) { in format() 263 FieldPosition field) { in format()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldFormatTest.java | 21 import java.text.FieldPosition; 32 FieldPosition pos) { in format()
|
D | NumberFormatTest.java | 22 import java.text.FieldPosition; 49 public StringBuffer format(double value, StringBuffer b, FieldPosition f) { in test_small_BigInteger_gets_longValue() 53 public StringBuffer format(long value, StringBuffer b, FieldPosition f) { in test_small_BigInteger_gets_longValue()
|
D | OldDateFormatTest.java | 20 import java.text.FieldPosition; 47 FieldPosition fieldPosition) { in format() 111 FieldPosition fp = new FieldPosition(DateFormat.YEAR_FIELD); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
|
D | DecimalFormatTest.java | 24 import java.text.FieldPosition; 231 df.format(null, new StringBuffer(), new FieldPosition(0)); in testBug15081434()
|
D | OldNumberFormatTest.java | 21 import java.text.FieldPosition; 813 FieldPosition pos) { in format() 824 FieldPosition pos) { in format()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Format.java | 21 import java.text.FieldPosition; 39 FieldPosition pos = new FieldPosition(field); in t_FormatWithField()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativeDecimalFormat.java | 25 import java.text.FieldPosition; 115 private static int translateFieldId(FieldPosition fp) { in translateFieldId() 283 public char[] formatBigDecimal(BigDecimal value, FieldPosition field) { in formatBigDecimal() 292 public char[] formatBigInteger(BigInteger value, FieldPosition field) { in formatBigInteger() 301 public char[] formatLong(long value, FieldPosition field) { in formatLong() 310 public char[] formatDouble(double value, FieldPosition field) { in formatDouble() 319 private static void updateFieldPosition(FieldPosition fp, FieldPositionIterator fpi) { in updateFieldPosition() 583 public static FieldPositionIterator forFieldPosition(FieldPosition fp) { in forFieldPosition()
|
/libcore/luni/src/main/native/ |
D | libcore_icu_DateIntervalFormat.cpp | 62 FieldPosition pos = 0; in DateIntervalFormat_formatDateInterval()
|
D | libcore_icu_NativeDecimalFormat.cpp | 229 FieldPosition fp; in formatResult()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 242 java.text.FieldPosition p3) { in test_writeObject_Format() 604 java.text.FieldPosition p3) { in test_writeObject_DateFormat() 737 java.text.FieldPosition p3) { in test_writeObject_NumberFormat() 742 java.text.FieldPosition p3) { in test_writeObject_NumberFormat()
|