/external/icu/icu4c/source/test/intltest/ |
D | tsdate.cpp | 71 DateFormat::EStyle timeStyle, dateStyle; in testLocale() local 78 for(timeStyle = (DateFormat::EStyle)0; in testLocale() 79 timeStyle < (DateFormat::EStyle)4; in testLocale() 80 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale() 82 fTestName = (UnicodeString) "Time test " + (int32_t) timeStyle + " (" + localeName + ")"; in testLocale() 83 fFormat = DateFormat::createTimeInstance(timeStyle, locale); in testLocale() 102 for(timeStyle = (DateFormat::EStyle)0; in testLocale() 103 timeStyle < (DateFormat::EStyle)4; in testLocale() 104 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale() 106 …UnicodeString) "DateTime test " + (int32_t) dateStyle + "/" + (int32_t) timeStyle + " (" + localeN… in testLocale() [all …]
|
D | dtfmttst.cpp | 4436 for (DateFormat::EStyle timeStyle = DateFormat::FULL; timeStyle <= DateFormat::SHORT; in TestDotAndAtLeniency() local 4437 timeStyle = static_cast<DateFormat::EStyle>(timeStyle + 1)) { in TestDotAndAtLeniency() 4438 … LocalPointer<DateFormat> format(DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale)); in TestDotAndAtLeniency() 4439 … LocalPointer<DateFormat> timeFormat(DateFormat::createTimeInstance(timeStyle, locale)); in TestDotAndAtLeniency() 4448 … errln(UnicodeString(" with date-time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency() 4454 …rln(UnicodeString(" with date sp sp time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency() 4460 …(UnicodeString(" with date plus-dot time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency() 4467 …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 | 68 int timeStyle, dateStyle; in localeTest() local 75 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 76 fTestName = new String("Time test " + timeStyle + " (" + localeName + ")"); in localeTest() 78 fFormat = DateFormat.getTimeInstance(timeStyle, locale); in localeTest() 102 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 103 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest() 105 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestDateFormat.java | 69 int timeStyle, dateStyle; in localeTest() local 76 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 77 fTestName = new String("Time test " + timeStyle + " (" + localeName + ")"); in localeTest() 79 fFormat = DateFormat.getTimeInstance(timeStyle, locale); in localeTest() 103 for(timeStyle = 0; timeStyle < 4; timeStyle++) { in localeTest() 104 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest() 106 fFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); in localeTest()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 1473 int timeStyle) in getDateTimeInstance() argument 1475 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance() 1493 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1495 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1513 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1515 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance() 1800 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument 1801 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get() 1803 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1807 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in get() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 1367 int timeStyle) in getDateTimeInstance() argument 1369 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance() 1386 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument 1388 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1405 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument 1407 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance() 1672 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument 1673 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get() 1675 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get() 1679 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/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/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 | 3331 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 3332 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat() 3340 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 3341 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat() 3436 int timeStyle) { in formatHelper() argument 3437 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper() 3438 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper() 3449 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3452 patternData.patterns[timeStyle], in formatHelper() 3459 String timeOverride = patternData.overrides[timeStyle]; in formatHelper() [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/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 | 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 | 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 | 533 SimpleDateFormat::SimpleDateFormat(EStyle timeStyle, in SimpleDateFormat() argument 544 construct(timeStyle, dateStyle, fLocale, status); in SimpleDateFormat() 692 void SimpleDateFormat::construct(EStyle timeStyle, in construct() argument 758 if ((timeStyle != kNone) && (dateStyle != kNone)) in construct() 761 ures_getByIndex(dateTimePatterns.getAlias(), (int32_t)timeStyle, NULL, &status)); in construct() 824 else if (timeStyle != kNone) { in construct() 826 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/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | Calendar.java | 3433 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument 3434 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat() 3443 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument 3444 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat() 3543 int timeStyle) { in formatHelper() argument 3544 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper() 3545 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper() 3556 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper() 3559 patternData.patterns[timeStyle], in formatHelper() 3566 String timeOverride = patternData.overrides[timeStyle]; in formatHelper() [all …]
|
/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 | 855 udat_open(UDateFormatStyle timeStyle, 1635 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,
|
/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()
|
/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()
|