/external/apache-http/src/org/apache/http/impl/cookie/ |
D | DateUtils.java | 36 import java.text.SimpleDateFormat; 162 SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormat); in parseDate() 205 SimpleDateFormat formatter = DateFormatHolder.formatFor(pattern); in formatDate() 222 private static final ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>> 223 THREADLOCAL_FORMATS = new ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>>() { 226 protected SoftReference<Map<String, SimpleDateFormat>> initialValue() { 227 return new SoftReference<Map<String, SimpleDateFormat>>( 228 new HashMap<String, SimpleDateFormat>()); 245 public static SimpleDateFormat formatFor(String pattern) { in formatFor() 246 SoftReference<Map<String, SimpleDateFormat>> ref = THREADLOCAL_FORMATS.get(); in formatFor() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | ASN1GeneralizedTime.java | 6 import java.text.SimpleDateFormat; 142 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime() 162 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime() 275 SimpleDateFormat dateF = calculateGMTDateFormat(); in calculateGMTOffset() 291 private SimpleDateFormat calculateGMTDateFormat() in calculateGMTDateFormat() 293 SimpleDateFormat dateF; in calculateGMTDateFormat() 297 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz"); in calculateGMTDateFormat() 301 dateF = new SimpleDateFormat("yyyyMMddHHmmssz"); in calculateGMTDateFormat() 305 dateF = new SimpleDateFormat("yyyyMMddHHmmz"); in calculateGMTDateFormat() 309 dateF = new SimpleDateFormat("yyyyMMddHHz"); in calculateGMTDateFormat() [all …]
|
D | ASN1UTCTime.java | 6 import java.text.SimpleDateFormat; 132 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime() 152 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime() 187 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz", Locale.US); in getDate() 204 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getAdjustedDate()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1GeneralizedTime.java | 5 import java.text.SimpleDateFormat; 140 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime() 160 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime() 273 SimpleDateFormat dateF = calculateGMTDateFormat(); in calculateGMTOffset() 289 private SimpleDateFormat calculateGMTDateFormat() in calculateGMTDateFormat() 291 SimpleDateFormat dateF; in calculateGMTDateFormat() 295 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz"); in calculateGMTDateFormat() 299 dateF = new SimpleDateFormat("yyyyMMddHHmmssz"); in calculateGMTDateFormat() 303 dateF = new SimpleDateFormat("yyyyMMddHHmmz"); in calculateGMTDateFormat() 307 dateF = new SimpleDateFormat("yyyyMMddHHz"); in calculateGMTDateFormat() [all …]
|
D | ASN1UTCTime.java | 5 import java.text.SimpleDateFormat; 130 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime() 150 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime() 185 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz", Locale.US); in getDate() 202 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getAdjustedDate()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
D | ASN1GeneralizedTime.java | 6 import java.text.SimpleDateFormat; 142 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime() 162 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime() 275 SimpleDateFormat dateF = calculateGMTDateFormat(); in calculateGMTOffset() 291 private SimpleDateFormat calculateGMTDateFormat() in calculateGMTDateFormat() 293 SimpleDateFormat dateF; in calculateGMTDateFormat() 297 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz"); in calculateGMTDateFormat() 301 dateF = new SimpleDateFormat("yyyyMMddHHmmssz"); in calculateGMTDateFormat() 305 dateF = new SimpleDateFormat("yyyyMMddHHmmz"); in calculateGMTDateFormat() 309 dateF = new SimpleDateFormat("yyyyMMddHHz"); in calculateGMTDateFormat() [all …]
|
D | ASN1UTCTime.java | 6 import java.text.SimpleDateFormat; 132 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime() 152 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime() 187 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz", Locale.US); in getDate() 204 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getAdjustedDate()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatMiscTests.java | 28 import com.ibm.icu.text.SimpleDateFormat; 52 SimpleDateFormat formatter; in Test4097450() 53 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); in Test4097450() 58 formatter = new SimpleDateFormat(dformat[i]); in Test4097450() 81 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new() 82 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new() 102 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new() 104 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
|
D | DateFormatRegressionTestJ.java | 29 import com.ibm.icu.text.SimpleDateFormat; 38 private SimpleDateFormat sdf_; 42 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in init() 73 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); in Test4148168() 162 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); in Test4253490() 176 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432() 187 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730() 212 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.JAPAN); in Test4375399() 241 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in Test4468663() 266 SimpleDateFormat sdf = (SimpleDateFormat) sdf_.clone(); in run() [all …]
|
D | DateFormatRegressionTest.java | 36 import com.ibm.icu.text.SimpleDateFormat; 58 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() 176 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591() 220 SimpleDateFormat fmt; in Test4059917() 222 fmt = new SimpleDateFormat("yyyy/MM/dd"); in Test4059917() 225 fmt = new SimpleDateFormat("yyyyMMdd"); in Test4059917() 230 public void aux917(SimpleDateFormat fmt, String str) { in aux917() 256 SimpleDateFormat formatter = new SimpleDateFormat("yyyy-DDD.hh:mm:ss"); in Test4060212() 268 formatter = new SimpleDateFormat("yyyy-ddd.hh:mm:ss"); in Test4060212() 283 SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); in Test4061287() [all …]
|
D | IntlTestSimpleDateFormatAPI.java | 35 import com.ibm.icu.text.SimpleDateFormat; 56 SimpleDateFormat def = new SimpleDateFormat(); in TestAPI() 59 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI() 61 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); in TestAPI() 65 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols); in TestAPI() 193 class StubDateFormat extends SimpleDateFormat{ in TestCoverage()
|
D | DateFormatTest.java | 55 import com.ibm.icu.text.SimpleDateFormat; 173 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns() 174 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns() 209 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel() 302 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestTwoDigitYearDSTParse() 303 … SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH); in TestTwoDigitYearDSTParse() 369 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition() 376 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition() 468 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern()); in TestFieldPosition() 667 final SimpleDateFormat[] formats = { in TestGenericTime() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatMiscTests.java | 29 import android.icu.text.SimpleDateFormat; 55 SimpleDateFormat formatter; in Test4097450() 56 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); in Test4097450() 61 formatter = new SimpleDateFormat(dformat[i]); in Test4097450() 84 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new() 85 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new() 105 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new() 107 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
|
D | DateFormatRegressionTestJ.java | 30 import android.icu.text.SimpleDateFormat; 41 private SimpleDateFormat sdf_; 45 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in init() 76 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); in Test4148168() 165 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); in Test4253490() 179 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432() 190 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730() 215 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.JAPAN); in Test4375399() 244 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in Test4468663() 269 SimpleDateFormat sdf = (SimpleDateFormat) sdf_.clone(); in run() [all …]
|
D | DateFormatRegressionTest.java | 37 import android.icu.text.SimpleDateFormat; 61 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() 179 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591() 223 SimpleDateFormat fmt; in Test4059917() 225 fmt = new SimpleDateFormat("yyyy/MM/dd"); in Test4059917() 228 fmt = new SimpleDateFormat("yyyyMMdd"); in Test4059917() 233 public void aux917(SimpleDateFormat fmt, String str) { in aux917() 259 SimpleDateFormat formatter = new SimpleDateFormat("yyyy-DDD.hh:mm:ss"); in Test4060212() 271 formatter = new SimpleDateFormat("yyyy-ddd.hh:mm:ss"); in Test4060212() 286 SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); in Test4061287() [all …]
|
D | IntlTestSimpleDateFormatAPI.java | 36 import android.icu.text.SimpleDateFormat; 59 SimpleDateFormat def = new SimpleDateFormat(); in TestAPI() 62 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI() 64 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); in TestAPI() 68 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols); in TestAPI() 196 class StubDateFormat extends SimpleDateFormat{ in TestCoverage()
|
D | DateFormatTest.java | 56 import android.icu.text.SimpleDateFormat; 176 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns() 177 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns() 212 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel() 305 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestTwoDigitYearDSTParse() 306 … SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH); in TestTwoDigitYearDSTParse() 372 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition() 379 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition() 471 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern()); in TestFieldPosition() 670 final SimpleDateFormat[] formats = { in TestGenericTime() [all …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | smpdtfmt.h | 726 class U_I18N_API SimpleDateFormat: public DateFormat { 737 SimpleDateFormat(UErrorCode& status); 750 SimpleDateFormat(const UnicodeString& pattern, 774 SimpleDateFormat(const UnicodeString& pattern, 790 SimpleDateFormat(const UnicodeString& pattern, 815 SimpleDateFormat(const UnicodeString& pattern, 829 SimpleDateFormat(const UnicodeString& pattern, 842 SimpleDateFormat(const UnicodeString& pattern, 850 SimpleDateFormat(const SimpleDateFormat&); 856 SimpleDateFormat& operator=(const SimpleDateFormat&); [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | smpdtfmt.h | 726 class U_I18N_API SimpleDateFormat: public DateFormat { 737 SimpleDateFormat(UErrorCode& status); 750 SimpleDateFormat(const UnicodeString& pattern, 774 SimpleDateFormat(const UnicodeString& pattern, 790 SimpleDateFormat(const UnicodeString& pattern, 815 SimpleDateFormat(const UnicodeString& pattern, 829 SimpleDateFormat(const UnicodeString& pattern, 842 SimpleDateFormat(const UnicodeString& pattern, 850 SimpleDateFormat(const SimpleDateFormat&); 856 SimpleDateFormat& operator=(const SimpleDateFormat&); [all …]
|
/external/testng/src/main/java/org/testng/ |
D | TimeBombSkipException.java | 7 import java.text.SimpleDateFormat; 24 private static final SimpleDateFormat SDF= new SimpleDateFormat("yyyy/MM/dd"); 49 m_inFormat= new SimpleDateFormat(format); in TimeBombSkipException() 50 m_outFormat= new SimpleDateFormat(format); in TimeBombSkipException() 88 m_inFormat= new SimpleDateFormat(inFormat); in TimeBombSkipException() 89 m_outFormat= new SimpleDateFormat(outFormat); in TimeBombSkipException() 121 m_inFormat= new SimpleDateFormat(format); in TimeBombSkipException() 122 m_outFormat= new SimpleDateFormat(format); in TimeBombSkipException() 172 m_inFormat= new SimpleDateFormat(inFormat); in TimeBombSkipException() 173 m_outFormat= new SimpleDateFormat(outFormat); in TimeBombSkipException()
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
D | DateFormatPerformanceTest.java | 25 private com.ibm.icu.text.SimpleDateFormat[] icuDateFormat; 27 private java.text.SimpleDateFormat[] jdkDateFormat; 44 icuDateFormat = new com.ibm.icu.text.SimpleDateFormat[threads]; in setup() 45 jdkDateFormat = new java.text.SimpleDateFormat[threads]; in setup() 47 icuDateFormat[i] = new com.ibm.icu.text.SimpleDateFormat(pattern, locale); in setup() 48 jdkDateFormat[i] = new java.text.SimpleDateFormat(pattern, locale); in setup() 65 new com.ibm.icu.text.SimpleDateFormat(pattern, locale); in TestICUConstruction() 73 new java.text.SimpleDateFormat(pattern, locale);
|
/external/icu/icu4c/source/test/intltest/ |
D | sdtfmtts.cpp | 56 SimpleDateFormat def(status); in testAPI() 67 SimpleDateFormat pat(pattern, status); in testAPI() 73 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status); in testAPI() 85 SimpleDateFormat cust1(pattern, symbols, status); in testAPI() 92 SimpleDateFormat cust2(pattern, *symbols, status); in testAPI() 99 SimpleDateFormat ovr1(pattern, override, status); in testAPI() 105 SimpleDateFormat ovr2(pattern, override, Locale::getGerman(), status); in testAPI() 112 SimpleDateFormat ovr3(pattern, override_bogus, Locale::getGerman(), status); in testAPI() 118 SimpleDateFormat copy(pat); in testAPI() 252 DateFormat *test = new SimpleDateFormat(status); in testAPI() [all …]
|
D | dtfmrgts.cpp | 83 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195() 238 … SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591() 296 SimpleDateFormat fmt(UnicodeString(u"yyyy/MM/dd"), status ); in Test4059917() 301 SimpleDateFormat fmt2( UnicodeString(u"yyyyMMdd"), status ); in Test4059917() 307 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) { in aux917() 347 SimpleDateFormat formatter(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212() 373 SimpleDateFormat formatter2(UnicodeString(u"yyyy-ddd.hh:mm:ss"), status); in Test4060212() 393 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("dd/MM/yyyy"), status); in Test4061287() 571 SimpleDateFormat fmt("MM/dd/yy", Locale::getUK(), ec); in Test4073003() 610 SimpleDateFormat *f = new SimpleDateFormat(status); in Test4089106() [all …]
|
D | miscdtfm.cpp | 116 LocalPointer<SimpleDateFormat> formatter; in test4097450() 117 SimpleDateFormat resultFormatter((UnicodeString)u"yyyy", status); in test4097450() 128 formatter.adoptInstead(new SimpleDateFormat(dformat[i], status)); in test4097450() 165 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), *symbols, status); in test4099975() 197 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975() 228 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), symbols, status); in test4099975() 257 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | JapaneseTest.java | 24 import android.icu.text.SimpleDateFormat; 165 ((SimpleDateFormat)format).applyPattern(jCalShortPattern); in Test3860() 188 SimpleDateFormat fmt = new SimpleDateFormat("y", loc); in Test3860() 189 …SimpleDateFormat fmt2 = new SimpleDateFormat("HH:mm:ss.S MMMM d, yyyy G", new ULocale("en_US@calen… in Test3860() 251 SimpleDateFormat testFmt1 = new SimpleDateFormat(patText, loc); in TestForceGannenNumbering() 252 SimpleDateFormat testFmt2 = new SimpleDateFormat(patNumr, loc); in TestForceGannenNumbering() 276 …SimpleDateFormat testFmt3 = new SimpleDateFormat(pattern, "", loc); // empty override string to di… in TestForceGannenNumbering() 288 …SimpleDateFormat fmt = (SimpleDateFormat)c.getDateTimeFormat(1,1,new ULocale("en_US@calendar=japan… in Test5345parse() 424 SimpleDateFormat jdf = (SimpleDateFormat) SimpleDateFormat.getDateInstance(jcal, in TestJapaneseYear3282() 425 SimpleDateFormat.DEFAULT, Locale.getDefault()); in TestJapaneseYear3282()
|