Home
last modified time | relevance | path

Searched refs:TextStyle (Results 1 – 24 of 24) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeTextProvider.java69 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 …]
DTestTextPrinter.java74 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 …]
DTestZoneTextPrinterParser.java34 import java.time.format.TextStyle;
62 protected static DateTimeFormatter getFormatter(Locale locale, TextStyle style) { in getFormatter()
103 printText(locale, zdt, TextStyle.FULL, tz, in test_printText()
105 printText(locale, zdt, TextStyle.SHORT, tz, in test_printText()
126 …private void printText(Locale locale, ZonedDateTime zdt, TextStyle style, TimeZone zone, String ex… in printText()
150 parseText(zids, locale, TextStyle.FULL, false); in test_ParseText()
151 parseText(zids, locale, TextStyle.FULL, true); in test_ParseText()
152 parseText(zids, locale, TextStyle.SHORT, false); in test_ParseText()
153 parseText(zids, locale, TextStyle.SHORT, true); in test_ParseText()
197 …"Australia/South", "ACST", preferred_s, new Locale("en", "AU"), TextStyle.SHORT}, in data_preferredZones()
[all …]
DAbstractTestPrinterParser.java70 import java.time.format.TextStyle;
132 protected DateTimeFormatter getFormatter(TemporalField field, TextStyle style) { in getFormatter()
DTestNonIsoFormatter.java48 import java.time.format.TextStyle;
187 DateTimeFormatter dtf = new DateTimeFormatterBuilder().appendChronologyText(TextStyle.SHORT) in test_chronoNames()
DTestDateTimeFormatterBuilder.java82 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/
DTCKTextStyle.java65 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 …]
DTCKDateTimeTextPrinting.java71 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 …]
DTCKDateTimeFormatterBuilder.java77 import java.time.format.TextStyle;
311 builder.appendText(null, TextStyle.SHORT); in test_appendText_2arg_nullRule()
316 builder.appendText(MONTH_OF_YEAR, (TextStyle) null); in test_appendText_2arg_nullStyle()
DTCKDateTimeFormatters.java93 import java.time.format.TextStyle;
132 Month.JUNE.getDisplayName(TextStyle.SHORT, fmtLocale) + " 2012"); in test_pattern_String()
/libcore/ojluni/src/main/java/java/time/format/
DTextStyle.java86 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()
DDateTimeTextProvider.java142 public String getText(TemporalField field, long value, TextStyle style, Locale locale) { in getText()
166 TextStyle style, Locale locale) { in getText()
220 …public Iterator<Entry<String, Long>> getTextIterator(TemporalField field, TextStyle style, Locale … in getTextIterator()
246 TextStyle style, Locale locale) { in getTextIterator()
330 Map<TextStyle, Map<Long, String>> styleMap = new HashMap<>(); in createStore()
332 for (TextStyle textStyle : TextStyle.values()) { in createStore()
353 for (TextStyle textStyle : TextStyle.values()) { in createStore()
383 for (TextStyle textStyle : TextStyle.values()) { in createStore()
413 for (TextStyle textStyle : TextStyle.values()) { in createStore()
462 styleMap.put(TextStyle.FULL, extractQuarters( in createStore()
[all …]
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyDisplayNameTest.java23 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/
DEra.java70 import java.time.format.TextStyle;
320 default String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
DJapaneseEra.java77 import java.time.format.TextStyle;
288 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
293 return style.asNormal() == TextStyle.NARROW ? getAbbreviation() : getName(); in getDisplayName()
DChronology.java72 import java.time.format.TextStyle;
633 default String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java68 import java.time.format.TextStyle;
226 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
DMonth.java70 import java.time.format.TextStyle;
253 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
DZoneId.java70 import java.time.format.TextStyle;
502 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneId.java76 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()
DTCKDayOfWeek.java73 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()
DTCKMonth.java70 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/src/test/java/time/test/java/time/
DTestZoneId.java75 import java.time.format.TextStyle;
118 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), "Z"); in test_constant_UTC()
/libcore/
Dopenjdk_java_files.bp856 "ojluni/src/main/java/java/time/format/TextStyle.java",