Home
last modified time | relevance | path

Searched refs:FieldPosition (Results 1 – 25 of 31) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DFieldPositionTest.java20 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 …]
DNumberFormatTest.java22 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()
DChoiceFormatTest.java21 import java.text.FieldPosition;
253 FieldPosition field = new FieldPosition(0); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
271 …ls(0, new ChoiceFormat("|").format(Double.NaN, new StringBuffer(), new FieldPosition(6)).length()); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
272 …assertEquals(0, new ChoiceFormat("|").format(1, new StringBuffer(), new FieldPosition(6)).length()… in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
284 FieldPosition field = new FieldPosition(0); in test_formatJLjava_lang_StringBufferLjava_text_FieldPosition()
DSupport_Format.java21 import java.text.FieldPosition;
40 FieldPosition pos = new FieldPosition(field); in t_FormatWithField()
DDecimalFormatTest.java27 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 …]
DMessageFormatTest.java29 import java.text.FieldPosition;
336 FieldPosition pos = new FieldPosition(-1); in test_ConstructorLjava_lang_String()
561 new FieldPosition(0)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
565 new FieldPosition(MessageFormat.Field.ARGUMENT)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
572 …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()
582 new FieldPosition(MessageFormat.Field.ARGUMENT)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
589 new FieldPosition(MessageFormat.Field.ARGUMENT)); in test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
604 format.format(objects, new StringBuffer(), new FieldPosition(DateFormat.Field.AM_PM)); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/ojluni/src/main/java/java/text/
DFieldPosition.java73 public class FieldPosition { class
109 public FieldPosition(int field) { in FieldPosition() method in FieldPosition
122 public FieldPosition(Format.Field attribute) { in FieldPosition() method in FieldPosition
142 public FieldPosition(Format.Field attribute, int fieldID) { in FieldPosition() method in FieldPosition
223 if (!(obj instanceof FieldPosition)) in equals()
225 FieldPosition other = (FieldPosition) obj; in equals()
DDontCareFieldPosition.java33 class DontCareFieldPosition extends FieldPosition {
35 static final FieldPosition INSTANCE = new DontCareFieldPosition();
DDecimalFormat.java519 private static FieldPosition getIcuFieldPosition(FieldPosition fp) { in getIcuFieldPosition()
550 FieldPosition icuFieldPosition = new FieldPosition(attribute); in getIcuFieldPosition()
625 FieldPosition pos) { in format()
657 FieldPosition fieldPosition) { in format()
681 FieldPosition icuFieldPosition = getIcuFieldPosition(fieldPosition); in format()
790 FieldPosition fieldPosition) { in format()
798 FieldPosition icuFieldPosition = getIcuFieldPosition(fieldPosition); in format()
892 FieldPosition fieldPosition) { in format()
899 FieldPosition icuFieldPosition = getIcuFieldPosition(fieldPosition); in format()
960 FieldPosition fieldPosition) { in format()
[all …]
DFormat.java157 return format(obj, new StringBuffer(), new FieldPosition(0)).toString(); in format()
180 FieldPosition pos); in format()
DNumberFormat.java236 FieldPosition pos) { in format()
324 FieldPosition pos); in format()
340 FieldPosition pos); in format()
DDateFormat.java298 FieldPosition fieldPosition) in format()
332 FieldPosition fieldPosition); in format()
DChoiceFormat.java383 FieldPosition status) { in format()
394 FieldPosition status) { in format()
DMessageFormat.java826 FieldPosition pos) in format()
870 FieldPosition pos) in format()
1243FieldPosition fp, List<AttributedCharacterIterator> characterIterators) { in subformat()
/libcore/luni/src/test/java/libcore/java/text/
DOldFormatTest.java21 import java.text.FieldPosition;
32 FieldPosition pos) { in format()
DNumberFormatTest.java23 import java.text.FieldPosition;
50 public StringBuffer format(double value, StringBuffer b, FieldPosition f) { in test_small_BigInteger_gets_longValue()
54 public StringBuffer format(long value, StringBuffer b, FieldPosition f) { in test_small_BigInteger_gets_longValue()
DOldDateFormatTest.java20 import java.text.FieldPosition;
47 FieldPosition fieldPosition) { in format()
115 FieldPosition fp = new FieldPosition(DateFormat.YEAR_FIELD); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
DOldNumberFormatTest.java21 import java.text.FieldPosition;
817 FieldPosition pos) { in format()
828 FieldPosition pos) { in format()
/libcore/support/src/test/java/tests/support/
DSupport_Format.java21 import java.text.FieldPosition;
39 FieldPosition pos = new FieldPosition(field); in t_FormatWithField()
/libcore/luni/src/main/java/libcore/icu/
DDateIntervalFormat.java23 import java.text.FieldPosition;
88 new FieldPosition(0)).toString(); in formatDateRange()
/libcore/ojluni/annotations/hiddenapi/java/text/
DNumberFormat.java54 java.text.FieldPosition pos) { in format()
72 double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos); in format()
75 long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos); in format()
DDateFormat.java54 java.text.FieldPosition fieldPosition) { in format()
61 java.text.FieldPosition fieldPosition); in format()
/libcore/ojluni/annotations/sdk/nullability/java/text/
DNumberFormat.annotated.java54 …ll java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition pos) { throw n… in format()
62 …util.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition pos); in format()
64 …util.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition pos); in format()
DDateFormat.annotated.java54 …ll java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition fieldPosition)… in format()
56 …ll java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition fieldPosition); in format()
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java54 …at(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)… in format()
56 …mat(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition); in format()

12