/external/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 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 57 "YEAR=1964,MONTH=8,DATE=4", // greg 62 "YEAR=1964,MONTH=8,DATE=5", // greg [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/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() 37 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 50 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 54 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() 58 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan() 63 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 | 29 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 31 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 33 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 34 p = p.omit(TimeUnit.YEAR); in testIsSet() 35 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() 66 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 | 411 set(YEAR, year); in GregorianCalendar() 434 set(YEAR, year); in GregorianCalendar() 461 set(YEAR, year); in GregorianCalendar() 602 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll() 650 case YEAR: in getActualMaximum() 680 int lowGood = LIMITS[YEAR][1]; in getActualMaximum() 681 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum() 684 cal.set(YEAR, y); in getActualMaximum() 685 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 804 internalSet(YEAR, eyear); in handleComputeFields() [all …]
|
D | TaiwanCalendar.java | 200 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear() 206 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 208 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 223 internalSet(YEAR, y); in handleComputeFields() 226 internalSet(YEAR, 1- y); in handleComputeFields()
|
D | JapaneseCalendar.java | 273 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear() 278 …year = internalGet(YEAR, 1) // pin to minimum of year 1 (first… in handleGetExtendedYear() 343 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields() 419 case YEAR: in handleGetLimit() 463 if (field == YEAR) { in getActualMaximum() 467 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
|
D | HebrewCalendar.java | 365 this.set(YEAR, year); in HebrewCalendar() 406 this.set(YEAR, year); in HebrewCalendar() 459 int year = get(YEAR); in add() 491 set(YEAR, year); in add() 540 int year = get(YEAR); in roll() 820 internalSet(YEAR, year); in handleComputeFields() 836 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 839 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 304 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 307 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear() 313 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 315 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear() 351 internalSet(YEAR, year); in handleComputeFields()
|
D | CopticCalendar.java | 252 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 258 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear() 260 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 291 internalSet(YEAR, year); in handleComputeFields()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GregorianCalendar.java | 399 set(YEAR, year); in GregorianCalendar() 421 set(YEAR, year); in GregorianCalendar() 447 set(YEAR, year); in GregorianCalendar() 582 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll() 628 case YEAR: in getActualMaximum() 658 int lowGood = LIMITS[YEAR][1]; in getActualMaximum() 659 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum() 662 cal.set(YEAR, y); in getActualMaximum() 663 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 779 internalSet(YEAR, eyear); in handleComputeFields() [all …]
|
D | TaiwanCalendar.java | 187 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear() 193 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 195 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear() 209 internalSet(YEAR, y); in handleComputeFields() 212 internalSet(YEAR, 1- y); in handleComputeFields()
|
D | JapaneseCalendar.java | 262 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear() 267 …year = internalGet(YEAR, 1) // pin to minimum of year 1 (first… in handleGetExtendedYear() 329 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields() 401 case YEAR: in handleGetLimit() 444 if (field == YEAR) { in getActualMaximum() 448 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
|
D | HebrewCalendar.java | 345 this.set(YEAR, year); in HebrewCalendar() 384 this.set(YEAR, year); in HebrewCalendar() 436 int year = get(YEAR); in add() 468 set(YEAR, year); in add() 516 int year = get(YEAR); in roll() 794 internalSet(YEAR, year); in handleComputeFields() 809 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 812 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 279 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 282 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear() 288 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 290 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear() 326 internalSet(YEAR, year); in handleComputeFields()
|
D | CopticCalendar.java | 230 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 236 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear() 238 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 270 internalSet(YEAR, year); in handleComputeFields()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 193 int y = cal.get(Calendar.YEAR); in quasiGregorianTest() 196 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 200 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 521 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference() 529 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference() 654 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd() 748 cal.set(Calendar.YEAR, test.womyear); in TestJB1684() 903 bcal.add(Calendar.YEAR, 1); in TestCoverage() 916 ccal.add(Calendar.YEAR, 1); in TestCoverage() 918 ccal.roll(Calendar.YEAR, 1); in TestCoverage() [all …]
|
D | JapaneseTest.java | 119 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage() 120 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage() 122 cal.add(Calendar.YEAR, 1); in TestCoverage() 167 int gotYear = cal.get(Calendar.YEAR); in Test3860() 200 gotYear = cal2.get(Calendar.YEAR); in Test3860() 295 Calendar.YEAR, 45 }; in Test5345calendar() 310 c.set(Calendar.YEAR, 1); in Test5345calendar() 321 c.set(Calendar.YEAR, 1); in Test5345calendar() 332 c.set(Calendar.YEAR, 1); in Test5345calendar() 337 Calendar.YEAR, 1 }; in Test5345calendar() [all …]
|
D | HebrewTest.java | 78 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll() 83 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll() 248 calendar.set(Calendar.YEAR, 5717); in TestTimeFields() 275 cal.set(Calendar.YEAR, year); in TestElulMonth() 279 int yact = cal.get(Calendar.YEAR); in TestElulMonth() 330 cal.set(Calendar.YEAR, y); in TestMonthMovement() 333 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement() 340 cal.set(Calendar.YEAR, y); in TestMonthMovement() 347 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement() 352 cal.set(Calendar.YEAR, y); in TestMonthMovement() [all …]
|
D | CompatibilityTest.java | 105 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 208 year2 = cal.get(Calendar.YEAR); in TestMapping() 229 year2 = cal.get(Calendar.YEAR); in TestMapping() 263 int year2 = cal.get(Calendar.YEAR); in auxMapping() 382 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI() 465 if (gc.get(Calendar.YEAR) != year || in TestRog() 535 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 542 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 549 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 558 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 190 int y = cal.get(Calendar.YEAR); in quasiGregorianTest() 193 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 197 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 518 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference() 526 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference() 651 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd() 745 cal.set(Calendar.YEAR, test.womyear); in TestJB1684() 900 bcal.add(Calendar.YEAR, 1); in TestCoverage() 913 ccal.add(Calendar.YEAR, 1); in TestCoverage() 915 ccal.roll(Calendar.YEAR, 1); in TestCoverage() [all …]
|
D | JapaneseTest.java | 116 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage() 117 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage() 119 cal.add(Calendar.YEAR, 1); in TestCoverage() 164 int gotYear = cal.get(Calendar.YEAR); in Test3860() 197 gotYear = cal2.get(Calendar.YEAR); in Test3860() 292 Calendar.YEAR, 45 }; in Test5345calendar() 307 c.set(Calendar.YEAR, 1); in Test5345calendar() 318 c.set(Calendar.YEAR, 1); in Test5345calendar() 329 c.set(Calendar.YEAR, 1); in Test5345calendar() 334 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() 245 calendar.set(Calendar.YEAR, 5717); in TestTimeFields() 272 cal.set(Calendar.YEAR, year); in TestElulMonth() 276 int yact = cal.get(Calendar.YEAR); in TestElulMonth() 327 cal.set(Calendar.YEAR, y); in TestMonthMovement() 330 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement() 337 cal.set(Calendar.YEAR, y); in TestMonthMovement() 344 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement() 349 cal.set(Calendar.YEAR, y); in TestMonthMovement() [all …]
|
D | CompatibilityTest.java | 102 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 205 year2 = cal.get(Calendar.YEAR); in TestMapping() 226 year2 = cal.get(Calendar.YEAR); in TestMapping() 260 int year2 = cal.get(Calendar.YEAR); in auxMapping() 379 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI() 462 if (gc.get(Calendar.YEAR) != year || in TestRog() 532 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 539 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 546 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() 555 c.set(Calendar.YEAR, 1997); in TestDisambiguation765() [all …]
|
/external/e2fsprogs/util/ |
D | gen-android-files | 64 if expr $YEAR ">" 1900 > /dev/null ; then 65 E2FSPROGS_YEAR=$YEAR 66 elif expr $YEAR ">" 90 >/dev/null ; then 67 E2FSPROGS_YEAR=19$YEAR 69 E2FSPROGS_YEAR=20$YEAR
|