/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 | 256 int era = internalGet(ERA, CE); in handleGetExtendedYear() 290 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()
|
D | Calendar.java | 700 public final static int ERA = 0; field in Calendar 1670 int mask = (1 << ERA) | in initInternal() 2510 case ERA: in getActualMaximum() 2846 case ERA: in roll() 2916 int era = get(ERA); in roll() 3241 case ERA: in add() 3243 pinField(ERA); in add() 3256 int era = get(ERA); in add() 5688 int bestStamp = newestStamp(ERA, DAY_OF_WEEK_IN_MONTH, UNSET); 6016 internalSet(ERA, era);
|
D | EasterHoliday.java | 274 cal.set(Calendar.ERA, GregorianCalendar.AD); in computeInYear()
|
D | PersianCalendar.java | 433 internalSet(ERA, 0); in handleComputeFields()
|
/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/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 | 171 cal.set(Calendar.ERA, era); in quasiGregorianTest() 184 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 187 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 191 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 877 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1527 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1537 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1547 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1551 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1561 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|
D | TestCase.java | 96 set(Calendar.ERA, era); in TestCase() 133 set(Calendar.ERA, era); in TestCase()
|
D | CalendarTest.java | 38 public final static int ERA = Calendar.ERA; field in CalendarTest 231 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, in doLimitsTest()
|
D | HolidayTest.java | 210 int era = fCalendar.get(Calendar.ERA); in startOfMonth() 215 fCalendar.set(Calendar.ERA, era); in startOfMonth()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateIntervalFormat.java | 621 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns() 622 field = Calendar.ERA; in getPatterns() 677 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in format() 678 field = Calendar.ERA; in format()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | calendar.h | 214 #ifdef ERA 215 #undef ERA 217 ERA, // Example: 0..1 enumerator
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 140 com.ibm.icu.util.Calendar.ERA, /* 0 */
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | SimpleDateFormatICU.java | 327 } else if (icuAttribute == DateFormat.Field.ERA) { in mapAttribute() 328 jdkAttribute = java.text.DateFormat.Field.ERA; in mapAttribute()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 267 …int offset = time_zone.getOffset(cal.get(Calendar.ERA), cal.get(Calendar.YEAR), cal.get(Calendar.M… in verifyDST() 276 logln("era=" + cal.get(Calendar.ERA) + in verifyDST()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatRoundTripTest.java | 224 … if (!timeOnly && !hasEra && getField(d[0], Calendar.ERA) == GregorianCalendar.BC) { in _test()
|