/external/icu/icu4c/source/test/intltest/ |
D | tsdate.cpp | 72 DateFormat::EStyle timeStyle, dateStyle; in testLocale() local 79 for(timeStyle = (DateFormat::EStyle)0; in testLocale() 80 timeStyle < (DateFormat::EStyle)4; in testLocale() 81 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale() 83 fTestName = (UnicodeString) "Time test " + (int32_t) timeStyle + " (" + localeName + ")"; in testLocale() 84 fFormat = DateFormat::createTimeInstance(timeStyle, locale); in testLocale() 103 for(timeStyle = (DateFormat::EStyle)0; in testLocale() 104 timeStyle < (DateFormat::EStyle)4; in testLocale() 105 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale() 107 …UnicodeString) "DateTime test " + (int32_t) dateStyle + "/" + (int32_t) timeStyle + " (" + localeN… in testLocale() [all …]
|
D | dtfmttst.cpp | 4440 for (DateFormat::EStyle timeStyle = DateFormat::FULL; timeStyle <= DateFormat::SHORT; in TestDotAndAtLeniency() local 4441 timeStyle = static_cast<DateFormat::EStyle>(timeStyle + 1)) { in TestDotAndAtLeniency() 4442 … LocalPointer<DateFormat> format(DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale)); in TestDotAndAtLeniency() 4443 … LocalPointer<DateFormat> timeFormat(DateFormat::createTimeInstance(timeStyle, locale)); in TestDotAndAtLeniency() 4452 … errln(UnicodeString(" with date-time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency() 4458 …rln(UnicodeString(" with date sp sp time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency() 4464 …(UnicodeString(" with date plus-dot time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency() 4471 …UnicodeString(" with date minus-dot time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDateFormat.java | 72 int timeStyle, dateStyle; in localeTest() local 79 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 80 fTestName = "Time test " + timeStyle + " (" + localeName + ")"; in localeTest() 82 fFormat = DateFormat.getTimeInstance(timeStyle, locale); in localeTest() 106 for(timeStyle = 0; timeStyle < 4; timeStyle++) { 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 82 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 83 fTestName = "Time test " + timeStyle + " (" + localeName + ")"; in localeTest() 85 fFormat = DateFormat.getTimeInstance(timeStyle, locale); in localeTest() 109 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 110 … fTestName = "DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"; in localeTest() 112 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 1365 int timeStyle) 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 1680 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get() 1682 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1686 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in get() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 1471 int timeStyle) 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 1808 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get() 1810 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1814 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in get() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | DateFormat.java | 1152 int timeStyle) in getDateTimeInstance() argument 1155 if (timeStyle != NONE) { in getDateTimeInstance() 1158 getJDKFormatStyle(timeStyle), in getDateTimeInstance() 1166 if (timeStyle != NONE) { in getDateTimeInstance() 1168 getJDKFormatStyle(timeStyle), in getDateTimeInstance() 1184 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1187 if (timeStyle != NONE) { in getDateTimeInstance() 1188 …teFormat.getDateTimeInstance(getJDKFormatStyle(dateStyle), getJDKFormatStyle(timeStyle), aLocale)); in getDateTimeInstance() 1193 if (timeStyle != NONE) { in getDateTimeInstance() 1194 …return new DateFormat(java.text.DateFormat.getTimeInstance(getJDKFormatStyle(timeStyle), aLocale)); in getDateTimeInstance() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GlobalizationPreferences.java | 639 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() 665 || timeStyle < 0 || timeStyle >= 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 921 if (timeStyle == DF_NONE) { in guessDateFormat() 924 result = DateFormat.getTimeInstance(getCalendar(), timeStyle, dfLocale); in guessDateFormat() [all …]
|
D | Calendar.java | 3336 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() 3441 int timeStyle) { in formatHelper() argument 3442 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper() 3443 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper() 3454 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3457 patternData.patterns[timeStyle], in formatHelper() 3464 String timeOverride = patternData.overrides[timeStyle]; in formatHelper() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
D | GlobalizationPreferences.java | 665 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() 692 || timeStyle < 0 || timeStyle >= 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 953 if (timeStyle == DF_NONE) { in guessDateFormat() 956 result = DateFormat.getTimeInstance(getCalendar(), timeStyle, dfLocale); in guessDateFormat() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Calendar.java | 1841 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 1843 if (timeStyle == DateFormat.NONE) { in getDateTimeFormat() 1846 … return DateFormat.getDateTimeInstance((Calendar)this.clone(), dateStyle, timeStyle, loc); in getDateTimeFormat() 1848 } else if (timeStyle != DateFormat.NONE) { in getDateTimeFormat() 1849 return DateFormat.getTimeInstance((Calendar)this.clone(), 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/core/src/com/ibm/icu/util/ |
D | Calendar.java | 3438 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() 3548 int timeStyle) { in formatHelper() argument 3549 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper() 3550 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper() 3561 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3564 patternData.patterns[timeStyle], in formatHelper() 3571 String timeOverride = patternData.overrides[timeStyle]; in formatHelper() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | datefmt.cpp | 409 EStyle timeStyle, in createDateTimeInstance() argument 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() 519 …RelativeDateFormat *r = new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dat… in create() 526 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status); in create()
|
D | reldtfmt.cpp | 70 RelativeDateFormat::RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, in RelativeDateFormat() argument 82 if (timeStyle < UDAT_NONE || timeStyle > UDAT_SHORT) { in RelativeDateFormat() 99 if (timeStyle != UDAT_NONE) { in RelativeDateFormat() 100 df = createTimeInstance((EStyle)timeStyle, locale); in RelativeDateFormat() 109 df = createTimeInstance((EStyle)timeStyle, locale); in RelativeDateFormat()
|
D | windtfmt.h | 45 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
|
D | windtfmt.cpp | 162 Win32DateFormat::Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const … in Win32DateFormat() argument 163 …: DateFormat(), fDateTimeMsg(NULL), fTimeStyle(timeStyle), fDateStyle(dateStyle), fLocale(locale),… in Win32DateFormat()
|
D | reldtfmt.h | 47 …RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, …
|
D | udat.cpp | 129 udat_open(UDateFormatStyle timeStyle, in udat_open() argument 143 …fmt = (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,st… in udat_open() 148 if(timeStyle != UDAT_PATTERN) { in udat_open() 151 (DateFormat::EStyle)timeStyle); in udat_open() 155 (DateFormat::EStyle)timeStyle, in udat_open()
|
D | smpdtfmt.cpp | 536 SimpleDateFormat::SimpleDateFormat(EStyle timeStyle, in SimpleDateFormat() argument 547 construct(timeStyle, dateStyle, fLocale, status); in SimpleDateFormat() 695 void SimpleDateFormat::construct(EStyle timeStyle, in construct() argument 761 if ((timeStyle != kNone) && (dateStyle != kNone)) in construct() 764 ures_getByIndex(dateTimePatterns.getAlias(), (int32_t)timeStyle, NULL, &status)); in construct() 827 else if (timeStyle != kNone) { in construct() 829 ures_getByIndex(dateTimePatterns.getAlias(), (int32_t)timeStyle, NULL, &status)); in construct()
|
/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/icu4c/source/i18n/unicode/ |
D | datefmt.h | 573 EStyle timeStyle = kDefault, 878 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
|
D | smpdtfmt.h | 1231 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status); 1327 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
|
D | udat.h | 853 udat_open(UDateFormatStyle timeStyle, 1633 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,
|
/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 65 fTimeStyle = timeStyle; in RelativeDateFormat()
|
/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 63 fTimeStyle = timeStyle; in RelativeDateFormat()
|