Home
last modified time | relevance | path

Searched refs:DateFormatSymbols (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DDateFormatSymbolsTest.java24 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 …]
/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java27 import java.text.DateFormatSymbols;
198 DateFormatSymbols dateFormatSymbols = DateFormatSymbols.getInstance(Locale.ROOT); in assertRootDataEqualsToTargetLocaleData()
199 android.icu.text.DateFormatSymbols icuDateFormatSymbols = in assertRootDataEqualsToTargetLocaleData()
200 android.icu.text.DateFormatSymbols.getInstance(targetLocale); in assertRootDataEqualsToTargetLocaleData()
213 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.WIDE)); in assertRootDataEqualsToTargetLocaleData()
215 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.NARROW)); in assertRootDataEqualsToTargetLocaleData()
217 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.ABBREVIATED)); in assertRootDataEqualsToTargetLocaleData()
219 android.icu.text.DateFormatSymbols.STANDALONE, android.icu.text.DateFormatSymbols.WIDE)); in assertRootDataEqualsToTargetLocaleData()
221 android.icu.text.DateFormatSymbols.STANDALONE, android.icu.text.DateFormatSymbols.NARROW)); in assertRootDataEqualsToTargetLocaleData()
223 android.icu.text.DateFormatSymbols.STANDALONE, in assertRootDataEqualsToTargetLocaleData()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatSymbolsTest.java23 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 …]
DDateFormatTest.java20 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 …]
DSimpleDateFormatTest.java20 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/luni/src/main/java/libcore/icu/
DLocaleData.java23 import android.icu.text.DateFormatSymbols;
350 DateFormatSymbols dfs = new DateFormatSymbols(GregorianCalendar.class, locale); in initializeDateFormatData()
352 longMonthNames = dfs.getMonths(DateFormatSymbols.FORMAT, DateFormatSymbols.WIDE); in initializeDateFormatData()
353 shortMonthNames = dfs.getMonths(DateFormatSymbols.FORMAT, DateFormatSymbols.ABBREVIATED); in initializeDateFormatData()
354 tinyMonthNames = dfs.getMonths(DateFormatSymbols.FORMAT, DateFormatSymbols.NARROW); in initializeDateFormatData()
355 longWeekdayNames = dfs.getWeekdays(DateFormatSymbols.FORMAT, DateFormatSymbols.WIDE); in initializeDateFormatData()
357 .getWeekdays(DateFormatSymbols.FORMAT, DateFormatSymbols.ABBREVIATED); in initializeDateFormatData()
358 tinyWeekdayNames = dfs.getWeekdays(DateFormatSymbols.FORMAT, DateFormatSymbols.NARROW); in initializeDateFormatData()
361 .getMonths(DateFormatSymbols.STANDALONE, DateFormatSymbols.WIDE); in initializeDateFormatData()
363 .getMonths(DateFormatSymbols.STANDALONE, DateFormatSymbols.ABBREVIATED); in initializeDateFormatData()
[all …]
/libcore/ojluni/src/main/java/java/text/
DDateFormatSymbols.java102 public class DateFormatSymbols implements Serializable, Cloneable { class
121 public DateFormatSymbols() in DateFormatSymbols() method in DateFormatSymbols
139 public DateFormatSymbols(Locale locale) in DateFormatSymbols() method in DateFormatSymbols
393 public static final DateFormatSymbols getInstance() { in getInstance()
406 public static final DateFormatSymbols getInstance(Locale locale) { in getInstance()
408 return (DateFormatSymbols) getCachedInstance(locale).clone(); in getInstance()
417 static final DateFormatSymbols getInstanceRef(Locale locale) { in getInstanceRef()
430 private static DateFormatSymbols getCachedInstance(Locale locale) { in getCachedInstance()
432 SoftReference<DateFormatSymbols> ref = cachedInstances.get(cacheKey); in getCachedInstance()
433 DateFormatSymbols dfs; in getCachedInstance()
[all …]
DSimpleDateFormat.java65 import static java.text.DateFormatSymbols.*;
545 private DateFormatSymbols formatData;
686 this.formatData = DateFormatSymbols.getInstanceRef(locale); in SimpleDateFormat()
700 public SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols) in SimpleDateFormat()
707 this.formatData = (DateFormatSymbols) formatSymbols.clone(); in SimpleDateFormat()
930 if ((tag = DateFormatSymbols.patternChars.indexOf(c)) == -1) { in compile()
2817 DateFormatSymbols.patternChars, in toLocalizedPattern()
2849 DateFormatSymbols.patternChars); in applyLocalizedPattern()
2860 public DateFormatSymbols getDateFormatSymbols() in getDateFormatSymbols()
2862 return (DateFormatSymbols)formatData.clone(); in getDateFormatSymbols()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidLocaleTest.java20 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()
DLocaleTest.java30 import java.text.DateFormatSymbols;
235 assertOnce(newLocale, DateFormatSymbols.getAvailableLocales()); in assertObsolete()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeTextProvider.java64 import android.icu.text.DateFormatSymbols;
461 DateFormatSymbols dfs = extendedDfs.getDateFormatSymbols(); in createStore()
463 dfs.getQuarters(DateFormatSymbols.FORMAT, DateFormatSymbols.WIDE))); in createStore()
465 dfs.getQuarters(DateFormatSymbols.STANDALONE, DateFormatSymbols.WIDE))); in createStore()
467 dfs.getQuarters(DateFormatSymbols.FORMAT, DateFormatSymbols.ABBREVIATED))); in createStore()
469 dfs.getQuarters(DateFormatSymbols.STANDALONE, DateFormatSymbols.ABBREVIATED))); in createStore()
471 extendedDfs.getNarrowQuarters(DateFormatSymbols.FORMAT))); in createStore()
473 extendedDfs.getNarrowQuarters(DateFormatSymbols.STANDALONE))); in createStore()
/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java20 import java.text.DateFormatSymbols;
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java28 import java.text.DateFormatSymbols;
224 for (String[] names : new DateFormatSymbols(locale).getZoneStrings()) { in parseText()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java50 import java.text.DateFormatSymbols;
2100 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayName()
2190 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayNamesImpl()
2224 private String[] getFieldStrings(int field, int style, DateFormatSymbols symbols) { in getFieldStrings()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java20 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/
DCalendar.annotated.java44 import java.text.DateFormatSymbols;
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java174 int field, int style, java.text.DateFormatSymbols symbols) { in getFieldStrings()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java941 objToSave = new java.text.DateFormatSymbols(Locale.CHINESE); in test_writeObject_DateFormatSymbols()
942 ((java.text.DateFormatSymbols) objToSave) in test_writeObject_DateFormatSymbols()
/libcore/
Dopenjdk_java_files.bp763 "ojluni/src/main/java/java/text/DateFormatSymbols.java",