Home
last modified time | relevance | path

Searched refs:ofLocale (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DChronology.java224 static Chronology ofLocale(Locale locale) { in ofLocale() method
225 return AbstractChronology.ofLocale(locale); in ofLocale()
DAbstractChronology.java254 static Chronology ofLocale(Locale locale) { in ofLocale() method in AbstractChronology
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronology.java214 assertEquals(Chronology.ofLocale(locale), chrono); in test_lookupLocale()
324 assertEquals(Chronology.ofLocale(locale), chrono, "Lookup by type"); in test_ofLocaleByType()
334 Chronology.ofLocale(locale); in test_lookupLocale()
DTCKThaiBuddhistChronology.java129 Chronology test = Chronology.ofLocale(Locale.forLanguageTag("th-TH-u-ca-buddhist")); in test_chrono_byLocale_fullTag_thaiCalendarFromThai()
136 Chronology test = Chronology.ofLocale(Locale.forLanguageTag("en-US-u-ca-buddhist")); in test_chrono_byLocale_fullTag_thaiCalendarFromElsewhere()
143 Chronology test = Chronology.ofLocale(new Locale("th", "TH")); in test_chrono_byLocale_oldTH_noVariant()
150 Chronology test = Chronology.ofLocale(new Locale("th", "TH", "TH")); in test_chrono_byLocale_oldTH_variant()
157 Assert.assertEquals(Chronology.ofLocale(new Locale("th", "TH")).getId(), "ISO"); in test_chrono_byLocale_iso()
158 Assert.assertEquals(Chronology.ofLocale(Locale.forLanguageTag("th-TH")).getId(), "ISO"); in test_chrono_byLocale_iso()
159 Assert.assertEquals(Chronology.ofLocale(Locale.forLanguageTag("th-TH-TH")).getId(), "ISO"); in test_chrono_byLocale_iso()
DTCKJapaneseChronology.java140 Chronology test = Chronology.ofLocale(Locale.forLanguageTag("ja-JP-u-ca-japanese")); in test_chrono_byLocale_fullTag_japaneseCalendarFromJapan()
147 Chronology test = Chronology.ofLocale(Locale.forLanguageTag("en-US-u-ca-japanese")); in test_chrono_byLocale_fullTag_japaneseCalendarFromElsewhere()
154 Chronology test = Chronology.ofLocale(new Locale("ja", "JP")); in test_chrono_byLocale_oldJP_noVariant()
161 Chronology test = Chronology.ofLocale(new Locale("ja", "JP", "JP")); in test_chrono_byLocale_oldJP_variant()
168 Assert.assertEquals(Chronology.ofLocale(new Locale("ja", "JP")).getId(), "ISO"); in test_chrono_byLocale_iso()
169 Assert.assertEquals(Chronology.ofLocale(Locale.forLanguageTag("ja-JP")).getId(), "ISO"); in test_chrono_byLocale_iso()
170 Assert.assertEquals(Chronology.ofLocale(Locale.forLanguageTag("ja-JP-JP")).getId(), "ISO"); in test_chrono_byLocale_iso()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java131 Chronology chrono = Chronology.ofLocale(locale); in test_HijrahTypeViaLocale()
DTestJapaneseChronology.java176 assertEquals(Chronology.ofLocale(jaJPJP) == JAPANESE, true); in test_ofLocale()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java92 Chronology chrono = Chronology.ofLocale(calLocale); in test()