/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | DateIntervalFormatTest.java | 32 private static final long HOUR = 60 * MINUTE; field in DateIntervalFormatTest 33 private static final long DAY = 24 * HOUR; 65 …assertEquals("Monday", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY… in test_formatDateInterval() 66 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE)); in test_formatDateInterval() 68 …assertEquals("January 19, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SH… in test_formatDateInterval() 69 …assertEquals("January 19", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR)… in test_formatDateInterval() 70 …y", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_NO_MONTH_DA… in test_formatDateInterval() 80 …assertEquals("Mon", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY | … in test_formatDateInterval() 81 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval() 82 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 89 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII() 118 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIIII() 158 gc1.get(Calendar.HOUR), ((gc2.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZone() 170 c1.set(Calendar.HOUR, 15); in test_ConstructorLjava_util_TimeZone() 195 gc1.get(Calendar.HOUR), ((gc3.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale() 237 gc1.add(Calendar.HOUR, 24); in test_addII() 326 .getActualMaximum(Calendar.HOUR)); in test_getActualMaximumI() 371 .getActualMinimum(Calendar.HOUR)); in test_getActualMinimumI() 390 .getGreatestMinimum(Calendar.HOUR)); in test_getGreatestMinimumI() 432 .getLeastMaximum(Calendar.HOUR)); in test_getLeastMaximumI() [all …]
|
D | CalendarTest.java | 371 int hour = cal.get(Calendar.HOUR); in test_setII() 372 cal.set(Calendar.HOUR, hour); in test_setII() 380 hour = cal.get(Calendar.HOUR); in test_setII() 384 assertEquals(hour, cal.get(Calendar.HOUR)); in test_setII()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldGregorianCalendarTest.java | 38 assertTrue(gc2.get(Calendar.HOUR) == ((gc1.get(Calendar.HOUR) + 1) % 12)); in testGetHour()
|
D | CalendarTest.java | 112 calendar.add(Calendar.HOUR, 24); in testAdd24HoursOverDstForwardAdds24Hours() 248 cal.clear(Calendar.HOUR); in checkClear()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DataFormatFieldTest.java | 116 Calendar.HOUR, Field.HOUR0.getCalendarField()); in test_getCalendarField() 138 Field.HOUR0, Field.ofCalendarField(Calendar.HOUR)); in test_ofCalendarFieldI()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 713 this.internalSet(HOUR, hourOfDay - 12); in GregorianCalendar() 717 this.internalSet(HOUR, hourOfDay); in GregorianCalendar() 1015 case HOUR: 1055 if (field >= HOUR) { 1198 case HOUR: in roll() 1218 if (field == HOUR) { in roll() 1226 if (field == HOUR) { in roll() 1230 internalSet(HOUR, hourOfDay % 12); in roll() 2458 internalSet(HOUR, hours % 12); in computeFields() 2467 internalSet(HOUR, 0); in computeFields() [all …]
|
D | JapaneseImperialCalendar.java | 449 case HOUR: in add() 489 if (field >= HOUR) { in add() 586 case HOUR: in roll() 607 if (field == HOUR) { in roll() 615 if (field == HOUR) { in roll() 619 internalSet(HOUR, hourOfDay % 12); in roll() 1670 internalSet(HOUR, hours % 12); in computeFields() 1679 internalSet(HOUR, 0); in computeFields() 1896 timeOfDay += internalGet(HOUR); in computeTime()
|
D | Calendar.java | 509 public final static int HOUR = 10; field in Calendar 1011 final static int HOUR_MASK = (1 << HOUR); 2535 int hourStamp = aggregateStamp(stamp[HOUR], stamp[AM_PM]); in selectFields() 2540 bestStamp = Math.max(stamp[HOUR], stamp[AM_PM]); in selectFields()
|
D | Formatter.java | 3960 case DateTime.HOUR: { // 'l' (1 - 12) -- like I 3962 if (c == DateTime.HOUR_0 || c == DateTime.HOUR) 4190 case DateTime.HOUR: { // 'l' (1 - 12) -- like I 4713 static final char HOUR = 'l'; // (1 - 12) -- like I 4761 case HOUR:
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 639 return DateTimePatternGenerator.HOUR; in getIcuFieldNumber()
|
/libcore/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 1150 Calendar.HOUR, 1151 Calendar.HOUR, 1413 zeroPaddingNumber(calendar.getLeastMaximum(Calendar.HOUR) + 1, in subFormat() 2545 if (value == calendar.getLeastMaximum(Calendar.HOUR) + 1) { in subParse() 2548 calb.set(Calendar.HOUR, value); in subParse()
|
D | DateFormat.java | 1037 Field("hour", Calendar.HOUR);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore2Test.java | 684 int hourExpected = Calendar.getInstance().get(Calendar.HOUR); in test_getCreationDate() 691 int hourActual1 = Calendar.getInstance().get(Calendar.HOUR); in test_getCreationDate() 705 int hourActual2 = Calendar.getInstance().get(Calendar.HOUR); in test_getCreationDate()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 194 public static final int HOUR = 10; // 0xa field in Calendar
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 463 public static final int HOUR = 10; // 0xa field in Calendar
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 475 assertEquals(11, calendar.get(Calendar.HOUR)); in testLenientParsingForZ()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 264 now.set(Calendar.HOUR, Integer.parseInt(time.substring(0, c))); in parseLine()
|