/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 56 "EXTENDED_YEAR=4601,MONTH=6,DATE=28,IS_LEAP_MONTH=0", // ch 57 "YEAR=1964,MONTH=8,DATE=4", // greg [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | DangiTest.java | 84 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping() 111 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping() 141 cal.get(Calendar.MONTH) + in TestZeroDOM() 197 Calendar.MONTH, 3, in TestResolution() 202 Calendar.MONTH, 1, // Should ignore in TestResolution() 210 Calendar.MONTH, 3, in TestResolution() 232 int month = cal.get(Calendar.MONTH); in TestResolution() 242 cal.set(Calendar.MONTH, expMonth); in TestResolution() 277 cal.set(MONTH, m1); in TestOutOfRange() 280 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | HebrewTest.java | 54 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll() 55 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll() 56 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll() 57 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll() 58 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll() 60 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll() 61 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll() 62 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll() 63 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll() 64 { 5757, SHEVAT, 2, MONTH, 12, 5757, TEVET, 2 }, in TestRoll() [all …]
|
D | ChineseTest.java | 104 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping() 132 cal.set(Calendar.MONTH, cmonth-1); in TestMapping() 163 cal.get(Calendar.MONTH) + in TestZeroDOM() 322 Calendar.MONTH, 3, in TestResolution() 327 Calendar.MONTH, 1, // Should ignore in TestResolution() 347 Calendar.MONTH, 3, in TestResolution() 369 int month = cal.get(Calendar.MONTH); in TestResolution() 379 cal.set(Calendar.MONTH, expMonth); in TestResolution() 414 cal.set(MONTH, m1); in TestOutOfRange() 417 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | CopticTest.java | 154 int month = cal.get(Calendar.MONTH); in TestCopticToJD() 197 cal.get(MONTH) + "/" + in TestBasic() 203 cal.get(MONTH) + "/" + in TestBasic() 233 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379() 236 copticCal.set(Calendar.MONTH, month); in Test6379() 347 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 356 cCal.add(CopticCalendar.MONTH,2); in TestYear() 365 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear() 404 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet() 405 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +9, 1725, 8, 1 ), in TestAddSet() [all …]
|
D | EthiopicTest.java | 266 cal.get(MONTH) + "/" + in TestBasic() 272 cal.get(MONTH) + "/" + in TestBasic() 283 cal.get(Calendar.MONTH) == 8 && in TestJD() 390 cal.add(Calendar.MONTH, 1); in TestCoverage() 461 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet() 462 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet() 463 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet() 464 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet() 465 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet() 466 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet() [all …]
|
D | IslamicTest.java | 56 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll() 57 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll() 58 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll() 59 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll() 60 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll() 66 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll() 141 cal.get(MONTH) + "/" + in TestBasic() 147 cal.get(MONTH) + "/" + in TestBasic() 179 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427() 180 cal.add(IslamicCalendar.MONTH,1); in Test7427() [all …]
|
D | IndianTest.java | 116 cal.get(MONTH) + "/" + in TestBasic() 122 cal.get(MONTH) + "/" + in TestBasic() 221 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 230 iCal.add(IndianCalendar.MONTH,2); in TestYear() 269 cal.add(Calendar.MONTH, 1); in TestYearEdge() 273 cal.add(Calendar.MONTH, 1); in TestYearEdge() 277 cal.add(Calendar.MONTH, 1); in TestYearEdge()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | DangiTest.java | 85 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping() 112 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping() 142 cal.get(Calendar.MONTH) + in TestZeroDOM() 198 Calendar.MONTH, 3, in TestResolution() 203 Calendar.MONTH, 1, // Should ignore in TestResolution() 211 Calendar.MONTH, 3, in TestResolution() 233 int month = cal.get(Calendar.MONTH); in TestResolution() 243 cal.set(Calendar.MONTH, expMonth); in TestResolution() 278 cal.set(MONTH, m1); in TestOutOfRange() 281 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | HebrewTest.java | 55 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll() 56 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll() 57 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll() 58 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll() 59 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll() 61 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll() 62 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll() 63 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll() 64 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll() 65 { 5757, SHEVAT, 2, MONTH, 12, 5757, TEVET, 2 }, in TestRoll() [all …]
|
D | ChineseTest.java | 105 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping() 133 cal.set(Calendar.MONTH, cmonth-1); in TestMapping() 164 cal.get(Calendar.MONTH) + in TestZeroDOM() 323 Calendar.MONTH, 3, in TestResolution() 328 Calendar.MONTH, 1, // Should ignore in TestResolution() 348 Calendar.MONTH, 3, in TestResolution() 370 int month = cal.get(Calendar.MONTH); in TestResolution() 380 cal.set(Calendar.MONTH, expMonth); in TestResolution() 415 cal.set(MONTH, m1); in TestOutOfRange() 418 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | CopticTest.java | 155 int month = cal.get(Calendar.MONTH); in TestCopticToJD() 198 cal.get(MONTH) + "/" + in TestBasic() 204 cal.get(MONTH) + "/" + in TestBasic() 234 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379() 237 copticCal.set(Calendar.MONTH, month); in Test6379() 348 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 357 cCal.add(CopticCalendar.MONTH,2); in TestYear() 366 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear() 405 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet() 406 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +9, 1725, 8, 1 ), in TestAddSet() [all …]
|
D | EthiopicTest.java | 267 cal.get(MONTH) + "/" + in TestBasic() 273 cal.get(MONTH) + "/" + in TestBasic() 284 cal.get(Calendar.MONTH) == 8 && in TestJD() 391 cal.add(Calendar.MONTH, 1); in TestCoverage() 462 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet() 463 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet() 464 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet() 465 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet() 466 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet() 467 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet() [all …]
|
D | IslamicTest.java | 57 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll() 58 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll() 59 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll() 60 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll() 61 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll() 67 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll() 142 cal.get(MONTH) + "/" + in TestBasic() 148 cal.get(MONTH) + "/" + in TestBasic() 180 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427() 181 cal.add(IslamicCalendar.MONTH,1); in Test7427() [all …]
|
D | IndianTest.java | 117 cal.get(MONTH) + "/" + in TestBasic() 123 cal.get(MONTH) + "/" + in TestBasic() 222 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 231 iCal.add(IndianCalendar.MONTH,2); in TestYear() 270 cal.add(Calendar.MONTH, 1); in TestYearEdge() 274 cal.add(Calendar.MONTH, 1); in TestYearEdge() 278 cal.add(Calendar.MONTH, 1); in TestYearEdge()
|
D | CalendarTestFmwk.java | 43 public final static int MONTH = Calendar.MONTH; field in CalendarTestFmwk 169 cal.set(Calendar.MONTH, test[1]); in doRollAdd() 182 if (y != test[5] || cal.get(MONTH) != test[6] in doRollAdd() 234 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, in doLimitsTest() 363 int maxM = cal.getMaximum(Calendar.MONTH) + 1; in doTheoreticalLimitsTest() 364 int lmaxM = cal.getLeastMaximum(Calendar.MONTH) + 1; in doTheoreticalLimitsTest() 432 (cal.get(Calendar.MONTH)+1) + in ymdToString() 437 cal.get(MONTH), cal.get(DATE)) + in ymdToString()
|
D | CompatibilityTest.java | 99 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 203 month2 = cal.get(Calendar.MONTH); in TestMapping() 224 month2 = cal.get(Calendar.MONTH); in TestMapping() 258 int month2 = cal.get(Calendar.MONTH); in auxMapping() 304 cal.roll(Calendar.MONTH, (int)(1 + Calendar.DECEMBER - cal.get(Calendar.MONTH))); in TestGenericAPI() 376 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI() 460 gc.get(Calendar.MONTH) != month || in TestRog() 530 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() 538 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() 545 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | HeaderParser.java | 92 retval.set(Calendar.MONTH, Calendar.JANUARY); in date() 94 retval.set(Calendar.MONTH, Calendar.FEBRUARY); in date() 96 retval.set(Calendar.MONTH, Calendar.MARCH); in date() 98 retval.set(Calendar.MONTH, Calendar.APRIL); in date() 100 retval.set(Calendar.MONTH, Calendar.MAY); in date() 102 retval.set(Calendar.MONTH, Calendar.JUNE); in date() 104 retval.set(Calendar.MONTH, Calendar.JULY); in date() 106 retval.set(Calendar.MONTH, Calendar.AUGUST); in date() 108 retval.set(Calendar.MONTH, Calendar.SEPTEMBER); in date() 110 retval.set(Calendar.MONTH, Calendar.OCTOBER); in date() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | HebrewCalendar.java | 366 this.set(MONTH, month); in HebrewCalendar() 407 this.set(MONTH, month); in HebrewCalendar() 451 case MONTH: in add() 458 int month = get(MONTH); in add() 490 set(MONTH, month); in add() 537 case MONTH: in roll() 539 int month = get(MONTH); in roll() 556 set(MONTH, (newMonth + 13) % 13); in roll() 762 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField() 822 internalSet(MONTH, month); in handleComputeFields()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | HebrewCalendar.java | 346 this.set(MONTH, month); in HebrewCalendar() 385 this.set(MONTH, month); in HebrewCalendar() 428 case MONTH: in add() 435 int month = get(MONTH); in add() 467 set(MONTH, month); in add() 513 case MONTH: in roll() 515 int month = get(MONTH); in roll() 532 set(MONTH, (newMonth + 13) % 13); in roll() 737 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField() 796 internalSet(MONTH, month); in handleComputeFields()
|
D | ChineseCalendar.java | 210 this.set(MONTH, month); in ChineseCalendar() 266 this.set(MONTH, month); in ChineseCalendar() 546 case MONTH: in add() 565 case MONTH: in roll() 577 int m = get(MONTH); // 0-based month in roll() 871 internalSet(MONTH, month-1); // Convert from 1-based to 0-based in computeChineseFields() 971 int saveMonth = internalGet(MONTH); in handleComputeMonthStart() 983 if (month != internalGet(MONTH) || in handleComputeMonthStart() 989 internalSet(MONTH, saveMonth); in handleComputeMonthStart()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | PeriodBuilderFactoryTest.java | 44 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange() 49 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange() 55 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange() 64 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange() 74 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable() 80 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()
|
D | PeriodTest.java | 27 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet() 73 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd() 76 assertTrue(null, p.isSet(TimeUnit.MONTH)); in testAnd() 77 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); in testAnd() 78 p = p.and(2, TimeUnit.MONTH); in testAnd() 79 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); in testAnd() 104 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodTest.java | 26 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet() 72 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd() 75 assertTrue(null, p.isSet(TimeUnit.MONTH)); in testAnd() 76 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); in testAnd() 77 p = p.and(2, TimeUnit.MONTH); in testAnd() 78 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); in testAnd() 103 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
|
D | PeriodBuilderFactoryTest.java | 43 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange() 48 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange() 54 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange() 63 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange() 73 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable() 79 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()
|