Home
last modified time | relevance | path

Searched refs:timeStyle (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
DDateFormat.java566 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()
790 private static DateFormat get(int timeStyle, int dateStyle, in get() argument
793 if (timeStyle < 0 || timeStyle > 3) { in get()
794 throw new IllegalArgumentException("Illegal time style " + timeStyle); in get()
797 timeStyle = -1; in get()
817 return new SimpleDateFormat(timeStyle, dateStyle, loc); in get()
DSimpleDateFormat.java623 SimpleDateFormat(int timeStyle, int dateStyle, Locale locale) { in SimpleDateFormat() argument
624 this(getDateTimeFormat(timeStyle, dateStyle, locale), locale); in SimpleDateFormat()
627 private static String getDateTimeFormat(int timeStyle, int dateStyle, Locale locale) { in getDateTimeFormat() argument
629 if ((timeStyle >= 0) && (dateStyle >= 0)) { in getDateTimeFormat()
632 localeData.getTimeFormat(timeStyle), in getDateTimeFormat()
635 } else if (timeStyle >= 0) { in getDateTimeFormat()
636 return localeData.getTimeFormat(timeStyle); in getDateTimeFormat()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java197 …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/
DDateFormat.java105 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/
DDateTimeFormatter.java614 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()
DDateTimeFormatterBuilder.java205 public static String getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in getLocalizedDateTimePattern() argument
209 if (dateStyle == null && timeStyle == null) { in getLocalizedDateTimePattern()
220 convertStyle(dateStyle), convertStyle(timeStyle)); in getLocalizedDateTimePattern()
1276 public DateTimeFormatterBuilder appendLocalized(FormatStyle dateStyle, FormatStyle timeStyle) { in appendLocalized() argument
1277 if (dateStyle == null && timeStyle == null) { in appendLocalized()
1280 appendInternal(new LocalizedPrinterParser(dateStyle, timeStyle)); in appendLocalized()
4437 private final FormatStyle timeStyle; field in LocalizedPrinterParser
4445 LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { in LocalizedPrinterParser() argument
4448 this.timeStyle = timeStyle; in LocalizedPrinterParser()
4475 String key = chrono.getId() + '|' + locale.toString() + '|' + dateStyle + timeStyle; in formatter()
[all …]
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java80 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/
DDateFormat.annotated.java80 …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/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java966 public void test_getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in test_getLocalizedDateTimePattern() argument
968 …String actual = DateTimeFormatterBuilder.getLocalizedDateTimePattern(dateStyle, timeStyle, chrono,… in test_getLocalizedDateTimePattern()