/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 | 2802 int newYear = internalGet(field) + amount; in roll() local 2803 if (era > 0 || newYear >= 1) { in roll() 2807 if (newYear < 1) { in roll() 2808 newYear = maxYear - ((-newYear) % maxYear); in roll() 2809 } else if (newYear > maxYear) { in roll() 2810 newYear = ((newYear - 1) % maxYear) + 1; in roll() 2813 } else if (newYear < 1) { in roll() 2814 newYear = 1; in roll() 2820 newYear = 1; in roll() 2822 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 | 2899 int newYear = internalGet(field) + amount; in roll() local 2900 if (era > 0 || newYear >= 1) { in roll() 2904 if (newYear < 1) { in roll() 2905 newYear = maxYear - ((-newYear) % maxYear); in roll() 2906 } else if (newYear > maxYear) { in roll() 2907 newYear = ((newYear - 1) % maxYear) + 1; in roll() 2910 } else if (newYear < 1) { in roll() 2911 newYear = 1; in roll() 2917 newYear = 1; in roll() 2919 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 | indiancal.cpp | 345 int32_t newYear = calendar.get ( UCAL_YEAR, status ); in initializeSystemDefaultCentury() local 348 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 | calendar.cpp | 1854 int32_t newYear = internalGet(field) + amount; in roll() local 1855 if (era > 0 || newYear >= 1) { in roll() 1859 if (newYear < 1) { in roll() 1860 newYear = maxYear - ((-newYear) % maxYear); in roll() 1861 } else if (newYear > maxYear) { in roll() 1862 newYear = ((newYear - 1) % maxYear) + 1; in roll() 1865 } else if (newYear < 1) { in roll() 1866 newYear = 1; in roll() 1872 newYear = 1; in roll() 1874 set(field, newYear); in roll()
|
D | chnsecal.h | 196 virtual int32_t newYear(int32_t gyear) const;
|
/external/icu/libicu/cts_headers/ |
D | chnsecal.h | 196 virtual int32_t newYear(int32_t gyear) const;
|
/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/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/icu4c/source/test/intltest/ |
D | calregts.cpp | 1996 int32_t newYear = calendar->get(field, status); in Test4167060() local 2006 if (valid && newYear != years[i]) { in Test4167060() 2007 …errln(UnicodeString(" FAIL: ") + newYear + " should be valid; date, month and time shouldn't chan… in Test4167060() 2012 errln(UnicodeString(" FAIL: ") + newYear + " should be invalid"); in Test4167060()
|