Home
last modified time | relevance | path

Searched refs:withLocale (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/highmemorytest/java/time/format/
DDateTimeFormatterTest.java61 .withLocale(locale) in test_format_allLocales()
66 .withLocale(locale) in test_format_allLocales()
71 .withLocale(locale) in test_format_allLocales()
90 .withLocale(locale) in test_format_allLocales_allChronologies()
96 .withLocale(locale) in test_format_allLocales_allChronologies()
102 .withLocale(locale) in test_format_allLocales_allChronologies()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java137 … DateTimeFormatter base = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale()
138 DateTimeFormatter test = base.withLocale(Locale.GERMAN); in test_withLocale()
144 … DateTimeFormatter base = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale_null()
145 base.withLocale((Locale) null); in test_withLocale_null()
403 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_simple()
410 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_noSuchField()
416 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_null()
423 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable()
431 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_noSuchField()
438 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_nullTemporal()
[all …]
DTCKFormatStyle.java114 formatter = formatter.withLocale(Locale.UK); in test_formatStyle()
DTCKDateTimeFormatters.java1261 …assertEquals(DateTimeFormatter.RFC_1123_DATE_TIME.withLocale(Locale.FRENCH).format(test), expected… in test_print_rfc1123_french()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java128 assertEquals("平成30年1月1日月曜日", heisei.format(formatter.withLocale(ja))); in test_JapaneseEras_dateTimeFormatter()
130 heisei.format(formatter.withLocale(Locale.ENGLISH))); in test_JapaneseEras_dateTimeFormatter()
133 assertEquals("令和1年5月1日水曜日", reiwa.format(formatter.withLocale(ja))); in test_JapaneseEras_dateTimeFormatter()
135 reiwa.format(formatter.withLocale(Locale.ENGLISH))); in test_JapaneseEras_dateTimeFormatter()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestTextPrinter.java254 DateTimeFormatter formatter = getPatternFormatter(pattern).withLocale(locale); in test_formatDayOfWeek()
268 getFormatter(field, style).withLocale(locale).formatTo(LocalDate.of(2013, 1, 1), buf); in test_standaloneNames()
274 …getFormatter(MONTH_OF_YEAR, TextStyle.FULL).withLocale(Locale.FRENCH).formatTo(LocalDate.of(2012, … in test_print_french_long()
279 …getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).withLocale(Locale.FRENCH).formatTo(LocalDate.of(2012,… in test_print_french_short()
DTestNonIsoFormatter.java161 .withChronology(chrono).withLocale(formatLocale) in test_formatLocalizedDate()
171 .withChronology(chrono).withLocale(formatLocale) in test_parseLocalizedText()
181 .withChronology(JAPANESE).withLocale(Locale.JAPANESE); in test_parseInvalidText()
DTestTextParser.java264 DateTimeFormatter formatter = getFormatter(field, style).withLocale(locale); in test_parseStandaloneText()
272 DateTimeFormatter formatter = getPatternFormatter(pattern).withLocale(locale); in test_parseDayOfWeekText()
370 getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).withLocale(Locale.FRENCH) in test_parse_french_short_strict_full_noMatch()
378 assertEquals(getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).withLocale(Locale.FRENCH) in test_parse_french_short_strict_short_match()
433 DateTimeFormatter formatter = getFormatter(field).withLocale(locale); in test_parseLenientText()
DTestDateTimeFormatter.java106 DateTimeFormatter test = base.withLocale(Locale.ENGLISH); in test_withLocale_same()
DTestDateTimeTextProvider.java185 DateTimeFormatter fmt = getFormatter(field, style).withLocale(locale); in test_getText()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java102 .withLocale(new Locale("my", "MM")) in test_format_locale_my_MM()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java1409 public DateTimeFormatter withLocale(Locale locale) { in withLocale() method in DateTimeFormatter
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java468 …lizedDate(FormatStyle.LONG).withChronology(Chronology.of("Hijrah-umalqura")).withLocale(Locale.US); in test_formatterOfLocalizedDate()
/libcore/api/
Dcurrent.txt11721 method public java.time.format.DateTimeFormatter withLocale(java.util.Locale);