Home
last modified time | relevance | path

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

1234

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DSimpleDateFormatTest.java45 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testFormatCalendarStringBufferFieldPosition() local
46 sdf.format(cal, buf, fp); in testFormatCalendarStringBufferFieldPosition()
57 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testParseStringCalendarParsePosition() local
58 sdf.parse(hmzmdyStr, cal, pp); in testParseStringCalendarParsePosition()
74 SimpleDateFormat sdf = new SimpleDateFormat(); in testSimpleDateFormat() local
76 assertEquals(jsdf.format(date), sdf.format(date)); in testSimpleDateFormat()
83 SimpleDateFormat sdf = new SimpleDateFormat(mdy); in testSimpleDateFormatString() local
85 assertEquals(jsdf.format(date), sdf.format(date)); in testSimpleDateFormatString()
93 SimpleDateFormat sdf = new SimpleDateFormat(mdy, l); in testSimpleDateFormatStringLocale() local
95 assertEquals(jsdf.format(date), sdf.format(date)); in testSimpleDateFormatStringLocale()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRegressionTestJ.java178 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730() local
184 sdf.applyPattern("MM d y"); in Test4358730()
185 logln(sdf.format(today)); in Test4358730()
186 sdf.applyPattern("MM d yy"); in Test4358730()
187 logln(sdf.format(today)); in Test4358730()
189 sdf.applyPattern("MM d yyy"); in Test4358730()
190 logln(sdf.format(today)); in Test4358730()
192 sdf.applyPattern("MM d yyyy"); in Test4358730()
193 logln(sdf.format(today)); in Test4358730()
195 sdf.applyPattern("MM d yyyyy"); in Test4358730()
[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()
DTimeZoneFormatTest.java147 SimpleDateFormat sdf = new SimpleDateFormat(PATTERNS[patidx], LOCALES[locidx]); in TestTimeZoneRoundTrip() local
157 sdf.setTimeZone(tz); in TestTimeZoneRoundTrip()
158 String tzstr = sdf.format(DATES[datidx]); in TestTimeZoneRoundTrip()
163 sdf.setTimeZone(unknownZone); in TestTimeZoneRoundTrip()
171 sdf.parse(tzstr, outcal, pos); in TestTimeZoneRoundTrip()
374 SimpleDateFormat sdf = new SimpleDateFormat(pattern, LOCALES[locidx]); in TestTimeRoundTrip() local
419 sdf.setTimeZone(tz); in TestTimeRoundTrip()
459 String text = sdf.format(new Date(testTimes[testidx])); in TestTimeRoundTrip()
461 Date parsedDate = sdf.parse(text); in TestTimeRoundTrip()
804 SimpleDateFormat sdf = new SimpleDateFormat(); in TestISOFormat() local
[all …]
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()
493 SimpleDateFormat sdf = new SimpleDateFormat("z", Locale.US); in Test4101483() local
497 sdf.format(d, buf, fp); in Test4101483()
498 logln(sdf.format(d, buf, fp).toString()); in Test4101483()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTestJ.java174 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730() local
180 sdf.applyPattern("MM d y"); in Test4358730()
181 logln(sdf.format(today)); in Test4358730()
182 sdf.applyPattern("MM d yy"); in Test4358730()
183 logln(sdf.format(today)); in Test4358730()
185 sdf.applyPattern("MM d yyy"); in Test4358730()
186 logln(sdf.format(today)); in Test4358730()
188 sdf.applyPattern("MM d yyyy"); in Test4358730()
189 logln(sdf.format(today)); in Test4358730()
191 sdf.applyPattern("MM d yyyyy"); in Test4358730()
[all …]
DIntlTestDateFormatAPIC.java67 SimpleDateFormat sdf = new SimpleDateFormat(); in TestNameHiding() local
69 str = sdf.format(dateObj); in TestNameHiding()
70 strBuffer = sdf.format(dateObj, strBuffer, fpos); in TestNameHiding()
72 strBuffer = sdf.format(new Date(0), strBuffer, fpos); in TestNameHiding()
73 str = sdf.format(new Date(0)); in TestNameHiding()
75 sdf.parse(str); in TestNameHiding()
76 sdf.parse(str, ppos); in TestNameHiding()
DTimeZoneFormatTest.java143 SimpleDateFormat sdf = new SimpleDateFormat(PATTERNS[patidx], LOCALES[locidx]); in TestTimeZoneRoundTrip() local
153 sdf.setTimeZone(tz); in TestTimeZoneRoundTrip()
154 String tzstr = sdf.format(DATES[datidx]); in TestTimeZoneRoundTrip()
159 sdf.setTimeZone(unknownZone); in TestTimeZoneRoundTrip()
167 sdf.parse(tzstr, outcal, pos); in TestTimeZoneRoundTrip()
370 SimpleDateFormat sdf = new SimpleDateFormat(pattern, LOCALES[locidx]); in TestTimeRoundTrip() local
415 sdf.setTimeZone(tz); in TestTimeRoundTrip()
455 String text = sdf.format(new Date(testTimes[testidx])); in TestTimeRoundTrip()
457 Date parsedDate = sdf.parse(text); in TestTimeRoundTrip()
800 SimpleDateFormat sdf = new SimpleDateFormat(); in TestISOFormat() local
[all …]
DDateFormatRegressionTest.java54 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() local
55 String pat = sdf.toPattern(); in Test4029195()
59 fmtd = sdf.format(today, fmtd, pos); in Test4029195()
62 sdf.applyPattern("G yyyy DDD"); in Test4029195()
64 todayS = sdf.format(today, todayS, pos); in Test4029195()
67 today = sdf.parse(todayS.toString()); in Test4029195()
75 rt = sdf.format(sdf.parse(todayS.toString()), rt, pos); in Test4029195()
489 SimpleDateFormat sdf = new SimpleDateFormat("z", Locale.US); in Test4101483() local
493 sdf.format(d, buf, fp); in Test4101483()
494 logln(sdf.format(d, buf, fp).toString()); in Test4101483()
[all …]
/external/icu/icu4c/source/samples/dtptngsample/
Ddtptngsample.cpp56 SimpleDateFormat *sdf = new SimpleDateFormat(pattern,locales[j],status); in getBestPatternExample() local
59 sdf->format(date,dateReturned,status); in getBestPatternExample()
63 delete sdf; in getBestPatternExample()
89 …SimpleDateFormat *sdf = new SimpleDateFormat(dtfg->getBestPattern("MMMMddHmm",status),locale,statu… in addPatternExample() local
93 sdf->applyPattern(dtfg->getBestPattern("MMMMddHmm",status)); in addPatternExample()
94 dateReturned = sdf->format(date, dateReturned, status); in addPatternExample()
95 pattern =sdf->toPattern(pattern); in addPatternExample()
101 delete sdf; in addPatternExample()
130 SimpleDateFormat *sdf = new SimpleDateFormat("EEEE d MMMM y HH:mm:ss zzzz",locale,status); in replaceFieldTypesExample() local
131 sdf->setTimeZone(*zone); in replaceFieldTypesExample()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudsearch2/
Ddocument.py182 def _commit_with_auth(self, sdf, api_version): argument
183 return self.domain_connection.upload_documents(sdf, 'application/json')
185 def _commit_without_auth(self, sdf, api_version): argument
199 resp = session.post(url, data=sdf, headers={'Content-Type': 'application/json'})
213 sdf = self.get_sdf()
215 if ': null' in sdf:
218 index = sdf.index(': null')
219 boto.log.error(sdf[index - 100:index + 100])
226 r = self._commit_with_auth(sdf, api_version)
228 r = self._commit_without_auth(sdf, api_version)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudsearch/
Ddocument.py180 sdf = self.get_sdf()
182 if ': null' in sdf:
185 index = sdf.index(': null')
186 boto.log.error(sdf[index - 100:index + 100])
199 r = session.post(url, data=sdf, headers={'Content-Type': 'application/json'})
201 return CommitResponse(r, self, sdf)
219 def __init__(self, response, doc_service, sdf): argument
222 self.sdf = sdf
230 'SDF:\n{1}'.format(_body, self.sdf))
/external/icu/icu4c/source/test/intltest/
Ddtfmrgts.cpp77 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195() local
82 if(sdf == NULL){ in Test4029195()
87 pat = sdf->toPattern(pat); in Test4029195()
92 fmtd = sdf->format(today, fmtd, pos); in Test4029195()
95 sdf->applyPattern("G yyyy DDD"); in Test4029195()
97 todayS = sdf->format(today, todayS, pos); in Test4029195()
100 today = sdf->parse(todayS, status); in Test4029195()
109 rt = sdf->format(sdf->parse(todayS, status), rt, pos); in Test4029195()
120 delete sdf; in Test4029195()
717 SimpleDateFormat *sdf = new SimpleDateFormat(UnicodeString("z"), Locale::getUS(), status); in Test4101483() local
[all …]
Ddtfmapts.cpp308 SimpleDateFormat sdf(status); in TestNameHiding() local
311 sdf.format(dateObj, str, status); in TestNameHiding()
312 sdf.format(dateObj, str, fpos, status); in TestNameHiding()
314 sdf.format((UDate)0, str, fpos); in TestNameHiding()
315 sdf.format((UDate)0, str); in TestNameHiding()
316 sdf.parse(str, status); in TestNameHiding()
317 sdf.parse(str, ppos); in TestNameHiding()
318 sdf.getNumberFormat(); in TestNameHiding()
Dtzfmttst.cpp166 …SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], sta… in TestTimeZoneRoundTrip() local
183 sdf->setTimeZone(*tz); in TestTimeZoneRoundTrip()
184 sdf->format(DATES[datidx], tzstr, fpos); in TestTimeZoneRoundTrip()
189 sdf->setTimeZone(unknownZone); in TestTimeZoneRoundTrip()
202 sdf->parse(tzstr, *outcal, pos); in TestTimeZoneRoundTrip()
331 delete sdf; in TestTimeZoneRoundTrip()
461 SimpleDateFormat *sdf = new SimpleDateFormat(pattern, data.locales[locidx], status); in run() local
501 sdf->setTimeZone(*tz); in run()
552 sdf->format(testTimes[testidx], text, fpos); in run()
554 UDate parsedDate = sdf->parse(text, status); in run()
[all …]
/external/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h152 …SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], *st… in call() local
170 sdf->setTimeZone(*tz); in call()
171 sdf->format(DATES[datidx], tzstr, fpos); in call()
176 sdf->setTimeZone(unknownZone); in call()
188 sdf->parse(tzstr, *outcal, pos); in call()
199 delete sdf; in call() local
/external/svox/pico/lib/
Dpicoos.c1516 picoos_sd_file_t * sdf = NULL; in picoos_sdfOpenIn() local
1524 sdf = picoos_allocate(g->mm,sizeof(picoos_sd_file_t)); in picoos_sdfOpenIn()
1525 if (NULL == sdf) { in picoos_sdfOpenIn()
1531 if (picoos_OpenBinary(g,&(sdf->file),fileName)) { in picoos_sdfOpenIn()
1534 …done = picoos_readWavHeader(sdf->file,&(sdf->sf),&(sdf->enc),&(sdf->nrFileSamples),&(sdf->hdrSize)… in picoos_sdfOpenIn()
1547 (*numSamples) = sdf->nrFileSamples; in picoos_sdfOpenIn()
1548 (*sf) = sdf->sf; in picoos_sdfOpenIn()
1549 (*enc) = sdf->enc; in picoos_sdfOpenIn()
1551 if (PICOOS_ENC_LIN != sdf->enc) { in picoos_sdfOpenIn()
1555 if (SAMPLE_FREQ_16KHZ != sdf->sf) { in picoos_sdfOpenIn()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DUTCTimeTest.java48 SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy HH:mm:ss", Locale.US);
49 sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
81 validUTCTimes[i][2] = sdf
DGeneralizedTimeTest.java51 SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy HH:mm:ss", Locale.US);
52 sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
90 validGeneralizedTimes[i][2] = sdf
DDerUTCTimeEDTest.java64 SimpleDateFormat sdf = in testUTCEncoder() local
66 sdf.setTimeZone(TimeZone.getTimeZone("UTC")); in testUTCEncoder()
67 myDate = sdf.parse("06.06.2004 00:00"); in testUTCEncoder()
DDerGeneralizedTimeEDTest.java82 SimpleDateFormat sdf = in testGeneralizedEncoder() local
84 sdf.setTimeZone(TimeZone.getTimeZone("UTC")); in testGeneralizedEncoder()
85 myDate = sdf.parse("06.06.2004 00:00"); in testGeneralizedEncoder()
/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/libvpx/libvpx/vp9/encoder/
Dvp9_mcomp.c913 bestsad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
929 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
940 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
972 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
983 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1010 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1021 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search()
1092 bestsad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search_sad()
1108 thissad = vfp->sdf(what->buf, what->stride, in vp9_pattern_search_sad()
1119 thissad = 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.h62 vpx_sad_fn_t sdf; member
79 vpx_sad_fn_t sdf; member

1234