Home
last modified time | relevance | path

Searched refs:toCalendar (Results 1 – 12 of 12) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDataDrivenCalendarTest.java78 CalendarFieldsSet toSet, Calendar toCalendar, boolean forward) { in testConvert() argument
80 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert()
112 toCalendar.clear(); in testConvert()
113 toCalendar.setTime(fromTime); in testConvert()
116 if (!toSet.matches(toCalendar, diffSet)) { in testConvert()
129 Calendar toCalendar= null; in testConvert() local
133 toCalendar = Calendar.getInstance(loc); in testConvert()
159 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert()
163 testConvert(caseString, toSet, toCalendar, fromSet, fromCalendar, forward); in testConvert()
261 Calendar toCalendar = (Calendar)fromCalendar.clone(); in testOps() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DDataDrivenCalendarTest.java79 CalendarFieldsSet toSet, Calendar toCalendar, boolean forward) { in testConvert() argument
81 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert()
113 toCalendar.clear(); in testConvert()
114 toCalendar.setTime(fromTime); in testConvert()
117 if (!toSet.matches(toCalendar, diffSet)) { in testConvert()
130 Calendar toCalendar= null; in testConvert() local
134 toCalendar = Calendar.getInstance(loc); in testConvert()
160 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert()
164 testConvert(caseString, toSet, toCalendar, fromSet, fromCalendar, forward); in testConvert()
262 Calendar toCalendar = (Calendar)fromCalendar.clone(); in testOps() local
[all …]
/external/icu/icu4c/source/test/intltest/
Ddadrcal.cpp101 Calendar *toCalendar= NULL; in testOps() local
237 toCalendar = fromCalendar->clone(); in testOps()
243 toCalendar->roll((UCalendarDateFields)q, in testOps()
246 toCalendar->add((UCalendarDateFields)q, in testOps()
265 if(!(toCalendar->getTime(status)==toDate) || U_FAILURE(status)){ in testOps()
272 } else if (!toSet.matches(toCalendar, diffSet, status)) { in testOps()
285 delete toCalendar; in testOps()
291 const CalendarFieldsSet &toSet, Calendar *toCalendar, UBool forward) { in testConvert() argument
294 : "reverse")+" "+fromCalendar->getType()+"->"+toCalendar->getType(); in testConvert()
342 toCalendar->clear(); in testConvert()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java651 Calendar toCalendar, in getPatterns() argument
655 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns()
658 toCalendar.get(Calendar.YEAR) ) { in getPatterns()
661 toCalendar.get(Calendar.MONTH) ) { in getPatterns()
664 toCalendar.get(Calendar.DATE) ) { in getPatterns()
667 toCalendar.get(Calendar.AM_PM) ) { in getPatterns()
670 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
673 toCalendar.get(Calendar.MINUTE) ) { in getPatterns()
676 toCalendar.get(Calendar.SECOND) ) { in getPatterns()
705 Calendar toCalendar, in format() argument
[all …]
DSimpleDateFormat.java4170 Calendar toCalendar, in intervalFormatByAlgorithm() argument
4176 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm()
4188 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4201 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4214 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4266 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4303 i, capSetting, pos, toCalendar); in intervalFormatByAlgorithm()
4306 i, capSetting, pos, toCalendar)); in intervalFormatByAlgorithm()
4330 Calendar toCalendar, in diffCalFieldValue() argument
4348 int value_2 = toCalendar.get(field); in diffCalFieldValue()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateIntervalFormat.java643 Calendar toCalendar, in getPatterns() argument
647 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns()
650 toCalendar.get(Calendar.YEAR) ) { in getPatterns()
653 toCalendar.get(Calendar.MONTH) ) { in getPatterns()
656 toCalendar.get(Calendar.DATE) ) { in getPatterns()
659 toCalendar.get(Calendar.AM_PM) ) { in getPatterns()
662 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
665 toCalendar.get(Calendar.MINUTE) ) { in getPatterns()
668 toCalendar.get(Calendar.SECOND) ) { in getPatterns()
696 Calendar toCalendar, in format() argument
[all …]
DSimpleDateFormat.java4140 Calendar toCalendar, in intervalFormatByAlgorithm() argument
4146 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm()
4158 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4171 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4184 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4236 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4273 i, capSetting, pos, toCalendar); in intervalFormatByAlgorithm()
4276 i, capSetting, pos, toCalendar)); in intervalFormatByAlgorithm()
4300 Calendar toCalendar, in diffCalFieldValue() argument
4318 int value_2 = toCalendar.get(field); in diffCalFieldValue()
/external/icu/icu4c/source/i18n/
Ddtitvfmt.cpp288 Calendar& toCalendar, in format() argument
293 return formatImpl(fromCalendar, toCalendar, appendTo, pos, status); in format()
299 Calendar& toCalendar, in formatImpl() argument
309 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
317 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
320 toCalendar.get(UCAL_YEAR, status) ) { in formatImpl()
323 toCalendar.get(UCAL_MONTH, status) ) { in formatImpl()
326 toCalendar.get(UCAL_DATE, status) ) { in formatImpl()
329 toCalendar.get(UCAL_AM_PM, status) ) { in formatImpl()
332 toCalendar.get(UCAL_HOUR, status) ) { in formatImpl()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ddtitvfmt.h453 Calendar& toCalendar,
713 Calendar& toCalendar,
992 Calendar& toCalendar,
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateIntervalFormatTest.java897 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local
899 toCalendar.setTimeInMillis(dtitv.getToDate()); in expectUserCLDR()
900 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR()
1070 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local
1072 toCalendar.setTimeInMillis(dtitv.getToDate()); in stress()
1073 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress()
1430 Calendar toCalendar= Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local
1431 toCalendar.set(2016, 5, 23); 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/
DDateIntervalFormatTest.java896 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local
898 toCalendar.setTimeInMillis(dtitv.getToDate()); in expectUserCLDR()
899 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR()
1069 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local
1071 toCalendar.setTimeInMillis(dtitv.getToDate()); in stress()
1072 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress()
1429 Calendar toCalendar= Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local
1430 toCalendar.set(2016, 5, 23); in TestDateIntervalFormatCoverage()
1432 dtitvfmt.getPatterns(fromCalendar, toCalendar, secondPart), "MMM d – "); in TestDateIntervalFormatCoverage()
/external/icu/icu4c/source/test/cintltst/
Dcldrtest.c623 UResourceBundle *toCalendar, *fromCalendar, *toGregorian, *fromGregorian; in compareConsistentCountryInfo() local
632 toCalendar = ures_getByKey(toLocaleBund, "calendar", NULL, &errorCode); in compareConsistentCountryInfo()
633 toGregorian = ures_getByKeyWithFallback(toCalendar, "gregorian", NULL, &errorCode); in compareConsistentCountryInfo()
675 ures_close(toCalendar); in compareConsistentCountryInfo()