/external/icu/android_icu4j/testing/src/com/android/icu/test/util/ |
D | ExtendedCalendarTest.java | 47 for (int dateStyle = DateFormat.NONE; dateStyle <= DateFormat.SHORT; dateStyle++) { in testGetDateTimeFormatString() 49 if (timeStyle == DateFormat.NONE && dateStyle == DateFormat.NONE) { in testGetDateTimeFormatString() 52 String pattern1 = extendedCalendar.getDateTimePattern(dateStyle, timeStyle); in testGetDateTimeFormatString() 54 dateStyle, timeStyle, uLocale); in testGetDateTimeFormatString() 56 String msg = "Locale:" + uLocale + " date style:" + dateStyle in testGetDateTimeFormatString()
|
/external/icu/icu4c/source/test/intltest/ |
D | tsdate.cpp | 72 DateFormat::EStyle timeStyle, dateStyle; in testLocale() local 90 for(dateStyle = (DateFormat::EStyle)0; in testLocale() 91 dateStyle < (DateFormat::EStyle)4; in testLocale() 92 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale() 94 fTestName = (UnicodeString) "Date test " + (int32_t) dateStyle + " (" + localeName + ")"; in testLocale() 95 fFormat = DateFormat::createDateInstance(dateStyle, locale); in testLocale() 99 for(dateStyle = (DateFormat::EStyle)0; in testLocale() 100 dateStyle < (DateFormat::EStyle)4; in testLocale() 101 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale() 107 …fTestName = (UnicodeString) "DateTime test " + (int32_t) dateStyle + "/" + (int32_t) timeStyle + "… in testLocale() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDateFormat.java | 72 int timeStyle, dateStyle; in localeTest() local 93 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 94 fTestName = "Date test " + dateStyle + " (" + localeName + ")"; in localeTest() 96 fFormat = DateFormat.getDateInstance(dateStyle, locale); in localeTest() 105 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 107 … fTestName = "DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"; in localeTest() 109 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestDateFormat.java | 75 int timeStyle, dateStyle; in localeTest() local 96 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 97 fTestName = "Date test " + dateStyle + " (" + localeName + ")"; in localeTest() 99 fFormat = DateFormat.getDateInstance(dateStyle, locale); in localeTest() 108 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 110 … fTestName = "DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"; in localeTest() 112 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 1531 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument 1534 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance() 1552 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1554 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1572 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1574 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance() 1868 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument 1870 (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { in get() 1871 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1878 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in get() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 1421 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument 1424 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance() 1441 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1443 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1460 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1462 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance() 1736 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument 1738 (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { in get() 1739 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1746 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in get() [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestRangeAbbreviator.java | 48 for (int dateStyle = -1; dateStyle <= DateFormat.SHORT; ++dateStyle) { in main() 53 || dateStyle == -1 && timeStyle == -1) { in main() 56 DateFormat dtf = DateFormat.getDateTimeInstance(dateStyle, in main() 59 String styleString = ("date:" + STYLE_NAMES[dateStyle + 1]) in main()
|
/external/icu/icu4c/source/i18n/ |
D | datefmt.cpp | 408 DateFormat::createDateTimeInstance(EStyle dateStyle, in createDateTimeInstance() argument 412 if(dateStyle != kNone) in createDateTimeInstance() 414 dateStyle = (EStyle) (dateStyle + kDateOffset); in createDateTimeInstance() 416 return create(timeStyle, dateStyle, aLocale); in createDateTimeInstance() 503 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) in create() argument 512 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status); in create() 523 …((timeStyle!=UDAT_NONE)&&(timeStyle & UDAT_RELATIVE)) || */((dateStyle!=kNone)&&((dateStyle-kDateO… in create() 524 … new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), lo… in create() 531 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status); in create()
|
D | reldtfmt.cpp | 70 RelativeDateFormat::RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, in RelativeDateFormat() argument 73 fDateStyle(dateStyle), fLocale(locale), fDatesLen(0), fDates(NULL), in RelativeDateFormat() 87 …UDateFormatStyle baseDateStyle = (dateStyle > UDAT_SHORT)? (UDateFormatStyle)(dateStyle & ~UDAT_RE… in RelativeDateFormat()
|
D | windtfmt.h | 45 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
|
D | reldtfmt.h | 47 …RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, …
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
D | GlobalizationPreferences.java | 661 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument 668 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat() 685 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument 686 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat() 687 || dateStyle < 0 || dateStyle >= DF_LIMIT in getDateFormat() 693 result = dateFormats[dateStyle][timeStyle]; in getDateFormat() 700 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat() 944 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument 951 result = DateFormat.getDateInstance(getCalendar(), dateStyle, dfLocale); in guessDateFormat() 952 } else if (dateStyle == DF_NONE) { in guessDateFormat() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GlobalizationPreferences.java | 635 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument 642 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat() 658 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument 659 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat() 660 || dateStyle < 0 || dateStyle >= DF_LIMIT in getDateFormat() 666 result = dateFormats[dateStyle][timeStyle]; in getDateFormat() 673 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat() 912 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument 919 result = DateFormat.getDateInstance(getCalendar(), dateStyle, dfLocale); in guessDateFormat() 920 } else if (dateStyle == DF_NONE) { in guessDateFormat() [all …]
|
D | Calendar.java | 3308 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 3309 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat() 3317 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 3318 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat() 3419 static private DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, in formatHelper() argument 3424 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in formatHelper() 3425 throw new IllegalArgumentException("Illegal date style " + dateStyle); in formatHelper() 3433 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3435 patternData.getDateTimePattern(dateStyle), 2, 2, in formatHelper() 3437 patternData.patterns[dateStyle + 4]); in formatHelper() [all …]
|
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/util/ |
D | ExtendedCalendar.java | 64 public String getDateTimePattern(int dateStyle, int timeStyle) { in getDateTimePattern() argument 65 return Calendar.getDateTimeFormatString(uLocale, calendar.getType(), dateStyle, timeStyle); in getDateTimePattern()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | Calendar.java | 3410 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 3411 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat() 3420 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 3421 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat() 3526 static private DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, in formatHelper() argument 3531 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in formatHelper() 3532 throw new IllegalArgumentException("Illegal date style " + dateStyle); in formatHelper() 3540 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3542 patternData.getDateTimePattern(dateStyle), 2, 2, in formatHelper() 3544 patternData.patterns[dateStyle + 4]); in formatHelper() [all …]
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
D | DateFormatProviderICU.java | 29 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) { in getDateTimeInstance() argument 30 return getInstance(dateStyle, timeStyle, locale); in getDateTimeInstance()
|
/external/icu/libicu/cts_headers/unicode/ |
D | datefmt.h | 587 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault, 893 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
|
D | smpdtfmt.h | 1239 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status); 1335 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
|
D | udat.h | 893 UDateFormatStyle dateStyle, 1705 UDateFormatStyle dateStyle,
|
/external/icu/icu4c/source/i18n/unicode/ |
D | datefmt.h | 587 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault, 893 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
|
D | smpdtfmt.h | 1239 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status); 1335 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
|
D | udat.h | 893 UDateFormatStyle dateStyle, 1705 UDateFormatStyle dateStyle,
|
/external/icu/libicu/cts_headers/ |
D | windtfmt.h | 45 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
|
/external/icu/libandroidicu/include/unicode/ |
D | udat.h | 893 UDateFormatStyle dateStyle, 1705 UDateFormatStyle dateStyle,
|