Home
last modified time | relevance | path

Searched refs:dateFormats (Results 1 – 8 of 8) sorted by relevance

/external/apache-http/src/org/apache/http/impl/cookie/
DDateUtils.java118 public static Date parseDate(final String dateValue, String[] dateFormats) in parseDate() argument
120 return parseDate(dateValue, dateFormats, null); in parseDate()
139 String[] dateFormats, in parseDate() argument
146 if (dateFormats == null) { in parseDate()
147 dateFormats = DEFAULT_PATTERNS; in parseDate()
161 for (String dateFormat : dateFormats) { in parseDate()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
DGlobalizationPreferences.java667 if (dateFormats == null) { in setDateFormat()
668 dateFormats = new DateFormat[DF_LIMIT][DF_LIMIT]; in setDateFormat()
670 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat()
694 if (dateFormats != null) { in getDateFormat()
695 result = dateFormats[dateStyle][timeStyle]; in getDateFormat()
771 dateFormats = null; in reset()
1174 private DateFormat[][] dateFormats; field in GlobalizationPreferences
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGlobalizationPreferences.java641 if (dateFormats == null) { in setDateFormat()
642 dateFormats = new DateFormat[DF_LIMIT][DF_LIMIT]; in setDateFormat()
644 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety in setDateFormat()
667 if (dateFormats != null) { in getDateFormat()
668 result = dateFormats[dateStyle][timeStyle]; in getDateFormat()
741 dateFormats = null; in reset()
1134 private DateFormat[][] dateFormats; field in GlobalizationPreferences
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatTests.java1925 SimpleDateFormat dateFormats[] = new SimpleDateFormat[patterns.length * locales.length]; in getTestObjects() local
1930dateFormats[i++] = getCannedSimpleDateFormat(patterns[p], ULocale.forLocale(locales[l])); in getTestObjects()
1934 return dateFormats; in getTestObjects()
2010 … ChineseDateFormat dateFormats[] = new ChineseDateFormat[patterns.length * locales.length]; in getTestObjects() local
2017 dateFormats[i++] = new ChineseDateFormat(patterns[p], locale); in getTestObjects()
2021 return dateFormats; in getTestObjects()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatTests.java1924 SimpleDateFormat dateFormats[] = new SimpleDateFormat[patterns.length * locales.length]; in getTestObjects() local
1929dateFormats[i++] = getCannedSimpleDateFormat(patterns[p], ULocale.forLocale(locales[l])); in getTestObjects()
1933 return dateFormats; in getTestObjects()
2009 … ChineseDateFormat dateFormats[] = new ChineseDateFormat[patterns.length * locales.length]; in getTestObjects() local
2016 dateFormats[i++] = new ChineseDateFormat(patterns[p], locale); in getTestObjects()
2020 return dateFormats; in getTestObjects()
/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp516 DateFormat* dateFormats[COUNT]; in TestFieldPosition() local
517dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
518dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
522 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
529 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
583 DateFormat* df = dateFormats[j]; in TestFieldPosition()
628 dateFormats[0]->format(aug13, buf, NULL, status); in TestFieldPosition()
632 delete dateFormats[i]; in TestFieldPosition()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java353 DateFormat[] dateFormats = new DateFormat[COUNT]; in TestFieldPosition() local
354dateFormats[0] = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US); in TestFieldPosition()
355dateFormats[1] = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.FRANCE); in TestFieldPosition()
359 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
366 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
456 DateFormat df = dateFormats[j]; in TestFieldPosition()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java357 DateFormat[] dateFormats = new DateFormat[COUNT]; in TestFieldPosition() local
358dateFormats[0] = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US); in TestFieldPosition()
359dateFormats[1] = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.FRANCE); in TestFieldPosition()
363 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
370 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
460 DateFormat df = dateFormats[j]; in TestFieldPosition()