/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | DataDrivenCalendarTest.java | 77 CalendarFieldsSet fromSet, Calendar fromCalendar, in testConvert() argument 80 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert() 82 fromCalendar.clear(); in testConvert() 84 fromSet.setOnCalendar(fromCalendar); in testConvert() 90 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert() 100 Date fromTime = fromCalendar.getTime(); in testConvert() 104 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert() 122 +fromCalendar.getType()); in testConvert() 145 Calendar fromCalendar = Calendar.getInstance(fromLoc); in testConvert() local 159 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | DataDrivenCalendarTest.java | 78 CalendarFieldsSet fromSet, Calendar fromCalendar, in testConvert() argument 81 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert() 83 fromCalendar.clear(); in testConvert() 85 fromSet.setOnCalendar(fromCalendar); in testConvert() 91 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert() 101 Date fromTime = fromCalendar.getTime(); in testConvert() 105 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert() 123 +fromCalendar.getType()); in testConvert() 146 Calendar fromCalendar = Calendar.getInstance(fromLoc); in testConvert() local 160 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | dadrcal.cpp | 102 Calendar *fromCalendar= NULL; in testOps() local 120 fromCalendar = Calendar::createInstance(toCalLoc, status); in testOps() 207 fromCalendar->setTime(fromDate, status); in testOps() 214 fromSet.setOnCalendar(fromCalendar, status); in testOps() 224 if (!fromSet.matches(fromCalendar, diffSet, status)) { in testOps() 237 toCalendar = fromCalendar->clone(); in testOps() 284 delete fromCalendar; in testOps() 290 const CalendarFieldsSet &fromSet, Calendar *fromCalendar, in testConvert() argument 294 : "reverse")+" "+fromCalendar->getType()+"->"+toCalendar->getType(); in testConvert() 296 fromCalendar->clear(); in testConvert() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateIntervalFormat.java | 650 public String getPatterns(Calendar fromCalendar, in getPatterns() argument 655 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns() 657 } else if ( fromCalendar.get(Calendar.YEAR) != in getPatterns() 660 } else if ( fromCalendar.get(Calendar.MONTH) != in getPatterns() 663 } else if ( fromCalendar.get(Calendar.DATE) != in getPatterns() 666 } else if ( fromCalendar.get(Calendar.AM_PM) != in getPatterns() 669 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns() 672 } else if ( fromCalendar.get(Calendar.MINUTE) != in getPatterns() 675 } else if ( fromCalendar.get(Calendar.SECOND) != in getPatterns() 704 public final synchronized StringBuffer format(Calendar fromCalendar, in format() argument [all …]
|
D | SimpleDateFormat.java | 4169 public final StringBuffer intervalFormatByAlgorithm(Calendar fromCalendar, in intervalFormatByAlgorithm() argument 4176 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm() 4188 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm() 4196 return format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm() 4201 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm() 4212 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm() 4264 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm() 4285 i, capSetting, pos, fromCalendar); in intervalFormatByAlgorithm() 4288 i, capSetting, pos, fromCalendar)); in intervalFormatByAlgorithm() 4329 private boolean diffCalFieldValue(Calendar fromCalendar, in diffCalFieldValue() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateIntervalFormat.java | 642 public String getPatterns(Calendar fromCalendar, in getPatterns() argument 647 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns() 649 } else if ( fromCalendar.get(Calendar.YEAR) != in getPatterns() 652 } else if ( fromCalendar.get(Calendar.MONTH) != in getPatterns() 655 } else if ( fromCalendar.get(Calendar.DATE) != in getPatterns() 658 } else if ( fromCalendar.get(Calendar.AM_PM) != in getPatterns() 661 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns() 664 } else if ( fromCalendar.get(Calendar.MINUTE) != in getPatterns() 667 } else if ( fromCalendar.get(Calendar.SECOND) != in getPatterns() 695 public final synchronized StringBuffer format(Calendar fromCalendar, in format() argument [all …]
|
D | SimpleDateFormat.java | 4139 public final StringBuffer intervalFormatByAlgorithm(Calendar fromCalendar, in intervalFormatByAlgorithm() argument 4146 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm() 4158 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm() 4166 return format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm() 4171 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm() 4182 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm() 4234 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm() 4255 i, capSetting, pos, fromCalendar); in intervalFormatByAlgorithm() 4258 i, capSetting, pos, fromCalendar)); in intervalFormatByAlgorithm() 4299 private boolean diffCalFieldValue(Calendar fromCalendar, in diffCalFieldValue() argument [all …]
|
/external/icu/icu4c/source/i18n/ |
D | dtitvfmt.cpp | 287 DateIntervalFormat::format(Calendar& fromCalendar, in format() argument 293 return formatImpl(fromCalendar, toCalendar, appendTo, pos, status); in format() 298 DateIntervalFormat::formatImpl(Calendar& fromCalendar, in formatImpl() argument 309 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl() 317 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl() 319 } else if ( fromCalendar.get(UCAL_YEAR, status) != in formatImpl() 322 } else if ( fromCalendar.get(UCAL_MONTH, status) != in formatImpl() 325 } else if ( fromCalendar.get(UCAL_DATE, status) != in formatImpl() 328 } else if ( fromCalendar.get(UCAL_AM_PM, status) != in formatImpl() 331 } else if ( fromCalendar.get(UCAL_HOUR, status) != in formatImpl() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | dtitvfmt.h | 452 UnicodeString& format(Calendar& fromCalendar, 712 UnicodeString& fallbackFormat(Calendar& fromCalendar, 991 UnicodeString& formatImpl(Calendar& fromCalendar,
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 896 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local 898 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in expectUserCLDR() 900 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR() 1069 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local 1071 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in stress() 1073 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress() 1428 Calendar fromCalendar = Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local 1429 fromCalendar.set(2016, 5, 22); in TestDateIntervalFormatCoverage() 1433 dtitvfmt.getPatterns(fromCalendar, toCalendar, secondPart), "MMM d – "); in TestDateIntervalFormatCoverage()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 895 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local 897 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in expectUserCLDR() 899 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR() 1068 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local 1070 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in stress() 1072 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress() 1427 Calendar fromCalendar = Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local 1428 fromCalendar.set(2016, 5, 22); in TestDateIntervalFormatCoverage() 1432 dtitvfmt.getPatterns(fromCalendar, toCalendar, secondPart), "MMM d – "); in TestDateIntervalFormatCoverage()
|
/external/icu/icu4c/source/test/cintltst/ |
D | cldrtest.c | 623 UResourceBundle *toCalendar, *fromCalendar, *toGregorian, *fromGregorian; in compareConsistentCountryInfo() local 629 fromCalendar = ures_getByKey(fromLocaleBund, "calendar", NULL, &errorCode); in compareConsistentCountryInfo() 630 fromGregorian = ures_getByKeyWithFallback(fromCalendar, "gregorian", NULL, &errorCode); in compareConsistentCountryInfo() 674 ures_close(fromCalendar); in compareConsistentCountryInfo()
|