Home
last modified time | relevance | path

Searched refs:SHORT (Results 1 – 25 of 50) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeTextProvider.java89 {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()
100 {DAY_OF_WEEK, 3, TextStyle.SHORT, ptBR, "qua."}, in data_text()
[all …]
DTestTextPrinter.java114 {DAY_OF_WEEK, TextStyle.SHORT, 1, "Mon"}, in provider_dow()
115 {DAY_OF_WEEK, TextStyle.SHORT, 2, "Tue"}, in provider_dow()
116 {DAY_OF_WEEK, TextStyle.SHORT, 3, "Wed"}, in provider_dow()
117 {DAY_OF_WEEK, TextStyle.SHORT, 4, "Thu"}, in provider_dow()
118 {DAY_OF_WEEK, TextStyle.SHORT, 5, "Fri"}, in provider_dow()
119 {DAY_OF_WEEK, TextStyle.SHORT, 6, "Sat"}, in provider_dow()
120 {DAY_OF_WEEK, TextStyle.SHORT, 7, "Sun"}, in provider_dow()
138 {DAY_OF_MONTH, TextStyle.SHORT, 1, "1"}, in provider_dow()
139 {DAY_OF_MONTH, TextStyle.SHORT, 2, "2"}, in provider_dow()
140 {DAY_OF_MONTH, TextStyle.SHORT, 3, "3"}, in provider_dow()
[all …]
DTestTextParser.java117 assertEquals(getFormatter(DAY_OF_WEEK, TextStyle.SHORT) in test_parse_remainderIgnored()
160 {DAY_OF_WEEK, TextStyle.SHORT, 1, "Mon"}, in provider_text()
161 {DAY_OF_WEEK, TextStyle.SHORT, 2, "Tue"}, in provider_text()
162 {DAY_OF_WEEK, TextStyle.SHORT, 3, "Wed"}, in provider_text()
163 {DAY_OF_WEEK, TextStyle.SHORT, 4, "Thu"}, in provider_text()
164 {DAY_OF_WEEK, TextStyle.SHORT, 5, "Fri"}, in provider_text()
165 {DAY_OF_WEEK, TextStyle.SHORT, 6, "Sat"}, in provider_text()
166 {DAY_OF_WEEK, TextStyle.SHORT, 7, "Sun"}, in provider_text()
171 {MONTH_OF_YEAR, TextStyle.SHORT, 1, "Jan"}, in provider_text()
172 {MONTH_OF_YEAR, TextStyle.SHORT, 12, "Dec"}, in provider_text()
[all …]
DTestDateTimeFormatterBuilder.java357 builder.appendText(MONTH_OF_YEAR, TextStyle.SHORT); in test_appendText_2arg()
364 builder.appendText(null, TextStyle.SHORT); in test_appendText_2arg_nullRule()
911 … {FormatStyle.SHORT, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.US, "M/d/yy, h:mm a"}, in localizedDateTimePatterns()
915 {FormatStyle.SHORT, null, IsoChronology.INSTANCE, Locale.US, "M/d/yy"}, in localizedDateTimePatterns()
919 {null, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.US, "h:mm a"}, in localizedDateTimePatterns()
925 … {FormatStyle.SHORT, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.FRENCH, "dd/MM/y HH:mm"}, in localizedDateTimePatterns()
929 {FormatStyle.SHORT, null, IsoChronology.INSTANCE, Locale.FRENCH, "dd/MM/y"}, in localizedDateTimePatterns()
933 {null, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.FRENCH, "HH:mm"}, in localizedDateTimePatterns()
939 …{FormatStyle.SHORT, FormatStyle.SHORT, JapaneseChronology.INSTANCE, Locale.JAPANESE, "GGGGGy/M/d H… in localizedDateTimePatterns()
943 {FormatStyle.SHORT, null, JapaneseChronology.INSTANCE, Locale.JAPANESE, "GGGGGy/M/d"}, in localizedDateTimePatterns()
[all …]
DTestZoneTextPrinterParser.java106 printText(locale, zdt, TextStyle.SHORT, tz, in test_printText()
107 tz.getDisplayName(isDST, TimeZone.SHORT, locale)); in test_printText()
139 parseText(zids, locale, TextStyle.SHORT, false); in test_ParseText()
140 parseText(zids, locale, TextStyle.SHORT, true); in test_ParseText()
184 …"Australia/South", "ACST", preferred_s, new Locale("en", "AU"), TextStyle.SHORT}, in data_preferredZones()
/libcore/benchmarks/src/benchmarks/regression/
DDateFormatBenchmark.java47 DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale1); in timeGetDateTimeInstance_multiple()
48 DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale2); in timeGetDateTimeInstance_multiple()
49 DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale3); in timeGetDateTimeInstance_multiple()
50 DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale4); in timeGetDateTimeInstance_multiple()
DExpensiveObjectsBenchmark.java34 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeNewDateFormatTimeInstance()
40 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeClonedDateFormatTimeInstance()
47 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeReusedDateFormatTimeInstance()
DStringBenchmark.java24 SHORT("short"), enumConstant
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeTextPrinting.java106 {DAY_OF_WEEK, TextStyle.SHORT, 1, "Mon"}, in data_text()
107 {DAY_OF_WEEK, TextStyle.SHORT, 2, "Tue"}, in data_text()
108 {DAY_OF_WEEK, TextStyle.SHORT, 3, "Wed"}, in data_text()
109 {DAY_OF_WEEK, TextStyle.SHORT, 4, "Thu"}, in data_text()
110 {DAY_OF_WEEK, TextStyle.SHORT, 5, "Fri"}, in data_text()
111 {DAY_OF_WEEK, TextStyle.SHORT, 6, "Sat"}, in data_text()
112 {DAY_OF_WEEK, TextStyle.SHORT, 7, "Sun"}, in data_text()
122 {DAY_OF_MONTH, TextStyle.SHORT, 1, "1"}, in data_text()
123 {DAY_OF_MONTH, TextStyle.SHORT, 2, "2"}, in data_text()
124 {DAY_OF_MONTH, TextStyle.SHORT, 3, "3"}, in data_text()
[all …]
DTCKLocalizedPrinterParser.java120 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK}, in data_date()
121 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US}, in data_date()
122 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE}, in data_date()
123 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN}, in data_date()
172 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK}, in data_time()
173 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US}, in data_time()
174 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE}, in data_time()
175 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN}, in data_time()
DTCKTextStyle.java78 assertEquals(TextStyle.SHORT, TextStyle.SHORT.asNormal()); in test_standaloneNormal()
82 assertEquals(TextStyle.SHORT_STANDALONE, TextStyle.SHORT.asStandalone()); in test_standaloneNormal()
90 assertTrue(!TextStyle.SHORT.isStandalone()); in test_standaloneNormal()
DTCKOffsetPrinterParser.java219 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_UTC, "GMT"}, in data_print_localized()
220 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_P0100, "GMT+1"}, in data_print_localized()
221 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_P0123, "GMT+1:23"}, in data_print_localized()
222 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_P0023, "GMT+0:23"}, in data_print_localized()
223 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_P012345, "GMT+1:23:45"}, in data_print_localized()
224 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_M000045, "GMT-0:00:45"}, in data_print_localized()
225 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_M0100, "GMT-1"}, in data_print_localized()
226 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_M0123, "GMT-1:23"}, in data_print_localized()
227 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_M0023, "GMT-0:23"}, in data_print_localized()
228 {TextStyle.SHORT, DT_2012_06_30_12_30_40, OFFSET_M012345, "GMT-1:23:45"}, in data_print_localized()
[all …]
DTCKFormatStyle.java100 …ime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.SHORT, "02/10/2001, 01:0… in data_formatStyle()
105 …Time.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.SHORT, "02/10/2001, 01:0… in data_formatStyle()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java53 DateFormat f1 = DateFormat.getDateTimeInstance(DateFormat.SHORT, in test_getAvailableLocales()
54 DateFormat.SHORT, locales[i]); in test_getAvailableLocales()
92 .getDateInstance(DateFormat.SHORT); in test_getDateInstanceI()
95 DateFormat.SHORT, Locale.getDefault()))); in test_getDateInstanceI()
142 DateFormat.SHORT, Locale.GERMAN); in test_getDateInstanceILjava_util_Locale()
215 testDateTime(DateFormat.SHORT, DateFormat.SHORT); in test_getDateTimeInstanceII()
216 testDateTime(DateFormat.SHORT, DateFormat.MEDIUM); in test_getDateTimeInstanceII()
217 testDateTime(DateFormat.SHORT, DateFormat.LONG); in test_getDateTimeInstanceII()
218 testDateTime(DateFormat.SHORT, DateFormat.FULL); in test_getDateTimeInstanceII()
220 testDateTime(DateFormat.MEDIUM, DateFormat.SHORT); in test_getDateTimeInstanceII()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldTimeZoneTest.java100 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT)); in test_getDisplayNameZI()
114 assertEquals("PDT", tz.getDisplayName(true, TimeZone.SHORT, Locale.US)); in test_getDisplayNameZILjava_util_Locale()
115 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT, Locale.US)); in test_getDisplayNameZILjava_util_Locale()
120 assertEquals("GMT-08:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale()
121 assertEquals("GMT-07:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale()
122 assertEquals("GMT-08:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in test_getDisplayNameZILjava_util_Locale()
123 assertEquals("GMT-07:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in test_getDisplayNameZILjava_util_Locale()
DTimeZoneTest.java55 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames()
56 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames()
57 assertEquals("GMT-01:30", tzMinus0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames()
101 assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in testGetDisplayNameShort_nonHourOffsets()
102 assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in testGetDisplayNameShort_nonHourOffsets()
267 String shortDst = tz.getDisplayName(true, TimeZone.SHORT, locale); in checkDisplayNames()
268 String shortStd = tz.getDisplayName(false, TimeZone.SHORT, locale); in checkDisplayNames()
326 assertEquals("GMT+14:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.US)); in testApia()
327 assertEquals("GMT+13:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testApia()
/libcore/luni/src/test/java/libcore/java/text/
DDateFormatTest.java35 checkTimePattern(DateFormat.SHORT, "h:mm a"); in testIs24Hour_notCached()
39 checkTimePattern(DateFormat.SHORT, "HH:mm"); in testIs24Hour_notCached()
43 checkTimePattern(DateFormat.SHORT, "h:mm a"); in testIs24Hour_notCached()
DOldDateFormatTest.java92 DateFormat.SHORT, DateFormat.SHORT, Locale.US); in test_formatLjava_util_Date()
112 DateFormat.SHORT, DateFormat.SHORT, Locale.US); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
213 … DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in test_parseLString()
331 format = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.SHORT, Locale.US); in test_parseLString()
DSimpleDateFormatTest.java72 DateFormat.SHORT, DateFormat.SHORT, Locale.US); in testDefaultConstructor_localeUS()
447 SimpleDateFormat.getDateInstance(DateFormat.SHORT, null); in test_nullLocales()
452 SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, null); in test_nullLocales()
457 SimpleDateFormat.getTimeInstance(DateFormat.SHORT, null); in test_nullLocales()
464 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, new Locale("sl")); in test_sl_dates()
584 int timeZoneStyle = TimeZone.SHORT; in testFormatUtcShort()
623 int timeZoneStyle = TimeZone.SHORT; in testParseUtcShort()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java804 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale()
810 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale()
818 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale()
824 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale()
834 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale()
845 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale()
854 .getDisplayName(field, Calendar.SHORT, locale)); in test_getDisplayNameIILjava_util_Locale()
863 cal.getDisplayName(-1, Calendar.SHORT, Locale.US); in test_getDisplayNameIILjava_util_Locale()
887 cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, null); in test_getDisplayNameIILjava_util_Locale()
893 cal.getDisplayName(-1, Calendar.SHORT, null); in test_getDisplayNameIILjava_util_Locale()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DFormatStyle.java97 SHORT; enumConstant
DTextStyle.java104 SHORT(Calendar.SHORT_FORMAT, 1), enumConstant
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java250 case DateFormat.SHORT: in getDateFormat()
268 case DateFormat.SHORT: in getTimeFormat()
422 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.SHORT); in initializeDateTimePatterns()
430 android.icu.text.DateFormat.SHORT, android.icu.text.DateFormat.NONE); in initializeDateTimePatterns()
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java438 public static final int SHORT = 3; field in DateFormat
592 return getDateTimeInstance(SHORT, SHORT); in getInstance()
/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java145 assertEquals("h:mm a", en_US.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
147 assertEquals("HH:mm", en_US.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
151 assertEquals("aK:mm", ja_JP.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
153 assertEquals("H:mm", ja_JP.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()

12