/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | JapaneseCalendar.java | 169 set(ERA, era); in JapaneseCalendar() 187 set(ERA, CURRENT_ERA); in JapaneseCalendar() 213 set(ERA, CURRENT_ERA); in JapaneseCalendar() 263 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 268 … + ERA_RULES.getStartYear(internalGet(ERA, CURRENT_ERA)) // add gregorian starting year in handleGetExtendedYear() 284 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() 308 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() 328 internalSet(ERA, eraIdx); in handleComputeFields() 396 case ERA: in handleGetLimit() 445 int era = get(Calendar.ERA); in getActualMaximum()
|
D | TaiwanCalendar.java | 188 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 191 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() 208 internalSet(ERA, MINGUO); in handleComputeFields() 211 internalSet(ERA, BEFORE_MINGUO); in handleComputeFields() 222 if (field == ERA) { in handleGetLimit()
|
D | GregorianCalendar.java | 398 set(ERA, AD); in GregorianCalendar() 420 set(ERA, AD); in GregorianCalendar() 446 set(ERA, AD); in GregorianCalendar() 652 int era = cal.get(ERA); in getActualMaximum() 663 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 778 internalSet(ERA, era); in handleComputeFields() 794 int era = internalGet(ERA, AD); in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 286 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() 325 internalSet(ERA, era); in handleComputeFields() 339 if (isAmeteAlemEra() && field == ERA) { in handleGetLimit()
|
D | BuddhistCalendar.java | 210 internalSet(ERA, 0); in handleComputeFields() 220 if (field == ERA) { in handleGetLimit()
|
D | CopticCalendar.java | 234 int era = internalGet(ERA, CE); in handleGetExtendedYear() 269 internalSet(ERA, era); in handleComputeFields()
|
D | SimpleDateRule.java | 178 c.set(Calendar.ERA, c.getMaximum(Calendar.ERA)); in computeInYear()
|
D | ChineseCalendar.java | 264 this.set(ERA, era); in ChineseCalendar() 434 if (newestStamp(ERA, YEAR, UNSET) <= getStamp(EXTENDED_YEAR)) { in handleGetExtendedYear() 437 int cycle = internalGet(ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear() 891 internalSet(ERA, cycle+1); in computeChineseFields()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | JapaneseCalendar.java | 177 set(ERA, era); in JapaneseCalendar() 196 set(ERA, CURRENT_ERA); in JapaneseCalendar() 223 set(ERA, CURRENT_ERA); in JapaneseCalendar() 274 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 279 … + ERA_RULES.getStartYear(internalGet(ERA, CURRENT_ERA)) // add gregorian starting year in handleGetExtendedYear() 296 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() 321 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() 342 internalSet(ERA, eraIdx); in handleComputeFields() 414 case ERA: in handleGetLimit() 464 int era = get(Calendar.ERA); in getActualMaximum()
|
D | TaiwanCalendar.java | 201 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 204 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() 222 internalSet(ERA, MINGUO); in handleComputeFields() 225 internalSet(ERA, BEFORE_MINGUO); in handleComputeFields() 237 if (field == ERA) { in handleGetLimit()
|
D | GregorianCalendar.java | 410 set(ERA, AD); in GregorianCalendar() 433 set(ERA, AD); in GregorianCalendar() 460 set(ERA, AD); in GregorianCalendar() 674 int era = cal.get(ERA); in getActualMaximum() 685 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 803 internalSet(ERA, era); in handleComputeFields() 820 int era = internalGet(ERA, AD); in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 311 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() 350 internalSet(ERA, era); in handleComputeFields() 364 if (isAmeteAlemEra() && field == ERA) { in handleGetLimit()
|
D | BuddhistCalendar.java | 223 internalSet(ERA, 0); in handleComputeFields() 234 if (field == ERA) { in handleGetLimit()
|
D | CopticCalendar.java | 256 int era = internalGet(ERA, CE); in handleGetExtendedYear() 290 internalSet(ERA, era); in handleComputeFields()
|
D | SimpleDateRule.java | 183 c.set(Calendar.ERA, c.getMaximum(Calendar.ERA)); in computeInYear()
|
D | ChineseCalendar.java | 270 this.set(ERA, era); in ChineseCalendar() 446 if (newestStamp(ERA, YEAR, UNSET) <= getStamp(EXTENDED_YEAR)) { in handleGetExtendedYear() 449 int cycle = internalGet(ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear() 910 internalSet(ERA, cycle+1); in computeChineseFields()
|
/external/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 28 // "0/1/1912/june/4 == gregorian year=1912, ERA=AD, same month, same day 31 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw 32 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg 36 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw 37 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg 41 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw 42 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg 48 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw 49 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg 188 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw [all …]
|
D | format.txt | 29 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 39 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0", 46 "ERA=1,YEAR=98,MONTH=0,DATE=24", 54 "ERA=0,YEAR=2,MONTH=0,DATE=24", 96 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 104 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 119 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 127 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 151 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 159 "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 | 116 cal.set(Calendar.ERA, JapaneseCalendar.MEIJI); in TestCoverage() 118 logln("min era: " + cal.getMinimum(Calendar.ERA)); in TestCoverage() 168 int gotEra = cal.get(Calendar.ERA); in Test3860() 201 gotEra = cal2.get(Calendar.ERA); in Test3860() 294 int expected0[] = { Calendar.ERA, 234, in Test5345calendar() 300 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 303 int expectedA[] = { Calendar.ERA, JapaneseCalendar.MEIJI }; in Test5345calendar() 309 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 315 int expectedC[] = { Calendar.ERA, JapaneseCalendar.MEIJI -1}; in Test5345calendar() 324 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() [all …]
|
D | IBMCalendarTest.java | 179 cal.set(Calendar.ERA, era); in quasiGregorianTest() 192 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 195 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 199 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 902 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1623 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1633 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1643 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1647 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1657 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|
D | ChineseTestCase.java | 41 set(Calendar.ERA, era); in ChineseTestCase() 55 get(Calendar.YEAR) + "of" + get(Calendar.ERA) + in toString()
|
D | TestCase.java | 101 set(Calendar.ERA, era); in TestCase() 138 set(Calendar.ERA, era); in TestCase()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | JapaneseTest.java | 113 cal.set(Calendar.ERA, JapaneseCalendar.MEIJI); in TestCoverage() 115 logln("min era: " + cal.getMinimum(Calendar.ERA)); in TestCoverage() 165 int gotEra = cal.get(Calendar.ERA); in Test3860() 198 gotEra = cal2.get(Calendar.ERA); in Test3860() 291 int expected0[] = { Calendar.ERA, 234, in Test5345calendar() 297 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 300 int expectedA[] = { Calendar.ERA, JapaneseCalendar.MEIJI }; in Test5345calendar() 306 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 312 int expectedC[] = { Calendar.ERA, JapaneseCalendar.MEIJI -1}; in Test5345calendar() 321 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() [all …]
|
D | IBMCalendarTest.java | 176 cal.set(Calendar.ERA, era); in quasiGregorianTest() 189 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 192 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 196 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 899 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1620 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1630 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1640 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1644 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1654 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|
D | ChineseTestCase.java | 38 set(Calendar.ERA, era); in ChineseTestCase() 52 get(Calendar.YEAR) + "of" + get(Calendar.ERA) + in toString()
|