Home
last modified time | relevance | path

Searched refs:SHORT (Results 1 – 25 of 42) 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 …]
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()
927 … {FormatStyle.SHORT, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.FRENCH, "dd/MM/y HH:mm"}, in localizedDateTimePatterns()
931 {FormatStyle.SHORT, null, IsoChronology.INSTANCE, Locale.FRENCH, "dd/MM/y"}, in localizedDateTimePatterns()
935 {null, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.FRENCH, "HH:mm"}, in localizedDateTimePatterns()
941 …{FormatStyle.SHORT, FormatStyle.SHORT, JapaneseChronology.INSTANCE, Locale.JAPANESE, "GGGGGy/M/d H… in localizedDateTimePatterns()
945 {FormatStyle.SHORT, null, JapaneseChronology.INSTANCE, Locale.JAPANESE, "GGGGGy/M/d"}, in localizedDateTimePatterns()
[all …]
DTestZoneTextPrinterParser.java105 printText(locale, zdt, TextStyle.SHORT, tz, in test_printText()
106 tz.getDisplayName(isDST, TimeZone.SHORT, locale)); in test_printText()
152 parseText(zids, locale, TextStyle.SHORT, false); in test_ParseText()
153 parseText(zids, locale, TextStyle.SHORT, true); in test_ParseText()
197 …"Australia/South", "ACST", preferred_s, new Locale("en", "AU"), TextStyle.SHORT}, in data_preferredZones()
DTestNonIsoFormatter.java187 DateTimeFormatter dtf = new DateTimeFormatterBuilder().appendChronologyText(TextStyle.SHORT) in test_chronoNames()
/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()
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()
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.java98 .getDateInstance(DateFormat.SHORT); in test_getDateInstanceI()
101 DateFormat.SHORT, Locale.getDefault()))); in test_getDateInstanceI()
148 DateFormat.SHORT, Locale.GERMAN); in test_getDateInstanceILjava_util_Locale()
221 testDateTime(DateFormat.SHORT, DateFormat.SHORT); in test_getDateTimeInstanceII()
222 testDateTime(DateFormat.SHORT, DateFormat.MEDIUM); in test_getDateTimeInstanceII()
223 testDateTime(DateFormat.SHORT, DateFormat.LONG); in test_getDateTimeInstanceII()
224 testDateTime(DateFormat.SHORT, DateFormat.FULL); in test_getDateTimeInstanceII()
226 testDateTime(DateFormat.MEDIUM, DateFormat.SHORT); in test_getDateTimeInstanceII()
231 testDateTime(DateFormat.LONG, DateFormat.SHORT); in test_getDateTimeInstanceII()
236 testDateTime(DateFormat.FULL, 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()
/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()
/libcore/ojluni/src/main/java/java/time/format/
DFormatStyle.java97 SHORT; enumConstant
DTextStyle.java104 SHORT(Calendar.SHORT_FORMAT, 1), enumConstant
/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/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java133 assertEquals("h:mm a", en_US.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
135 assertEquals("HH:mm", en_US.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
139 assertEquals("aK:mm", ja_JP.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
141 assertEquals("H:mm", ja_JP.getTimeFormat(DateFormat.SHORT)); in testTimeFormat12And24()
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java251 case DateFormat.SHORT: in getDateFormat()
269 case DateFormat.SHORT: in getTimeFormat()
423 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.SHORT); in initializeDateTimePatterns()
431 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()
DMessageFormat.java1282 DateFormat.SHORT, DateFormat.SHORT, locale);//fix in subformat()
1416 DateFormat.SHORT,
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java155 public static final int SHORT = 0; field in TimeZone
394 case SHORT: in getDisplayName()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java101 DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT) in test_format_locale_my_MM()

12