Home
last modified time | relevance | path

Searched refs:isLeapYear (Results 1 – 25 of 44) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DHebrewCalendar.java465 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
479 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
542 boolean leapYear = isLeapYear(year); in roll()
624 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
630 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
692 public static boolean isLeapYear(int year) { in isLeapYear() method in HebrewCalendar
699 return isLeapYear(year) ? 13 : 12; in monthsInYear()
762 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
810 int monthStart[][] = isLeapYear(year) ? LEAP_MONTH_START : MONTH_START; in handleComputeFields()
867 if (isLeapYear(eyear)) { in handleComputeMonthStart()
DChineseCalendar.java140 private transient boolean isLeapYear; field in ChineseCalendar
596 if (isLeapYear) { // (member variable) in roll()
618 int n = isLeapYear ? 13 : 12; // Months in this year in roll()
876 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12; in computeChineseFields()
879 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) { in computeChineseFields()
886 boolean isLeapMonth = isLeapYear && in computeChineseFields()
DPersianCalendar.java310 private final static boolean isLeapYear(int year) in isLeapYear() method in PersianCalendar
341 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
352 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DGregorianCalendar.java527 public boolean isLeapYear(int year) { in isLeapYear() method in GregorianCalendar
732 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
739 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
DAnnualTimeZoneRule.java140 if (month == Calendar.FEBRUARY && dom == 29 && !Grego.isLeapYear(year)) { in getStartInYear()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DHebrewCalendar.java442 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
456 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
518 boolean leapYear = isLeapYear(year); in roll()
600 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
606 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
669 public static boolean isLeapYear(int year) { in isLeapYear() method in HebrewCalendar
676 return isLeapYear(year) ? 13 : 12; in monthsInYear()
737 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
784 int monthStart[][] = isLeapYear(year) ? LEAP_MONTH_START : MONTH_START; in handleComputeFields()
839 if (isLeapYear(eyear)) { in handleComputeMonthStart()
DChineseCalendar.java140 private transient boolean isLeapYear; field in ChineseCalendar
578 if (isLeapYear) { // (member variable) in roll()
600 int n = isLeapYear ? 13 : 12; // Months in this year in roll()
857 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12; in computeChineseFields()
860 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) { in computeChineseFields()
867 boolean isLeapMonth = isLeapYear && in computeChineseFields()
DPersianCalendar.java313 private final static boolean isLeapYear(int year) in isLeapYear() method in PersianCalendar
344 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
355 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DGregorianCalendar.java510 public boolean isLeapYear(int year) { in isLeapYear() method in GregorianCalendar
709 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
715 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
DAnnualTimeZoneRule.java130 if (month == Calendar.FEBRUARY && dom == 29 && !Grego.isLeapYear(year)) { in getStartInYear()
/external/icu/icu4c/source/i18n/
Dhebrwcal.cpp234 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
248 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
322 UBool leapYear = isLeapYear(year); in roll()
409 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
415 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
474 UBool HebrewCalendar::isLeapYear(int32_t year) { in isLeapYear() function in HebrewCalendar
481 return isLeapYear(year) ? 13 : 12; in monthsInYear()
536 …if (field == UCAL_MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(UCAL_MONTH) == ADAR… in validateField()
583 UBool isLeap = isLeapYear(year); in handleComputeFields()
658 if (isLeapYear(eyear)) { in handleComputeMonthStart()
Dchnsecal.cpp127 isLeapYear(FALSE), in ChineseCalendar()
137 isLeapYear(FALSE), in ChineseCalendar()
145 isLeapYear = other.isLeapYear; in ChineseCalendar()
422 if (isLeapYear) { // (member variable) in roll()
445 int32_t n = isLeapYear ? 13 : 12; // Months in this year in roll()
696 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12; in computeChineseFields()
699 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) { in computeChineseFields()
706 UBool isLeapMonth = isLeapYear && in computeChineseFields()
Dgregoimp.h155 static inline UBool isLeapYear(int32_t year);
271 inline UBool Grego::isLeapYear(int32_t year) { in isLeapYear() function
278 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
Dpersncal.cpp110 UBool PersianCalendar::isLeapYear(int32_t year) in isLeapYear() function in PersianCalendar
153 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
160 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dgregoimp.cpp94 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
120 UBool isLeap = isLeapYear(year); in dayToFields()
Dgregocal.cpp462 GregorianCalendar::isLeapYear(int32_t year) const in isLeapYear() function in GregorianCalendar
586 return isLeapYear(extendedYear) ? kLeapMonthLength[month] : kMonthLength[month]; in handleGetMonthLength()
590 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
606 return isLeapYear(year) ? kLeapMonthLength[month] : kMonthLength[month]; in monthLength()
614 return isLeapYear(year) ? 366 : 365; in yearLength()
622 return isLeapYear(internalGet(UCAL_YEAR)) ? 366 : 365; in yearLength()
Dpersncal.h173 static UBool isLeapYear(int32_t year);
Dhebrwcal.h281 static UBool isLeapYear(int32_t year) ;
Dchnsecal.h155 UBool isLeapYear;
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java64 public static final boolean isLeapYear(int year) { in isLeapYear() method in Grego
76 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
102 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
141 boolean isLeap = isLeapYear(year); in dayToFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java62 public static final boolean isLeapYear(int year) { in isLeapYear() method in Grego
74 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
100 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
139 boolean isLeap = isLeapYear(year); in dayToFields()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h342 UBool isLeapYear(int32_t year) const;
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DHebrewTest.java484 boolean leapYear = HebrewCalendar.isLeapYear (year); in Test1624()
DCalendarRegressionTest.java949 cal.isLeapYear(y)); in Test4125881()
950 if (cal.isLeapYear(y) != ((y+40)%4 == 0)) in Test4125881()
976 !cal.isLeapYear(-80)) // -80 == 81 BC in Test4125892()
1203 boolean is100Leap = calendar.isLeapYear(100); in Test4149677()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DHebrewTest.java487 boolean leapYear = HebrewCalendar.isLeapYear (year); in Test1624()

12