Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/text/
DFieldPosition.java97 private Format.Field attribute;
123 public FieldPosition(Format.Field attribute) { in FieldPosition()
143 public FieldPosition(Format.Field attribute, int fieldID) { in FieldPosition()
156 public Format.Field getFieldAttribute() { in getFieldAttribute()
214 Format.FieldDelegate getFieldDelegate() { in getFieldDelegate()
263 private boolean matchesField(Format.Field attribute) { in matchesField()
275 private boolean matchesField(Format.Field attribute, int field) { in matchesField()
288 private class Delegate implements Format.FieldDelegate {
296 public void formatted(Format.Field attr, Object value, int start, in formatted()
305 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
DDontCareFieldPosition.java37 private final Format.FieldDelegate noDelegate = new Format.FieldDelegate() {
38 public void formatted(Format.Field attr, Object value, int start,
41 public void formatted(int fieldID, Format.Field attr, Object value,
50 Format.FieldDelegate getFieldDelegate() { in getFieldDelegate()
DMessageFormat.java351 public class MessageFormat extends Format {
543 Format fmt = formats[i]; in toPattern()
621 public void setFormatsByArgumentIndex(Format[] newFormats) { in setFormatsByArgumentIndex()
652 public void setFormats(Format[] newFormats) { in setFormats()
680 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex()
705 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat()
732 public Format[] getFormatsByArgumentIndex() { in getFormatsByArgumentIndex()
739 Format[] resultArray = new Format[maximumArgumentNumber + 1]; in getFormatsByArgumentIndex()
762 public Format[] getFormats() { in getFormats()
763 Format[] resultArray = new Format[maxOffset + 1]; in getFormats()
[all …]
DFormat.java134 public abstract class Format implements Serializable, Cloneable { class
143 protected Format() { in Format() method in Format
393 public void formatted(Format.Field attr, Object value, int start, in formatted()
407 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
DCharacterIteratorFieldDelegate.java36 class CharacterIteratorFieldDelegate implements Format.FieldDelegate {
56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted()
95 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java30 …BOOLEAN( Boolean.class, "Boolean", boolean.class, "boolean", 'Z', new boolean[0], Format.unsign…
33 …BYTE ( Byte.class, "Byte", byte.class, "byte", 'B', new byte[0], Format.signed…
34 …SHORT ( Short.class, "Short", short.class, "short", 'S', new short[0], Format.signed…
35 …CHAR (Character.class, "Character", char.class, "char", 'C', new char[0], Format.unsign…
36 …INT ( Integer.class, "Integer", int.class, "int", 'I', new int[0], Format.signed…
37 …LONG ( Long.class, "Long", long.class, "long", 'J', new long[0], Format.signed…
38 …FLOAT ( Float.class, "Float", float.class, "float", 'F', new float[0], Format.floati…
39 …DOUBLE ( Double.class, "Double", double.class, "double", 'D', new double[0], Format.floati…
40 …OBJECT ( Object.class, "Object", Object.class, "Object", 'L', new Object[0], Format.other(…
42 …VOID ( Void.class, "Void", void.class, "void", 'V', null, Format.other(…
[all …]
/libcore/ojluni/src/test/java/text/Format/MessageFormat/
DMessageFormatsByArgumentIndex.java30 package test.java.text.Format.MessageFormat;
33 import java.text.Format;
42 Format[] subformats; in main()
101 private static void checkSubformatLength(Format[] subformats, int expected) { in checkSubformatLength()
107 private static void checkSubformat(Format[] subformats, int index, Format expected) { in checkSubformat()
108 Format subformat = subformats[index]; in checkSubformat()
DBug6481179.java30 package test.java.text.Format.MessageFormat;
DBug7003643.java31 package test.java.text.Format.MessageFormat;
Dbug4492719.java32 package test.java.text.Format.MessageFormat;
/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/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()
231 Format[] correctFormats = new Format[] { in test_setFormats$Ljava_text_Format()
240 Format[] formats = f1.getFormats(); in test_setFormats$Ljava_text_Format()
323 Format[] formats = format.getFormats(); in test_ConstructorLjava_lang_String()
537 Format[] formats = clone.getFormats(); in test_clone()
613 Format[] formats = format1.getFormats(); in test_getFormats()
614 Format[] correctFormats = new Format[] { in test_getFormats()
629 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/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java73 import java.text.Format;
759 Format format = test.toFormat(); in test_toFormat_format()
767 Format format = test.toFormat(); in test_toFormat_format_null()
774 Format format = test.toFormat(); in test_toFormat_format_notTemporal()
782 Format format = test.toFormat(); in test_toFormat_parseObject_String()
791 Format format = test.toFormat(); in test_toFormat_parseObject_String_parseError()
804 Format format = test.toFormat(); in test_toFormat_parseObject_String_parseErrorLongText()
818 Format format = test.toFormat(); in test_toFormat_parseObject_String_null()
826 Format format = test.toFormat(); in test_toFormat_parseObject_StringParsePosition()
838 Format format = test.toFormat(); in test_toFormat_parseObject_StringParsePosition_parseError()
[all …]
/libcore/ojluni/src/test/java/text/Format/DecimalFormat/
DGoldenFormattedValues.java24 package test.java.text.Format.DecimalFormat;
DSetGroupingSizeTest.java32 package test.java.text.Format.DecimalFormat;
DBug8165466.java32 package test.java.text.Format.DecimalFormat;
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DDFSDeserialization142.java29 package test.java.text.Format.NumberFormat;
DDFSSerialization142.java30 package test.java.text.Format.NumberFormat;
DSerializationSaveTest.java30 package test.java.text.Format.NumberFormat.SerializationSaveTest;
DDFSExponential.java33 package test.java.text.Format.NumberFormat;
DSerializationLoadTest.java34 package test.java.text.Format.NumberFormat.SerializationLoadTest;
/libcore/ojluni/src/test/java/text/Format/ChoiceFormat/
DBug4387255.java30 package test.java.text.Format.ChoiceFormat;

12