/libcore/luni/src/main/java/libcore/icu/ |
D | LocaleData.java | 22 import android.icu.text.DateFormatSymbols; 224 DateFormatSymbols dfs = new DateFormatSymbols(GregorianCalendar.class, locale); in initializeDateFormatData() 226 longMonthNames = dfs.getMonths(DateFormatSymbols.FORMAT, DateFormatSymbols.WIDE); in initializeDateFormatData() 227 shortMonthNames = dfs.getMonths(DateFormatSymbols.FORMAT, DateFormatSymbols.ABBREVIATED); in initializeDateFormatData() 228 tinyMonthNames = dfs.getMonths(DateFormatSymbols.FORMAT, DateFormatSymbols.NARROW); in initializeDateFormatData() 229 longWeekdayNames = dfs.getWeekdays(DateFormatSymbols.FORMAT, DateFormatSymbols.WIDE); in initializeDateFormatData() 231 .getWeekdays(DateFormatSymbols.FORMAT, DateFormatSymbols.ABBREVIATED); in initializeDateFormatData() 232 tinyWeekdayNames = dfs.getWeekdays(DateFormatSymbols.FORMAT, DateFormatSymbols.NARROW); in initializeDateFormatData() 235 .getMonths(DateFormatSymbols.STANDALONE, DateFormatSymbols.WIDE); in initializeDateFormatData() 237 .getMonths(DateFormatSymbols.STANDALONE, DateFormatSymbols.ABBREVIATED); in initializeDateFormatData() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | LocaleDataTest.java | 25 import java.text.DateFormatSymbols; 153 DateFormatSymbols dateFormatSymbols = DateFormatSymbols.getInstance(Locale.ROOT); in assertRootDataEqualsToTargetLocaleData() 154 android.icu.text.DateFormatSymbols icuDateFormatSymbols = in assertRootDataEqualsToTargetLocaleData() 155 android.icu.text.DateFormatSymbols.getInstance(targetLocale); in assertRootDataEqualsToTargetLocaleData() 168 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.WIDE)); in assertRootDataEqualsToTargetLocaleData() 170 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.NARROW)); in assertRootDataEqualsToTargetLocaleData() 172 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.ABBREVIATED)); in assertRootDataEqualsToTargetLocaleData() 174 android.icu.text.DateFormatSymbols.STANDALONE, android.icu.text.DateFormatSymbols.WIDE)); in assertRootDataEqualsToTargetLocaleData() 176 android.icu.text.DateFormatSymbols.STANDALONE, android.icu.text.DateFormatSymbols.NARROW)); in assertRootDataEqualsToTargetLocaleData() 178 android.icu.text.DateFormatSymbols.STANDALONE, in assertRootDataEqualsToTargetLocaleData() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | DateFormatSymbolsTest.java | 24 import java.text.DateFormatSymbols; 42 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); in assertLocaleIsEquivalentToRoot() 43 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs); in assertLocaleIsEquivalentToRoot() 64 DateFormatSymbols originalDfs = new DateFormatSymbols(pl); in testSerialization() 73 DateFormatSymbols deserializedDfs = (DateFormatSymbols) in.readObject(); in testSerialization() 88 private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { in formatDate() 100 … String[][] originalZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() 103 … String[][] currentZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() 109 … String[][] originalZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() 112 … String[][] currentZoneStrings = DateFormatSymbols.getInstance(Locale.US).getZoneStrings(); in test_getZoneStrings_cloning() [all …]
|
D | SimpleDateFormatTest.java | 22 import java.text.DateFormatSymbols; 506 DateFormatSymbols symbols = DateFormatSymbols.getInstance(Locale.ENGLISH); in testZoneStringsUsedForParsingWhenPresent() 520 DateFormatSymbols symbols = DateFormatSymbols.getInstance(Locale.ENGLISH); in testTimeZoneFormattingRespectsSetZoneStrings() 700 DateFormatSymbols dfs = dateFormat.getDateFormatSymbols(); in testTimeZoneParsingErrorIndexWithZoneStrings()
|
/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; 85 assertEquals(f2.getDateFormatSymbols(), new DateFormatSymbols()); in test_getDateInstance() 103 new DateFormatSymbols())); in test_getDateInstanceI() 112 new DateFormatSymbols())); in test_getDateInstanceI() 121 new DateFormatSymbols())); in test_getDateInstanceI() 130 new DateFormatSymbols())); in test_getDateInstanceI() 151 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() 159 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() 167 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() 175 new DateFormatSymbols(Locale.GERMAN))); in test_getDateInstanceILjava_util_Locale() [all …]
|
D | SimpleDateFormatTest.java | 20 import java.text.DateFormatSymbols; 52 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); in test_Constructor() 62 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); in test_ConstructorLjava_lang_String() 85 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 113 new DateFormatSymbols(Locale.GERMAN))); in test_ConstructorLjava_lang_StringLjava_util_Locale() 227 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_hashCode() 519 DateFormatSymbols dfs = df.getDateFormatSymbols(); in test_getDateFormatSymbols() 856 DateFormatSymbols symbols = new DateFormatSymbols(); in test_setDateFormatSymbolsLjava_text_DateFormatSymbols() 859 DateFormatSymbols newSym = f1.getDateFormatSymbols(); in test_setDateFormatSymbolsLjava_text_DateFormatSymbols()
|
/libcore/ojluni/src/main/java/sun/util/locale/provider/ |
D | CalendarDataUtility.java | 28 import android.icu.text.DateFormatSymbols; 334 DateFormatSymbols symbols = getDateFormatSymbols(id, locale); in getNames() 340 case DateFormatSymbols.NARROW: in getNames() 342 case DateFormatSymbols.ABBREVIATED: in getNames() 344 case DateFormatSymbols.WIDE: in getNames() 358 private static DateFormatSymbols getDateFormatSymbols(@NonNull String id, Locale locale) { in getDateFormatSymbols() 362 return new DateFormatSymbols(uLocale); in getDateFormatSymbols() 372 return DateFormatSymbols.ABBREVIATED; in toWidth() 375 return DateFormatSymbols.NARROW; in toWidth() 378 return DateFormatSymbols.WIDE; in toWidth() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 106 public class DateFormatSymbols implements Serializable, Cloneable { class 125 public DateFormatSymbols() in DateFormatSymbols() method in DateFormatSymbols 143 public DateFormatSymbols(Locale locale) in DateFormatSymbols() method in DateFormatSymbols 398 public static final DateFormatSymbols getInstance() { in getInstance() 411 public static final DateFormatSymbols getInstance(Locale locale) { in getInstance() 413 return (DateFormatSymbols) getCachedInstance(locale).clone(); in getInstance() 422 static final DateFormatSymbols getInstanceRef(Locale locale) { in getInstanceRef() 435 private static DateFormatSymbols getCachedInstance(Locale locale) { in getCachedInstance() 437 SoftReference<DateFormatSymbols> ref = cachedInstances.get(cacheKey); in getCachedInstance() 438 DateFormatSymbols dfs; in getCachedInstance() [all …]
|
D | SimpleDateFormat.java | 65 import static java.text.DateFormatSymbols.*; 567 private DateFormatSymbols formatData; 708 this.formatData = DateFormatSymbols.getInstanceRef(locale); in SimpleDateFormat() 722 public SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols) in SimpleDateFormat() 729 this.formatData = (DateFormatSymbols) formatSymbols.clone(); in SimpleDateFormat() 952 if ((tag = DateFormatSymbols.patternChars.indexOf(c)) == -1) { in compile() 2911 DateFormatSymbols.patternChars, in toLocalizedPattern() 2943 DateFormatSymbols.patternChars); in applyLocalizedPattern() 2954 public DateFormatSymbols getDateFormatSymbols() in getDateFormatSymbols() 2956 return (DateFormatSymbols)formatData.clone(); in getDateFormatSymbols() [all …]
|
/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 | LegacyLocalesTest.java | 39 import java.text.DateFormatSymbols; 94 assertOnce(newLocale, DateFormatSymbols.getAvailableLocales()); in assertObsolete() 117 assertOnce(newLocale, DateFormatSymbols.getAvailableLocales()); in assertNew()
|
D | LocaleTest.java | 30 import java.text.DateFormatSymbols;
|
/libcore/ojluni/src/test/java/text/Format/DateFormat/ |
D | SimpleDateFormatPatternTest.java | 36 import java.text.DateFormatSymbols; 174 new SimpleDateFormat(pattern, new DateFormatSymbols()); in testIllegalArgumentException2() 200 new SimpleDateFormat(pattern, new DateFormatSymbols()); in testIllegalArgumentException_enUS() 220 new SimpleDateFormat(null, new DateFormatSymbols()); in testNullPointerException2() 246 new SimpleDateFormat(pattern, new DateFormatSymbols()); in testValidPattern() 256 new SimpleDateFormat(pattern, new DateFormatSymbols()); in testValidPattern_enUS()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 64 import android.icu.text.DateFormatSymbols; 494 DateFormatSymbols dfs = extendedDfs.getDateFormatSymbols(); in createStore() 496 dfs.getQuarters(DateFormatSymbols.FORMAT, DateFormatSymbols.WIDE))); in createStore() 498 dfs.getQuarters(DateFormatSymbols.STANDALONE, DateFormatSymbols.WIDE))); in createStore() 500 dfs.getQuarters(DateFormatSymbols.FORMAT, DateFormatSymbols.ABBREVIATED))); in createStore() 502 dfs.getQuarters(DateFormatSymbols.STANDALONE, DateFormatSymbols.ABBREVIATED))); in createStore() 504 extendedDfs.getNarrowQuarters(DateFormatSymbols.FORMAT))); in createStore() 506 extendedDfs.getNarrowQuarters(DateFormatSymbols.STANDALONE))); in createStore()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ExpensiveObjectsBenchmark.java | 21 import java.text.DateFormatSymbols; 70 new DateFormatSymbols(Locale.US); in timeNewDateFormatSymbols() 75 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in timeClonedDateFormatSymbols()
|
D | SimpleDateFormatBenchmark.java | 20 import java.text.DateFormatSymbols;
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 30 import java.text.DateFormatSymbols; 255 for (String[] names : new DateFormatSymbols(locale).getZoneStrings()) { in parseText()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 50 import java.text.DateFormatSymbols; 2185 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayName() 2276 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayNamesImpl() 2310 private String[] getFieldStrings(int field, int style, DateFormatSymbols symbols) { in getFieldStrings()
|
D | Formatter.java | 54 import java.text.DateFormatSymbols; 4207 DateFormatSymbols dfs = DateFormatSymbols.getInstance(l); 4254 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt); 4266 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt); 4434 DateFormatSymbols dfs = DateFormatSymbols.getInstance(l); 4489 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt); 4501 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt);
|
/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/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 44 import java.text.DateFormatSymbols;
|
/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 | 941 objToSave = new java.text.DateFormatSymbols(Locale.CHINESE); in test_writeObject_DateFormatSymbols() 942 ((java.text.DateFormatSymbols) objToSave) in test_writeObject_DateFormatSymbols()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 174 int field, int style, java.text.DateFormatSymbols symbols) { in getFieldStrings()
|