Home
last modified time | relevance | path

Searched refs:EXTENDED_YEAR (Results 1 – 25 of 60) sorted by relevance

123

/external/icu/icu4c/source/test/testdata/
Dcalendar.txt56 "EXTENDED_YEAR=4601,MONTH=6,DATE=28,IS_LEAP_MONTH=0", // ch
61 "EXTENDED_YEAR=4601,MONTH=6,DATE=29,IS_LEAP_MONTH=0", // ch
66 "EXTENDED_YEAR=4601,MONTH=7,DATE=1,IS_LEAP_MONTH=0", // ch
71 "EXTENDED_YEAR=4601,MONTH=7,DATE=2,IS_LEAP_MONTH=0", // ch
76 "EXTENDED_YEAR=4598,MONTH=10,DATE=18,IS_LEAP_MONTH=0", // ch
81 "EXTENDED_YEAR=4636,MONTH=3,DATE=21,IS_LEAP_MONTH=0", // ch
87 "EXTENDED_YEAR=4627,MONTH=3,DATE=29,IS_LEAP_MONTH=0", // ch
92 "EXTENDED_YEAR=4627,MONTH=4,DATE=1,IS_LEAP_MONTH=0", // ch
97 "EXTENDED_YEAR=4627,MONTH=4,DATE=30,IS_LEAP_MONTH=0", // ch
102 "EXTENDED_YEAR=4627,MONTH=4,DATE=1,IS_LEAP_MONTH=1", // ch
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTaiwanCalendar.java187 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear()
188 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear()
189 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
206 int y = internalGet(EXTENDED_YEAR) - Taiwan_ERA_START; in handleComputeFields()
DJapaneseCalendar.java271 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
272 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear()
273 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
334 int year = internalGet(EXTENDED_YEAR); in handleComputeFields()
DBuddhistCalendar.java189 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
190 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
209 int y = internalGet(EXTENDED_YEAR) - BUDDHIST_ERA_START; in handleComputeFields()
DCopticCalendar.java230 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
231 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
268 internalSet(EXTENDED_YEAR, fields[0]); in handleComputeFields()
DEthiopicCalendar.java279 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
280 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
324 internalSet(EXTENDED_YEAR, fields[0]); in handleComputeFields()
DPersianCalendar.java396 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
397 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
440 internalSet(EXTENDED_YEAR, year); in handleComputeFields()
DGregorianCalendar.java489 gregorianCutoverYear = cal.get(EXTENDED_YEAR); in setGregorianChange()
772 internalSet(EXTENDED_YEAR, eyear); in handleComputeFields()
790 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
791 year = internalGet(EXTENDED_YEAR, EPOCH_YEAR); in handleGetExtendedYear()
DIndianCalendar.java291 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
292 year = internalGet(EXTENDED_YEAR, 1); in handleGetExtendedYear()
368 internalSet(EXTENDED_YEAR, IndianYear); in handleComputeFields()
DHebrewCalendar.java795 internalSet(EXTENDED_YEAR, year); in handleComputeFields()
809 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
810 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTaiwanCalendar.java200 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear()
201 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear()
202 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
220 int y = internalGet(EXTENDED_YEAR) - Taiwan_ERA_START; in handleComputeFields()
DJapaneseCalendar.java282 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
283 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear()
284 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
348 int year = internalGet(EXTENDED_YEAR); in handleComputeFields()
DBuddhistCalendar.java200 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
201 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
222 int y = internalGet(EXTENDED_YEAR) - BUDDHIST_ERA_START; in handleComputeFields()
DCopticCalendar.java252 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
253 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
289 internalSet(EXTENDED_YEAR, fields[0]); in handleComputeFields()
DEthiopicCalendar.java304 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
305 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
349 internalSet(EXTENDED_YEAR, fields[0]); in handleComputeFields()
DPersianCalendar.java393 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
394 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
437 internalSet(EXTENDED_YEAR, year); in handleComputeFields()
DGregorianCalendar.java504 gregorianCutoverYear = cal.get(EXTENDED_YEAR); in setGregorianChange()
797 internalSet(EXTENDED_YEAR, eyear); in handleComputeFields()
816 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
817 year = internalGet(EXTENDED_YEAR, EPOCH_YEAR); in handleGetExtendedYear()
DIndianCalendar.java315 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
316 year = internalGet(EXTENDED_YEAR, 1); in handleGetExtendedYear()
395 internalSet(EXTENDED_YEAR, IndianYear); in handleComputeFields()
DHebrewCalendar.java821 internalSet(EXTENDED_YEAR, year); in handleComputeFields()
836 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
837 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDangiTest.java86 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
113 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
224 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
244 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
279 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
282 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
359 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAddDangi()
368 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || cal.get(MONTH) != (test[7] - 1) in doRollAddDangi()
419 cc.set(Calendar.EXTENDED_YEAR, 4338); in TestInitWithCurrentTime()
DChineseTest.java106 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
134 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
165 cal.get(Calendar.EXTENDED_YEAR) + "/" + in TestZeroDOM()
361 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
381 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
416 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
419 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
498 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
507 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || in doRollAdd()
DCalendarTestFmwk.java167 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
180 Calendar.EXTENDED_YEAR : YEAR); in doRollAdd()
237 Calendar.EXTENDED_YEAR in doLimitsTest()
430 return "" + cal.get(Calendar.EXTENDED_YEAR) + "/" + in ymdToString()
435 return ymdToString(cal.get(Calendar.EXTENDED_YEAR), in ymdToString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DDangiTest.java89 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
116 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
227 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
247 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
282 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
285 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
362 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAddDangi()
371 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || cal.get(MONTH) != (test[7] - 1) in doRollAddDangi()
422 cc.set(Calendar.EXTENDED_YEAR, 4338); in TestInitWithCurrentTime()
DChineseTest.java109 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
137 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
168 cal.get(Calendar.EXTENDED_YEAR) + "/" + in TestZeroDOM()
364 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
384 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
419 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
422 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
501 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
510 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || in doRollAdd()
DCalendarTestFmwk.java170 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
183 Calendar.EXTENDED_YEAR : YEAR); in doRollAdd()
240 Calendar.EXTENDED_YEAR in doLimitsTest()
433 return "" + cal.get(Calendar.EXTENDED_YEAR) + "/" + in ymdToString()
438 return ymdToString(cal.get(Calendar.EXTENDED_YEAR), in ymdToString()

123