/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 54 "EXTENDED_YEAR=4601,MONTH=6,DATE=28,IS_LEAP_MONTH=0", // ch 55 "YEAR=1964,MONTH=8,DATE=4", // greg [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | DangiTest.java | 88 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping() 115 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping() 144 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() 277 cal.set(MONTH, m1); in TestOutOfRange() 280 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | HebrewTest.java | 57 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll() 58 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll() 59 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll() 60 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll() 61 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll() 63 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll() 64 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll() 65 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll() 66 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll() 67 { 5757, SHEVAT, 2, MONTH, 12, 5757, TEVET, 2 }, in TestRoll() [all …]
|
D | ChineseTest.java | 108 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping() 136 cal.set(Calendar.MONTH, cmonth-1); in TestMapping() 166 cal.get(Calendar.MONTH) + in TestZeroDOM() 321 Calendar.MONTH, 3, in TestResolution() 326 Calendar.MONTH, 1, // Should ignore in TestResolution() 346 Calendar.MONTH, 3, in TestResolution() 368 int month = cal.get(Calendar.MONTH); in TestResolution() 378 cal.set(Calendar.MONTH, expMonth); in TestResolution() 412 cal.set(MONTH, m1); in TestOutOfRange() 415 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | CopticTest.java | 156 int month = cal.get(Calendar.MONTH); in TestCopticToJD() 197 cal.get(MONTH) + "/" + in TestBasic() 203 cal.get(MONTH) + "/" + in TestBasic() 231 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379() 234 copticCal.set(Calendar.MONTH, month); in Test6379() 343 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 352 cCal.add(CopticCalendar.MONTH,2); in TestYear() 361 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear() 399 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet() 400 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() 282 cal.get(Calendar.MONTH) == 8 && in TestJD() 387 cal.add(Calendar.MONTH, 1); in TestCoverage() 457 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet() 458 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet() 459 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet() 460 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet() 461 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet() 462 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet() [all …]
|
D | IslamicTest.java | 58 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll() 59 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll() 60 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll() 61 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll() 62 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll() 68 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll() 141 cal.get(MONTH) + "/" + in TestBasic() 147 cal.get(MONTH) + "/" + in TestBasic() 177 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427() 178 cal.add(IslamicCalendar.MONTH,1); in Test7427() [all …]
|
D | IndianTest.java | 117 cal.get(MONTH) + "/" + in TestBasic() 123 cal.get(MONTH) + "/" + in TestBasic() 221 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 230 iCal.add(IndianCalendar.MONTH,2); in TestYear() 267 cal.add(Calendar.MONTH, 1); in TestYearEdge() 271 cal.add(Calendar.MONTH, 1); in TestYearEdge() 275 cal.add(Calendar.MONTH, 1); in TestYearEdge()
|
D | CompatibilityTest.java | 102 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 205 month2 = cal.get(Calendar.MONTH); in TestMapping() 226 month2 = cal.get(Calendar.MONTH); in TestMapping() 260 int month2 = cal.get(Calendar.MONTH); in auxMapping() 305 cal.roll(Calendar.MONTH, (int)(1 + Calendar.DECEMBER - cal.get(Calendar.MONTH))); in TestGenericAPI() 377 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI() 460 gc.get(Calendar.MONTH) != month || in TestRog() 526 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() 534 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() 541 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() [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() 140 cal.get(Calendar.MONTH) + in TestZeroDOM() 194 Calendar.MONTH, 3, in TestResolution() 199 Calendar.MONTH, 1, // Should ignore in TestResolution() 207 Calendar.MONTH, 3, in TestResolution() 229 int month = cal.get(Calendar.MONTH); in TestResolution() 239 cal.set(Calendar.MONTH, expMonth); in TestResolution() 273 cal.set(MONTH, m1); in TestOutOfRange() 276 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | HebrewTest.java | 53 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll() 54 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll() 55 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll() 56 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll() 57 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll() 59 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll() 60 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll() 61 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll() 62 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll() 63 { 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() 162 cal.get(Calendar.MONTH) + in TestZeroDOM() 317 Calendar.MONTH, 3, in TestResolution() 322 Calendar.MONTH, 1, // Should ignore in TestResolution() 342 Calendar.MONTH, 3, in TestResolution() 364 int month = cal.get(Calendar.MONTH); in TestResolution() 374 cal.set(Calendar.MONTH, expMonth); in TestResolution() 408 cal.set(MONTH, m1); in TestOutOfRange() 411 int m = cal.get(MONTH); in TestOutOfRange() [all …]
|
D | CopticTest.java | 152 int month = cal.get(Calendar.MONTH); in TestCopticToJD() 193 cal.get(MONTH) + "/" + in TestBasic() 199 cal.get(MONTH) + "/" + in TestBasic() 227 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379() 230 copticCal.set(Calendar.MONTH, month); in Test6379() 339 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 348 cCal.add(CopticCalendar.MONTH,2); in TestYear() 357 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear() 395 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet() 396 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +9, 1725, 8, 1 ), in TestAddSet() [all …]
|
D | EthiopicTest.java | 262 cal.get(MONTH) + "/" + in TestBasic() 268 cal.get(MONTH) + "/" + in TestBasic() 278 cal.get(Calendar.MONTH) == 8 && in TestJD() 383 cal.add(Calendar.MONTH, 1); in TestCoverage() 453 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet() 454 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet() 455 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet() 456 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet() 457 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet() 458 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet() [all …]
|
D | IslamicTest.java | 54 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll() 55 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll() 56 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll() 57 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll() 58 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll() 64 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll() 137 cal.get(MONTH) + "/" + in TestBasic() 143 cal.get(MONTH) + "/" + in TestBasic() 173 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427() 174 cal.add(IslamicCalendar.MONTH,1); in Test7427() [all …]
|
D | IndianTest.java | 113 cal.get(MONTH) + "/" + in TestBasic() 119 cal.get(MONTH) + "/" + in TestBasic() 217 gCal.add(GregorianCalendar.MONTH,2); in TestYear() 226 iCal.add(IndianCalendar.MONTH,2); in TestYear() 263 cal.add(Calendar.MONTH, 1); in TestYearEdge() 267 cal.add(Calendar.MONTH, 1); in TestYearEdge() 271 cal.add(Calendar.MONTH, 1); in TestYearEdge()
|
D | CompatibilityTest.java | 98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 201 month2 = cal.get(Calendar.MONTH); in TestMapping() 222 month2 = cal.get(Calendar.MONTH); in TestMapping() 256 int month2 = cal.get(Calendar.MONTH); in auxMapping() 301 cal.roll(Calendar.MONTH, (int)(1 + Calendar.DECEMBER - cal.get(Calendar.MONTH))); in TestGenericAPI() 373 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI() 456 gc.get(Calendar.MONTH) != month || in TestRog() 522 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() 530 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765() 537 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/android_icu4j/src/main/java/android/icu/util/ |
D | HebrewCalendar.java | 344 this.set(MONTH, month); in HebrewCalendar() 383 this.set(MONTH, month); in HebrewCalendar() 426 case MONTH: in add() 433 int month = get(MONTH); in add() 465 set(MONTH, month); in add() 511 case MONTH: in roll() 513 int month = get(MONTH); in roll() 530 set(MONTH, (newMonth + 13) % 13); in roll() 735 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField() 794 internalSet(MONTH, month); in handleComputeFields()
|
D | ChineseCalendar.java | 208 this.set(MONTH, month); in ChineseCalendar() 264 this.set(MONTH, month); in ChineseCalendar() 544 case MONTH: in add() 563 case MONTH: in roll() 575 int m = get(MONTH); // 0-based month in roll() 869 internalSet(MONTH, month-1); // Convert from 1-based to 0-based in computeChineseFields() 969 int saveMonth = internalGet(MONTH); in handleComputeMonthStart() 981 if (month != internalGet(MONTH) || in handleComputeMonthStart() 987 internalSet(MONTH, saveMonth); in handleComputeMonthStart()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | HebrewCalendar.java | 364 this.set(MONTH, month); in HebrewCalendar() 405 this.set(MONTH, month); in HebrewCalendar() 449 case MONTH: in add() 456 int month = get(MONTH); in add() 488 set(MONTH, month); in add() 535 case MONTH: in roll() 537 int month = get(MONTH); in roll() 554 set(MONTH, (newMonth + 13) % 13); in roll() 760 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField() 820 internalSet(MONTH, month); in handleComputeFields()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodTest.java | 29 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() 102 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
|
D | PeriodBuilderFactoryTest.java | 45 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange() 50 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange() 56 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange() 65 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange() 74 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable() 80 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | PeriodTest.java | 33 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet() 76 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd() 79 assertTrue(null, p.isSet(TimeUnit.MONTH)); in testAnd() 80 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); in testAnd() 81 p = p.and(2, TimeUnit.MONTH); in testAnd() 82 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); in testAnd() 106 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
|
D | PeriodBuilderFactoryTest.java | 49 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange() 54 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange() 60 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange() 69 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange() 78 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable() 84 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()
|