/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | ChineseCalendar.java | 900 int newYear = newYear(gyear); in computeChineseFields() local 901 if (days < newYear) { in computeChineseFields() 902 newYear = newYear(gyear-1); in computeChineseFields() 904 internalSet(DAY_OF_YEAR, days - newYear + 1); in computeChineseFields() 918 private int newYear(int gyear) { in newYear() method in ChineseCalendar 965 int newYear = newYear(gyear); in handleComputeMonthStart() local 966 int newMoon = newMoonNear(newYear + month * 29, true); in handleComputeMonthStart()
|
D | Calendar.java | 2801 int newYear = internalGet(field) + amount; in roll() local 2802 if (era > 0 || newYear >= 1) { in roll() 2806 if (newYear < 1) { in roll() 2807 newYear = maxYear - ((-newYear) % maxYear); in roll() 2808 } else if (newYear > maxYear) { in roll() 2809 newYear = ((newYear - 1) % maxYear) + 1; in roll() 2812 } else if (newYear < 1) { in roll() 2813 newYear = 1; in roll() 2819 newYear = 1; in roll() 2821 set(field, newYear); in roll()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ChineseCalendar.java | 919 int newYear = newYear(gyear); in computeChineseFields() local 920 if (days < newYear) { in computeChineseFields() 921 newYear = newYear(gyear-1); in computeChineseFields() 923 internalSet(DAY_OF_YEAR, days - newYear + 1); in computeChineseFields() 937 private int newYear(int gyear) { in newYear() method in ChineseCalendar 985 int newYear = newYear(gyear); in handleComputeMonthStart() local 986 int newMoon = newMoonNear(newYear + month * 29, true); in handleComputeMonthStart()
|
D | Calendar.java | 2898 int newYear = internalGet(field) + amount; in roll() local 2899 if (era > 0 || newYear >= 1) { in roll() 2903 if (newYear < 1) { in roll() 2904 newYear = maxYear - ((-newYear) % maxYear); in roll() 2905 } else if (newYear > maxYear) { in roll() 2906 newYear = ((newYear - 1) % maxYear) + 1; in roll() 2909 } else if (newYear < 1) { in roll() 2910 newYear = 1; in roll() 2916 newYear = 1; in roll() 2918 set(field, newYear); in roll()
|
/external/icu/icu4c/source/i18n/ |
D | buddhcal.cpp | 156 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury() local 157 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
|
D | chnsecal.cpp | 336 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart() 740 int32_t theNewYear = newYear(gyear); in computeChineseFields() 742 theNewYear = newYear(gyear-1); in computeChineseFields() 759 int32_t ChineseCalendar::newYear(int32_t gyear) const { in newYear() function in ChineseCalendar
|
D | indiancal.cpp | 380 int32_t newYear = calendar.get ( UCAL_YEAR, status ); in initializeSystemDefaultCentury() local 383 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
|
D | calendar.cpp | 1838 int32_t newYear = internalGet(field) + amount; in roll() local 1839 if (era > 0 || newYear >= 1) { in roll() 1843 if (newYear < 1) { in roll() 1844 newYear = maxYear - ((-newYear) % maxYear); in roll() 1845 } else if (newYear > maxYear) { in roll() 1846 newYear = ((newYear - 1) % maxYear) + 1; in roll() 1849 } else if (newYear < 1) { in roll() 1850 newYear = 1; in roll() 1856 newYear = 1; in roll() 1858 set(field, newYear); in roll()
|
D | chnsecal.h | 196 virtual int32_t newYear(int32_t gyear) const;
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 1355 int newYear = calendar.get(field); in Test4167060() local 1361 if (valid && newYear != years[i]) { in Test4167060() 1362 … errln(" FAIL: " + newYear + " should be valid; date, month and time shouldn't change"); in Test4167060() 1363 } else if (!valid && newYear == years[i]) { in Test4167060() 1368 logln(" Note: " + newYear + " > maximum, but still valid"); in Test4167060()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 1358 int newYear = calendar.get(field); in Test4167060() local 1364 if (valid && newYear != years[i]) { in Test4167060() 1365 … errln(" FAIL: " + newYear + " should be valid; date, month and time shouldn't change"); in Test4167060() 1366 } else if (!valid && newYear == years[i]) { in Test4167060() 1371 logln(" Note: " + newYear + " > maximum, but still valid"); in Test4167060()
|
/external/icu/icu4c/source/test/intltest/ |
D | calregts.cpp | 1970 int32_t newYear = calendar->get(field, status); in Test4167060() local 1980 if (valid && newYear != years[i]) { in Test4167060() 1981 …errln(UnicodeString(" FAIL: ") + newYear + " should be valid; date, month and time shouldn't chan… in Test4167060() 1986 errln(UnicodeString(" FAIL: ") + newYear + " should be invalid"); in Test4167060()
|