Home
last modified time | relevance | path

Searched refs:dateStyle (Results 1 – 25 of 27) sorted by relevance

12

/external/icu/icu4c/source/test/intltest/
Dtsdate.cpp72 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/
DIntlTestDateFormat.java72 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()
DDateFormatTest.java3790 int dateStyle = dateStylesList[i]; in TestRelativeDateFormat() local
3791 … DateFormat fmtRelDateTime = DateFormat.getDateTimeInstance(dateStyle, DateFormat.SHORT, loc); in TestRelativeDateFormat()
3792 DateFormat fmtRelDate = DateFormat.getDateInstance(dateStyle, loc); in TestRelativeDateFormat()
3806 logln(dayOffset + ", " + dateStyle + ", " + dateTimeStr); in TestRelativeDateFormat()
3807 logln(dayOffset + ", " + dateStyle + ", " + dateStr); in TestRelativeDateFormat()
3808 logln(dayOffset + ", " + dateStyle + ", " + timeStr); in TestRelativeDateFormat()
3813 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat()
3819 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat()
3826 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat()
4646 for (int dateStyle = DateFormat.FULL; dateStyle <= DateFormat.SHORT; ++dateStyle) { in TestDotAndAtLeniency()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDateFormat.java75 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()
DDateFormatTest.java3793 int dateStyle = dateStylesList[i]; in TestRelativeDateFormat() local
3794 … DateFormat fmtRelDateTime = DateFormat.getDateTimeInstance(dateStyle, DateFormat.SHORT, loc); in TestRelativeDateFormat()
3795 DateFormat fmtRelDate = DateFormat.getDateInstance(dateStyle, loc); in TestRelativeDateFormat()
3809 logln(dayOffset + ", " + dateStyle + ", " + dateTimeStr); in TestRelativeDateFormat()
3810 logln(dayOffset + ", " + dateStyle + ", " + dateStr); in TestRelativeDateFormat()
3811 logln(dayOffset + ", " + dateStyle + ", " + timeStr); in TestRelativeDateFormat()
3816 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat()
3822 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat()
3829 dateStyle + " for dayOffset " + dayOffset ); in TestRelativeDateFormat()
4649 for (int dateStyle = DateFormat.FULL; dateStyle <= DateFormat.SHORT; ++dateStyle) { in TestDotAndAtLeniency()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateFormat.java1364 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument
1367 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance()
1384 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1386 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1403 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1405 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1679 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument
1681 (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { in get()
1682 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get()
1689 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in get()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateFormat.java1470 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument
1473 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance()
1491 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1493 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1511 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1513 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1807 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument
1809 (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { in get()
1810 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get()
1817 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/
DDateFormat.java1151 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument
1154 if (dateStyle != NONE) { in getDateTimeInstance()
1157 getJDKFormatStyle(dateStyle), in getDateTimeInstance()
1162 getJDKFormatStyle(dateStyle), in getDateTimeInstance()
1184 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1186 if (dateStyle != NONE) { in getDateTimeInstance()
1188 …w DateFormat(java.text.DateFormat.getDateTimeInstance(getJDKFormatStyle(dateStyle), getJDKFormatSt… in getDateTimeInstance()
1190 …return new DateFormat(java.text.DateFormat.getDateInstance(getJDKFormatStyle(dateStyle), aLocale)); in getDateTimeInstance()
1209 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1211 if (dateStyle != NONE) { in getDateTimeInstance()
[all …]
/external/icu/icu4c/source/i18n/
Ddatefmt.cpp408 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()
498 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) in create() argument
507 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status); in create()
518 …((timeStyle!=UDAT_NONE)&&(timeStyle & UDAT_RELATIVE)) || */((dateStyle!=kNone)&&((dateStyle-kDateO… in create()
519 … new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), lo… in create()
526 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status); in create()
Dreldtfmt.cpp70 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()
Dwindtfmt.h45 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
Dwindtfmt.cpp162 Win32DateFormat::Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const … in Win32DateFormat() argument
163 …: DateFormat(), fDateTimeMsg(NULL), fTimeStyle(timeStyle), fDateStyle(dateStyle), fLocale(locale),… in Win32DateFormat()
Dreldtfmt.h47 …RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, …
Dudat.cpp130 UDateFormatStyle dateStyle, in udat_open() argument
143 …fmt = (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,st… in udat_open()
150 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, in udat_open()
154 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, in udat_open()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGlobalizationPreferences.java639 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument
646 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat()
662 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument
663 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat()
664 || dateStyle < 0 || dateStyle >= DF_LIMIT in getDateFormat()
670 result = dateFormats[dateStyle][timeStyle]; in getDateFormat()
677 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat()
915 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument
922 result = DateFormat.getDateInstance(getCalendar(), dateStyle, dfLocale); in guessDateFormat()
923 } else if (dateStyle == DF_NONE) { in guessDateFormat()
[all …]
DCalendar.java3336 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
3337 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat()
3345 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
3346 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat()
3440 static private DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, in formatHelper() argument
3445 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in formatHelper()
3446 throw new IllegalArgumentException("Illegal date style " + dateStyle); in formatHelper()
3454 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper()
3456 patternData.getDateTimePattern(dateStyle), 2, 2, in formatHelper()
3458 patternData.patterns[dateStyle + 4]); in formatHelper()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
DGlobalizationPreferences.java665 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument
672 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat()
689 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument
690 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat()
691 || dateStyle < 0 || dateStyle >= DF_LIMIT in getDateFormat()
697 result = dateFormats[dateStyle][timeStyle]; in getDateFormat()
704 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat()
947 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument
954 result = DateFormat.getDateInstance(getCalendar(), dateStyle, dfLocale); in guessDateFormat()
955 } else if (dateStyle == DF_NONE) { in guessDateFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java3438 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
3439 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat()
3448 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
3449 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat()
3547 static private DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, in formatHelper() argument
3552 if (dateStyle < DateFormat.NONE || dateStyle > DateFormat.SHORT) { in formatHelper()
3553 throw new IllegalArgumentException("Illegal date style " + dateStyle); in formatHelper()
3561 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper()
3563 patternData.getDateTimePattern(dateStyle), 2, 2, in formatHelper()
3565 patternData.patterns[dateStyle + 4]); in formatHelper()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DCalendar.java1841 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
1842 if (dateStyle != DateFormat.NONE) { in getDateTimeFormat()
1844 return DateFormat.getDateInstance((Calendar)this.clone(), dateStyle, loc); in getDateTimeFormat()
1846 … return DateFormat.getDateTimeInstance((Calendar)this.clone(), dateStyle, timeStyle, loc); in getDateTimeFormat()
1861 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
1862 return getDateTimeFormat(dateStyle, timeStyle, loc.toLocale()); in getDateTimeFormat()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DDateFormatProviderICU.java29 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) { in getDateTimeInstance() argument
30 return getInstance(dateStyle, timeStyle, locale); in getDateTimeInstance()
/external/icu/icu4c/source/i18n/unicode/
Ddatefmt.h572 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault,
878 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
Dsmpdtfmt.h1231 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
1327 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
Dudat.h854 UDateFormatStyle dateStyle,
1634 UDateFormatStyle dateStyle,
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DRelativeDateFormat.java61 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { in RelativeDateFormat() argument
66 fDateStyle = dateStyle; in RelativeDateFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRelativeDateFormat.java59 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { in RelativeDateFormat() argument
64 fDateStyle = dateStyle; in RelativeDateFormat()

12