Home
last modified time | relevance | path

Searched refs:extendedYear (Results 1 – 25 of 31) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/util/
DIslamicCalendar.java712 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
718 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetMonthLength()
720 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
725 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
729 … int idx = (extendedYear - UMALQURA_YEAR_START); // calculate year offset into bit map array in handleGetMonthLength()
745 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
749 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetYearLength()
750 length = 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
752 int month = 12*(extendedYear-1); in handleGetYearLength()
756 length += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
DJapaneseCalendar.java292 protected int getDefaultMonthInYear(int extendedYear) { in getDefaultMonthInYear() argument
298 if (extendedYear == eraStart[0]) { in getDefaultMonthInYear()
302 return super.getDefaultMonthInYear(extendedYear); in getDefaultMonthInYear()
316 protected int getDefaultDayInMonth(int extendedYear, int month) { in getDefaultDayInMonth() argument
320 if (extendedYear == eraStart[0]) { // if it is year 1.. in getDefaultDayInMonth()
326 return super.getDefaultDayInMonth(extendedYear, month); in getDefaultDayInMonth()
DPersianCalendar.java335 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
340 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
344 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
354 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
355 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DIndianCalendar.java304 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
305 return super.handleGetYearLength(extendedYear); in handleGetYearLength()
311 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
314 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
318 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
DHebrewCalendar.java692 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
700 month += monthsInYear(--extendedYear); in handleGetMonthLength()
704 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
711 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
DCECalendar.java202 protected int handleGetMonthLength(int extendedYear, int month) in handleGetMonthLength() argument
218 return ((extendedYear % 4) / 3) + 5; in handleGetMonthLength()
DGregorianCalendar.java700 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
705 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
709 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
DChineseCalendar.java451 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
452 int thisStart = handleComputeMonthStart(extendedYear, month, true) - in handleGetMonthLength()
/external/icu/icu4c/source/i18n/
Dislamcal.cpp507 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
512 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetMonthLength()
514 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
518 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
521 length = getUmalqura_MonthLength(extendedYear - UMALQURA_YEAR_START, month); in handleGetMonthLength()
530 int32_t IslamicCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
532 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetYearLength()
533 return 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
535 int32_t month = 12*(extendedYear-1); in handleGetYearLength()
540 len += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
Dpersncal.cpp146 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
150 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
153 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
159 int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
160 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dindiancal.h212 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
218 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dpersncal.h206 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
212 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dislamcal.h304 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
310 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dhebrwcal.cpp499 int32_t HebrewCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
507 month += monthsInYear(--extendedYear); in handleGetMonthLength()
511 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
518 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
Dhebrwcal.h315 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
Dchnsecal.h166 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIslamicCalendar.java741 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
747 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetMonthLength()
749 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
754 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
758 … int idx = (extendedYear - UMALQURA_YEAR_START); // calculate year offset into bit map array in handleGetMonthLength()
775 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
779 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetYearLength()
780 length = 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
782 int month = 12*(extendedYear-1); in handleGetYearLength()
786 length += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
DJapaneseCalendar.java304 protected int getDefaultMonthInYear(int extendedYear) { in getDefaultMonthInYear() argument
310 if (extendedYear == eraStart[0]) { in getDefaultMonthInYear()
314 return super.getDefaultMonthInYear(extendedYear); in getDefaultMonthInYear()
329 protected int getDefaultDayInMonth(int extendedYear, int month) { in getDefaultDayInMonth() argument
333 if (extendedYear == eraStart[0]) { // if it is year 1.. in getDefaultDayInMonth()
339 return super.getDefaultDayInMonth(extendedYear, month); in getDefaultDayInMonth()
DPersianCalendar.java332 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
337 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
341 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
351 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
352 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DIndianCalendar.java329 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
330 return super.handleGetYearLength(extendedYear); in handleGetYearLength()
337 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
340 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
344 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
DHebrewCalendar.java717 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
725 month += monthsInYear(--extendedYear); in handleGetMonthLength()
729 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
736 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
DCECalendar.java200 protected int handleGetMonthLength(int extendedYear, int month) in handleGetMonthLength() argument
216 return ((extendedYear % 4) / 3) + 5; in handleGetMonthLength()
DGregorianCalendar.java723 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
728 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
732 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
DChineseCalendar.java464 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
465 int thisStart = handleComputeMonthStart(extendedYear, month, true) - in handleGetMonthLength()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h534 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;

12