HomeSort by relevance Sort by last modified time
    Searched refs:isLeapYear (Results 1 - 25 of 60) sorted by null

1 2 3

  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DatePicker.java 187 boolean isLeapYear = false;
211 isLeapYear = true;
213 isLeapYear = false;
215 isLeapYear = true;
219 if (isLeapYear) {
253 boolean isLeapYear = false;
256 isLeapYear = true;
258 isLeapYear = false;
260 isLeapYear = true;
263 if (isLeapYear) {
    [all...]
  /libcore/luni/src/main/java/java/util/
Grego.java 60 public static final boolean isLeapYear(int year) {
72 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
98 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom
137 boolean isLeap = isLeapYear(year);
GregorianCalendar.java 399 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]);
496 boolean leapYear = isLeapYear(fields[YEAR]);
527 leapYear = isLeapYear(fields[YEAR]);
564 - (isLeapYear(fields[YEAR] - 1) ? 2 : 1)) >= getMinimalDaysInFirstWeek() ? 53
722 boolean leapYear = isLeapYear(year);
786 && (fields[DAY_OF_YEAR] < 1 || fields[DAY_OF_YEAR] > (365 + (isLeapYear(year) ? 1
    [all...]
SimpleTimeZone.java 347 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) {
376 if (startMonth == Calendar.FEBRUARY && isLeapYear(
419 if (endMonth == Calendar.FEBRUARY && isLeapYear(year)) {
454 if (ruleMonth == Calendar.FEBRUARY && isLeapYear(year)) {
530 private boolean isLeapYear(int year) {
    [all...]
  /external/chromium_org/third_party/WebKit/Source/wtf/
DateMath.h 71 WTF_EXPORT bool isLeapYear(int year);
87 using WTF::isLeapYear;
DateMath.cpp 126 bool isLeapYear(int year)
139 return 365 + isLeapYear(year);
287 return firstDayOfMonth[isLeapYear(year)][month] + day - 1;
444 bool leapYear = isLeapYear(year);
  /external/icu/icu4c/source/i18n/
hebrwcal.cpp 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) {
245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) {
319 UBool leapYear = isLeapYear(year);
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) {
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) {
471 UBool HebrewCalendar::isLeapYear(int32_t year) {
478 return isLeapYear(year) ? 13 : 12;
533 if (field == UCAL_MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(UCAL_MONTH) == ADAR_1) {
580 UBool isLeap = isLeapYear(year);
655 if (isLeapYear(eyear))
    [all...]
gregoimp.h 142 static inline UBool isLeapYear(int32_t year);
258 inline UBool Grego::isLeapYear(int32_t year) {
265 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
persncal.cpp 108 UBool PersianCalendar::isLeapYear(int32_t year)
151 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month];
158 return isLeapYear(extendedYear) ? 366 : 365;
persncal.h 171 static UBool isLeapYear(int32_t year);
chnsecal.cpp 122 isLeapYear(FALSE),
132 isLeapYear(FALSE),
140 isLeapYear = other.isLeapYear;
417 if (isLeapYear) { // (member variable)
440 int32_t n = isLeapYear ? 13 : 12; // Months in this year
659 * <p>As a side effect, this method sets {@link #isLeapYear}.
690 // Note: isLeapYear is a member variable
691 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12;
694 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon))
    [all...]
hebrwcal.h 279 static UBool isLeapYear(int32_t year) ;
chnsecal.h 153 UBool isLeapYear;
  /external/chromium_org/third_party/icu/source/i18n/
hebrwcal.cpp 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) {
245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) {
319 UBool leapYear = isLeapYear(year);
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) {
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) {
471 UBool HebrewCalendar::isLeapYear(int32_t year) {
478 return isLeapYear(year) ? 13 : 12;
573 UBool isLeap = isLeapYear(year);
648 if (isLeapYear(eyear)) {
gregoimp.h 142 static inline UBool isLeapYear(int32_t year);
258 inline UBool Grego::isLeapYear(int32_t year) {
265 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
persncal.h 171 static UBool isLeapYear(int32_t year);
chnsecal.cpp 116 isLeapYear = FALSE;
121 isLeapYear = other.isLeapYear;
385 if (isLeapYear) { // (member variable)
408 int32_t n = isLeapYear ? 13 : 12; // Months in this year
603 * <p>As a side effect, this method sets {@link #isLeapYear}.
634 // Note: isLeapYear is a member variable
635 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12;
638 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) {
645 UBool isLeapMonth = isLeapYear &
    [all...]
chnsecal.h 134 UBool isLeapYear;
hebrwcal.h 279 static UBool isLeapYear(int32_t year) ;
persncal.cpp 265 UBool PersianCalendar::isLeapYear(int32_t year)
300 return MONTH_COUNT[month][PersianCalendar::isLeapYear(extendedYear)?1:0];
307 return 365 + (PersianCalendar::isLeapYear(extendedYear) ? 1 : 0);
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
date-format-xparb.js 77 return "(this.isLeapYear() ? 1 : 0) + ";
293 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
310 Date.prototype.isLeapYear = function() {
326 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
date-format-xparb.js 77 return "(this.isLeapYear() ? 1 : 0) + ";
293 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
310 Date.prototype.isLeapYear = function() {
326 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/
date-format-xparb.js 77 return "(this.isLeapYear() ? 1 : 0) + ";
293 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
310 Date.prototype.isLeapYear = function() {
326 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DateUtils.java 260 (isFeb29 && !anniversary.isLeapYear(anniversaryYear))) {
266 } while (isFeb29 && !anniversary.isLeapYear(anniversaryYear));
  /external/chromium_org/third_party/WebKit/Source/platform/
DateComponents.cpp 61 return isLeapYear(year) ? 29 : 28;
92 return day == Thursday || (day == Wednesday && isLeapYear(m_year)) ? maximumWeekNumber : maximumWeekNumber - 1;
512 m_month = monthFromDayInYear(yearDay, isLeapYear(m_year));
513 m_monthDay = dayInMonthFromDayInYear(yearDay, isLeapYear(m_year));

Completed in 659 milliseconds

1 2 3