/libcore/luni/src/test/java/libcore/java/text/ |
D | DateFormatSymbolsTest.java | 23 import java.text.DateFormatSymbols; 33 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); in assertLocaleIsEquivalentToRoot() 34 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs); in assertLocaleIsEquivalentToRoot() 55 DateFormatSymbols originalDfs = new DateFormatSymbols(pl); in testSerialization() 64 DateFormatSymbols deserializedDfs = (DateFormatSymbols) in.readObject(); in testSerialization() 79 private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { in formatDate() 91 … String[][] originalZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() 94 … String[][] currentZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() 100 … String[][] originalZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() 103 … String[][] currentZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DateFormatSymbolsTest.java | 23 import java.text.DateFormatSymbols; 29 private DateFormatSymbols dfs; 37 new DateFormatSymbols(); in test_Constructor() 45 new DateFormatSymbols(new Locale("en", "us")); in test_ConstructorLjava_util_Locale() 52 Locale[] locales = DateFormatSymbols.getAvailableLocales(); in test_getAvailableLocales_no_provider() 69 DateFormatSymbols.getInstance(); in test_getInstance() 70 assertEquals(new DateFormatSymbols(), DateFormatSymbols.getInstance()); in test_getInstance() 71 assertEquals(new DateFormatSymbols(Locale.getDefault()), in test_getInstance() 72 DateFormatSymbols.getInstance()); in test_getInstance() 74 assertNotSame(DateFormatSymbols.getInstance(), DateFormatSymbols.getInstance()); in test_getInstance() [all …]
|
D | DateFormatTest.java | 20 import java.text.DateFormatSymbols; 80 new DateFormatSymbols())); in test_getDateInstance() 98 new DateFormatSymbols())); in test_getDateInstanceI() 107 new DateFormatSymbols())); in test_getDateInstanceI() 116 new DateFormatSymbols())); in test_getDateInstanceI() 125 new DateFormatSymbols())); in test_getDateInstanceI() 146 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() 154 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() 162 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() 170 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() [all …]
|
D | SimpleDateFormatTest.java | 20 import java.text.DateFormatSymbols; 58 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); in test_Constructor() 68 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); in test_ConstructorLjava_lang_String() 91 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 119 new DateFormatSymbols(Locale.GERMAN))); in test_ConstructorLjava_lang_StringLjava_util_Locale() 233 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_hashCode() 521 DateFormatSymbols dfs = df.getDateFormatSymbols(); in test_getDateFormatSymbols() 750 DateFormatSymbols symbols = new DateFormatSymbols(); in test_setDateFormatSymbolsLjava_text_DateFormatSymbols() 753 DateFormatSymbols newSym = f1.getDateFormatSymbols(); in test_setDateFormatSymbolsLjava_text_DateFormatSymbols()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidLocaleTest.java | 20 import java.text.DateFormatSymbols; 51 DateFormatSymbols engSymbols = new DateFormatSymbols(eng); in testResourceBundles() 54 DateFormatSymbols deuSymbols = new DateFormatSymbols(deu); in testResourceBundles() 99 DateFormatSymbols d = new DateFormatSymbols(l); in testICULocales()
|
D | LocaleTest.java | 22 import java.text.DateFormatSymbols; 173 assertOnce(newLocale, DateFormatSymbols.getAvailableLocales()); in assertObsolete()
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 53 public class DateFormatSymbols implements Serializable, Cloneable { class 91 public DateFormatSymbols() { in DateFormatSymbols() method in DateFormatSymbols 102 public DateFormatSymbols(Locale locale) { in DateFormatSymbols() method in DateFormatSymbols 122 public static final DateFormatSymbols getInstance() { in getInstance() 134 public static final DateFormatSymbols getInstance(Locale locale) { in getInstance() 138 return new DateFormatSymbols(locale); in getInstance() 192 if (!(object instanceof DateFormatSymbols)) { in equals() 195 DateFormatSymbols rhs = (DateFormatSymbols) object; in equals() 206 private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { in timeZoneStringsEqual()
|
D | SimpleDateFormat.java | 217 private DateFormatSymbols formatData; 231 this.formatData = new DateFormatSymbols(Locale.getDefault()); in SimpleDateFormat() 333 public SimpleDateFormat(String template, DateFormatSymbols value) { in SimpleDateFormat() 337 formatData = (DateFormatSymbols) value.clone(); in SimpleDateFormat() 358 formatData = new DateFormatSymbols(locale); in SimpleDateFormat() 405 clone.formatData = (DateFormatSymbols) formatData.clone(); in clone() 836 public DateFormatSymbols getDateFormatSymbols() { in getDateFormatSymbols() 837 return (DateFormatSymbols) formatData.clone(); in getDateFormatSymbols() 1287 public void setDateFormatSymbols(DateFormatSymbols value) { in setDateFormatSymbols() 1288 formatData = (DateFormatSymbols) value.clone(); in setDateFormatSymbols() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_icu_ICU.cpp | 604 DateFormatSymbols dateFormatSym(icuLocale.locale(), status); in ICU_initLocaleDataNative() 617 dateFormatSym.getMonths(count, DateFormatSymbols::FORMAT, DateFormatSymbols::WIDE); in ICU_initLocaleDataNative() 620 dateFormatSym.getMonths(count, DateFormatSymbols::FORMAT, DateFormatSymbols::ABBREVIATED); in ICU_initLocaleDataNative() 623 dateFormatSym.getMonths(count, DateFormatSymbols::FORMAT, DateFormatSymbols::NARROW); in ICU_initLocaleDataNative() 626 dateFormatSym.getWeekdays(count, DateFormatSymbols::FORMAT, DateFormatSymbols::WIDE); in ICU_initLocaleDataNative() 629 dateFormatSym.getWeekdays(count, DateFormatSymbols::FORMAT, DateFormatSymbols::ABBREVIATED); in ICU_initLocaleDataNative() 632 dateFormatSym.getWeekdays(count, DateFormatSymbols::FORMAT, DateFormatSymbols::NARROW); in ICU_initLocaleDataNative() 636 dateFormatSym.getMonths(count, DateFormatSymbols::STANDALONE, DateFormatSymbols::WIDE); in ICU_initLocaleDataNative() 639 … dateFormatSym.getMonths(count, DateFormatSymbols::STANDALONE, DateFormatSymbols::ABBREVIATED); in ICU_initLocaleDataNative() 642 dateFormatSym.getMonths(count, DateFormatSymbols::STANDALONE, DateFormatSymbols::NARROW); in ICU_initLocaleDataNative() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ExpensiveObjectsBenchmark.java | 68 new DateFormatSymbols(Locale.US); in timeNewDateFormatSymbols() 73 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in timeClonedDateFormatSymbols()
|
/libcore/luni/src/main/java/java/util/ |
D | Calendar.java | 25 import java.text.DateFormatSymbols; 1304 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); in getDisplayNameArray()
|
D | Date.java | 25 import java.text.DateFormatSymbols; 501 DateFormatSymbols symbols = new DateFormatSymbols(Locale.US); in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 20 import java.text.DateFormatSymbols; 798 DateFormatSymbols symbols = new DateFormatSymbols(locale); in test_getDisplayNameIILjava_util_Locale() 962 DateFormatSymbols symbols = new DateFormatSymbols(locale); in test_getDisplayNamesIILjava_util_Locale()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest.java | 183 java.text.DateFormatSymbols symbols = new java.text.DateFormatSymbols();
|
D | SerializationStressTest4.java | 965 objToSave = new java.text.DateFormatSymbols(Locale.CHINESE); in test_writeObject_DateFormatSymbols() 966 ((java.text.DateFormatSymbols) objToSave) in test_writeObject_DateFormatSymbols()
|