Home
last modified time | relevance | path

Searched refs:Format (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DOldFormatTest.java22 import java.text.Format;
29 private class MockFormat extends Format {
55 Format fm = new MockFormat(); in test_clone()
56 Format fmc = (Format) fm.clone(); in test_clone()
DOldFormatFieldTest.java20 import java.text.Format;
24 private class MockFormatField extends Format.Field {
/libcore/luni/src/main/java/java/text/
DFieldPosition.java37 private Format.Field attribute;
49 public FieldPosition(Format.Field attribute) { in FieldPosition()
57 public FieldPosition(Format.Field attribute, int field) { in FieldPosition()
100 public Format.Field getFieldAttribute() { in getFieldAttribute()
DMessageFormat.java332 public class MessageFormat extends Format {
342 private Format[] formats;
393 ArrayList<Format> localFormats = new ArrayList<Format>(); in applyPattern()
395 if (Format.upTo(template, position, buffer, '{')) { in applyPattern()
432 this.formats = localFormats.toArray(new Format[argCount]); in applyPattern()
447 Format[] array = new Format[formats.length]; in clone()
450 array[i] = (Format) formats[i].clone(); in clone()
569 Format format = formats[i]; in formatImpl()
651 private void handleFormat(Format format, Object arg, int begin, List<FieldContainer> fields) { in handleFormat()
733 public Format[] getFormats() { in getFormats()
[all …]
DFormat.java57 public abstract class Format implements Serializable, Cloneable { class
64 protected Format() { in Format() method in Format
DDateFormat.java64 public abstract class DateFormat extends Format {
690 public static class Field extends Format.Field {
DNumberFormat.java142 public abstract class NumberFormat extends Format {
762 public static class Field extends Format.Field {
DSimpleDateFormat.java481 Format.Field attribute = pos.getFieldAttribute(); in formatToCharacterIteratorImpl()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java30 import java.text.Format;
123 Format[] formats = f1.getFormats(); in test_setFormatILjava_text_Format()
126 Format[] correctFormats = new Format[] { in test_setFormatILjava_text_Format()
227 Format[] correctFormats = new Format[] { in test_setFormats$Ljava_text_Format()
236 Format[] formats = f1.getFormats(); in test_setFormats$Ljava_text_Format()
319 Format[] formats = format.getFormats(); in test_ConstructorLjava_lang_String()
533 Format[] formats = clone.getFormats(); in test_clone()
609 Format[] formats = format1.getFormats(); in test_getFormats()
610 Format[] correctFormats = new Format[] { in test_getFormats()
625 correctFormats = new Format[] { NumberFormat.getCurrencyInstance(), in test_getFormats()
[all …]
DSupport_Format.java22 import java.text.Format;
37 protected void t_FormatWithField(int count, Format format, Object object, in t_FormatWithField()
38 String text, Format.Field field, int begin, int end) { in t_FormatWithField()
58 …protected void t_Format(int count, Object object, Format format, Vector<FieldContainer> expectedRe… in t_Format()
/libcore/support/src/test/java/tests/support/
DSupport_Format.java22 import java.text.Format;
36 protected void t_FormatWithField(int count, Format format, Object object, in t_FormatWithField()
37 String text, Format.Field field, int begin, int end) { in t_FormatWithField()
59 protected void t_Format(int count, Object object, Format format, in t_Format()
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java26 import java.text.Format;
97 private static final Format.Field[] ICU4C_FIELD_IDS = {
121 Format.Field attr = fp.getFieldAttribute(); in translateFieldId()
368 Format.Field field = fpIter.field(); in formatToCharacterIterator()
599 public Format.Field field() { in field()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java238 objToSave = new java.text.Format() { in test_writeObject_Format()
253 if (!(obj instanceof java.text.Format)) in test_writeObject_Format()
255 return save.equals(((java.text.Format) obj).parseObject( in test_writeObject_Format()
260 ((java.text.Format) objToSave).parseObject("Test", null); in test_writeObject_Format()