/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | DateFormatTest.java | 16 import com.ibm.icu.text.DateFormat; 32 private DateFormat aDF; 60 aDF = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.US); in setUp() 62 anFP = new FieldPosition(DateFormat.YEAR_FIELD); in setUp() 63 anFPField = new FieldPosition(DateFormat.Field.YEAR); in setUp() 70 DateFormat df = DateFormat.getInstance(); in testHashCode() 71 DateFormat eq = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); in testHashCode() 79 DateFormat df = new DateFormat(java.text.DateFormat.getInstance()); in testDateFormat() 80 assertEquals(DateFormat.getInstance(), df); in testDateFormat() 158 assertEquals(aTimeString, DateFormat.getTimeInstance().format(aDate)); in testGetTimeInstance() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | DateFormat.java | 112 public class DateFormat extends Format { class 119 public final java.text.DateFormat dateFormat; 125 public DateFormat(java.text.DateFormat delegate) { in DateFormat() method in DateFormat 133 protected DateFormat() { in DateFormat() method in DateFormat 134 this.dateFormat = java.text.DateFormat.getDateTimeInstance( in DateFormat() 135 java.text.DateFormat.SHORT, in DateFormat() 136 java.text.DateFormat.SHORT, in DateFormat() 1015 public final static DateFormat getTimeInstance() in getTimeInstance() 1017 return new DateFormat(java.text.DateFormat.getTimeInstance( in getTimeInstance() 1018 java.text.DateFormat.DEFAULT, in getTimeInstance() [all …]
|
D | SimpleDateFormat.java | 204 public class SimpleDateFormat extends DateFormat { 490 if (attr.equals(java.text.DateFormat.Field.AM_PM)) { in formatToCharacterIterator() 492 } else if (attr.equals(java.text.DateFormat.Field.DAY_OF_MONTH)) { in formatToCharacterIterator() 494 } else if (attr.equals(java.text.DateFormat.Field.DAY_OF_WEEK)) { in formatToCharacterIterator() 496 } else if (attr.equals(java.text.DateFormat.Field.DAY_OF_WEEK_IN_MONTH)) { in formatToCharacterIterator() 498 } else if (attr.equals(java.text.DateFormat.Field.DAY_OF_YEAR)) { in formatToCharacterIterator() 500 } else if (attr.equals(java.text.DateFormat.Field.ERA)) { in formatToCharacterIterator() 502 } else if (attr.equals(java.text.DateFormat.Field.HOUR_OF_DAY0)) { in formatToCharacterIterator() 504 } else if (attr.equals(java.text.DateFormat.Field.HOUR_OF_DAY1)) { in formatToCharacterIterator() 506 } else if (attr.equals(java.text.DateFormat.Field.HOUR0)) { in formatToCharacterIterator() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | datefmt.cpp | 123 DateFormat::DateFormat() in DateFormat() function in DateFormat 132 DateFormat::DateFormat(const DateFormat& other) in DateFormat() function in DateFormat 143 DateFormat& DateFormat::operator=(const DateFormat& other) in operator =() 167 DateFormat::~DateFormat() in ~DateFormat() 176 DateFormat::operator==(const Format& other) const in operator ==() 183 DateFormat* fmt = (DateFormat*)&other; in operator ==() 195 DateFormat::format(const Formattable& obj, in format() 230 DateFormat::format(const Formattable& obj, in format() 266 DateFormat::format(Calendar& /* unused cal */, in format() 279 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const { in format() [all …]
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | DateFormatTest.java | 9 import java.text.DateFormat; 29 for (Locale loc : DateFormat.getAvailableLocales()) { in TestGetInstance() 34 checkGetInstance(DateFormat.FULL, DateFormat.LONG, loc); in TestGetInstance() 35 checkGetInstance(DateFormat.MEDIUM, -1, loc); in TestGetInstance() 36 checkGetInstance(1, DateFormat.SHORT, loc); in TestGetInstance() 42 DateFormat df = getJDKInstance(dstyle, tstyle, loc, method); in checkGetInstance() 55 DateFormat dfIcu = getJDKInstance(dstyle, tstyle, iculoc, null); in checkGetInstance() 69 private DateFormat getJDKInstance(int dstyle, int tstyle, Locale loc, String[] methodName) { in getJDKInstance() 70 DateFormat df; in getJDKInstance() 73 df = DateFormat.getTimeInstance(tstyle, loc); in getJDKInstance() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatTest.java | 41 import com.ibm.icu.text.DateFormat; 42 import com.ibm.icu.text.DateFormat.BooleanAttribute; 73 {DateFormat.YEAR, "y","en","y"}, in TestPatterns() 75 {DateFormat.QUARTER, "QQQQ", "en", "QQQQ"}, in TestPatterns() 76 {DateFormat.ABBR_QUARTER, "QQQ", "en", "QQQ"}, in TestPatterns() 77 {DateFormat.YEAR_QUARTER, "yQQQQ", "en", "QQQQ y"}, in TestPatterns() 78 {DateFormat.YEAR_ABBR_QUARTER, "yQQQ", "en", "QQQ y"}, in TestPatterns() 80 {DateFormat.MONTH, "MMMM", "en", "LLLL"}, in TestPatterns() 81 {DateFormat.ABBR_MONTH, "MMM", "en", "LLL"}, in TestPatterns() 82 {DateFormat.NUM_MONTH, "M", "en", "L"}, in TestPatterns() [all …]
|
D | DateFormatRoundTripTest.java | 21 import com.ibm.icu.text.DateFormat; 49 final Locale[] avail = DateFormat.getAvailableLocales(); in TestDateFormatRoundTrip() 77 case DateFormat.SHORT : in styleName() 79 case DateFormat.MEDIUM : in styleName() 81 case DateFormat.LONG : in styleName() 83 case DateFormat.FULL : in styleName() 114 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test() 117 DateFormat df = DateFormat.getDateInstance(style, loc); in _test() 122 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test() 125 DateFormat df = DateFormat.getTimeInstance(style, loc); in _test() [all …]
|
D | IntlTestDateFormatAPI.java | 27 import com.ibm.icu.text.DateFormat; 42 DateFormat a = DateFormat.getInstance(); in TestEquals() 50 DateFormat b = DateFormat.getInstance(); in TestEquals() 81 DateFormat def = DateFormat.getInstance(); in TestAPI() 82 DateFormat fr = DateFormat.getTimeInstance(DateFormat.FULL, Locale.FRENCH); in TestAPI() 83 DateFormat it = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.ITALIAN); in TestAPI() 84 … DateFormat de = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.GERMAN); in TestAPI() 151 final Locale[] locales = DateFormat.getAvailableLocales(); in TestAPI()
|
D | DateFormatRegressionTest.java | 28 import com.ibm.icu.text.DateFormat; 54 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() 90 … DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408() 251 DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.LONG); in Test4060212() 297 DateFormat shortdate, fulldate; in Test4065240() 312 shortdate = DateFormat.getDateInstance(DateFormat.SHORT); in Test4065240() 313 fulldate = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG); in Test4065240() 362 DateFormat fmtA = DateFormat.getInstance(); in Test4071441() 363 DateFormat fmtB = DateFormat.getInstance(); in Test4071441() 400 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatTest.java | 42 import android.icu.text.DateFormat; 43 import android.icu.text.DateFormat.BooleanAttribute; 77 {DateFormat.YEAR, "y","en","y"}, in TestPatterns() 79 {DateFormat.QUARTER, "QQQQ", "en", "QQQQ"}, in TestPatterns() 80 {DateFormat.ABBR_QUARTER, "QQQ", "en", "QQQ"}, in TestPatterns() 81 {DateFormat.YEAR_QUARTER, "yQQQQ", "en", "QQQQ y"}, in TestPatterns() 82 {DateFormat.YEAR_ABBR_QUARTER, "yQQQ", "en", "QQQ y"}, in TestPatterns() 84 {DateFormat.MONTH, "MMMM", "en", "LLLL"}, in TestPatterns() 85 {DateFormat.ABBR_MONTH, "MMM", "en", "LLL"}, in TestPatterns() 86 {DateFormat.NUM_MONTH, "M", "en", "L"}, in TestPatterns() [all …]
|
D | DateFormatRoundTripTest.java | 22 import android.icu.text.DateFormat; 53 final Locale[] avail = DateFormat.getAvailableLocales(); in TestDateFormatRoundTrip() 81 case DateFormat.SHORT : in styleName() 83 case DateFormat.MEDIUM : in styleName() 85 case DateFormat.LONG : in styleName() 87 case DateFormat.FULL : in styleName() 118 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test() 121 DateFormat df = DateFormat.getDateInstance(style, loc); in _test() 126 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test() 129 DateFormat df = DateFormat.getTimeInstance(style, loc); in _test() [all …]
|
D | IntlTestDateFormatAPI.java | 28 import android.icu.text.DateFormat; 46 DateFormat a = DateFormat.getInstance(); in TestEquals() 54 DateFormat b = DateFormat.getInstance(); in TestEquals() 85 DateFormat def = DateFormat.getInstance(); in TestAPI() 86 DateFormat fr = DateFormat.getTimeInstance(DateFormat.FULL, Locale.FRENCH); in TestAPI() 87 DateFormat it = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.ITALIAN); in TestAPI() 88 … DateFormat de = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.GERMAN); in TestAPI() 155 final Locale[] locales = DateFormat.getAvailableLocales(); in TestAPI()
|
D | DateFormatRegressionTest.java | 29 import android.icu.text.DateFormat; 58 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195() 94 … DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408() 255 DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.LONG); in Test4060212() 301 DateFormat shortdate, fulldate; in Test4065240() 316 shortdate = DateFormat.getDateInstance(DateFormat.SHORT); in Test4065240() 317 fulldate = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG); in Test4065240() 366 DateFormat fmtA = DateFormat.getInstance(); in Test4071441() 367 DateFormat fmtB = DateFormat.getInstance(); in Test4071441() 404 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormat.java | 142 public abstract class DateFormat extends UFormat { class 1303 public final static DateFormat getTimeInstance() in getTimeInstance() 1318 public final static DateFormat getTimeInstance(int style) in getTimeInstance() 1333 public final static DateFormat getTimeInstance(int style, in getTimeInstance() 1349 public final static DateFormat getTimeInstance(int style, in getTimeInstance() 1362 public final static DateFormat getDateInstance() in getDateInstance() 1380 public final static DateFormat getDateInstance(int style) in getDateInstance() 1398 public final static DateFormat getDateInstance(int style, in getDateInstance() 1417 public final static DateFormat getDateInstance(int style, in getDateInstance() 1430 public final static DateFormat getDateTimeInstance() in getDateTimeInstance() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateFormat.java | 142 public abstract class DateFormat extends UFormat { class 1206 public final static DateFormat getTimeInstance() in getTimeInstance() 1220 public final static DateFormat getTimeInstance(int style) in getTimeInstance() 1234 public final static DateFormat getTimeInstance(int style, in getTimeInstance() 1249 public final static DateFormat getTimeInstance(int style, in getTimeInstance() 1261 public final static DateFormat getDateInstance() in getDateInstance() 1278 public final static DateFormat getDateInstance(int style) in getDateInstance() 1295 public final static DateFormat getDateInstance(int style, in getDateInstance() 1313 public final static DateFormat getDateInstance(int style, in getDateInstance() 1325 public final static DateFormat getDateTimeInstance() in getDateTimeInstance() [all …]
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | SimpleDateFormatICU.java | 26 import com.ibm.icu.text.DateFormat; 317 if (icuAttribute == DateFormat.Field.AM_PM) { in mapAttribute() 318 jdkAttribute = java.text.DateFormat.Field.AM_PM; in mapAttribute() 319 } else if (icuAttribute == DateFormat.Field.DAY_OF_MONTH) { in mapAttribute() 320 jdkAttribute = java.text.DateFormat.Field.DAY_OF_MONTH; in mapAttribute() 321 } else if (icuAttribute == DateFormat.Field.DAY_OF_WEEK) { in mapAttribute() 322 jdkAttribute = java.text.DateFormat.Field.DAY_OF_WEEK; in mapAttribute() 323 } else if (icuAttribute == DateFormat.Field.DAY_OF_WEEK_IN_MONTH) { in mapAttribute() 324 jdkAttribute = java.text.DateFormat.Field.DAY_OF_WEEK_IN_MONTH; in mapAttribute() 325 } else if (icuAttribute == DateFormat.Field.DAY_OF_YEAR) { in mapAttribute() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | dtfmtrtts.cpp | 140 const Locale *avail = DateFormat::getAvailableLocales(locCount); in TestDateFormatRoundTrip() 191 static const char *styleName(DateFormat::EStyle s) in styleName() 195 case DateFormat::SHORT: return "SHORT"; in styleName() 196 case DateFormat::MEDIUM: return "MEDIUM"; in styleName() 197 case DateFormat::LONG: return "LONG"; in styleName() 198 case DateFormat::FULL: return "FULL"; in styleName() 200 case DateFormat::DATE_OFFSET: return "DATE_OFFSET"; in styleName() 201 case DateFormat::NONE: return "NONE"; in styleName() 202 case DateFormat::DATE_TIME: return "DATE_TIME"; in styleName() 235 for(style = DateFormat::FULL; style <= DateFormat::SHORT; ++style) { in test() [all …]
|
D | tsdate.cpp | 35 fFormat = DateFormat::createInstance(); in runIndexedTest() 69 DateFormat::EStyle timeStyle, dateStyle; in testLocale() 76 for(timeStyle = (DateFormat::EStyle)0; in testLocale() 77 timeStyle < (DateFormat::EStyle)4; in testLocale() 78 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale() 81 fFormat = DateFormat::createTimeInstance(timeStyle, locale); in testLocale() 87 for(dateStyle = (DateFormat::EStyle)0; in testLocale() 88 dateStyle < (DateFormat::EStyle)4; in testLocale() 89 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale() 92 fFormat = DateFormat::createDateInstance(dateStyle, locale); in testLocale() [all …]
|
D | dtfmapts.cpp | 81 …DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Loca… in TestCoverage() 96 DateFormat *a = DateFormat::createInstance(); in TestEquals() 99 DateFormat *b = DateFormat::createInstance(); in TestEquals() 137 DateFormat *def = DateFormat::createInstance(); in testAPI() 138 DateFormat *fr = DateFormat::createTimeInstance(DateFormat::FULL, Locale::getFrench()); in testAPI() 139 DateFormat *it = DateFormat::createDateInstance(DateFormat::MEDIUM, Locale::getItalian()); in testAPI() 140 …DateFormat *de = DateFormat::createDateTimeInstance(DateFormat::LONG, DateFormat::LONG, Locale::ge… in testAPI() 214 const Locale *locales = DateFormat::getAvailableLocales(count); in testAPI() 256 DateFormat *test = new SimpleDateFormat(status); in testAPI() 294 DateFormat *dateFmt = DateFormat::createInstance(); in TestNameHiding()
|
D | dtfmttst.cpp | 344 DateFormat* fmtA = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals() 345 DateFormat* fmtB = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals() 390 logln(*s + " P> " + ((DateFormat*)fullFmt)->format(d, str)); in TestTwoDigitYearDSTParse() 516 DateFormat* dateFormats[COUNT]; in TestFieldPosition() 517 …dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition() 518 …dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition() 583 DateFormat* df = dateFormats[j]; in TestFieldPosition() 701 ((DateFormat*)format)->format(date, f); in tryPat994() 739 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985() 744 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | RelativeDateFormat.java | 20 import android.icu.text.DateFormat; 34 public class RelativeDateFormat extends DateFormat { 68 if (fDateStyle != DateFormat.NONE) { in RelativeDateFormat() 69 int newStyle = fDateStyle & ~DateFormat.RELATIVE; in RelativeDateFormat() 70 DateFormat df = DateFormat.getDateInstance(newStyle, locale); in RelativeDateFormat() 77 if (fTimeStyle != DateFormat.NONE) { in RelativeDateFormat() 78 newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat() 79 df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat() 86 int newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat() 87 DateFormat df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | RelativeDateFormat.java | 19 import com.ibm.icu.text.DateFormat; 32 public class RelativeDateFormat extends DateFormat { 66 if (fDateStyle != DateFormat.NONE) { in RelativeDateFormat() 67 int newStyle = fDateStyle & ~DateFormat.RELATIVE; in RelativeDateFormat() 68 DateFormat df = DateFormat.getDateInstance(newStyle, locale); in RelativeDateFormat() 75 if (fTimeStyle != DateFormat.NONE) { in RelativeDateFormat() 76 newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat() 77 df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat() 84 int newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat() 85 DateFormat df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | datefmt.h | 147 class U_I18N_API DateFormat : public Format { 215 virtual ~DateFormat(); 518 static DateFormat* U_EXPORT2 createInstance(void); 531 static DateFormat* U_EXPORT2 createTimeInstance(EStyle style = kDefault, 549 static DateFormat* U_EXPORT2 createDateInstance(EStyle style = kDefault, 570 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault, 603 static DateFormat* U_EXPORT2 createInstanceForSkeleton( 620 static DateFormat* U_EXPORT2 createInstanceForSkeleton( 639 static DateFormat* U_EXPORT2 createInstanceForSkeleton( 815 virtual DateFormat& U_EXPORT2 setBooleanAttribute(UDateFormatBooleanAttribute attr, [all …]
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
D | DateFormatProviderICU.java | 9 import java.text.DateFormat; 22 public DateFormat getDateInstance(int style, Locale locale) { in getDateInstance() 27 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) { in getDateTimeInstance() 32 public DateFormat getTimeInstance(int style, Locale locale) { in getTimeInstance() 41 private DateFormat getInstance(int dstyle, int tstyle, Locale locale) { in getInstance() 42 com.ibm.icu.text.DateFormat icuDfmt; in getInstance() 45 icuDfmt = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, actual); in getInstance() 47 icuDfmt = com.ibm.icu.text.DateFormat.getDateInstance(dstyle, actual); in getInstance() 49 icuDfmt = com.ibm.icu.text.DateFormat.getDateTimeInstance(dstyle, tstyle, actual); in getInstance()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | HttpDate.java | 19 import java.text.DateFormat; 37 private static final ThreadLocal<DateFormat> STANDARD_DATE_FORMAT = 38 new ThreadLocal<DateFormat>() { 39 @Override protected DateFormat initialValue() { 41 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US); 71 private static final DateFormat[] BROWSER_COMPATIBLE_DATE_FORMATS = 72 new DateFormat[BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.length]; 89 DateFormat format = BROWSER_COMPATIBLE_DATE_FORMATS[i]; in parse()
|