Home
last modified time | relevance | path

Searched refs:timeStyle (Results 1 – 25 of 30) sorted by relevance

12

/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestRangeAbbreviator.java49 for (int timeStyle = -1; timeStyle <= DateFormat.SHORT; ++timeStyle) { in main()
50 if (timeStyle == DateFormat.FULL in main()
51 || timeStyle == DateFormat.LONG in main()
52 || timeStyle == DateFormat.MEDIUM in main()
53 || dateStyle == -1 && timeStyle == -1) { in main()
57 timeStyle, locale); in main()
60 + (", time:" + STYLE_NAMES[timeStyle + 1]); in main()
/external/icu/icu4c/source/test/intltest/
Dtsdate.cpp72 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 …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDateFormat.java72 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/
DIntlTestDateFormat.java75 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/
DDateFormat.java1391 int timeStyle) in getDateTimeInstance() argument
1393 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance()
1410 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1412 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1429 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1431 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1705 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument
1706 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get()
1708 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get()
1712 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in get()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateFormat.java1497 int timeStyle) in getDateTimeInstance() argument
1499 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance()
1517 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1519 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1537 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1539 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1833 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument
1834 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get()
1836 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get()
1840 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/
DDateFormat.java1152 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/
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()
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 …]
DCalendar.java3307 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
3308 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat()
3316 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
3317 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat()
3412 int timeStyle) { in formatHelper() argument
3413 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper()
3414 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper()
3425 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper()
3428 patternData.patterns[timeStyle], in formatHelper()
3435 String timeOverride = patternData.overrides[timeStyle]; 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()
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/
DCalendar.java1841 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/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/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java3409 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
3410 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat()
3419 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
3420 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat()
3519 int timeStyle) { in formatHelper() argument
3520 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper()
3521 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper()
3532 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper()
3535 patternData.patterns[timeStyle], in formatHelper()
3542 String timeOverride = patternData.overrides[timeStyle]; in formatHelper()
[all …]
/external/icu/icu4c/source/i18n/
Ddatefmt.cpp409 EStyle timeStyle, in createDateTimeInstance() argument
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()
524 …RelativeDateFormat *r = new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dat… in create()
531 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status); in create()
Dreldtfmt.cpp70 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()
Dwindtfmt.h45 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
Dreldtfmt.h47 …RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle 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()
Dudat.cpp129 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()
/external/icu/icu4c/source/i18n/unicode/
Ddatefmt.h588 EStyle timeStyle = kDefault,
893 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
Dudat.h874 udat_open(UDateFormatStyle timeStyle,
1656 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,
Dsmpdtfmt.h1239 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
1334 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
/external/icu/libandroidicu/include/unicode/
Dudat.h874 udat_open(UDateFormatStyle timeStyle,
1656 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DRelativeDateFormat.java62 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { in RelativeDateFormat() argument
66 fTimeStyle = timeStyle; 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
63 fTimeStyle = timeStyle; in RelativeDateFormat()

12