Home
last modified time | relevance | path

Searched refs:symbols (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatSymbolsTest.java99 DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(locale); in test_getInstanceLjava_util_Locale() local
100 assertNotNull(symbols); in test_getInstanceLjava_util_Locale()
457 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); in test_serialization() local
458 Currency currency = symbols.getCurrency(); in test_serialization()
464 objectOStream.writeObject(symbols); in test_serialization()
539 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US); in testSerializationCompatibility() local
540 symbols.setExponentSeparator("EE"); in testSerializationCompatibility()
541 symbols.setNaN("NaN"); in testSerializationCompatibility()
542 SerializationTest.verifyGolden(this, symbols); in testSerializationCompatibility()
549 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ITALIAN); in testSerializationSelf() local
[all …]
DDateFormatSymbolsTest.java87 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in test_getInstanceLjava_util_Locale() local
88 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), symbols); in test_getInstanceLjava_util_Locale() local
96 DateFormatSymbols symbols = new DateFormatSymbols(); in test_clone() local
97 DateFormatSymbols clone = (DateFormatSymbols) symbols.clone(); in test_clone()
98 assertTrue("Not equal", symbols.equals(clone)); in test_clone()
404 DateFormatSymbols symbols = new DateFormatSymbols(Locale.FRANCE); in test_serialization() local
405 String[][] zoneStrings = symbols.getZoneStrings(); in test_serialization()
411 objectOStream.writeObject(symbols); in test_serialization()
421 assertEquals(symbols, symbolsD); in test_serialization()
DSimpleDateFormatTest.java85 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() local
86 symbols.setEras(new String[] { "Before", "After" }); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
87 SimpleDateFormat f2 = new SimpleDateFormat("y'y'yy", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
90 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(symbols)); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
94 new SimpleDateFormat(null, symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
100 new SimpleDateFormat("eee", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
227 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_hashCode() local
228 symbols.setEras(new String[] { "Before", "After" }); in test_hashCode()
229 SimpleDateFormat format2 = new SimpleDateFormat("y'y'yy", symbols); in test_hashCode()
856 DateFormatSymbols symbols = new DateFormatSymbols(); in test_setDateFormatSymbolsLjava_text_DateFormatSymbols() local
[all …]
DDecimalFormatTest.java144 DecimalFormatSymbols symbols = new DecimalFormatSymbols(); in test_parse_returnType() local
145 number = form.parse(symbols.getNaN(), new ParsePosition(0)); in test_parse_returnType()
153 symbols = new DecimalFormatSymbols(); in test_parse_returnType()
154 number = form.parse(symbols.getInfinity(), new ParsePosition(0)); in test_parse_returnType()
202 symbols = new DecimalFormatSymbols(); in test_parse_returnType()
203 number = form.parse(symbols.getNaN() + "", new ParsePosition(0)); in test_parse_returnType()
207 number = form.parse(symbols.getNaN() + "", new ParsePosition(0)); in test_parse_returnType()
214 symbols = new DecimalFormatSymbols(); in test_parse_returnType()
216 number = form.parse(symbols.getInfinity(), new ParsePosition(0)); in test_parse_returnType()
223 symbols = new DecimalFormatSymbols(); in test_parse_returnType()
[all …]
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java422 this.symbols = DecimalFormatSymbols.getInstance(def); in DecimalFormat()
450 this.symbols = DecimalFormatSymbols.getInstance(Locale.getDefault(Locale.Category.FORMAT)); in DecimalFormat()
478 public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { in DecimalFormat() argument
480 this.symbols = (DecimalFormatSymbols)symbols.clone(); in DecimalFormat()
493 symbols.getIcuDecimalFormatSymbols()); in initPattern()
2655 symbols = (DecimalFormatSymbols) newSymbols.clone(); in setDecimalFormatSymbols()
2661 icuDecimalFormat.setDecimalFormatSymbols(symbols.getIcuDecimalFormatSymbols()); in setDecimalFormatSymbols()
3088 other.symbols = (DecimalFormatSymbols) symbols.clone(); in clone()
4073 return symbols.getCurrency(); in getCurrency()
4101 if (currency != symbols.getCurrency() in setCurrency()
[all …]
DNumberFormat.java846 DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(desiredLocale); in getInstance() local
848 DecimalFormat numberFormat = new DecimalFormat(numberPatterns[entry], symbols); in getInstance()
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatSymbolsTest.java55 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); in test_RIHarmony_compatible() local
56 assertEquals(symbols, riSymbols); in test_RIHarmony_compatible()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java798 DateFormatSymbols symbols = new DateFormatSymbols(locale); in test_getDisplayNameIILjava_util_Locale() local
803 value = symbols.getAmPmStrings()[0]; in test_getDisplayNameIILjava_util_Locale()
809 value = symbols.getAmPmStrings()[1]; in test_getDisplayNameIILjava_util_Locale()
817 value = symbols.getEras()[0]; in test_getDisplayNameIILjava_util_Locale()
823 value = symbols.getEras()[1]; in test_getDisplayNameIILjava_util_Locale()
833 value = symbols.getShortMonths()[month]; in test_getDisplayNameIILjava_util_Locale()
836 value = symbols.getMonths()[month]; in test_getDisplayNameIILjava_util_Locale()
844 value = symbols.getShortWeekdays()[day]; in test_getDisplayNameIILjava_util_Locale()
847 value = symbols.getWeekdays()[day]; in test_getDisplayNameIILjava_util_Locale()
962 DateFormatSymbols symbols = new DateFormatSymbols(locale); in test_getDisplayNamesIILjava_util_Locale() local
[all …]
/libcore/ojluni/src/main/java/java/util/
DCalendar.java2100 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayName() local
2101 String[] strings = getFieldStrings(field, style, symbols); in getDisplayName()
2190 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayNamesImpl() local
2191 String[] strings = getFieldStrings(field, style, symbols); in getDisplayNamesImpl()
2224 private String[] getFieldStrings(int field, int style, DateFormatSymbols symbols) { in getFieldStrings() argument
2235 strings = symbols.getEras(); in getFieldStrings()
2239 strings = (baseStyle == LONG) ? symbols.getMonths() : symbols.getShortMonths(); in getFieldStrings()
2243 strings = (baseStyle == LONG) ? symbols.getWeekdays() : symbols.getShortWeekdays(); in getFieldStrings()
2247 strings = symbols.getAmPmStrings(); in getFieldStrings()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java174 int field, int style, java.text.DateFormatSymbols symbols) { in getFieldStrings() argument