/external/icu/icu4c/source/test/intltest/ |
D | tsdate.cpp | 69 DateFormat::EStyle timeStyle, dateStyle; in testLocale() local 87 for(dateStyle = (DateFormat::EStyle)0; in testLocale() 88 dateStyle < (DateFormat::EStyle)4; in testLocale() 89 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale() 91 fTestName = (UnicodeString) "Date test " + (int32_t) dateStyle + " (" + localeName + ")"; in testLocale() 92 fFormat = DateFormat::createDateInstance(dateStyle, locale); in testLocale() 96 for(dateStyle = (DateFormat::EStyle)0; in testLocale() 97 dateStyle < (DateFormat::EStyle)4; in testLocale() 98 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale() 104 …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 | 64 int timeStyle, dateStyle; in localeTest() local 85 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 86 fTestName = new String("Date test " + dateStyle + " (" + localeName + ")"); in localeTest() 88 fFormat = DateFormat.getDateInstance(dateStyle, locale); in localeTest() 97 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 99 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest() 101 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
D | DateFormatTest.java | 3735 int dateStyle = dateStylesList[i]; in TestRelativeDateFormat() local 3736 … DateFormat fmtRelDateTime = DateFormat.getDateTimeInstance(dateStyle, DateFormat.SHORT, loc); in TestRelativeDateFormat() 3737 DateFormat fmtRelDate = DateFormat.getDateInstance(dateStyle, loc); in TestRelativeDateFormat() 3751 logln(dayOffset + ", " + dateStyle + ", " + dateTimeStr); in TestRelativeDateFormat() 3752 logln(dayOffset + ", " + dateStyle + ", " + dateStr); in TestRelativeDateFormat() 3753 logln(dayOffset + ", " + dateStyle + ", " + timeStr); in TestRelativeDateFormat() 3758 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat() 3764 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat() 3771 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat() 4534 for (int dateStyle = DateFormat.FULL; dateStyle <= DateFormat.SHORT; ++dateStyle) { in TestDotAndAtLeniency() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestDateFormat.java | 68 int timeStyle, dateStyle; in localeTest() local 89 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 90 fTestName = new String("Date test " + dateStyle + " (" + localeName + ")"); in localeTest() 92 fFormat = DateFormat.getDateInstance(dateStyle, locale); in localeTest() 101 for(dateStyle = 0; dateStyle < 4; dateStyle++) { in localeTest() 103 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest() 105 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
D | DateFormatTest.java | 3739 int dateStyle = dateStylesList[i]; in TestRelativeDateFormat() local 3740 … DateFormat fmtRelDateTime = DateFormat.getDateTimeInstance(dateStyle, DateFormat.SHORT, loc); in TestRelativeDateFormat() 3741 DateFormat fmtRelDate = DateFormat.getDateInstance(dateStyle, loc); in TestRelativeDateFormat() 3755 logln(dayOffset + ", " + dateStyle + ", " + dateTimeStr); in TestRelativeDateFormat() 3756 logln(dayOffset + ", " + dateStyle + ", " + dateStr); in TestRelativeDateFormat() 3757 logln(dayOffset + ", " + dateStyle + ", " + timeStr); in TestRelativeDateFormat() 3762 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat() 3768 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat() 3775 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat() 4538 for (int dateStyle = DateFormat.FULL; dateStyle <= DateFormat.SHORT; ++dateStyle) { in TestDotAndAtLeniency() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 1345 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument 1348 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance() 1365 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1367 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1384 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1386 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance() 1648 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument 1650 (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { in get() 1651 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1658 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in get() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 1451 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument 1454 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance() 1472 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1474 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1492 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1494 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance() 1776 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument 1778 (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { in get() 1779 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1786 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in get() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | DateFormat.java | 1149 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument 1152 if (dateStyle != NONE) { in getDateTimeInstance() 1155 getJDKFormatStyle(dateStyle), in getDateTimeInstance() 1160 getJDKFormatStyle(dateStyle), in getDateTimeInstance() 1182 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1184 if (dateStyle != NONE) { in getDateTimeInstance() 1186 …w DateFormat(java.text.DateFormat.getDateTimeInstance(getJDKFormatStyle(dateStyle), getJDKFormatSt… in getDateTimeInstance() 1188 …return new DateFormat(java.text.DateFormat.getDateInstance(getJDKFormatStyle(dateStyle), aLocale)); in getDateTimeInstance() 1207 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1209 if (dateStyle != NONE) { in getDateTimeInstance() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | datefmt.cpp | 406 DateFormat::createDateTimeInstance(EStyle dateStyle, in createDateTimeInstance() argument 410 if(dateStyle != kNone) in createDateTimeInstance() 412 dateStyle = (EStyle) (dateStyle + kDateOffset); in createDateTimeInstance() 414 return create(timeStyle, dateStyle, aLocale); in createDateTimeInstance() 496 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) in create() argument 505 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status); in create() 516 …((timeStyle!=UDAT_NONE)&&(timeStyle & UDAT_RELATIVE)) || */((dateStyle!=kNone)&&((dateStyle-kDateO… in create() 517 … new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), lo… in create() 524 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status); in create()
|
D | reldtfmt.cpp | 72 RelativeDateFormat::RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, in RelativeDateFormat() argument 75 fDateStyle(dateStyle), fLocale(locale), fDayMin(0), fDayMax(0), fDatesLen(0), fDates(NULL), in RelativeDateFormat() 89 …UDateFormatStyle baseDateStyle = (dateStyle > UDAT_SHORT)? (UDateFormatStyle)(dateStyle & ~UDAT_RE… in RelativeDateFormat()
|
D | windtfmt.h | 43 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
|
D | windtfmt.cpp | 96 Win32DateFormat::Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const … in Win32DateFormat() argument 97 …: DateFormat(), fDateTimeMsg(NULL), fTimeStyle(timeStyle), fDateStyle(dateStyle), fLocale(locale),… in Win32DateFormat()
|
D | reldtfmt.h | 45 …RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, …
|
D | udat.cpp | 128 UDateFormatStyle dateStyle, in udat_open() argument 141 …fmt = (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,st… in udat_open() 148 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, in udat_open() 152 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, in udat_open()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
D | GlobalizationPreferences.java | 663 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument 670 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat() 687 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument 688 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat() 689 || dateStyle < 0 || dateStyle >= DF_LIMIT in getDateFormat() 695 result = dateFormats[dateStyle][timeStyle]; in getDateFormat() 702 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat() 946 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument 953 result = DateFormat.getDateInstance(getCalendar(), dateStyle, dfLocale); in guessDateFormat() 954 } else if (dateStyle == DF_NONE) { in guessDateFormat() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GlobalizationPreferences.java | 637 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument 644 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat() 660 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument 661 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat() 662 || dateStyle < 0 || dateStyle >= DF_LIMIT in getDateFormat() 668 result = dateFormats[dateStyle][timeStyle]; in getDateFormat() 675 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat() 914 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument 921 result = DateFormat.getDateInstance(getCalendar(), dateStyle, dfLocale); in guessDateFormat() 922 } else if (dateStyle == DF_NONE) { in guessDateFormat() [all …]
|
D | Calendar.java | 3330 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 3331 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat() 3339 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 3340 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat() 3434 static private DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, in formatHelper() argument 3439 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in formatHelper() 3440 throw new IllegalArgumentException("Illegal date style " + dateStyle); in formatHelper() 3448 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3449 pattern = MessageFormat.format(patternData.getDateTimePattern(dateStyle), in formatHelper() 3451 patternData.patterns[dateStyle + 4]}); in formatHelper() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Calendar.java | 1839 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 1840 if (dateStyle != DateFormat.NONE) { in getDateTimeFormat() 1842 return DateFormat.getDateInstance((Calendar)this.clone(), dateStyle, loc); in getDateTimeFormat() 1844 … return DateFormat.getDateTimeInstance((Calendar)this.clone(), dateStyle, timeStyle, loc); in getDateTimeFormat() 1859 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 1860 return getDateTimeFormat(dateStyle, timeStyle, loc.toLocale()); in getDateTimeFormat()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
D | DateFormatProviderICU.java | 27 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) { in getDateTimeInstance() argument 28 return getInstance(dateStyle, timeStyle, locale); in getDateTimeInstance()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | Calendar.java | 3434 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 3435 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat() 3444 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 3445 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat() 3543 static private DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, in formatHelper() argument 3548 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in formatHelper() 3549 throw new IllegalArgumentException("Illegal date style " + dateStyle); in formatHelper() 3557 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3558 pattern = MessageFormat.format(patternData.getDateTimePattern(dateStyle), in formatHelper() 3560 patternData.patterns[dateStyle + 4]}); in formatHelper() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | datefmt.h | 570 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault, 878 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
|
D | smpdtfmt.h | 1223 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status); 1319 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
|
D | udat.h | 839 UDateFormatStyle dateStyle, 1620 UDateFormatStyle dateStyle,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | RelativeDateFormat.java | 59 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { in RelativeDateFormat() argument 64 fDateStyle = dateStyle; in RelativeDateFormat()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | RelativeDateFormat.java | 61 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { in RelativeDateFormat() argument 66 fDateStyle = dateStyle; in RelativeDateFormat()
|