Home
last modified time | relevance | path

Searched refs:sdf (Results 1 – 25 of 109) sorted by relevance

12345

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DSimpleDateFormatTest.java47 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testFormatCalendarStringBufferFieldPosition() local
48 sdf.format(cal, buf, fp); in testFormatCalendarStringBufferFieldPosition()
59 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testParseStringCalendarParsePosition() local
60 sdf.parse(hmzmdyStr, cal, pp); in testParseStringCalendarParsePosition()
76 SimpleDateFormat sdf = new SimpleDateFormat(); in testSimpleDateFormat() local
78 assertEquals(jsdf.format(date), sdf.format(date)); in testSimpleDateFormat()
85 SimpleDateFormat sdf = new SimpleDateFormat(mdy); in testSimpleDateFormatString() local
87 assertEquals(jsdf.format(date), sdf.format(date)); in testSimpleDateFormatString()
95 SimpleDateFormat sdf = new SimpleDateFormat(mdy, l); in testSimpleDateFormatStringLocale() local
97 assertEquals(jsdf.format(date), sdf.format(date)); in testSimpleDateFormatStringLocale()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRegressionTestJ.java190 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730() local
196 sdf.applyPattern("MM d y"); in Test4358730()
197 logln(sdf.format(today)); in Test4358730()
198 sdf.applyPattern("MM d yy"); in Test4358730()
199 logln(sdf.format(today)); in Test4358730()
201 sdf.applyPattern("MM d yyy"); in Test4358730()
202 logln(sdf.format(today)); in Test4358730()
204 sdf.applyPattern("MM d yyyy"); in Test4358730()
205 logln(sdf.format(today)); in Test4358730()
207 sdf.applyPattern("MM d yyyyy"); in Test4358730()
[all …]
DDateFormatTest.java211 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel() local
256 sdf.setTimeZone(ttz); in TestWallyWedel()
264 fmtOffset = sdf.format(today, fmtOffset, pos); in TestWallyWedel()
683 for (SimpleDateFormat sdf : formats) { in TestGenericTime()
684 sdf.setTimeZoneFormat(tzfmt); in TestGenericTime()
1757 SimpleDateFormat sdf = (SimpleDateFormat)DateFormat.getDateInstance(); in TestDayOfYearPattern195() local
1758 tryPattern(sdf, today, null, expected); in TestDayOfYearPattern195()
1759 tryPattern(sdf, today, "G yyyy DDD", expected); in TestDayOfYearPattern195()
1763 public void tryPattern(SimpleDateFormat sdf, Date d, String pattern, Date expected) { in tryPattern() argument
1765 sdf.applyPattern(pattern); in tryPattern()
[all …]
DIntlTestDateFormatAPIC.java74 SimpleDateFormat sdf = new SimpleDateFormat(); in TestNameHiding() local
76 str = sdf.format(dateObj); in TestNameHiding()
77 strBuffer = sdf.format(dateObj, strBuffer, fpos); in TestNameHiding()
79 strBuffer = sdf.format(new Date(0), strBuffer, fpos); in TestNameHiding()
80 str = sdf.format(new Date(0)); in TestNameHiding()
82 sdf.parse(str); in TestNameHiding()
83 sdf.parse(str, ppos); in TestNameHiding()
DDateFormatRegressionTest.java61 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() local
62 String pat = sdf.toPattern(); in Test4029195()
66 fmtd = sdf.format(today, fmtd, pos); in Test4029195()
69 sdf.applyPattern("G yyyy DDD"); in Test4029195()
71 todayS = sdf.format(today, todayS, pos); in Test4029195()
74 today = sdf.parse(todayS.toString()); in Test4029195()
82 rt = sdf.format(sdf.parse(todayS.toString()), rt, pos); in Test4029195()
505 SimpleDateFormat sdf = new SimpleDateFormat("z", Locale.US); in Test4101483() local
509 sdf.format(d, buf, fp); in Test4101483()
510 logln(sdf.format(d, buf, fp).toString()); in Test4101483()
[all …]
DTimeZoneFormatTest.java155 SimpleDateFormat sdf = new SimpleDateFormat(PATTERNS[patidx], LOCALES[locidx]); in TestTimeZoneRoundTrip() local
165 sdf.setTimeZone(tz); in TestTimeZoneRoundTrip()
166 String tzstr = sdf.format(DATES[datidx]); in TestTimeZoneRoundTrip()
171 sdf.setTimeZone(unknownZone); in TestTimeZoneRoundTrip()
179 sdf.parse(tzstr, outcal, pos); in TestTimeZoneRoundTrip()
386 SimpleDateFormat sdf = new SimpleDateFormat(pattern, LOCALES[locidx]); in TestTimeRoundTrip() local
432 sdf.setTimeZone(tz); in TestTimeRoundTrip()
473 String text = sdf.format(new Date(testTimes[testidx])); in TestTimeRoundTrip()
475 Date parsedDate = sdf.parse(text); in TestTimeRoundTrip()
829 SimpleDateFormat sdf = new SimpleDateFormat(); in TestISOFormat() local
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTestJ.java187 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730() local
193 sdf.applyPattern("MM d y"); in Test4358730()
194 logln(sdf.format(today)); in Test4358730()
195 sdf.applyPattern("MM d yy"); in Test4358730()
196 logln(sdf.format(today)); in Test4358730()
198 sdf.applyPattern("MM d yyy"); in Test4358730()
199 logln(sdf.format(today)); in Test4358730()
201 sdf.applyPattern("MM d yyyy"); in Test4358730()
202 logln(sdf.format(today)); in Test4358730()
204 sdf.applyPattern("MM d yyyyy"); in Test4358730()
[all …]
DDateFormatTest.java208 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel() local
253 sdf.setTimeZone(ttz); in TestWallyWedel()
261 fmtOffset = sdf.format(today, fmtOffset, pos); in TestWallyWedel()
680 for (SimpleDateFormat sdf : formats) { in TestGenericTime()
681 sdf.setTimeZoneFormat(tzfmt); in TestGenericTime()
1754 SimpleDateFormat sdf = (SimpleDateFormat)DateFormat.getDateInstance(); in TestDayOfYearPattern195() local
1755 tryPattern(sdf, today, null, expected); in TestDayOfYearPattern195()
1756 tryPattern(sdf, today, "G yyyy DDD", expected); in TestDayOfYearPattern195()
1760 public void tryPattern(SimpleDateFormat sdf, Date d, String pattern, Date expected) { in tryPattern() argument
1762 sdf.applyPattern(pattern); in tryPattern()
[all …]
DIntlTestDateFormatAPIC.java71 SimpleDateFormat sdf = new SimpleDateFormat(); in TestNameHiding() local
73 str = sdf.format(dateObj); in TestNameHiding()
74 strBuffer = sdf.format(dateObj, strBuffer, fpos); in TestNameHiding()
76 strBuffer = sdf.format(new Date(0), strBuffer, fpos); in TestNameHiding()
77 str = sdf.format(new Date(0)); in TestNameHiding()
79 sdf.parse(str); in TestNameHiding()
80 sdf.parse(str, ppos); in TestNameHiding()
DDateFormatRegressionTest.java58 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() local
59 String pat = sdf.toPattern(); in Test4029195()
63 fmtd = sdf.format(today, fmtd, pos); in Test4029195()
66 sdf.applyPattern("G yyyy DDD"); in Test4029195()
68 todayS = sdf.format(today, todayS, pos); in Test4029195()
71 today = sdf.parse(todayS.toString()); in Test4029195()
79 rt = sdf.format(sdf.parse(todayS.toString()), rt, pos); in Test4029195()
502 SimpleDateFormat sdf = new SimpleDateFormat("z", Locale.US); in Test4101483() local
506 sdf.format(d, buf, fp); in Test4101483()
507 logln(sdf.format(d, buf, fp).toString()); in Test4101483()
[all …]
DTimeZoneFormatTest.java152 SimpleDateFormat sdf = new SimpleDateFormat(PATTERNS[patidx], LOCALES[locidx]); in TestTimeZoneRoundTrip() local
162 sdf.setTimeZone(tz); in TestTimeZoneRoundTrip()
163 String tzstr = sdf.format(DATES[datidx]); in TestTimeZoneRoundTrip()
168 sdf.setTimeZone(unknownZone); in TestTimeZoneRoundTrip()
176 sdf.parse(tzstr, outcal, pos); in TestTimeZoneRoundTrip()
383 SimpleDateFormat sdf = new SimpleDateFormat(pattern, LOCALES[locidx]); in TestTimeRoundTrip() local
429 sdf.setTimeZone(tz); in TestTimeRoundTrip()
470 String text = sdf.format(new Date(testTimes[testidx])); in TestTimeRoundTrip()
472 Date parsedDate = sdf.parse(text); in TestTimeRoundTrip()
826 SimpleDateFormat sdf = new SimpleDateFormat(); in TestISOFormat() local
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp254 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel() local
262 if (sdf != NULL) { in TestWallyWedel()
263 delete sdf; in TestWallyWedel()
306 sdf->setTimeZone(*ttz); in TestWallyWedel()
312 sdf->format(today,fmtOffset, pos); in TestWallyWedel()
342 delete sdf; in TestWallyWedel()
911 SimpleDateFormat* sdf = (SimpleDateFormat*)DateFormat::createDateInstance(); in TestDayOfYearPattern195() local
912 if (sdf == NULL){ in TestDayOfYearPattern195()
916 tryPattern(*sdf, today, 0, expected); in TestDayOfYearPattern195()
917 tryPattern(*sdf, today, "G yyyy DDD", expected); in TestDayOfYearPattern195()
[all …]
Ddtfmrgts.cpp81 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195() local
86 if(sdf == NULL){ in Test4029195()
91 pat = sdf->toPattern(pat); in Test4029195()
96 fmtd = sdf->format(today, fmtd, pos); in Test4029195()
99 sdf->applyPattern("G yyyy DDD"); in Test4029195()
101 todayS = sdf->format(today, todayS, pos); in Test4029195()
104 today = sdf->parse(todayS, status); in Test4029195()
113 rt = sdf->format(sdf->parse(todayS, status), rt, pos); in Test4029195()
124 delete sdf; in Test4029195()
721 SimpleDateFormat *sdf = new SimpleDateFormat(UnicodeString("z"), Locale::getUS(), status); in Test4101483() local
[all …]
Ddtfmapts.cpp310 SimpleDateFormat sdf(status); in TestNameHiding() local
313 sdf.format(dateObj, str, status); in TestNameHiding()
314 sdf.format(dateObj, str, fpos, status); in TestNameHiding()
316 sdf.format((UDate)0, str, fpos); in TestNameHiding()
317 sdf.format((UDate)0, str); in TestNameHiding()
318 sdf.parse(str, status); in TestNameHiding()
319 sdf.parse(str, ppos); in TestNameHiding()
320 sdf.getNumberFormat(); in TestNameHiding()
Dtzfmttst.cpp175 …SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], sta… in TestTimeZoneRoundTrip() local
192 sdf->setTimeZone(*tz); in TestTimeZoneRoundTrip()
193 sdf->format(DATES[datidx], tzstr, fpos); in TestTimeZoneRoundTrip()
198 sdf->setTimeZone(unknownZone); in TestTimeZoneRoundTrip()
211 sdf->parse(tzstr, *outcal, pos); in TestTimeZoneRoundTrip()
343 delete sdf; in TestTimeZoneRoundTrip()
570 SimpleDateFormat *sdf = new SimpleDateFormat(pattern, gLocaleData->locales[locidx], status); in RunTimeRoundTripTests() local
611 sdf->setTimeZone(*tz); in RunTimeRoundTripTests()
665 sdf->format(testTimes[testidx], text, fpos); in RunTimeRoundTripTests()
667 UDate parsedDate = sdf->parse(text, status); in RunTimeRoundTripTests()
[all …]
Dcalregts.cpp991 SimpleDateFormat sdf(status); in test4103271() local
1001 sdf.adoptCalendar(testCal); in test4103271()
1002 sdf.applyPattern("EEE dd MMM yyyy 'WOY'ww'-'YYYY 'DOY'DDD"); in test4103271()
1024 output = testDesc + " - " + sdf.format(d,temp,pos) + "\t"; in test4103271()
1051 log(UnicodeString("") + sdf.format(testCal->getTime(status), str) + in test4103271()
1069 sdf.format(testCal->getTime(status), str)); in test4103271()
1134 "-DOW" + dow + " expect:" + sdf.format(exp, str) + in test4103271()
1135 " got:" + sdf.format(got, str2)); in test4103271()
1153 "-DOW" + dow + " expect:" + sdf.format(exp, str) + in test4103271()
1154 " got:" + sdf.format(got, str2)); in test4103271()
[all …]
/external/icu/icu4c/source/samples/dtptngsample/
Ddtptngsample.cpp59 SimpleDateFormat *sdf = new SimpleDateFormat(pattern,locales[j],status); in getBestPatternExample() local
62 sdf->format(date,dateReturned,status); in getBestPatternExample()
66 delete sdf; in getBestPatternExample()
92 …SimpleDateFormat *sdf = new SimpleDateFormat(dtfg->getBestPattern("MMMMddHmm",status),locale,statu… in addPatternExample() local
96 sdf->applyPattern(dtfg->getBestPattern("MMMMddHmm",status)); in addPatternExample()
97 dateReturned = sdf->format(date, dateReturned, status); in addPatternExample()
98 pattern =sdf->toPattern(pattern); in addPatternExample()
104 delete sdf; in addPatternExample()
133 SimpleDateFormat *sdf = new SimpleDateFormat("EEEE d MMMM y HH:mm:ss zzzz",locale,status); in replaceFieldTypesExample() local
134 sdf->setTimeZone(*zone); in replaceFieldTypesExample()
[all …]
/external/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h155 …SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], *st… in call() local
173 sdf->setTimeZone(*tz); in call()
174 sdf->format(DATES[datidx], tzstr, fpos); in call()
179 sdf->setTimeZone(unknownZone); in call()
191 sdf->parse(tzstr, *outcal, pos); in call()
202 delete sdf; in call() local
/external/clang/test/CodeGen/
Dppc64-qpx-vector.c8 struct sdf { v4df v; }; argument
20 v4df foo2(struct sdf a, v4df b, struct sdf2 c) { in foo2()
/external/cldr/tools/java/org/unicode/cldr/icu/
DRBNFWriter.java70 SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in main() local
87 sdf.applyPattern("yyyy"); in main()
89 out.println("Copyright © 1991-" + sdf.format(now) + " Unicode, Inc.\n" + in main()
93 sdf.applyPattern("yyyy/MM/dd HH:mm:ss"); in main()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_mcomp.c1045 bestsad = vfp->sdf(what->buf, what->stride, get_buf_from_mv(in_what, ref_mv), in vp9_pattern_search()
1062 vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1072 vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1104 vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1114 vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1143 vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1155 vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1219 bestsad = vfp->sdf(what->buf, what->stride, get_buf_from_mv(in_what, ref_mv), in vp9_pattern_search_sad()
1236 vfp->sdf(what->buf, what->stride, in vp9_pattern_search_sad()
1246 vfp->sdf(what->buf, what->stride, in vp9_pattern_search_sad()
[all …]
/external/caliper/examples/src/main/java/examples/
DExpensiveObjectsBenchmark.java63 SimpleDateFormat sdf = new SimpleDateFormat(); in clonedSimpleDateFormat() local
65 sdf.clone(); in clonedSimpleDateFormat()
/external/libvpx/libvpx/vpx_dsp/
Dvariance.h59 vpx_sad_fn_t sdf; member
73 vpx_sad_fn_t sdf; member
/external/libvpx/libvpx/vp8/encoder/
Dmcomp.c882 bestsad = vfp->sdf(what, what_stride, this_offset, in_what_stride) + in vp8_hex_search()
914 thissad = vfp->sdf(what, what_stride, this_offset, in_what_stride); in vp8_hex_search()
924 thissad = vfp->sdf(what, what_stride, this_offset, in_what_stride); in vp8_hex_search()
947 thissad = vfp->sdf(what, what_stride, this_offset, in_what_stride); in vp8_hex_search()
957 thissad = vfp->sdf(what, what_stride, this_offset, in_what_stride); in vp8_hex_search()
988 thissad = vfp->sdf(what, what_stride, this_offset, in_what_stride); in vp8_hex_search()
998 thissad = vfp->sdf(what, what_stride, this_offset, in_what_stride); in vp8_hex_search()
1072 bestsad = fn_ptr->sdf(what, what_stride, in_what, in_what_stride) + in vp8_diamond_search_sad_c()
1097 thissad = fn_ptr->sdf(what, what_stride, check_here, in_what_stride); in vp8_diamond_search_sad_c()
1185 bestsad = fn_ptr->sdf(what, what_stride, in_what, in_what_stride) + in vp8_diamond_search_sadx4()
[all …]
/external/icu/icu4c/source/tools/tzcode/
Dicuzdump.cpp50sdf = new SimpleDateFormat((UnicodeString)"yyyy-MM-dd EEE HH:mm:ss", Locale::getEnglish(), status); in DumpFormatter()
59 sdf->setTimeZone(*stz); in format()
60 UnicodeString str = sdf->format(time, appendTo); in format()
90 SimpleDateFormat* sdf; member in DumpFormatter

12345