Home
last modified time | relevance | path

Searched refs:tstyle (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DDateFormatTest.java43 private void checkGetInstance(int dstyle, int tstyle, Locale loc) { in checkGetInstance() argument
45 DateFormat df = getJDKInstance(dstyle, tstyle, loc, method); in checkGetInstance()
58 DateFormat dfIcu = getJDKInstance(dstyle, tstyle, iculoc, null); in checkGetInstance()
72 private DateFormat getJDKInstance(int dstyle, int tstyle, Locale loc, String[] methodName) { in getJDKInstance() argument
76 df = DateFormat.getTimeInstance(tstyle, loc); in getJDKInstance()
78 } else if (tstyle < 0) { in getJDKInstance()
82 df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc); in getJDKInstance()
91 …private com.ibm.icu.text.DateFormat getICUInstance(int dstyle, int tstyle, Locale loc, String[] me… in getICUInstance() argument
95 icudf = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, loc); in getICUInstance()
97 } else if (tstyle < 0) { in getICUInstance()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DDateFormatProviderICU.java43 private DateFormat getInstance(int dstyle, int tstyle, Locale locale) { in getInstance() argument
47 icuDfmt = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, actual); in getInstance()
48 } else if (tstyle == NONE) { in getInstance()
51 icuDfmt = com.ibm.icu.text.DateFormat.getDateTimeInstance(dstyle, tstyle, actual); in getInstance()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRoundTripTest.java140 for (int tstyle = DateFormat.FULL; tstyle <= DateFormat.SHORT; ++tstyle) { in _test()
142 logln("Testing dstyle " + styleName(dstyle) + ", tstyle " + styleName(tstyle)); in _test()
143 DateFormat df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc); in _test()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRoundTripTest.java137 for (int tstyle = DateFormat.FULL; tstyle <= DateFormat.SHORT; ++tstyle) { in _test()
139 logln("Testing dstyle " + styleName(dstyle) + ", tstyle " + styleName(tstyle)); in _test()
140 DateFormat df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc); in _test()
/external/icu/icu4c/source/test/intltest/
Ddtfmtrtts.cpp264 for(int32_t tstyle = DateFormat::FULL; tstyle <= DateFormat::SHORT; ++tstyle) { in test() local
266 …(DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styleName((DateFormat::EStyle)tstyle)) ); in test()
267 … = DateFormat::createDateTimeInstance((DateFormat::EStyle)dstyle, (DateFormat::EStyle)tstyle, loc); in test()
269 …tyle)dstyle)) + ", tstyle" + UnicodeString(styleName((DateFormat::EStyle)tstyle)) + "Locale: " … in test()