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.java209 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
210 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear()
211 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
268 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.java395 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
396 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
439 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.java220 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
221 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear()
222 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear()
282 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.java83 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
110 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
221 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
241 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
276 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
279 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
356 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAddDangi()
365 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || cal.get(MONTH) != (test[7] - 1) in doRollAddDangi()
416 cc.set(Calendar.EXTENDED_YEAR, 4338); in TestInitWithCurrentTime()
DChineseTest.java103 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
131 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
162 cal.get(Calendar.EXTENDED_YEAR) + "/" + in TestZeroDOM()
358 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
378 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
413 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
416 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
495 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
504 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.java84 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
111 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
222 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
242 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
277 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
280 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
357 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAddDangi()
366 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || cal.get(MONTH) != (test[7] - 1) in doRollAddDangi()
417 cc.set(Calendar.EXTENDED_YEAR, 4338); in TestInitWithCurrentTime()
DChineseTest.java104 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping()
132 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping()
163 cal.get(Calendar.EXTENDED_YEAR) + "/" + in TestZeroDOM()
359 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
379 cal.set(Calendar.EXTENDED_YEAR, THE_YEAR); in TestResolution()
414 cal.set(Calendar.EXTENDED_YEAR, y1); in TestOutOfRange()
417 int y = cal.get(Calendar.EXTENDED_YEAR); in TestOutOfRange()
496 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
505 if (cal.get(Calendar.EXTENDED_YEAR) != test[6] || in doRollAdd()
DCalendarTestFmwk.java168 cal.set(Calendar.EXTENDED_YEAR, test[0]); in doRollAdd()
181 Calendar.EXTENDED_YEAR : YEAR); in doRollAdd()
238 Calendar.EXTENDED_YEAR in doLimitsTest()
431 return "" + cal.get(Calendar.EXTENDED_YEAR) + "/" + in ymdToString()
436 return ymdToString(cal.get(Calendar.EXTENDED_YEAR), in ymdToString()

123