Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/text/
DDecimalFormat.java508 private transient DecimalFormatSymbols symbols; field in DecimalFormat
521 this.symbols = new DecimalFormatSymbols(locale); in DecimalFormat()
550 this.symbols = (DecimalFormatSymbols) value.clone(); in DecimalFormat()
556 this.symbols = new DecimalFormatSymbols(locale); in DecimalFormat()
562 this.ndf = new NativeDecimalFormat(pattern, symbols); in initNative()
618 clone.symbols = (DecimalFormatSymbols) symbols.clone(); in clone()
715 return (DecimalFormatSymbols) symbols.clone(); in getDecimalFormatSymbols()
726 return symbols.getCurrency(); in getCurrency()
892 this.symbols = (DecimalFormatSymbols) value.clone(); in setDecimalFormatSymbols()
893 ndf.setDecimalFormatSymbols(this.symbols); in setDecimalFormatSymbols()
[all …]
/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.java91 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() local
92 symbols.setEras(new String[] { "Before", "After" }); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
93 SimpleDateFormat f2 = new SimpleDateFormat("y'y'yy", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
96 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(symbols)); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
100 new SimpleDateFormat(null, symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
106 new SimpleDateFormat("eee", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
233 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_hashCode() local
234 symbols.setEras(new String[] { "Before", "After" }); in test_hashCode()
235 SimpleDateFormat format2 = new SimpleDateFormat("y'y'yy", symbols); in test_hashCode()
750 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/luni/src/test/java/libcore/java/text/
DOldDecimalFormatSymbolsTest.java36 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); in test_RIHarmony_compatible() local
47 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/luni/src/main/native/
Dlibcore_icu_NativeDecimalFormat.cpp101 DecimalFormatSymbols* symbols = makeDecimalFormatSymbols(env, in NativeDecimalFormat_setDecimalFormatSymbols() local
106 toDecimalFormat(addr)->adoptDecimalFormatSymbols(symbols); in NativeDecimalFormat_setDecimalFormatSymbols()
121 DecimalFormatSymbols* symbols = makeDecimalFormatSymbols(env, in NativeDecimalFormat_open() local
126 DecimalFormat* fmt = new DecimalFormat(pattern.unicodeString(), symbols, parseError, status); in NativeDecimalFormat_open()
128 delete symbols; in NativeDecimalFormat_open()
/libcore/luni/src/main/java/java/util/
DDate.java501 DateFormatSymbols symbols = new DateFormatSymbols(Locale.US); in parse() local
502 String[] weekdays = symbols.getWeekdays(), months = symbols in parse()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest.java183 java.text.DateFormatSymbols symbols = new java.text.DateFormatSymbols();
184 symbols.setZoneStrings(new String[][] { { "a", "b", "c", "d", "e" }, in symbols.setZoneStrings()
186 ((java.text.SimpleDateFormat) DATEFORM).setDateFormatSymbols(symbols); in setDateFormatSymbols() argument