Home
last modified time | relevance | path

Searched refs:HOUR_OF_DAY (Results 1 – 20 of 20) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java211 .get(Calendar.HOUR_OF_DAY)); in test_addII()
215 .get(Calendar.HOUR_OF_DAY)); in test_addII()
219 .get(Calendar.HOUR_OF_DAY)); in test_addII()
223 .get(Calendar.HOUR_OF_DAY)); in test_addII()
225 gc1.add(Calendar.HOUR_OF_DAY, 24); in test_addII()
227 .get(Calendar.HOUR_OF_DAY)); in test_addII()
232 .get(Calendar.HOUR_OF_DAY)); in test_addII()
236 .get(Calendar.HOUR_OF_DAY)); in test_addII()
240 .get(Calendar.HOUR_OF_DAY)); in test_addII()
244 .get(Calendar.HOUR_OF_DAY)); in test_addII()
[all …]
DCalendarTest.java379 int hourOfDay = cal.get(Calendar.HOUR_OF_DAY); in test_setII()
385 assertEquals(hourOfDay + 12, cal.get(Calendar.HOUR_OF_DAY)); in test_setII()
472 cal.set(Calendar.HOUR_OF_DAY, 0); in test_getTimeInMillis()
579 fields[3] = Calendar.HOUR_OF_DAY; in test_clear()
DDateTest.java446 cal.set(Calendar.HOUR_OF_DAY, 0); in test_toString()
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java156 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY)); in testSetSelfConsistent()
203 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY)); in assertCalendarEquals()
218 cal.clear(Calendar.HOUR_OF_DAY); in test_clear_45877()
226 assertFalse(cal.isSet(Calendar.HOUR_OF_DAY)); in test_clear_45877()
229 assertEquals(0, cal.get(Calendar.HOUR_OF_DAY)); in test_clear_45877()
235 assertTrue(cal.isSet(Calendar.HOUR_OF_DAY)); in test_clear_45877()
239 cal.set(Calendar.HOUR_OF_DAY, 1); in test_clear_45877()
DOldGregorianCalendarTest.java64 assertEquals(17, g.get(Calendar.HOUR_OF_DAY)); in test_computeFields()
/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java420 case HOUR_OF_DAY: in add()
543 fields[HOUR_OF_DAY] = (millis % 24); in fullFieldsCalc()
544 fields[AM_PM] = fields[HOUR_OF_DAY] > 11 ? 1 : 0; in fullFieldsCalc()
545 fields[HOUR] = fields[HOUR_OF_DAY] % 12; in fullFieldsCalc()
609 if (isSet[HOUR_OF_DAY]) { in computeTime()
610 if (fields[HOUR_OF_DAY] < 0 || fields[HOUR_OF_DAY] > 23) { in computeTime()
663 if (isSet[HOUR_OF_DAY] && lastTimeFieldSet != HOUR) { in computeTime()
664 hour = fields[HOUR_OF_DAY]; in computeTime()
1226 case HOUR_OF_DAY: in roll()
DCalendar.java620 public static final int HOUR_OF_DAY = 11; field in Calendar
1128 if (field == HOUR || field == HOUR_OF_DAY) { in set()
1154 set(HOUR_OF_DAY, hourOfDay); in set()
DDate.java267 return new GregorianCalendar(milliseconds).get(Calendar.HOUR_OF_DAY); in getHours()
589 cal.set(Calendar.HOUR_OF_DAY, hour); in setHours()
713 appendTwoDigits(result, cal.get(Calendar.HOUR_OF_DAY)); in toString()
DFormatter.java1868 appendLocalized(result, calendar.get(Calendar.HOUR_OF_DAY), 2); in appendT()
1931 appendLocalized(result, calendar.get(Calendar.HOUR_OF_DAY), 0); in appendT()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java928 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeInt()
942 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeInt()
987 cal1.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeIntCalendar()
999 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeIntCalendar()
1052 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeString()
1072 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeString()
1112 cal1.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeStringCalendar()
1124 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeStringCalendar()
1171 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimestampInt()
1184 cal3.set(Calendar.HOUR_OF_DAY, 10); in testGetTimestampInt()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DASN1Time.java48 c.set(Calendar.HOUR_OF_DAY, in.times[3]); in getDecodedObject()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java121 Calendar.HOUR_OF_DAY, Field.HOUR_OF_DAY0.getCalendarField()); in test_getCalendarField()
141 Field.HOUR_OF_DAY0, Field.ofCalendarField(Calendar.HOUR_OF_DAY)); in test_ofCalendarFieldI()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java285 assertEquals(11, calendar.get(Calendar.HOUR_OF_DAY)); // 18:00 GMT-7 in testDstZoneNameWithNonDstTimestamp()
293 assertEquals(9, calendar.get(Calendar.HOUR_OF_DAY)); // 17:00 GMT-8 in testNonDstZoneNameWithDstTimestamp()
302 assertEquals(19, calendar.get(Calendar.HOUR_OF_DAY)); // 9:00 GMT+10:30 in testDstZoneWithNonDstTimestampForNonHourDstZone()
310 assertEquals(20, calendar.get(Calendar.HOUR_OF_DAY)); // 9:00 GMT+11:00 in testNonDstZoneWithDstTimestampForNonHourDstZone()
/libcore/luni/src/main/java/java/text/
DSimpleDateFormat.java610 int hour = calendar.get(Calendar.HOUR_OF_DAY); in append()
615 field = Calendar.HOUR_OF_DAY; in append()
898 calendar.set(Calendar.HOUR_OF_DAY, hour); in parse()
901 field = Calendar.HOUR_OF_DAY; in parse()
DDateFormat.java714 public static final Field HOUR_OF_DAY0 = new Field("hour of day", Calendar.HOUR_OF_DAY);
/libcore/luni/src/main/java/libcore/icu/
DDateIntervalFormat.java198 return c.get(Calendar.HOUR_OF_DAY) == 0 && in isMidnight()
/libcore/luni/src/test/java/libcore/icu/
DDateIntervalFormatTest.java38 c.set(Calendar.HOUR_OF_DAY, 3); in test_formatDateInterval()
336 c.set(Calendar.HOUR_OF_DAY, 0); in test10209343_when_this_year()
391 c.set(Calendar.HOUR_OF_DAY, 0); in test12004664()
/libcore/luni/src/main/java/java/util/zip/
DZipEntry.java301 time = (cal.get(Calendar.HOUR_OF_DAY) << 11) | time; in setTime()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java814 calendar.set(Calendar.HOUR_OF_DAY, hour);
823 hour = calendar.get(Calendar.HOUR_OF_DAY);
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...