Home
last modified time | relevance | path

Searched refs:timeStyle (Results 1 – 25 of 34) 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/android_icu4j/testing/src/com/android/icu/test/util/
DExtendedCalendarTest.java46 for (int timeStyle = DateFormat.NONE; timeStyle <= DateFormat.SHORT; timeStyle++) { in testGetDateTimeFormatString()
49 if (timeStyle == DateFormat.NONE && dateStyle == DateFormat.NONE) { in testGetDateTimeFormatString()
52 String pattern1 = extendedCalendar.getDateTimePattern(dateStyle, timeStyle); in testGetDateTimeFormatString()
54 dateStyle, timeStyle, uLocale); in testGetDateTimeFormatString()
57 + " time style:" + timeStyle; in testGetDateTimeFormatString()
/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/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateFormat.java1532 int timeStyle) in getDateTimeInstance() argument
1534 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance()
1552 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1554 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1572 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1574 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1868 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument
1869 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get()
1871 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get()
1875 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in get()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateFormat.java1422 int timeStyle) in getDateTimeInstance() argument
1424 return get(dateStyle, timeStyle, ULocale.getDefault(Category.FORMAT), null); in getDateTimeInstance()
1441 int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
1443 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1460 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1462 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1736 private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { in get() argument
1737 if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || in get()
1739 … RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc, cal); in get()
1743 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in get()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
DGlobalizationPreferences.java661 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument
668 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat()
685 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument
686 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat()
688 || timeStyle < 0 || timeStyle >= DF_LIMIT) { in getDateFormat()
693 result = dateFormats[dateStyle][timeStyle]; in getDateFormat()
700 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat()
944 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument
950 if (timeStyle == DF_NONE) { in guessDateFormat()
953 result = DateFormat.getTimeInstance(getCalendar(), timeStyle, dfLocale); in guessDateFormat()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGlobalizationPreferences.java635 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { in setDateFormat() argument
642 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat()
658 public DateFormat getDateFormat(int dateStyle, int timeStyle) { in getDateFormat() argument
659 if (dateStyle == DF_NONE && timeStyle == DF_NONE in getDateFormat()
661 || timeStyle < 0 || timeStyle >= DF_LIMIT) { in getDateFormat()
666 result = dateFormats[dateStyle][timeStyle]; in getDateFormat()
673 result = guessDateFormat(dateStyle, timeStyle); in getDateFormat()
912 protected DateFormat guessDateFormat(int dateStyle, int timeStyle) { in guessDateFormat() argument
918 if (timeStyle == DF_NONE) { in guessDateFormat()
921 result = DateFormat.getTimeInstance(getCalendar(), timeStyle, dfLocale); in guessDateFormat()
[all …]
DCalendar.java3308 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
3309 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat()
3317 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
3318 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat()
3420 int timeStyle) { in formatHelper() argument
3421 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper()
3422 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper()
3433 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper()
3436 patternData.patterns[timeStyle], in formatHelper()
3443 String timeOverride = patternData.overrides[timeStyle]; in formatHelper()
[all …]
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/util/
DExtendedCalendar.java64 public String getDateTimePattern(int dateStyle, int timeStyle) { in getDateTimePattern() argument
65 return Calendar.getDateTimeFormatString(uLocale, calendar.getType(), dateStyle, timeStyle); in getDateTimePattern()
/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.java3410 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, Locale loc) { in getDateTimeFormat() argument
3411 return formatHelper(this, ULocale.forLocale(loc), dateStyle, timeStyle); in getDateTimeFormat()
3420 public DateFormat getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) { in getDateTimeFormat() argument
3421 return formatHelper(this, loc, dateStyle, timeStyle); in getDateTimeFormat()
3527 int timeStyle) { in formatHelper() argument
3528 if (timeStyle < DateFormat.NONE || timeStyle > DateFormat.SHORT) { in formatHelper()
3529 throw new IllegalArgumentException("Illegal time style " + timeStyle); in formatHelper()
3540 if ((timeStyle >= 0) && (dateStyle >= 0)) { in formatHelper()
3543 patternData.patterns[timeStyle], in formatHelper()
3550 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, …
/external/icu/libicu/cts_headers/unicode/
Ddatefmt.h588 EStyle timeStyle = kDefault,
893 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
Dsmpdtfmt.h1239 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
1335 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
Dudat.h892 udat_open(UDateFormatStyle timeStyle,
1704 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,
/external/icu/icu4c/source/i18n/unicode/
Ddatefmt.h588 EStyle timeStyle = kDefault,
893 static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
Dsmpdtfmt.h1239 SimpleDateFormat(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
1335 void construct(EStyle timeStyle, EStyle dateStyle, const Locale& locale, UErrorCode& status);
Dudat.h892 udat_open(UDateFormatStyle timeStyle,
1704 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,
/external/icu/libicu/cts_headers/
Dwindtfmt.h45 …Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, …
/external/icu/libandroidicu/include/unicode/
Dudat.h892 udat_open(UDateFormatStyle timeStyle,
1704 typedef UDateFormat* (U_EXPORT2 *UDateFormatOpener) (UDateFormatStyle timeStyle,

12