/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeTextProvider.java | 89 {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 …]
|
D | TestTextPrinter.java | 114 {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 …]
|
D | TestTextParser.java | 117 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 …]
|
D | TestDateTimeFormatterBuilder.java | 357 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 …]
|
D | TestZoneTextPrinterParser.java | 105 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()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | DateFormatBenchmark.java | 47 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()
|
D | ExpensiveObjectsBenchmark.java | 34 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()
|
D | StringBenchmark.java | 24 SHORT("short"), enumConstant
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeTextPrinting.java | 106 {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 …]
|
D | TCKLocalizedPrinterParser.java | 120 {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()
|
D | TCKTextStyle.java | 78 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()
|
D | TCKOffsetPrinterParser.java | 219 {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 …]
|
D | TCKFormatStyle.java | 100 …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/ |
D | DateFormatTest.java | 98 .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/ |
D | OldTimeZoneTest.java | 100 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()
|
D | TimeZoneTest.java | 55 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/ |
D | DateFormatTest.java | 35 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()
|
D | OldDateFormatTest.java | 92 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 804 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/ |
D | FormatStyle.java | 97 SHORT; enumConstant
|
D | TextStyle.java | 104 SHORT(Calendar.SHORT_FORMAT, 1), enumConstant
|
/libcore/luni/src/test/java/libcore/highmemorytest/java/text/ |
D | DateFormatTest.java | 58 for (int formatStyle = DateFormat.FULL; formatStyle <= DateFormat.SHORT; in test_format_allLocales() 77 for (int formatStyle = DateFormat.FULL; formatStyle <= DateFormat.SHORT; in test_toPattern_allLocales()
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | LocaleDataTest.java | 133 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/ |
D | LocaleData.java | 251 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/ |
D | DateFormat.java | 438 public static final int SHORT = 3; field in DateFormat 592 return getDateTimeInstance(SHORT, SHORT); in getInstance()
|