/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 566 int timeStyle) in getDateTimeInstance() argument 568 return get(timeStyle, dateStyle, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance() 580 getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 582 return get(timeStyle, dateStyle, 3, aLocale); in getDateTimeInstance() 798 private static DateFormat get(int timeStyle, int dateStyle, in get() argument 801 if (timeStyle < 0 || timeStyle > 3) { in get() 802 throw new IllegalArgumentException("Illegal time style " + timeStyle); in get() 805 timeStyle = -1; in get() 825 return new SimpleDateFormat(timeStyle, dateStyle, loc); in get()
|
D | SimpleDateFormat.java | 622 SimpleDateFormat(int timeStyle, int dateStyle, Locale locale) { in SimpleDateFormat() argument 623 this(getDateTimeFormat(timeStyle, dateStyle, locale), locale); in SimpleDateFormat() 626 private static String getDateTimeFormat(int timeStyle, int dateStyle, Locale locale) { in getDateTimeFormat() argument 628 if ((timeStyle >= 0) && (dateStyle >= 0)) { in getDateTimeFormat() 631 localeData.getTimeFormat(timeStyle), in getDateTimeFormat() 634 } else if (timeStyle >= 0) { in getDateTimeFormat() 635 return localeData.getTimeFormat(timeStyle); in getDateTimeFormat()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedPrinterParser.java | 197 …public void test_time_print(LocalTime time, FormatStyle timeStyle, int timeStyleOld, Locale locale… in test_time_print() argument 202 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale); in test_time_print() 209 …public void test_time_parse(LocalTime time, FormatStyle timeStyle, int timeStyleOld, Locale locale… in test_time_parse() argument 214 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale); in test_time_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 | 614 public static DateTimeFormatter ofLocalizedTime(FormatStyle timeStyle) { in ofLocalizedTime() argument 615 Objects.requireNonNull(timeStyle, "timeStyle"); in ofLocalizedTime() 616 return new DateTimeFormatterBuilder().appendLocalized(null, timeStyle) in ofLocalizedTime() 671 …public static DateTimeFormatter ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle) { in ofLocalizedDateTime() argument 673 Objects.requireNonNull(timeStyle, "timeStyle"); in ofLocalizedDateTime() 674 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, timeStyle) in ofLocalizedDateTime()
|
D | DateTimeFormatterBuilder.java | 208 public static String getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in getLocalizedDateTimePattern() argument 212 if (dateStyle == null && timeStyle == null) { in getLocalizedDateTimePattern() 224 convertStyle(timeStyle)); in getLocalizedDateTimePattern() 1285 public DateTimeFormatterBuilder appendLocalized(FormatStyle dateStyle, FormatStyle timeStyle) { in appendLocalized() argument 1286 if (dateStyle == null && timeStyle == null) { in appendLocalized() 1289 appendInternal(new LocalizedPrinterParser(dateStyle, timeStyle)); in appendLocalized() 4448 private final FormatStyle timeStyle; field in LocalizedPrinterParser 4456 LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { in LocalizedPrinterParser() argument 4459 this.timeStyle = timeStyle; in LocalizedPrinterParser() 4486 String key = chrono.getId() + '|' + locale.toString() + '|' + dateStyle + timeStyle; in formatter() [all …]
|
/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/annotations/sdk/nullability/java/text/ |
D | DateFormat.annotated.java | 80 …tatic final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) { throw new Run… in getDateTimeInstance() argument 82 …tatic final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, @libcore.util.N… in getDateTimeInstance() argument
|
/libcore/luni/src/main/java/libcore/icu/ |
D | LocaleData.java | 435 int dateStyle, int timeStyle) { in getDateTimeFormatString() argument 437 extendedCalendar.getDateTimePattern(dateStyle, timeStyle)); in getDateTimeFormatString()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilder.java | 972 public void test_getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in test_getLocalizedDateTimePattern() argument 974 …String actual = DateTimeFormatterBuilder.getLocalizedDateTimePattern(dateStyle, timeStyle, chrono,… in test_getLocalizedDateTimePattern()
|