/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | JapaneseCalendar.java | 157 set(ERA, era); in JapaneseCalendar() 176 set(ERA, CURRENT_ERA); in JapaneseCalendar() 203 set(ERA, CURRENT_ERA); in JapaneseCalendar() 219 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 224 + ERAS[internalGet(ERA, CURRENT_ERA) * 3] // add gregorian starting year in handleGetExtendedYear() 241 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() 264 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() 319 internalSet(ERA, low); in handleComputeFields() 608 case ERA: in handleGetLimit() 655 int era = get(Calendar.ERA); in getActualMaximum()
|
D | TaiwanCalendar.java | 199 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 202 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() 220 internalSet(ERA, MINGUO); in handleComputeFields() 223 internalSet(ERA, BEFORE_MINGUO); in handleComputeFields() 235 if (field == ERA) { in handleGetLimit()
|
D | GregorianCalendar.java | 408 set(ERA, AD); in GregorianCalendar() 431 set(ERA, AD); in GregorianCalendar() 458 set(ERA, AD); in GregorianCalendar() 672 int era = cal.get(ERA); in getActualMaximum() 683 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 801 internalSet(ERA, era); in handleComputeFields() 818 int era = internalGet(ERA, AD); in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 309 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() 348 internalSet(ERA, era); in handleComputeFields() 362 if (isAmeteAlemEra() && field == ERA) { in handleGetLimit()
|
D | BuddhistCalendar.java | 221 internalSet(ERA, 0); in handleComputeFields() 232 if (field == ERA) { in handleGetLimit()
|
D | CopticCalendar.java | 254 int era = internalGet(ERA, CE); in handleGetExtendedYear() 288 internalSet(ERA, era); in handleComputeFields()
|
D | SimpleDateRule.java | 181 c.set(Calendar.ERA, c.getMaximum(Calendar.ERA)); in computeInYear()
|
D | ChineseCalendar.java | 268 this.set(ERA, era); in ChineseCalendar() 444 if (newestStamp(ERA, YEAR, UNSET) <= getStamp(EXTENDED_YEAR)) { in handleGetExtendedYear() 447 int cycle = internalGet(ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear() 908 internalSet(ERA, cycle+1); in computeChineseFields()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | JapaneseCalendar.java | 149 set(ERA, era); in JapaneseCalendar() 167 set(ERA, CURRENT_ERA); in JapaneseCalendar() 193 set(ERA, CURRENT_ERA); in JapaneseCalendar() 208 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 213 + ERAS[internalGet(ERA, CURRENT_ERA) * 3] // add gregorian starting year in handleGetExtendedYear() 229 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() 251 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() 305 internalSet(ERA, low); in handleComputeFields() 588 case ERA: in handleGetLimit() 634 int era = get(Calendar.ERA); in getActualMaximum()
|
D | TaiwanCalendar.java | 186 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 189 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() 206 internalSet(ERA, MINGUO); in handleComputeFields() 209 internalSet(ERA, BEFORE_MINGUO); in handleComputeFields() 220 if (field == ERA) { in handleGetLimit()
|
D | GregorianCalendar.java | 396 set(ERA, AD); in GregorianCalendar() 418 set(ERA, AD); in GregorianCalendar() 444 set(ERA, AD); in GregorianCalendar() 650 int era = cal.get(ERA); in getActualMaximum() 661 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 776 internalSet(ERA, era); in handleComputeFields() 792 int era = internalGet(ERA, AD); in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 285 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() 324 internalSet(ERA, era); in handleComputeFields() 338 if (isAmeteAlemEra() && field == ERA) { in handleGetLimit()
|
D | BuddhistCalendar.java | 208 internalSet(ERA, 0); in handleComputeFields() 218 if (field == ERA) { in handleGetLimit()
|
D | CopticCalendar.java | 232 int era = internalGet(ERA, CE); in handleGetExtendedYear() 267 internalSet(ERA, era); in handleComputeFields()
|
D | SimpleDateRule.java | 176 c.set(Calendar.ERA, c.getMaximum(Calendar.ERA)); in computeInYear()
|
D | ChineseCalendar.java | 262 this.set(ERA, era); in ChineseCalendar() 432 if (newestStamp(ERA, YEAR, UNSET) <= getStamp(EXTENDED_YEAR)) { in handleGetExtendedYear() 435 int cycle = internalGet(ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear() 889 internalSet(ERA, cycle+1); in computeChineseFields()
|
/external/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 26 // "0/1/1912/june/4 == gregorian year=1912, ERA=AD, same month, same day 29 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw 30 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg 34 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw 35 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg 39 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw 40 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg 46 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw 47 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg 186 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw [all …]
|
D | format.txt | 27 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 37 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0", 44 "ERA=1,YEAR=98,MONTH=0,DATE=24", 52 "ERA=0,YEAR=2,MONTH=0,DATE=24", 94 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 102 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 117 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 125 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 149 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 157 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | JapaneseTest.java | 112 cal.set(Calendar.ERA, JapaneseCalendar.MEIJI); in TestCoverage() 114 logln("min era: " + cal.getMinimum(Calendar.ERA)); in TestCoverage() 163 int gotEra = cal.get(Calendar.ERA); in Test3860() 196 gotEra = cal2.get(Calendar.ERA); in Test3860() 287 int expected0[] = { Calendar.ERA, 234, in Test5345calendar() 293 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 296 int expectedA[] = { Calendar.ERA, JapaneseCalendar.MEIJI }; in Test5345calendar() 302 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 308 int expectedC[] = { Calendar.ERA, JapaneseCalendar.MEIJI -1}; in Test5345calendar() 317 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() [all …]
|
D | ChineseTestCase.java | 37 set(Calendar.ERA, era); in ChineseTestCase() 50 get(Calendar.YEAR) + "of" + get(Calendar.ERA) + in toString()
|
D | IBMCalendarTest.java | 177 cal.set(Calendar.ERA, era); in quasiGregorianTest() 190 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 193 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 197 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 883 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1579 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1589 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1599 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1603 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1613 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|
D | TestCase.java | 97 set(Calendar.ERA, era); in TestCase() 134 set(Calendar.ERA, era); in TestCase()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | JapaneseTest.java | 108 cal.set(Calendar.ERA, JapaneseCalendar.MEIJI); in TestCoverage() 110 logln("min era: " + cal.getMinimum(Calendar.ERA)); in TestCoverage() 159 int gotEra = cal.get(Calendar.ERA); in Test3860() 192 gotEra = cal2.get(Calendar.ERA); in Test3860() 283 int expected0[] = { Calendar.ERA, 234, in Test5345calendar() 289 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 292 int expectedA[] = { Calendar.ERA, JapaneseCalendar.MEIJI }; in Test5345calendar() 298 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 304 int expectedC[] = { Calendar.ERA, JapaneseCalendar.MEIJI -1}; in Test5345calendar() 313 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() [all …]
|
D | ChineseTestCase.java | 36 set(Calendar.ERA, era); in ChineseTestCase() 49 get(Calendar.YEAR) + "of" + get(Calendar.ERA) + in toString()
|
D | IBMCalendarTest.java | 173 cal.set(Calendar.ERA, era); in quasiGregorianTest() 186 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 189 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 193 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 879 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1575 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1585 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1595 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1599 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1609 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|