/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodTest.java | 23 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 25 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 27 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 28 p = p.omit(TimeUnit.YEAR); in testIsSet() 29 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 34 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 47 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 51 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() 55 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan() 60 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 | 24 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 26 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 28 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 29 p = p.omit(TimeUnit.YEAR); in testIsSet() 30 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 35 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 48 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 52 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() 56 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan() 61 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast() [all …]
|
/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/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 | 209 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear() 214 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear() 308 internalSet(YEAR, year - ERAS[low*3] + 1); in handleComputeFields() 595 case YEAR: in handleGetLimit() 635 if (field == YEAR) { in getActualMaximum() 639 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()
|
D | PersianCalendar.java | 228 this.set(Calendar.YEAR, year); in PersianCalendar() 257 this.set(Calendar.YEAR, year); in PersianCalendar() 395 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear() 398 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 438 internalSet(YEAR, year); in handleComputeFields()
|
/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 | 220 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear() 225 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear() 322 internalSet(YEAR, year - ERAS[low*3] + 1); in handleComputeFields() 615 case YEAR: in handleGetLimit() 656 if (field == YEAR) { in getActualMaximum() 660 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()
|
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/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 188 int y = cal.get(Calendar.YEAR); in quasiGregorianTest() 191 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 195 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest() 516 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference() 524 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference() 649 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd() 743 cal.set(Calendar.YEAR, test.womyear); in TestJB1684() 898 bcal.add(Calendar.YEAR, 1); in TestCoverage() 911 ccal.add(Calendar.YEAR, 1); in TestCoverage() 913 ccal.roll(Calendar.YEAR, 1); in TestCoverage() [all …]
|
D | JapaneseTest.java | 114 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage() 115 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage() 117 cal.add(Calendar.YEAR, 1); in TestCoverage() 162 int gotYear = cal.get(Calendar.YEAR); in Test3860() 195 gotYear = cal2.get(Calendar.YEAR); in Test3860() 290 Calendar.YEAR, 45 }; in Test5345calendar() 305 c.set(Calendar.YEAR, 1); in Test5345calendar() 316 c.set(Calendar.YEAR, 1); in Test5345calendar() 327 c.set(Calendar.YEAR, 1); in Test5345calendar() 332 Calendar.YEAR, 1 }; in Test5345calendar() [all …]
|
D | HebrewTest.java | 73 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll() 78 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll() 243 calendar.set(Calendar.YEAR, 5717); in TestTimeFields() 270 cal.set(Calendar.YEAR, year); in TestElulMonth() 274 int yact = cal.get(Calendar.YEAR); in TestElulMonth() 325 cal.set(Calendar.YEAR, y); in TestMonthMovement() 328 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement() 335 cal.set(Calendar.YEAR, y); in TestMonthMovement() 342 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement() 347 cal.set(Calendar.YEAR, y); in TestMonthMovement() [all …]
|
/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() 515 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference() 523 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference() 648 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd() 742 cal.set(Calendar.YEAR, test.womyear); in TestJB1684() 897 bcal.add(Calendar.YEAR, 1); in TestCoverage() 910 ccal.add(Calendar.YEAR, 1); in TestCoverage() 912 ccal.roll(Calendar.YEAR, 1); in TestCoverage() [all …]
|
D | JapaneseTest.java | 113 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage() 114 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage() 116 cal.add(Calendar.YEAR, 1); in TestCoverage() 161 int gotYear = cal.get(Calendar.YEAR); in Test3860() 194 gotYear = cal2.get(Calendar.YEAR); in Test3860() 289 Calendar.YEAR, 45 }; in Test5345calendar() 304 c.set(Calendar.YEAR, 1); in Test5345calendar() 315 c.set(Calendar.YEAR, 1); in Test5345calendar() 326 c.set(Calendar.YEAR, 1); in Test5345calendar() 331 Calendar.YEAR, 1 }; in Test5345calendar() [all …]
|
D | HebrewTest.java | 72 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll() 77 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll() 242 calendar.set(Calendar.YEAR, 5717); in TestTimeFields() 269 cal.set(Calendar.YEAR, year); in TestElulMonth() 273 int yact = cal.get(Calendar.YEAR); in TestElulMonth() 324 cal.set(Calendar.YEAR, y); in TestMonthMovement() 327 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement() 334 cal.set(Calendar.YEAR, y); in TestMonthMovement() 341 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement() 346 cal.set(Calendar.YEAR, y); in TestMonthMovement() [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
|