/libcore/ojluni/src/main/java/sun/util/locale/provider/ |
D | CalendarDataUtility.java | 141 public static String retrieveFieldValueName(String id, int field, int value, int style, in retrieveFieldValueName() argument 165 String[] names = getNames(id, field, style, locale); in retrieveFieldValueName() 188 public static String retrieveJavaTimeFieldValueName(String id, int field, int value, int style, in retrieveJavaTimeFieldValueName() argument 191 return retrieveFieldValueName(id, field, value, style, locale); in retrieveJavaTimeFieldValueName() 204 public static Map<String, Integer> retrieveFieldValueNames(String id, int field, int style, in retrieveFieldValueNames() argument 207 if (style == ALL_STYLES) { in retrieveFieldValueNames() 214 names = retrieveFieldValueNamesImpl(id, field, style, locale); in retrieveFieldValueNames() 236 int style, Locale locale) { in retrieveJavaTimeFieldValueNames() argument 238 return retrieveFieldValueNames(id, field, style, locale); in retrieveJavaTimeFieldValueNames() 295 private static Map<String, Integer> retrieveFieldValueNamesImpl(String id, int field, int style, in retrieveFieldValueNamesImpl() argument [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 64 protected static DateTimeFormatter getFormatter(Locale locale, TextStyle style) { in getFormatter() argument 65 return new DateTimeFormatterBuilder().appendZoneText(style) in getFormatter() 148 …private void printText(Locale locale, ZonedDateTime zdt, TextStyle style, TimeZone zone, String ex… in printText() argument 149 String result = getFormatter(locale, style).format(zdt); in printText() 160 System.out.printf("[%-5s, %5s] :[%s]%n", locale.toString(), style.toString(),result); in printText() 235 …st_ParseText(String expected, String text, Set<ZoneId> preferred, Locale locale, TextStyle style) { in test_ParseText() argument 236 DateTimeFormatter fmt = new DateTimeFormatterBuilder().appendZoneText(style, preferred) in test_ParseText() 244 style == TextStyle.FULL ? " full" :"short", in test_ParseText() 252 private void parseText(Set<String> zids, Locale locale, TextStyle style, boolean ci) { in parseText() argument 254 DateTimeFormatter fmt = getFormatter(locale, style, ci); in parseText() [all …]
|
D | TestNarrowMonthNamesAndDayNames.java | 86 TEXTSTYLELIST.forEach((style) -> { in compareMonthNarrowValues() argument 88 String result = value.getDisplayName(style, loc); in compareMonthNarrowValues() 92 + loc + " for style " + style.name() in compareMonthNarrowValues() 117 TEXTSTYLELIST.forEach((style) -> { in compareDayNarrowValues() argument 119 String result = value.getDisplayName(style, locale); in compareDayNarrowValues() 123 + locale + " for style " + style.name() in compareDayNarrowValues()
|
D | TestTextParser.java | 99 …public void test_parse_error(TemporalField field, TextStyle style, String text, int pos, Class<?> … in test_parse_error() argument 101 getFormatter(field, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 219 …public void test_parseText(TemporalField field, TextStyle style, int value, String input) throws E… in test_parseText() argument 221 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseText() 226 …public void test_parseNumber(TemporalField field, TextStyle style, int value, String input) throws… in test_parseNumber() argument 228 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseNumber() 242 …public void test_parse_strict_caseSensitive_parseUpper(TemporalField field, TextStyle style, int v… in test_parse_strict_caseSensitive_parseUpper() argument 249 getFormatter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos); in test_parse_strict_caseSensitive_parseUpper() 254 …public void test_parse_strict_caseInsensitive_parseUpper(TemporalField field, TextStyle style, int… in test_parse_strict_caseInsensitive_parseUpper() argument 257 …assertEquals(getFormatter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos).getLo… in test_parse_strict_caseInsensitive_parseUpper() [all …]
|
D | TestTextPrinterWithLocale.java | 132 …public void test_standaloneNames(Locale locale, TemporalField field, TextStyle style, String expec… in test_standaloneNames() argument 133 getFormatter(field, style).withLocale(locale).formatTo(LocalDate.of(2013, 1, 1), buf); in test_standaloneNames() 158 …public void test_formatJapaneseEra(TemporalField field, TextStyle style, int value, String expecte… in test_formatJapaneseEra() argument 160 getFormatter(field, style).withChronology(JapaneseChronology.INSTANCE).formatTo(ld, buf); in test_formatJapaneseEra()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 2146 public String getDisplayName(int field, int style, Locale locale) { in getDisplayName() argument 2150 if (style == ALL_STYLES) { in getDisplayName() 2151 style = SHORT; in getDisplayName() 2154 if (!checkDisplayNameParams(field, style, SHORT, NARROW_FORMAT, locale, in getDisplayName() 2163 if (isStandaloneStyle(style) || isNarrowFormatStyle(style) || in getDisplayName() 2164 field == ERA && (style & SHORT) == SHORT) { in getDisplayName() 2167 style, locale); in getDisplayName() 2170 if (isNarrowFormatStyle(style)) { in getDisplayName() 2173 toStandaloneStyle(style), in getDisplayName() 2175 } else if (isStandaloneStyle(style)) { in getDisplayName() [all …]
|
D | TimeZone.java | 376 public final String getDisplayName(boolean daylight, int style) { in getDisplayName() argument 377 return getDisplayName(daylight, style, in getDisplayName() 391 public String getDisplayName(boolean daylightTime, int style, Locale locale) { in getDisplayName() argument 394 switch (style) { in getDisplayName() 406 throw new IllegalArgumentException("Illegal style: " + style); in getDisplayName()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKFormatStyle.java | 93 for (FormatStyle style : FormatStyle.values()) { in test_valueOf() 94 assertEquals(FormatStyle.valueOf(style.name()), style); in test_valueOf() local 117 public void test_formatStyle(Temporal temporal, FormatStyle style, String formattedStr) { in test_formatStyle() argument 119 …DateTimeFormatter formatter = builder.appendLocalized(style, style).appendLiteral(" ").appendZoneO… in test_formatStyle()
|
D | TCKResolverStyle.java | 87 for (ResolverStyle style : ResolverStyle.values()) { in test_valueOf() 88 assertEquals(ResolverStyle.valueOf(style.name()), style); in test_valueOf() local 110 …public void test_resolverStyle(String str, ResolverStyle style, Class<?> expectedEx, int year, int… in test_resolverStyle() argument 124 formatter = formatter.withResolverStyle(style); in test_resolverStyle()
|
D | TCKSignStyle.java | 85 for (SignStyle style : SignStyle.values()) { in test_valueOf() 86 assertEquals(SignStyle.valueOf(style.name()), style); in test_valueOf() local 119 …public void test_signStyle(LocalDate localDate, SignStyle style, Class<?> expectedEx, String expec… in test_signStyle() argument 121 DateTimeFormatter formatter = builder.appendValue(ChronoField.YEAR, 2, 4, style) in test_signStyle()
|
D | TCKTextStyle.java | 99 for (TextStyle style : TextStyle.values()) { in test_valueOf() 100 assertEquals(TextStyle.valueOf(style.name()), style); in test_valueOf() local
|
D | TCKInstantPrinterParser.java | 294 for (ResolverStyle style : ResolverStyle.values()) { in test_parse_endOfDay() 295 TemporalAccessor parsed = f.withResolverStyle(style).parse("1970-02-03T24:00:00Z"); in test_parse_endOfDay() 306 for (ResolverStyle style : ResolverStyle.values()) { in test_parse_leapSecond() 307 … TemporalAccessor parsed = f.withResolverStyle(style).parse("1970-02-03T23:59:60.123456789Z"); in test_parse_leapSecond()
|
D | TCKDateTimeTextPrinting.java | 139 …public void test_appendText2arg_format(TemporalField field, TextStyle style, int value, String exp… in test_appendText2arg_format() argument 140 DateTimeFormatter f = builder.appendText(field, style).toFormatter(Locale.ENGLISH); in test_appendText2arg_format() 148 …public void test_appendText1arg_format(TemporalField field, TextStyle style, int value, String exp… in test_appendText1arg_format() argument 149 if (style == TextStyle.FULL) { in test_appendText1arg_format()
|
D | TCKDateTimeParseResolver.java | 604 public void test_resolveFourToTime(ResolverStyle style, in test_resolveFourToTime() argument 612 … ResolverStyle[] styles = (style != null ? new ResolverStyle[] {style} : ResolverStyle.values()); in test_resolveFourToTime() 621 f.withResolverStyle(style).parse(""); in test_resolveFourToTime() 631 public void test_resolveThreeToTime(ResolverStyle style, in test_resolveThreeToTime() argument 638 … ResolverStyle[] styles = (style != null ? new ResolverStyle[] {style} : ResolverStyle.values()); in test_resolveThreeToTime() 647 f.withResolverStyle(style).parse(""); in test_resolveThreeToTime() 657 public void test_resolveFourToDateTime(ResolverStyle style, in test_resolveFourToDateTime() argument 666 … ResolverStyle[] styles = (style != null ? new ResolverStyle[] {style} : ResolverStyle.values()); in test_resolveFourToDateTime() 703 …public void test_resolveSecondOfDay(ResolverStyle style, long value, Integer expectedSecond, int e… in test_resolveSecondOfDay() argument 708 TemporalAccessor accessor = f.withResolverStyle(style).parse(str); in test_resolveSecondOfDay() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 145 public String getText(TemporalField field, long value, TextStyle style, Locale locale) { in getText() argument 148 return ((LocaleStore) store).getText(value, style); in getText() 169 TextStyle style, Locale locale) { in getText() argument 172 return getText(field, value, style, locale); in getText() 204 chrono.getCalendarType(), fieldIndex, fieldValue, style.toCalendarStyle(), locale); in getText() 223 …public Iterator<Entry<String, Long>> getTextIterator(TemporalField field, TextStyle style, Locale … in getTextIterator() argument 226 return ((LocaleStore) store).getTextIterator(style); in getTextIterator() 249 TextStyle style, Locale locale) { in getTextIterator() argument 252 return getTextIterator(field, style, locale); in getTextIterator() 273 int calendarStyle = (style == null) ? Calendar.ALL_STYLES : style.toCalendarStyle(); in getTextIterator() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 516 public static final DateFormat getTimeInstance(int style) in getTimeInstance() argument 518 return get(style, 0, 1, Locale.getDefault(Locale.Category.FORMAT)); in getTimeInstance() 529 public static final DateFormat getTimeInstance(int style, in getTimeInstance() argument 532 return get(style, 0, 1, aLocale); in getTimeInstance() 562 public static final DateFormat getDateInstance(int style) in getDateInstance() argument 564 return get(0, style, 2, Locale.getDefault(Locale.Category.FORMAT)); in getDateInstance() 575 public static final DateFormat getDateInstance(int style, in getDateInstance() argument 578 return get(0, style, 2, aLocale); in getDateInstance()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 149 public java.lang.String getDisplayName(int field, int style, java.util.Locale locale) { in getDisplayName() argument 154 int field, int style, java.util.Locale locale) { in getDisplayNames() argument 159 int field, int style, java.util.Locale locale) { in getDisplayNamesImpl() argument 165 int style, in checkDisplayNameParams() argument 174 int field, int style, java.text.DateFormatSymbols symbols) { in getFieldStrings() argument 218 int getBaseStyle(int style) { in getBaseStyle() argument 222 private int toStandaloneStyle(int style) { in toStandaloneStyle() argument 226 private boolean isStandaloneStyle(int style) { in isStandaloneStyle() argument 230 private boolean isNarrowStyle(int style) { in isNarrowStyle() argument 234 private boolean isNarrowFormatStyle(int style) { in isNarrowFormatStyle() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKHijrahChronology.java | 207 for (ResolverStyle style : ResolverStyle.values()) { in data_resolve_styleByEra() 209 result[i++] = new Object[] {style, era}; in data_resolve_styleByEra() 216 public void test_resolve_yearOfEra_eraOnly_valid(ResolverStyle style, HijrahEra era) { in test_resolve_yearOfEra_eraOnly_valid() argument 219 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraOnly_valid() 226 … public void test_resolve_yearOfEra_eraAndYearOfEraOnly_valid(ResolverStyle style, HijrahEra era) { in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() argument 230 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 239 public void test_resolve_yearOfEra_eraAndYearOnly_valid(ResolverStyle style, HijrahEra era) { in test_resolve_yearOfEra_eraAndYearOnly_valid() argument 243 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOnly_valid() 254 for (ResolverStyle style : ResolverStyle.values()) { in data_resolve_styles() 255 result[i++] = new Object[] {style}; in data_resolve_styles() [all …]
|
D | TCKJapaneseChronology.java | 723 for (ResolverStyle style : ResolverStyle.values()) { in data_resolve_styleByEra() 725 result[i++] = new Object[] {style, era}; in data_resolve_styleByEra() 732 public void test_resolve_yearOfEra_eraOnly_valid(ResolverStyle style, JapaneseEra era) { in test_resolve_yearOfEra_eraOnly_valid() argument 735 JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraOnly_valid() 742 …public void test_resolve_yearOfEra_eraAndYearOfEraOnly_valid(ResolverStyle style, JapaneseEra era)… in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() argument 746 JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 754 public void test_resolve_yearOfEra_eraAndYearOnly_valid(ResolverStyle style, JapaneseEra era) { in test_resolve_yearOfEra_eraAndYearOnly_valid() argument 758 JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOnly_valid() 769 for (ResolverStyle style : ResolverStyle.values()) { in data_resolve_styles() 770 result[i++] = new Object[] {style}; in data_resolve_styles() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ThaiBuddhistEra.java | 168 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() argument 170 .appendText(ERA, style) in getDisplayName()
|
D | MinguoEra.java | 168 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() argument 170 .appendText(ERA, style) in getDisplayName()
|
D | HijrahEra.java | 168 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() argument 170 .appendText(ERA, style) in getDisplayName()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | SimpleDateFormatData.java | 133 public String getDateFormat(int style) { in getDateFormat() argument 134 switch (style) { in getDateFormat() 153 public String getTimeFormat(int style) { in getTimeFormat() argument 158 switch (style) { in getTimeFormat()
|
D | TimeZoneNames.java | 125 …blic static String getDisplayName(String[][] zoneStrings, String id, boolean daylight, int style) { in getDisplayName() argument 131 return (style == TimeZone.LONG) ? row[LONG_NAME_DST] : row[SHORT_NAME_DST]; in getDisplayName() 133 return (style == TimeZone.LONG) ? row[LONG_NAME] : row[SHORT_NAME]; in getDisplayName()
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 68 public static final java.text.DateFormat getTimeInstance(int style) { throw new RuntimeException("S… in getTimeInstance() argument 70 public static final java.text.DateFormat getTimeInstance(int style, java.util.Locale aLocale) { thr… in getTimeInstance() argument 74 public static final java.text.DateFormat getDateInstance(int style) { throw new RuntimeException("S… in getDateInstance() argument 76 public static final java.text.DateFormat getDateInstance(int style, java.util.Locale aLocale) { thr… in getDateInstance() argument
|