/external/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 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 55 "YEAR=1964,MONTH=8,DATE=4", // greg 60 "YEAR=1964,MONTH=8,DATE=5", // greg [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/duration/ |
D | PeriodTest.java | 26 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 28 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 30 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 31 p = p.omit(TimeUnit.YEAR); in testIsSet() 32 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 36 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 49 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 53 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() 57 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan() 61 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | PeriodTest.java | 30 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 32 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 34 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 35 p = p.omit(TimeUnit.YEAR); in testIsSet() 36 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 40 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 53 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 57 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() 61 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan() 65 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | GregorianCalendar.java | 409 set(YEAR, year); in GregorianCalendar() 432 set(YEAR, year); in GregorianCalendar() 459 set(YEAR, year); in GregorianCalendar() 600 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll() 648 case YEAR: in getActualMaximum() 678 int lowGood = LIMITS[YEAR][1]; in getActualMaximum() 679 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum() 682 cal.set(YEAR, y); in getActualMaximum() 683 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 802 internalSet(YEAR, eyear); in handleComputeFields() [all …]
|
D | TaiwanCalendar.java | 198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear() 204 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 206 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 221 internalSet(YEAR, y); in handleComputeFields() 224 internalSet(YEAR, 1- y); in handleComputeFields()
|
D | JapaneseCalendar.java | 218 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear() 223 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear() 320 internalSet(YEAR, year - ERAS[low*3] + 1); in handleComputeFields() 613 case YEAR: in handleGetLimit() 654 if (field == YEAR) { in getActualMaximum() 658 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
|
D | HebrewCalendar.java | 363 this.set(YEAR, year); in HebrewCalendar() 404 this.set(YEAR, year); in HebrewCalendar() 457 int year = get(YEAR); in add() 489 set(YEAR, year); in add() 538 int year = get(YEAR); in roll() 818 internalSet(YEAR, year); in handleComputeFields() 834 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 837 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 302 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 305 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear() 311 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 313 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear() 349 internalSet(YEAR, year); in handleComputeFields()
|
D | CopticCalendar.java | 250 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 256 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear() 258 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 289 internalSet(YEAR, year); in handleComputeFields()
|
D | PersianCalendar.java | 224 this.set(Calendar.YEAR, year); in PersianCalendar() 253 this.set(Calendar.YEAR, year); in PersianCalendar() 391 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 394 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 434 internalSet(YEAR, year); in handleComputeFields()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GregorianCalendar.java | 397 set(YEAR, year); in GregorianCalendar() 419 set(YEAR, year); in GregorianCalendar() 445 set(YEAR, year); in GregorianCalendar() 580 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll() 626 case YEAR: in getActualMaximum() 656 int lowGood = LIMITS[YEAR][1]; in getActualMaximum() 657 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum() 660 cal.set(YEAR, y); in getActualMaximum() 661 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 777 internalSet(YEAR, eyear); in handleComputeFields() [all …]
|
D | TaiwanCalendar.java | 185 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear() 191 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 193 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 207 internalSet(YEAR, y); in handleComputeFields() 210 internalSet(YEAR, 1- y); in handleComputeFields()
|
D | JapaneseCalendar.java | 207 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear() 212 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear() 306 internalSet(YEAR, year - ERAS[low*3] + 1); in handleComputeFields() 593 case YEAR: in handleGetLimit() 633 if (field == YEAR) { in getActualMaximum() 637 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
|
D | HebrewCalendar.java | 343 this.set(YEAR, year); in HebrewCalendar() 382 this.set(YEAR, year); in HebrewCalendar() 434 int year = get(YEAR); in add() 466 set(YEAR, year); in add() 514 int year = get(YEAR); in roll() 792 internalSet(YEAR, year); in handleComputeFields() 807 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 810 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 278 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 281 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear() 287 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 289 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear() 325 internalSet(YEAR, year); in handleComputeFields()
|
D | CopticCalendar.java | 228 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 234 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear() 236 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 268 internalSet(YEAR, year); in handleComputeFields()
|
D | PersianCalendar.java | 226 this.set(Calendar.YEAR, year); in PersianCalendar() 255 this.set(Calendar.YEAR, year); in PersianCalendar() 393 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 396 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 436 internalSet(YEAR, year); in handleComputeFields()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 187 int y = cal.get(Calendar.YEAR); in quasiGregorianTest() 190 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 194 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 505 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference() 513 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference() 635 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd() 728 cal.set(Calendar.YEAR, test.womyear); in TestJB1684() 880 bcal.add(Calendar.YEAR, 1); in TestCoverage() 893 ccal.add(Calendar.YEAR, 1); in TestCoverage() 895 ccal.roll(Calendar.YEAR, 1); in TestCoverage() [all …]
|
D | JapaneseTest.java | 111 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage() 112 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage() 114 cal.add(Calendar.YEAR, 1); in TestCoverage() 158 int gotYear = cal.get(Calendar.YEAR); in Test3860() 191 gotYear = cal2.get(Calendar.YEAR); in Test3860() 284 Calendar.YEAR, 45 }; in Test5345calendar() 299 c.set(Calendar.YEAR, 1); in Test5345calendar() 310 c.set(Calendar.YEAR, 1); in Test5345calendar() 321 c.set(Calendar.YEAR, 1); in Test5345calendar() 326 Calendar.YEAR, 1 }; in Test5345calendar() [all …]
|
D | HebrewTest.java | 71 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll() 76 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll() 238 calendar.set(Calendar.YEAR, 5717); in TestTimeFields() 264 cal.set(Calendar.YEAR, year); in TestElulMonth() 268 int yact = cal.get(Calendar.YEAR); in TestElulMonth() 318 cal.set(Calendar.YEAR, y); in TestMonthMovement() 321 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement() 328 cal.set(Calendar.YEAR, y); in TestMonthMovement() 335 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement() 340 cal.set(Calendar.YEAR, y); in TestMonthMovement() [all …]
|
D | CompatibilityTest.java | 98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 200 year2 = cal.get(Calendar.YEAR); in TestMapping() 221 year2 = cal.get(Calendar.YEAR); in TestMapping() 255 int year2 = cal.get(Calendar.YEAR); in auxMapping() 373 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI() 455 if (gc.get(Calendar.YEAR) != year || in TestRog() 521 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 528 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 535 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 544 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 191 int y = cal.get(Calendar.YEAR); in quasiGregorianTest() 194 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 198 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 509 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference() 517 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference() 639 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd() 732 cal.set(Calendar.YEAR, test.womyear); in TestJB1684() 884 bcal.add(Calendar.YEAR, 1); in TestCoverage() 897 ccal.add(Calendar.YEAR, 1); in TestCoverage() 899 ccal.roll(Calendar.YEAR, 1); in TestCoverage() [all …]
|
D | JapaneseTest.java | 115 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage() 116 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage() 118 cal.add(Calendar.YEAR, 1); in TestCoverage() 162 int gotYear = cal.get(Calendar.YEAR); in Test3860() 195 gotYear = cal2.get(Calendar.YEAR); in Test3860() 288 Calendar.YEAR, 45 }; in Test5345calendar() 303 c.set(Calendar.YEAR, 1); in Test5345calendar() 314 c.set(Calendar.YEAR, 1); in Test5345calendar() 325 c.set(Calendar.YEAR, 1); in Test5345calendar() 330 Calendar.YEAR, 1 }; in Test5345calendar() [all …]
|
D | HebrewTest.java | 75 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll() 80 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll() 242 calendar.set(Calendar.YEAR, 5717); in TestTimeFields() 268 cal.set(Calendar.YEAR, year); in TestElulMonth() 272 int yact = cal.get(Calendar.YEAR); in TestElulMonth() 322 cal.set(Calendar.YEAR, y); in TestMonthMovement() 325 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement() 332 cal.set(Calendar.YEAR, y); in TestMonthMovement() 339 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement() 344 cal.set(Calendar.YEAR, y); in TestMonthMovement() [all …]
|