/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 610 public static final DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument 613 return get(timeStyle, dateStyle, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance() 625 getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 627 return get(timeStyle, dateStyle, 3, aLocale); in getDateTimeInstance() 845 private static DateFormat get(int timeStyle, int dateStyle, in get() argument 855 if (dateStyle < 0 || dateStyle > 3) { in get() 856 throw new IllegalArgumentException("Illegal date style " + dateStyle); in get() 859 dateStyle = -1; in get() 872 return new SimpleDateFormat(timeStyle, dateStyle, loc); in get()
|
D | SimpleDateFormat.java | 644 SimpleDateFormat(int timeStyle, int dateStyle, Locale locale) { in SimpleDateFormat() argument 645 this(getDateTimeFormat(timeStyle, dateStyle, locale), locale); in SimpleDateFormat() 648 private static String getDateTimeFormat(int timeStyle, int dateStyle, Locale locale) { in getDateTimeFormat() argument 650 if ((timeStyle >= 0) && (dateStyle >= 0)) { in getDateTimeFormat() 652 data.getDateFormat(dateStyle), in getDateTimeFormat() 658 } else if (dateStyle >= 0) { in getDateTimeFormat() 659 return data.getDateFormat(dateStyle); in getDateTimeFormat()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedPrinterParser.java | 146 …public void test_date_print(LocalDate date, FormatStyle dateStyle, int dateStyleOld, Locale locale… in test_date_print() argument 151 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale); in test_date_print() 158 …public void test_date_parse(LocalDate date, FormatStyle dateStyle, int dateStyleOld, Locale locale… in test_date_parse() argument 163 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale); in test_date_parse()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DateFormat.java | 105 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) { in getDateTimeInstance() argument 110 int dateStyle, int timeStyle, java.util.Locale aLocale) { in getDateTimeInstance() argument 171 int timeStyle, int dateStyle, int flags, java.util.Locale loc) { in get() argument
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 617 public static DateTimeFormatter ofLocalizedDate(FormatStyle dateStyle) { in ofLocalizedDate() argument 618 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDate() 619 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, null) in ofLocalizedDate() 711 …public static DateTimeFormatter ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle) { in ofLocalizedDateTime() argument 712 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDateTime() 714 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, timeStyle) in ofLocalizedDateTime()
|
D | DateTimeFormatterBuilder.java | 216 public static String getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in getLocalizedDateTimePattern() argument 220 if (dateStyle == null && timeStyle == null) { in getLocalizedDateTimePattern() 235 String pattern = extendedCalendar.getDateTimePattern(convertStyle(dateStyle), in getLocalizedDateTimePattern() 1425 public DateTimeFormatterBuilder appendLocalized(FormatStyle dateStyle, FormatStyle timeStyle) { in appendLocalized() argument 1426 if (dateStyle == null && timeStyle == null) { in appendLocalized() 1429 appendInternal(new LocalizedPrinterParser(dateStyle, timeStyle)); in appendLocalized() 4966 private final FormatStyle dateStyle; field in LocalizedPrinterParser 4975 LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { in LocalizedPrinterParser() argument 4977 this.dateStyle = dateStyle; in LocalizedPrinterParser() 5005 String key = chrono.getId() + '|' + locale.toString() + '|' + dateStyle + timeStyle; in formatter() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | SimpleDateFormatData.java | 189 private String getDateTimePattern(ExtendedCalendar calendar, int dateStyle, int timeStyle) { in getDateTimePattern() argument 191 calendar.getDateTimePattern(dateStyle, timeStyle)); in getDateTimePattern()
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 80 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) { throw … in getDateTimeInstance() argument 82 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, java.uti… in getDateTimeInstance() argument
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilderWithLocale.java | 220 public void test_getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in test_getLocalizedDateTimePattern() argument 226 …String actual = DateTimeFormatterBuilder.getLocalizedDateTimePattern(dateStyle, timeStyle, chrono,… in test_getLocalizedDateTimePattern()
|
D | TestDateTimeFormatterBuilder.java | 1279 public void test_getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in test_getLocalizedDateTimePattern() argument 1285 …String actual = DateTimeFormatterBuilder.getLocalizedDateTimePattern(dateStyle, timeStyle, chrono,… in test_getLocalizedDateTimePattern()
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | DateFormat.annotated.java | 80 @libcore.util.NonNull public static final java.text.DateFormat getDateTimeInstance(int dateStyle, i… in getDateTimeInstance() argument 82 @libcore.util.NonNull public static final java.text.DateFormat getDateTimeInstance(int dateStyle, i… in getDateTimeInstance() argument
|