Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/java/android/icu/util/
DIslamicCalendar.java707 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
713 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetMonthLength()
715 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
719 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
722 … int idx = (extendedYear - UMALQURA_YEAR_START); // calculate year offset into bit map array in handleGetMonthLength()
735 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
739 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetYearLength()
740 length = 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
742 int month = 12*(extendedYear-1); in handleGetYearLength()
746 length += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
DJapaneseCalendar.java227 protected int getDefaultMonthInYear(int extendedYear) in getDefaultMonthInYear() argument
233 if(extendedYear == ERAS[era*3]) { in getDefaultMonthInYear()
237 return super.getDefaultMonthInYear(extendedYear); in getDefaultMonthInYear()
250 protected int getDefaultDayInMonth(int extendedYear, int month) { in getDefaultDayInMonth() argument
253 if(extendedYear == ERAS[era*3]) { // if it is year 1.. in getDefaultDayInMonth()
259 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.java302 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
303 return super.handleGetYearLength(extendedYear); in handleGetYearLength()
309 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
312 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
316 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
DHebrewCalendar.java690 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
698 month += monthsInYear(--extendedYear); in handleGetMonthLength()
702 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
709 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.java698 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
703 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
707 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
DChineseCalendar.java449 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
450 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.cpp144 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
148 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
151 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
157 int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
158 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dindiancal.h210 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
216 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dpersncal.h204 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
210 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dislamcal.h302 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
308 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dhebrwcal.cpp496 int32_t HebrewCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
504 month += monthsInYear(--extendedYear); in handleGetMonthLength()
508 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
515 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
Dhebrwcal.h313 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
Dchnsecal.h164 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIslamicCalendar.java731 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
737 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetMonthLength()
739 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
743 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
746 … int idx = (extendedYear - UMALQURA_YEAR_START); // calculate year offset into bit map array in handleGetMonthLength()
760 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
764 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetYearLength()
765 length = 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
767 int month = 12*(extendedYear-1); in handleGetYearLength()
771 length += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
DJapaneseCalendar.java239 protected int getDefaultMonthInYear(int extendedYear) in getDefaultMonthInYear() argument
245 if(extendedYear == ERAS[era*3]) { in getDefaultMonthInYear()
249 return super.getDefaultMonthInYear(extendedYear); in getDefaultMonthInYear()
263 protected int getDefaultDayInMonth(int extendedYear, int month) { in getDefaultDayInMonth() argument
266 if(extendedYear == ERAS[era*3]) { // if it is year 1.. in getDefaultDayInMonth()
272 return super.getDefaultDayInMonth(extendedYear, month); in getDefaultDayInMonth()
DPersianCalendar.java330 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
335 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
339 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
349 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
350 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DIndianCalendar.java327 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
328 return super.handleGetYearLength(extendedYear); in handleGetYearLength()
335 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
338 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
342 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
DHebrewCalendar.java715 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
723 month += monthsInYear(--extendedYear); in handleGetMonthLength()
727 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
734 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
DCECalendar.java198 protected int handleGetMonthLength(int extendedYear, int month) in handleGetMonthLength() argument
214 return ((extendedYear % 4) / 3) + 5; in handleGetMonthLength()
DGregorianCalendar.java721 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
726 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
730 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
DChineseCalendar.java462 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
463 int thisStart = handleComputeMonthStart(extendedYear, month, true) - in handleGetMonthLength()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h528 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;

12