Home
last modified time | relevance | path

Searched refs:sdfmt (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTest.java1319 SimpleDateFormat sdfmt = new SimpleDateFormat(); in TestT10239() local
1323 sdfmt.setCalendar(cal); in TestT10239()
1324 sdfmt.applyPattern(item.pattern); in TestT10239()
1328 d = sdfmt.parse(item.parseString, p); in TestT10239()
1340 result = sdfmt.format(cal, result, new FieldPosition(0)); in TestT10239()
1454 SimpleDateFormat sdfmt = new SimpleDateFormat(); in TestT10619() local
1458 sdfmt.setCalendar(cal); in TestT10619()
1459 sdfmt.applyPattern(item.pattern); in TestT10619()
1460 sdfmt.setLenient(item.leniency); in TestT10619()
1464 d = sdfmt.parse(item.parseString, p); in TestT10619()
[all …]
DDateFormatTest.java2504 DateFormat sdfmt = new SimpleDateFormat(); in TestCoverage() local
2515 if (f.equals(sdfmt)) { in TestCoverage()
4520 … SimpleDateFormat sdfmt = (SimpleDateFormat) DateFormat.getDateInstance(item.style, locale); in TestFormatsWithNumberSystems() local
4523 sdfmt.format(cal, getFormat, fp); in TestFormatsWithNumberSystems()
4527 String getPattern = sdfmt.toPattern(); in TestFormatsWithNumberSystems()
4619 SimpleDateFormat sdfmt = new SimpleDateFormat(item.pattern, locale); in TestContext() local
4622 sdfmt.setContext(item.capitalizationContext); in TestContext()
4623 SimpleDateFormat sdfmtClone = (SimpleDateFormat)sdfmt.clone(); in TestContext()
4624 if (!sdfmtClone.equals(sdfmt)) { in TestContext()
4631 sdfmt.format(cal, result2, fpos2); in TestContext()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRegressionTest.java1322 SimpleDateFormat sdfmt = new SimpleDateFormat(); in TestT10239() local
1326 sdfmt.setCalendar(cal); in TestT10239()
1327 sdfmt.applyPattern(item.pattern); in TestT10239()
1331 d = sdfmt.parse(item.parseString, p); in TestT10239()
1343 result = sdfmt.format(cal, result, new FieldPosition(0)); in TestT10239()
1457 SimpleDateFormat sdfmt = new SimpleDateFormat(); in TestT10619() local
1461 sdfmt.setCalendar(cal); in TestT10619()
1462 sdfmt.applyPattern(item.pattern); in TestT10619()
1463 sdfmt.setLenient(item.leniency); in TestT10619()
1467 d = sdfmt.parse(item.parseString, p); in TestT10619()
[all …]
DDateFormatTest.java2507 DateFormat sdfmt = new SimpleDateFormat(); in TestCoverage() local
2518 if (f.equals(sdfmt)) { in TestCoverage()
4523 … SimpleDateFormat sdfmt = (SimpleDateFormat) DateFormat.getDateInstance(item.style, locale); in TestFormatsWithNumberSystems() local
4526 sdfmt.format(cal, getFormat, fp); in TestFormatsWithNumberSystems()
4530 String getPattern = sdfmt.toPattern(); in TestFormatsWithNumberSystems()
4622 SimpleDateFormat sdfmt = new SimpleDateFormat(item.pattern, locale); in TestContext() local
4625 sdfmt.setContext(item.capitalizationContext); in TestContext()
4626 SimpleDateFormat sdfmtClone = (SimpleDateFormat)sdfmt.clone(); in TestContext()
4627 if (!sdfmtClone.equals(sdfmt)) { in TestContext()
4634 sdfmt.format(cal, result2, fpos2); in TestContext()
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtptngts.cpp1372 const SimpleDateFormat* sdfmt; in testJjMapping() local
1373 …if ((sdfmt = dynamic_cast<const SimpleDateFormat*>(reinterpret_cast<const DateFormat*>(dfmt.getAli… in testJjMapping()
1377 shortPattern = sdfmt->toPattern(shortPattern); in testJjMapping()
Ddtfmttst.cpp4464 …LocalPointer<SimpleDateFormat> sdfmt(static_cast<SimpleDateFormat *>(DateFormat::createDateInstanc… in TestFormatsWithNumberSystems() local
4465 if (sdfmt.isNull()) { in TestFormatsWithNumberSystems()
4470 sdfmt->format(*(cal.getAlias()), getFormat, NULL, status); in TestFormatsWithNumberSystems()
4481 sdfmt->toPattern(getPattern); in TestFormatsWithNumberSystems()