/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextPrinter.java | 74 import java.time.format.TextStyle; 93 getFormatter(DAY_OF_WEEK, TextStyle.FULL).formatTo(EMPTY_DTA, buf); in test_print_emptyCalendrical() 98 getFormatter(DAY_OF_WEEK, TextStyle.FULL).formatTo(LocalDate.of(2012, 4, 18), buf); in test_print_append() 106 {DAY_OF_WEEK, TextStyle.FULL, 1, "Monday"}, in provider_dow() 107 {DAY_OF_WEEK, TextStyle.FULL, 2, "Tuesday"}, in provider_dow() 108 {DAY_OF_WEEK, TextStyle.FULL, 3, "Wednesday"}, in provider_dow() 109 {DAY_OF_WEEK, TextStyle.FULL, 4, "Thursday"}, in provider_dow() 110 {DAY_OF_WEEK, TextStyle.FULL, 5, "Friday"}, in provider_dow() 111 {DAY_OF_WEEK, TextStyle.FULL, 6, "Saturday"}, in provider_dow() 112 {DAY_OF_WEEK, TextStyle.FULL, 7, "Sunday"}, in provider_dow() [all …]
|
D | TestDateTimeTextProvider.java | 69 import java.time.format.TextStyle; 89 {DAY_OF_WEEK, 1, TextStyle.SHORT, enUS, "Mon"}, in data_text() 90 {DAY_OF_WEEK, 2, TextStyle.SHORT, enUS, "Tue"}, in data_text() 91 {DAY_OF_WEEK, 3, TextStyle.SHORT, enUS, "Wed"}, in data_text() 92 {DAY_OF_WEEK, 4, TextStyle.SHORT, enUS, "Thu"}, in data_text() 93 {DAY_OF_WEEK, 5, TextStyle.SHORT, enUS, "Fri"}, in data_text() 94 {DAY_OF_WEEK, 6, TextStyle.SHORT, enUS, "Sat"}, in data_text() 95 {DAY_OF_WEEK, 7, TextStyle.SHORT, enUS, "Sun"}, in data_text() 98 {DAY_OF_WEEK, 1, TextStyle.SHORT, ptBR, "seg"}, in data_text() 99 {DAY_OF_WEEK, 2, TextStyle.SHORT, ptBR, "ter"}, in data_text() [all …]
|
D | TestTextParser.java | 72 import java.time.format.TextStyle; 92 {DAY_OF_WEEK, TextStyle.FULL, "Monday", -1, IndexOutOfBoundsException.class}, in data_error() 93 {DAY_OF_WEEK, TextStyle.FULL, "Monday", 7, IndexOutOfBoundsException.class}, in data_error() 98 …public void test_parse_error(TemporalField field, TextStyle style, String text, int pos, Class<?> … in test_parse_error() 109 assertEquals(getFormatter(DAY_OF_WEEK, TextStyle.FULL) in test_parse_midStr() 117 assertEquals(getFormatter(DAY_OF_WEEK, TextStyle.SHORT) in test_parse_remainderIgnored() 127 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Munday", pos); in test_parse_noMatch1() 135 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch2() 143 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch_atEnd() 152 {DAY_OF_WEEK, TextStyle.FULL, 1, "Monday"}, in provider_text() [all …]
|
D | TestZoneTextPrinterParser.java | 34 import java.time.format.TextStyle; 63 protected static DateTimeFormatter getFormatter(Locale locale, TextStyle style) { in getFormatter() 104 printText(locale, zdt, TextStyle.FULL, tz, in test_printText() 106 printText(locale, zdt, TextStyle.SHORT, tz, in test_printText() 113 …private void printText(Locale locale, ZonedDateTime zdt, TextStyle style, TimeZone zone, String ex… in printText() 137 parseText(zids, locale, TextStyle.FULL, false); in test_ParseText() 138 parseText(zids, locale, TextStyle.FULL, true); in test_ParseText() 139 parseText(zids, locale, TextStyle.SHORT, false); in test_ParseText() 140 parseText(zids, locale, TextStyle.SHORT, true); in test_ParseText() 184 …"Australia/South", "ACST", preferred_s, new Locale("en", "AU"), TextStyle.SHORT}, in data_preferredZones() [all …]
|
D | AbstractTestPrinterParser.java | 70 import java.time.format.TextStyle; 132 protected DateTimeFormatter getFormatter(TemporalField field, TextStyle style) { in getFormatter()
|
D | TestNonIsoFormatter.java | 48 import java.time.format.TextStyle; 187 DateTimeFormatter dtf = new DateTimeFormatterBuilder().appendChronologyText(TextStyle.SHORT) in test_chronoNames()
|
D | TestDateTimeFormatterBuilder.java | 82 import java.time.format.TextStyle; 357 builder.appendText(MONTH_OF_YEAR, TextStyle.SHORT); in test_appendText_2arg() 364 builder.appendText(null, TextStyle.SHORT); in test_appendText_2arg_nullRule() 369 builder.appendText(MONTH_OF_YEAR, (TextStyle) null); in test_appendText_2arg_nullStyle() 521 builder.appendZoneText(TextStyle.FULL); in test_appendZoneText_1arg()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKTextStyle.java | 65 import java.time.format.TextStyle; 77 assertEquals(TextStyle.FULL, TextStyle.FULL_STANDALONE.asNormal()); in test_standaloneNormal() 78 assertEquals(TextStyle.SHORT, TextStyle.SHORT.asNormal()); in test_standaloneNormal() 79 assertEquals(TextStyle.NARROW, TextStyle.NARROW.asNormal()); in test_standaloneNormal() 81 assertEquals(TextStyle.FULL_STANDALONE, TextStyle.FULL_STANDALONE.asStandalone()); in test_standaloneNormal() 82 assertEquals(TextStyle.SHORT_STANDALONE, TextStyle.SHORT.asStandalone()); in test_standaloneNormal() 83 assertEquals(TextStyle.NARROW_STANDALONE, TextStyle.NARROW.asStandalone()); in test_standaloneNormal() 85 assertTrue(TextStyle.FULL_STANDALONE.isStandalone()); in test_standaloneNormal() 86 assertTrue(TextStyle.SHORT_STANDALONE.isStandalone()); in test_standaloneNormal() 87 assertTrue(TextStyle.NARROW_STANDALONE.isStandalone()); in test_standaloneNormal() [all …]
|
D | TCKDateTimeTextPrinting.java | 71 import java.time.format.TextStyle; 98 {DAY_OF_WEEK, TextStyle.FULL, 1, "Monday"}, in data_text() 99 {DAY_OF_WEEK, TextStyle.FULL, 2, "Tuesday"}, in data_text() 100 {DAY_OF_WEEK, TextStyle.FULL, 3, "Wednesday"}, in data_text() 101 {DAY_OF_WEEK, TextStyle.FULL, 4, "Thursday"}, in data_text() 102 {DAY_OF_WEEK, TextStyle.FULL, 5, "Friday"}, in data_text() 103 {DAY_OF_WEEK, TextStyle.FULL, 6, "Saturday"}, in data_text() 104 {DAY_OF_WEEK, TextStyle.FULL, 7, "Sunday"}, in data_text() 106 {DAY_OF_WEEK, TextStyle.SHORT, 1, "Mon"}, in data_text() 107 {DAY_OF_WEEK, TextStyle.SHORT, 2, "Tue"}, in data_text() [all …]
|
D | TCKOffsetPrinterParser.java | 71 import java.time.format.TextStyle; 208 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_UTC, "GMT"}, in data_print_localized() 209 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_P0100, "GMT+01:00"}, in data_print_localized() 210 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_P0123, "GMT+01:23"}, in data_print_localized() 211 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_P0023, "GMT+00:23"}, in data_print_localized() 212 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_P012345, "GMT+01:23:45"}, in data_print_localized() 213 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_M000045, "GMT-00:00:45"}, in data_print_localized() 214 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_M0100, "GMT-01:00"}, in data_print_localized() 215 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_M0123, "GMT-01:23"}, in data_print_localized() 216 {TextStyle.FULL, DT_2012_06_30_12_30_40, OFFSET_M0023, "GMT-00:23"}, in data_print_localized() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | TextStyle.java | 86 public enum TextStyle { enum 124 private TextStyle(int calendarStyle, int zoneNameStyleIndex) { in TextStyle() method in TextStyle 141 public TextStyle asStandalone() { in asStandalone() 142 return TextStyle.values()[ordinal() | 1]; in asStandalone() 150 public TextStyle asNormal() { in asNormal() 151 return TextStyle.values()[ordinal() & ~1]; in asNormal()
|
D | DateTimeTextProvider.java | 141 public String getText(TemporalField field, long value, TextStyle style, Locale locale) { in getText() 165 TextStyle style, Locale locale) { in getText() 219 …public Iterator<Entry<String, Long>> getTextIterator(TemporalField field, TextStyle style, Locale … in getTextIterator() 245 TextStyle style, Locale locale) { in getTextIterator() 329 Map<TextStyle, Map<Long, String>> styleMap = new HashMap<>(); in createStore() 331 for (TextStyle textStyle : TextStyle.values()) { in createStore() 352 for (TextStyle textStyle : TextStyle.values()) { in createStore() 382 for (TextStyle textStyle : TextStyle.values()) { in createStore() 412 for (TextStyle textStyle : TextStyle.values()) { in createStore() 460 styleMap.put(TextStyle.FULL, extractQuarters(formatRb, "wide")); in createStore() [all …]
|
D | DateTimeFormatterBuilder.java | 716 return appendText(field, TextStyle.FULL); in appendText() 734 public DateTimeFormatterBuilder appendText(TemporalField field, TextStyle textStyle) { in appendText() 779 Map<TextStyle, Map<Long, String>> map = Collections.singletonMap(TextStyle.FULL, copy); in appendText() 783 public String getText(TemporalField field, long value, TextStyle style, Locale locale) { in appendText() 787 …public Iterator<Entry<String, Long>> getTextIterator(TemporalField field, TextStyle style, Locale … in appendText() 791 appendInternal(new TextPrinterParser(field, TextStyle.FULL, provider)); in appendText() 955 public DateTimeFormatterBuilder appendLocalizedOffset(TextStyle style) { in appendLocalizedOffset() 957 if (style != TextStyle.FULL && style != TextStyle.SHORT) { in appendLocalizedOffset() 1159 public DateTimeFormatterBuilder appendZoneText(TextStyle textStyle) { in appendZoneText() 1200 public DateTimeFormatterBuilder appendZoneText(TextStyle textStyle, in appendZoneText() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyDisplayNameTest.java | 23 import java.time.format.TextStyle; 54 String displayName = chronology.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testDisplayName() 65 String displayName = era.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testEras()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Era.java | 70 import java.time.format.TextStyle; 320 default String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
|
D | JapaneseEra.java | 77 import java.time.format.TextStyle; 287 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() 292 return style.asNormal() == TextStyle.NARROW ? getAbbreviation() : getName(); in getDisplayName()
|
D | Chronology.java | 72 import java.time.format.TextStyle; 633 default String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 68 import java.time.format.TextStyle; 226 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
|
D | Month.java | 70 import java.time.format.TextStyle; 253 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
|
D | ZoneId.java | 70 import java.time.format.TextStyle; 502 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneId.java | 76 import java.time.format.TextStyle; 235 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), id); in factory_of_String_offsetBasedValid_noPrefix() 283 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("UTC" + id)); in factory_of_String_offsetBasedValid_prefixUTC() 294 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("GMT" + id)); in factory_of_String_offsetBasedValid_prefixGMT() 305 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("UT" + id)); in factory_of_String_offsetBasedValid_prefixUT()
|
D | TCKDayOfWeek.java | 73 import java.time.format.TextStyle; 249 assertEquals(DayOfWeek.MONDAY.getDisplayName(TextStyle.SHORT, Locale.US), "Mon"); in test_getText() 259 DayOfWeek.MONDAY.getDisplayName(TextStyle.FULL, null); in test_getText_nullLocale()
|
D | TCKMonth.java | 70 import java.time.format.TextStyle; 241 assertEquals(Month.JANUARY.getDisplayName(TextStyle.SHORT, Locale.US), "Jan"); in test_getText() 251 Month.JANUARY.getDisplayName(TextStyle.FULL, null); in test_getText_nullLocale()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | ZoneId.java | 112 java.time.format.TextStyle style, java.util.Locale locale) { in getDisplayName()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronology.java | 86 import java.time.format.TextStyle; 163 assertEquals(chrono.getDisplayName(TextStyle.FULL, Locale.ENGLISH), calendarDisplayName); in test_getDisplayName()
|