Home
last modified time | relevance | path

Searched refs:newYear (Results 1 – 13 of 13) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/util/
DChineseCalendar.java898 int newYear = newYear(gyear); in computeChineseFields() local
899 if (days < newYear) { in computeChineseFields()
900 newYear = newYear(gyear-1); in computeChineseFields()
902 internalSet(DAY_OF_YEAR, days - newYear + 1); in computeChineseFields()
916 private int newYear(int gyear) { in newYear() method in ChineseCalendar
963 int newYear = newYear(gyear); in handleComputeMonthStart() local
964 int newMoon = newMoonNear(newYear + month * 29, true); in handleComputeMonthStart()
DCalendar.java2825 int newYear = internalGet(field) + amount; in roll() local
2826 if (era > 0 || newYear >= 1) { in roll()
2830 if (newYear < 1) { in roll()
2831 newYear = maxYear - ((-newYear) % maxYear); in roll()
2832 } else if (newYear > maxYear) { in roll()
2833 newYear = ((newYear - 1) % maxYear) + 1; in roll()
2836 } else if (newYear < 1) { in roll()
2837 newYear = 1; in roll()
2843 newYear = 1; in roll()
2845 set(field, newYear); in roll()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java917 int newYear = newYear(gyear); in computeChineseFields() local
918 if (days < newYear) { in computeChineseFields()
919 newYear = newYear(gyear-1); in computeChineseFields()
921 internalSet(DAY_OF_YEAR, days - newYear + 1); in computeChineseFields()
935 private int newYear(int gyear) { in newYear() method in ChineseCalendar
983 int newYear = newYear(gyear); in handleComputeMonthStart() local
984 int newMoon = newMoonNear(newYear + month * 29, true); in handleComputeMonthStart()
DCalendar.java2924 int newYear = internalGet(field) + amount; in roll() local
2925 if (era > 0 || newYear >= 1) { in roll()
2929 if (newYear < 1) { in roll()
2930 newYear = maxYear - ((-newYear) % maxYear); in roll()
2931 } else if (newYear > maxYear) { in roll()
2932 newYear = ((newYear - 1) % maxYear) + 1; in roll()
2935 } else if (newYear < 1) { in roll()
2936 newYear = 1; in roll()
2942 newYear = 1; in roll()
2944 set(field, newYear); in roll()
/external/icu/icu4c/source/i18n/
Dbuddhcal.cpp154 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury() local
155 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dchnsecal.cpp334 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
738 int32_t theNewYear = newYear(gyear); in computeChineseFields()
740 theNewYear = newYear(gyear-1); in computeChineseFields()
757 int32_t ChineseCalendar::newYear(int32_t gyear) const { in newYear() function in ChineseCalendar
Dindiancal.cpp428 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury() local
434 fgSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dcalendar.cpp1829 int32_t newYear = internalGet(field) + amount; in roll() local
1830 if (era > 0 || newYear >= 1) { in roll()
1834 if (newYear < 1) { in roll()
1835 newYear = maxYear - ((-newYear) % maxYear); in roll()
1836 } else if (newYear > maxYear) { in roll()
1837 newYear = ((newYear - 1) % maxYear) + 1; in roll()
1840 } else if (newYear < 1) { in roll()
1841 newYear = 1; in roll()
1847 newYear = 1; in roll()
1849 set(field, newYear); in roll()
Dchnsecal.h194 virtual int32_t newYear(int32_t gyear) const;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegression.java1317 int newYear = calendar.get(field); in Test4167060() local
1323 if (valid && newYear != years[i]) { in Test4167060()
1324 … errln(" FAIL: " + newYear + " should be valid; date, month and time shouldn't change"); in Test4167060()
1325 } else if (!valid && newYear == years[i]) { in Test4167060()
1330 logln(" Note: " + newYear + " > maximum, but still valid"); in Test4167060()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegression.java1313 int newYear = calendar.get(field); in Test4167060() local
1319 if (valid && newYear != years[i]) { in Test4167060()
1320 … errln(" FAIL: " + newYear + " should be valid; date, month and time shouldn't change"); in Test4167060()
1321 } else if (!valid && newYear == years[i]) { in Test4167060()
1326 logln(" Note: " + newYear + " > maximum, but still valid"); in Test4167060()
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp1952 int32_t newYear = calendar->get(field, status); in Test4167060() local
1962 if (valid && newYear != years[i]) { in Test4167060()
1963 …errln(UnicodeString(" FAIL: ") + newYear + " should be valid; date, month and time shouldn't chan… in Test4167060()
1968 errln(UnicodeString(" FAIL: ") + newYear + " should be invalid"); in Test4167060()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...